pmaports/main/linux-postmarketos-qcom-msm8996/APKBUILD
Luca Weiss c57aa7b299
device/*/linux-*: enable CONFIG_TMPFS_POSIX_ACL (MR 1939)
This is required by some software, e.g. bluez/gnome to set some ACLs on
/dev/rfkill (see #904). While probably nobody will notice on the
downstream kernels (as we don't have any proper software there anyways)
it's definitely needed on mainline-ish kernels. Surprisingly only one
kernel has broken by enabling this option (linux-sony-tulip) which I've
patched up.

linux-postmarketos-qcom-sdm660 did not break by enabling this option,
but required linux4.17-gcc10-extern_YYLOC_global_declaration.patch to
build again, so this was fixed too.

[ci:skip-build] [ci:ignore-count]
2021-02-09 21:54:35 +01:00

48 lines
1.5 KiB
Text

# Kernel config based on: arch/arm64/configs/defconfig
_flavor="postmarketos-qcom-msm8996"
pkgname=linux-$_flavor
pkgver=5.7
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-msm8996"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
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-$_flavor"
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_DTBS_PATH="$pkgdir"/usr/share/dtb
}
sha512sums="51b6e9f2e5fff3191c60c9f22cecafa7a3d39ae1da398f24b38043755b45f4a6b984f7390645760cc0a27b9c3c3f9da6df82f60086a393da61b4bada4d9365ba linux-msm8996-v5.7-msm8996.tar.gz
87f7d461c3c339bc0dc6d27acb4de6af844077a9c11784808755cb4feb2eb0992bef7aef11c22e09f7a8b7aea430e70d6e9ffc494e3a8c3ac57f3ec68431bc79 config-postmarketos-qcom-msm8996.aarch64"