pmaports/device/testing/linux-postmarketos-qcom-msm8994/APKBUILD

66 lines
2 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=6.8
pkgrel=1
pkgdesc="Mainline kernel for Qualcomm MSM8994/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
pmb:kconfigcheck-zram
"
makedepends="
bison
findutils
flex
openssl-dev
perl
postmarketos-installkernel
"
_tag=${pkgver//_/-}
source="
https://git.kernel.org/torvalds/t/linux-$_tag.tar.gz
config-$_flavor.$arch
0001-arm64-dts-qcom-msm8994-huawei-angler-Add-regulators.patch
0002-arm64-dts-qcom-msm8992-lg-h815.patch
"
builddir="$srcdir/linux-${_tag#v}"
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="
17991b3e0cd69e910416e8b11ba48919a4ee179bf1bb8a66516897218f1bafb297754777ebee77e75f6f844a6ec79a748b10371e33ae5374a4f4accab6c6b8f7 linux-6.8.tar.gz
9f923f4dc4cf33a45208c65873d5d02f01f58a90a949155eb8d186cfe940a3f50823ddc2c590986ce5933a85fa51091cce78305ad58900a9e0fd0473bc71a5c0 config-postmarketos-qcom-msm8994.aarch64
4dc3de184eac5cfb593a308278e3a5ab27f5e94b5dec8b288c053070f788fdb8d8fad8628b5a996701eacc11b1015999b99f8d279b207e214dd0e63f97cfb4d6 0001-arm64-dts-qcom-msm8994-huawei-angler-Add-regulators.patch
1293b1db2fa485f1e5fd11b6e44d71e42a3c6a2fc46b49498fc12c261729055c94edb0b081a8d0495658ba04353ac70c32377e5228c4ed2c1e43de321c628f78 0002-arm64-dts-qcom-msm8992-lg-h815.patch
"