2020-09-04 19:12:42 +00:00
|
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
2019-10-05 14:09:52 +00:00
|
|
|
_flavor=postmarketos-qcom-msm8974
|
2020-01-21 23:11:47 +00:00
|
|
|
_config="config-$_flavor.$CARCH"
|
2018-04-16 12:47:52 +00:00
|
|
|
|
2020-01-21 23:11:47 +00:00
|
|
|
pkgname=linux-$_flavor
|
2021-07-05 04:17:58 +00:00
|
|
|
pkgver=5.13.0
|
2021-06-27 22:37:40 +00:00
|
|
|
pkgrel=0
|
2021-07-05 04:17:58 +00:00
|
|
|
_commit="f0c6bd2be0298ad026ee510f17dd4e7890c424a0"
|
2019-10-05 14:09:52 +00:00
|
|
|
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
|
2020-09-04 19:12:42 +00:00
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
2018-04-16 12:47:52 +00:00
|
|
|
url="https://kernel.org/"
|
2020-09-04 19:12:42 +00:00
|
|
|
license="GPL-2.0-only"
|
2021-07-05 04:17:58 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox pmb:kconfigcheck-containers pmb:kconfigcheck-nftables"
|
2020-09-04 19:12:42 +00:00
|
|
|
makedepends="
|
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
2021-03-27 13:27:58 +00:00
|
|
|
gmp-dev
|
2020-09-04 19:12:42 +00:00
|
|
|
installkernel
|
2021-03-27 13:27:58 +00:00
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
2020-09-04 19:12:42 +00:00
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
"
|
2020-09-04 17:35:31 +00:00
|
|
|
source="https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/$_commit/linux-postmarketos-$_commit.tar.gz
|
2020-01-21 23:11:47 +00:00
|
|
|
config-$_flavor.armv7
|
2020-09-04 17:35:31 +00:00
|
|
|
"
|
2020-03-22 17:46:06 +00:00
|
|
|
builddir="$srcdir/linux-postmarketos-$_commit"
|
2018-04-16 12:47:52 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-09-04 19:12:42 +00:00
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
2018-04-16 12:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2020-09-04 19:12:42 +00:00
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
2018-04-16 12:47:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-09-04 19:12:42 +00:00
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
2018-04-16 12:47:52 +00:00
|
|
|
ARCH="$_carch" \
|
2020-09-04 19:12:42 +00:00
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
2018-04-16 12:47:52 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2021-03-27 13:27:58 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2020-09-04 19:12:42 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
2018-04-16 12:47:52 +00:00
|
|
|
|
2020-09-04 19:12:42 +00:00
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
2018-04-16 12:47:52 +00:00
|
|
|
}
|
2019-05-30 12:00:31 +00:00
|
|
|
|
2021-05-31 20:12:34 +00:00
|
|
|
sha512sums="
|
2021-07-05 04:17:58 +00:00
|
|
|
14d026ef0e22f03284c0b49222001515940f39c4e83aaaa88d10be08594a870abf4e0d8e8ad96c6df107ed3ab0856c42c5c95660de1dd970cc82e82f9b62582f linux-postmarketos-f0c6bd2be0298ad026ee510f17dd4e7890c424a0.tar.gz
|
|
|
|
11123fec031cd4f30bc77e70639d35bcc55252d47fca5016b686b704c77f329d7568c88f7d0abaac5788c275d3f26e9502560186faf4cf706937ab7fbaff2ff9 config-postmarketos-qcom-msm8974.armv7
|
2021-05-31 20:12:34 +00:00
|
|
|
"
|