pmaports/device/community/linux-postmarketos-qcom-msm8953/APKBUILD
M0Rf30 22c3cd1e69
linux-postmarketos-qcom-msm8953: upgrade to 6.6.8-r0 (MR 4671)
[ci:skip-build]: already built successfully in CI
2024-01-03 22:10:47 +01:00

65 lines
1.7 KiB
Text

# Maintainer: M0Rf30 <morf3089@gmail.com>
# Co-Maintainer: Ultra-azu <ultra.public@proton.me>
# Kernel config based on: defconfig, msm8953.config, and device configs
_flavor="postmarketos-qcom-msm8953"
pkgname=linux-$_flavor
pkgver=6.6.8
pkgrel=0
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon MSM8953"
arch="aarch64"
_carch="arm64"
url="https://github.com/msm8953-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-community
"
makedepends="
bash
bison
findutils
flex
openssl-dev
perl
postmarketos-installkernel
"
_tag="$pkgver-r0"
source="
$pkgname-v$_tag.tar.gz::$url/archive/v$_tag.tar.gz
config-$_flavor.aarch64
"
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 -Dm644 "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
}
sha512sums="
8ffd005e56f3136658c61b489f02470a1ef37d31477adbf80dc50409e4fe247b633a2cbd73b37c77048bc40c06b0c13031ecf3715c0c6a19f5e1fb880ce27787 linux-postmarketos-qcom-msm8953-v6.6.8-r0.tar.gz
bbdd2910f6fa0b39c7c4370b2b4569fc0b71ae020d0c8ce3a25871e1d6663467f3d5346254a3d136a98c7ce75e268b4498680f5b0355c0bb1bc8108d014f0775 config-postmarketos-qcom-msm8953.aarch64
"