pmaports/device/testing/linux-postmarketos-qcom-msm8953/APKBUILD
M0Rf30 9b21113f2c
linux-postmarketos-qcom-msm8953: upgrade to 6.4.7-r3 (MR 4378)
[ci:skip-build]: already built successfully in CI
2023-09-05 23:51:25 +02: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.4.7
pkgrel=2
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-r3"
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="
23a9adb4c931ac1f6d9d59a9e7b7b57e60ac62b322b3763016a44024471e306bbbc293599eb6fdbea1487ca13e1f9e7a2c4feb75eecf45e0c5f633c71f20c273 linux-postmarketos-qcom-msm8953-v6.4.7-r3.tar.gz
e3fa4ce73dd1f34d104589d2af44dd2c8c03ab06d4c3b1bac3e2c8bfdef8fd62bc3b816479a265d91eabcd788503d74eea424ad0eaa7f1289109097ba5344d40 config-postmarketos-qcom-msm8953.aarch64
"