pmaports/main/linux-postmarketos-qcom-msm8996/APKBUILD
Raffaele Tranquillini ad1681c190
main/postmarketos-qcom-msm8996: add support for Anbox and Waydroid (MR 2529)
Add kernel flags needed for Anbox and Waydroid to work

[ci:skip-build] Already built successfully on CI

Signed-off-by: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>
2021-09-24 11:25:55 +02:00

52 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=5.14.0
pkgrel=3
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8996 devices"
arch="aarch64"
_carch="arm64"
url="https://gitlab.com/msm8996-mainline/linux-msm8996"
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-msm8996-$_tag.tar.gz::$url/-/archive/$_tag/linux-msm8996-$_tag.tar.gz
config-$_flavor.$arch
"
builddir="$srcdir/linux-msm8996-$_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="
620075d5e9bcbd424461bebdc73eaac79b8a26a1e15f8cb931b5b9e1181829f7f11341567a63007ced6757da1f2a10a9d85fb5e8f9a91f76d7ebc115e410ed46 linux-msm8996-v5.14.0-msm8996.tar.gz
6d4a1e0bbcacee4906f96359c9ca15614af87db624a6261a7ab276ad86bf3e3632cbf6039c600437a9627343c993f4df0a93b33149d7e27e90c0d0a6e16782d2 config-postmarketos-qcom-msm8996.aarch64
"