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

66 lines
1.8 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.14.2
pkgrel=1
_commit="c7bfa860092c00e9c02d3907dbc545e5e41083bc"
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
pmb:kconfigcheck-anbox
pmb:kconfigcheck-containers
pmb:kconfigcheck-nftables
pmb:kconfigcheck-zram
"
makedepends="
bison
findutils
flex
gmp-dev
mpc1-dev
mpfr-dev
openssl-dev
perl
postmarketos-installkernel
"
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_MOD_STRIP=1 \
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="
49b97104c569822b97bf016dd9ed3bdac2dcfa757372a20ca5312489c8ce4cf27bcdb1b0367eccc64aa04da74d71800fc3b51c716cb1684cca7e61b1a081835e linux-postmarketos-c7bfa860092c00e9c02d3907dbc545e5e41083bc.tar.gz
3cdfef81682f909699797628ea37658be5b016e54fbce57f89a3faa830002a253e9e1f4dbe2307a004d43af56ce41af9d3d3e3a317a57032a25bf8b3d5100a01 config-postmarketos-qcom-msm8974.armv7
"