pmaports/device/community/linux-postmarketos-qcom-msm8996/APKBUILD

56 lines
1.6 KiB
Text

# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
# Kernel config based on: arch/arm64/configs/defconfig
_flavor="postmarketos-qcom-msm8996"
pkgname=linux-$_flavor
pkgver=6.1.14
pkgrel=2
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8996 devices"
arch="aarch64"
_carch="arm64"
url="https://gitlab.com/msm8996-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-community
"
makedepends="bash bison findutils flex installkernel openssl-dev perl"
# Source
_tag=v${pkgver//_/-}-msm8996
source="
linux-$_tag.tar.gz::$url/-/archive/$_tag/linux-$_tag.tar.gz
config-$_flavor.$arch
"
builddir="$srcdir/linux-$_tag"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$CARCH" .config
}
build() {
unset LDFLAGS
# V=1: workaround for pma#1990
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION=$((pkgrel + 1 )) \
V=1
}
package() {
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
"$pkgdir/boot/vmlinuz"
install -D "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
make modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
}
sha512sums="
e610337d0b99a53d1c3e26a63232ac07bc8b66e98ba4220aed68c2b071fa3cafab558c84aa775826778de17404b9764009ef11a2648c5c05fb3156e06b68c1c7 linux-v6.1.14-msm8996.tar.gz
f51a999944a4dbdd619b9803f821539f96c2c034497df27cdad1843161314a10609098155fe48683613340a527aaf8b9165f97d7b7beb297ee46c3553f950c9b config-postmarketos-qcom-msm8996.aarch64
"