2023-01-28 09:41:46 +00:00
|
|
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
|
|
|
pkgname=linux-postmarketos-qcom-sc8180x
|
2023-10-30 18:40:06 +00:00
|
|
|
pkgver=6.6.0
|
2023-01-28 09:41:46 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Mainline Kernel fork for Snadpragon 8cx 1st generation devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="${pkgname#linux-}"
|
|
|
|
url="https://gitlab.com/sc8180x-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-community
|
|
|
|
pmb:kconfigcheck-uefi"
|
|
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
|
2023-10-30 18:40:06 +00:00
|
|
|
_commit="27c30b32783351f6ca31c619cbf42697e7208f3d"
|
2023-01-28 09:41:46 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
# Source
|
|
|
|
source="
|
|
|
|
linux-$_commit.tar.gz::https://gitlab.com/sc8180x-mainline/linux/-/archive/$_commit/linux-$commit.tar.gz
|
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-10-30 18:40:06 +00:00
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/vmlinuz.efi" \
|
2023-01-28 09:41:46 +00:00
|
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
|
|
|
|
make modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-10-30 18:40:06 +00:00
|
|
|
71a29d0e2dfc33ee264cba21b0af1bcf45b2b75a7152a7dd961d325af4e8abf076cb801d181527d65dceef173cadb2b6db3b0b8bdd1cd4afeb38ffce9a452c09 linux-27c30b32783351f6ca31c619cbf42697e7208f3d.tar.gz
|
|
|
|
3cd762d63e98eb20fe4d66cdabce9992a748f85d6e768540fbd162598e2020acabfe6db8a9b47c3c0b91868c7a366fc0120121b57e1eb53bed1e880dce0f5d06 config-postmarketos-qcom-sc8180x.aarch64
|
2023-01-28 09:41:46 +00:00
|
|
|
"
|