66 lines
1.6 KiB
Text
66 lines
1.6 KiB
Text
|
# Maintainer: Petr Vorel <petr.vorel@gmail.com>
|
||
|
# Kernel config based on: arch/arm64/configs/defconfig
|
||
|
|
||
|
_flavor="postmarketos-qcom-msm8994"
|
||
|
pkgname=linux-$_flavor
|
||
|
pkgver=5.14.15
|
||
|
pkgrel=0
|
||
|
pkgdesc="Kernel mainline Qualcomm MSM8994 and MSM8992 devices"
|
||
|
arch="aarch64"
|
||
|
_carch="arm64"
|
||
|
url="https://kernel.org"
|
||
|
license="GPL-2.0-only"
|
||
|
options="!strip !check !tracedeps
|
||
|
pmb:cross-native
|
||
|
pmb:kconfigcheck-nftables
|
||
|
"
|
||
|
makedepends="
|
||
|
bison
|
||
|
findutils
|
||
|
flex
|
||
|
openssl-dev
|
||
|
perl
|
||
|
postmarketos-installkernel
|
||
|
xz
|
||
|
"
|
||
|
|
||
|
case $pkgver in
|
||
|
*.*.*) _kernver=${pkgver%.0};;
|
||
|
*.*) _kernver=$pkgver;;
|
||
|
esac
|
||
|
source="
|
||
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
||
|
config-$_flavor.$arch
|
||
|
"
|
||
|
builddir="$srcdir/linux-$_kernver"
|
||
|
|
||
|
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"/usr/share/dtb
|
||
|
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="
|
||
|
f2549b5494ce2e8174b70d29282a60e072ca31d4a83e1e1f4b3f0acb150e1849fe4f2eaf6b6cb18ac758e723c3d53aa8686e4e6d9d7cb9696983ffe64f6a9b59 linux-5.14.15.tar.xz
|
||
|
599feb3a76f9d90e4a851a6037d810d34f5889de1ac32bfeb2f71dd9f756d197464132ed491a3f4dc7fbd16a7341431f765df0ebc8adec83bff82326777591a2 config-postmarketos-qcom-msm8994.aarch64
|
||
|
"
|