pmaports/device/testing/linux-postmarketos-qcom-msm8953/APKBUILD
M0Rf30 39f6db50cb
linux-postmarketos-qcom-msm8953: upgrade to 6.3.0 (MR 4035)
[ci:skip-build]: Already built successfully in CI
2023-05-03 15:52:33 +02:00

65 lines
1.7 KiB
Text

# Maintainer: Ultracoolguy <ultracoolguy@disroot.org>
# Kernel config based on: defconfig, msm8953.config, and device configs
_flavor="postmarketos-qcom-msm8953"
pkgname=linux-$_flavor
pkgver=6.3.0
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
"
# Source
_commit="a6766f68acf854f926b091b438b6569d1ebca302"
source="
$pkgname-$_commit.tar.gz::https://github.com/msm8953-mainline/linux/archive/$_commit.tar.gz
config-$_flavor.aarch64
"
builddir="$srcdir/linux-$_commit"
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="
910d30e14d2549c887b7d27470531a17b0203e26f44eab9fd3ce7865c405a532f9583a992ea22b4297be5a2db163aa24683c9b1dd66dee5c9a7020c741b0409b linux-postmarketos-qcom-msm8953-a6766f68acf854f926b091b438b6569d1ebca302.tar.gz
c9012c1d88c7c029acb53ac73e959e089e5832f1cfd64e6909256f6cdf9237fe494a824449cc7ec58155fa60512889ea9054d152dd3f1abfee3823b037988e64 config-postmarketos-qcom-msm8953.aarch64
"