pmaports/device/community/linux-postmarketos-qcom-msm8953/APKBUILD
Gianluca Boiano 54986eb5eb
linux-postmarketos-qcom-msm8953: upgrade to 6.7.9-r0 (MR 4899)
[ci:skip-build]: already built successfully in CI
2024-03-10 11:18:18 +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.7.9
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="
900036c6c771a6da5ae70baf34cb2959d136ff10cca44c5303ea163174fbef9444cd567def6ac45be08455c6fa74828bcfb32d646bdc806c96ccae1c213cee0b linux-postmarketos-qcom-msm8953-v6.7.9-r0.tar.gz
9fd465c9d3532ff7ff1ca2ac445cf1ea6080176d17dae5cce6a0510536dc5af175c00640af13fc09f5ecb6bf1f094dd0c62387642bc90805b0008ef5c650f9a0 config-postmarketos-qcom-msm8953.aarch64
"