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

54 lines
1.6 KiB
Text
Raw Normal View History

# Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor=postmarketos-qcom-msm8974
_config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=5.9.0_rc4
pkgrel=1
_commit="2d11e1d8eee79e884286ba200829f227d5ba1f1a"
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
arch="armv7"
_carch="arm"
url="https://kernel.org/"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bison
findutils
flex
installkernel
openssl-dev
perl
"
source="https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/$_commit/linux-postmarketos-$_commit.tar.gz
config-$_flavor.armv7
"
builddir="$srcdir/linux-postmarketos-$_commit"
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
make zinstall modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_PATH="$pkgdir"/boot \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
install -D "$builddir/include/config/kernel.release" \
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
}
sha512sums="953727752af25fc8fa41201ebcf25363512f32e3d6d81afc4046c86719911c0b221bfff0d0f5631157f2b242918a6fee686b701bb74d8d28ec56cc41b482be9a linux-postmarketos-2d11e1d8eee79e884286ba200829f227d5ba1f1a.tar.gz
b746e9d3ee4541b6e2e08fa30e6064624c92a125675cb6b57ff072b82e8f927ddba0d476b7ba57cb657fcc1cb6dd5d5c4781cd27983d7427244b7f1338e121f8 config-postmarketos-qcom-msm8974.armv7"