b358565705
* Add support for full panel driver for samsung-klte * Enable zram support
65 lines
1.8 KiB
Text
65 lines
1.8 KiB
Text
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
_flavor=postmarketos-qcom-msm8974
|
|
_config="config-$_flavor.$CARCH"
|
|
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.13.13
|
|
pkgrel=0
|
|
_commit="ffd3f868aa206d16a77e2529bb59915b1a779cd7"
|
|
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
|
|
installkernel
|
|
mpc1-dev
|
|
mpfr-dev
|
|
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_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="
|
|
bb43be184018552067478257a983ad4a84d0372aa258e4165a14fae418dc62b2adf06c538ce45bffd745973659e5a3e3294c8fb6bd95c6b7e1b8af6af90a1c87 linux-postmarketos-ffd3f868aa206d16a77e2529bb59915b1a779cd7.tar.gz
|
|
8e2182d700b07dfd343859d71ee4f9bba5f1e130704bee0276731565f7cce86ffde04c774d34e982616114f2f48cc22252c20a58babf44f01bd258d6e8b9de44 config-postmarketos-qcom-msm8974.armv7
|
|
"
|