pmaports/device/testing/linux-postmarketos-qcom-msm8974/APKBUILD
2022-10-26 09:55:13 +02:00

69 lines
1.8 KiB
Text

# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
# Co-Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor=postmarketos-qcom-msm8974
_config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=5.19.9
pkgrel=2
_tag="v5.19.9-msm8974"
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-waydroid
pmb:kconfigcheck-containers
pmb:kconfigcheck-iwd
pmb:kconfigcheck-nftables
pmb:kconfigcheck-zram
"
makedepends="
bash
bison
findutils
flex
gmp-dev
mpc1-dev
mpfr-dev
openssl-dev
perl
postmarketos-installkernel
"
source="
linux-$_tag.tar.gz::https://github.com/msm8974-mainline/linux/archive/refs/tags/$_tag.tar.gz
config-$_flavor.armv7
"
builddir="$srcdir/linux-$pkgver-msm8974"
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"/boot/dtbs
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="
db0c0e7069faeb2bc1a3b19334618374c155d66103b0f7f8a5cfd1067e576d942ca3c8a2562aaa2fa698621ce5deae376cb0669dd0f2ac05900d0db7ea2c13e9 linux-v5.19.9-msm8974.tar.gz
bc8f3aff634715e6e9c416451cc50b2f56bf0b440a386a7d2e49856e0602f96271216f5113d06f54943b63b3b0e0b4d7d12c9bd4c076bfe2320145b2812c5e46 config-postmarketos-qcom-msm8974.armv7
"