66 lines
1.7 KiB
Text
66 lines
1.7 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="postmarketos-qcom-sm8250"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.7.0
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for SM8250"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/sm8250-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-nftables
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
findutils
|
|
flex
|
|
installkernel
|
|
openssl-dev
|
|
perl
|
|
"
|
|
|
|
# Source
|
|
_tag="sm8250-6.7.0"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_tag.tar.gz::https://gitlab.com/sm8250-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/linux-$_tag"
|
|
|
|
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() {
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall 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="
|
|
0922039d4de9077ee94dcaa43de683d7d0f1ceec19029339556133cf2123442afcd4ed174792b5f279f29bba5c98437c94f2ce95087d44fb8a832c4d8e176248 linux-postmarketos-qcom-sm8250-sm8250-6.7.0.tar.gz
|
|
eba45de0f1c2048c381811bad0726b52d9e3c20f2d4c90935349dae012f2cdf94db427a8227e2f735bb1c501a6b512bcaf2c5d1ede79f77b2e1a07745fc53cae config-postmarketos-qcom-sm8250.aarch64
|
|
"
|