a6b343c833
Simple upgrade with few generic kernel features enabled * IWD support * F2FS * NTFS3_FS * USB mass storage support * disable MTD and build more things as modules to reduce kernel size to compensate some new built-in options, as kernel doesn't boot otherwise. No new things for pmOS's devices (yet). Should work same as before. [ci:skip-build] Already built on CI in MR
67 lines
1.7 KiB
Text
67 lines
1.7 KiB
Text
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
_flavor=postmarketos-qcom-msm8974
|
|
_config="config-$_flavor.$CARCH"
|
|
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.15.7
|
|
pkgrel=0
|
|
_tag="v5.15.7-pmos"
|
|
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-iwd
|
|
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/$_tag/linux-postmarketos-$_tag.tar.bz2
|
|
config-$_flavor.armv7
|
|
"
|
|
builddir="$srcdir/linux-postmarketos-$_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
|
|
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="
|
|
412fa2302253b922f3da57ea04376427842eaa88ca9ab8aacca62c1083be81f3607a41a9944f6f3b8cbda9be3713008f99c7e17d00823c7f322e12a24b5a2011 linux-postmarketos-v5.15.7-pmos.tar.bz2
|
|
eb574e282c0336f50d8bba33670117e5a9282018f0d4f499280864c5d2a5c7f6e072949b6933e6fc1735d52e1ab007cda5ae8011376375dd95ef429dc86fb6fe config-postmarketos-qcom-msm8974.armv7
|
|
"
|