pmaports/main/linux-postmarketos-qcom-msm8996/APKBUILD

53 lines
1.6 KiB
Text
Raw Normal View History

# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
# Kernel config based on: arch/arm64/configs/defconfig
_flavor="postmarketos-qcom-msm8996"
pkgname=linux-$_flavor
pkgver=5.15.6
pkgrel=1
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-nftables pmb:kconfigcheck-anbox"
makedepends="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
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
}
package() {
mkdir -p "$pkgdir"/boot
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"/usr/share/dtb
}
sha512sums="
a46eaf54f1653a8c4110d458c212a889df825457df028eac6aed904ee64c6133619e93edc0f56a1ffec7ad13b341b4b36668e93448e99a1386c576758a070d19 linux-v5.15.6-msm8996.tar.gz
1868b0206b99cdf90cebb098601f9a1c6f96007a80e14ac7b1a49f02ff3363b2908b4827acfa80484e3a5df8aa8fdd8380d122aa6aa73f3bd0b5d5628d7ab7c5 config-postmarketos-qcom-msm8996.aarch64
"