60 lines
1.9 KiB
Text
60 lines
1.9 KiB
Text
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
# Kernel config based on: arch/arm64/configs/msm8916_defconfig
|
|
|
|
_flavor="postmarketos-qcom-msm8916"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.14_rc7
|
|
pkgrel=1
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8916 devices"
|
|
arch="aarch64 armv7"
|
|
url="https://github.com/msm8916-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native
|
|
pmb:kconfigcheck-anbox pmb:kconfigcheck-containers pmb:kconfigcheck-nftables"
|
|
makedepends="bison findutils flex installkernel openssl-dev perl gmp-dev mpc1-dev mpfr-dev"
|
|
|
|
# Architecture
|
|
case "$CARCH" in
|
|
aarch64) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
esac
|
|
|
|
# Source
|
|
_tag=v${pkgver//_/-}-msm8916
|
|
source="
|
|
$pkgname-$_tag.tar.gz::$url/archive/$_tag.tar.gz
|
|
config-$_flavor.aarch64
|
|
config-$_flavor.armv7
|
|
"
|
|
builddir="$srcdir/linux-${_tag#v}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
}
|
|
|
|
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="
|
|
32049a56278777abefd9107cac1d0e36db99c1ee73e55ec5eac89047c0f53985ba9807944a624ceab1df15dac2ac01100519231a44c4d164a86ea278a3c9858c linux-postmarketos-qcom-msm8916-v5.14-rc7-msm8916.tar.gz
|
|
50ffe6f21ec5d009bca5bae29c8c2e9c2def69b0479bc6bdb179fc76d856c6a222bd4bcd4c96163aec305d8b5a2f00b97f58f217fe7f49aaa6262f3a2a88133e config-postmarketos-qcom-msm8916.aarch64
|
|
10a79edffcbec1fbb3442986deb9a2ee394999790f6f23505bb0d17b69fb0e2e934dd5de653e7e24ffff457da517a8a6c4aa5c1bc5c906c4f203160607bd8a07 config-postmarketos-qcom-msm8916.armv7
|
|
"
|