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

80 lines
3.4 KiB
Text
Raw Normal View History

# Maintainer: Petr Vorel <petr.vorel@gmail.com>
# Kernel config based on: arch/arm64/configs/defconfig
_flavor="postmarketos-qcom-msm8994"
pkgname=linux-$_flavor
pkgver=5.17.2
pkgrel=1
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
0001-arm64-dts-qcom-msm8992-lg-bullhead-Place-LG-Bullhead.patch
0002-arm64-dts-qcom-msm8994-SoC-specific-compatible-strin.patch
0003-arm64-dts-qcom-msm8994-huawei-angler-Add-vendor-name.patch
0004-arm64-dts-qcom-msm8994-huawei-angler-Add-sdhc1-defin.patch
0005-arm64-dts-qcom-msm8994-Fix-sleep-clock-name.patch
0006-dt-bindings-clock-qcom-rpmcc-Add-RPM-Modem-SubSystem.patch
0007-clk-qcom-smd-Add-missing-RPM-clocks-for-msm8992-4.patch
"
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"/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="
d62537333c1cedf839e95bfcbf757f45dd063f27ecf7fbba910f04663c9bb259438c1616f4bd68c5b59157d79dbd40815bf13d3b3e99a18cbade2b32e4dc5483 linux-5.17.2.tar.xz
8f4972dfe2142aca4836255cdedea9bb9fa8ea06273ec61b87b32abc9eaa44ad7966f81f0b639ab0a3edd6eba43bdfdef57c9c926a8a7627e5d0e487ea2d6c70 config-postmarketos-qcom-msm8994.aarch64
e2283b4b6624c22856b1f68d21ac81a42a1cfe17ebbfacdf85e1070edc987e01f09cb25de4d9454e4f4491a8815a7c3a8ab19a314f1246d707e0e491808d60a4 0001-arm64-dts-qcom-msm8992-lg-bullhead-Place-LG-Bullhead.patch
f50b54d3f2f77b4fd14edb5d64791ea015d28e7de537ff01729320075e996685c3c9856e82b3c88a5bfad9f9a1a2ff7d700e7e831c9e41b3a0852f070816e94d 0002-arm64-dts-qcom-msm8994-SoC-specific-compatible-strin.patch
28be5b50a3a99c04e595a01c7ae5aef248dce51c67d7c27b4168e6f49578b948a675388e9d3590ad214e866ace441beae87dba15a3ab42309ab3e6b1addcf17e 0003-arm64-dts-qcom-msm8994-huawei-angler-Add-vendor-name.patch
5f02fe1063a260f7741ed252f3e09db2e2ae252c26b5909ec74168438aac9ce9a5b6ac684f359fa8b540bef06cd03b8d02daffc5a0d65693c7827cd82dfa189a 0004-arm64-dts-qcom-msm8994-huawei-angler-Add-sdhc1-defin.patch
3c3d9a7000f2892d57d67178cef4ff9d4efc56f8fbfdf75dc45e19c84ead40a02ea91da71074be57b7abc06be2a9e71711308951fd0ca9c0189ef0ca7515a5e5 0005-arm64-dts-qcom-msm8994-Fix-sleep-clock-name.patch
31ca34945bfcdccd1ae4e41471f6ee05da56b8cd1b5ef7d331d4b743f77b2f302024986e0e057fea5d3aaeaea4aaa42e88f9ddf2dc3a7223cc6649ad95ff36de 0006-dt-bindings-clock-qcom-rpmcc-Add-RPM-Modem-SubSystem.patch
e982f438044c5b4b728699f49d4bcb317efc3be6609162dffe105fc6777d3a369789db5981cfb77fc6d66b4ba24f074d48ff2e51882a883abe7f878ee4881eb7 0007-clk-qcom-smd-Add-missing-RPM-clocks-for-msm8992-4.patch
"