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
|
2020-03-22 17:46:06 +00:00
|
|
|
pkgver=5.6.0_rc6
|
2020-09-04 19:12:42 +00:00
|
|
|
pkgrel=7
|
|
|
|
_commit="b9f39bdf61e5c8f5db63afe7ab1c9ff77aa6b4bc"
|
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"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-09-04 19:12:42 +00:00
|
|
|
makedepends="
|
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
installkernel
|
|
|
|
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
|
|
|
fix-gcc10-build.patch
|
|
|
|
"
|
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" \
|
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
|
|
|
|
2020-04-10 18:04:25 +00:00
|
|
|
sha512sums="92866a037fd1bd3b17572754548c19423f6e762d90fb1ebca52c252ace85c87b6f747515f8606fe627d34c59828cbebf83054b9d6e5dd977e0398d9c46fcc176 linux-postmarketos-b9f39bdf61e5c8f5db63afe7ab1c9ff77aa6b4bc.tar.gz
|
2020-09-04 19:12:42 +00:00
|
|
|
bcaf8bcba8a16cf6ff0218fe857a2c8e064edf495d168422c80e4785e1b2b17346319a3bcb3f1a33f9f6caab8cb4a13032dfd1cfdba40bb2acb74379c52d077a config-postmarketos-qcom-msm8974.armv7
|
2020-09-04 17:35:31 +00:00
|
|
|
fcb8c823e9943f409876bbec88e78ee2bbac3a30888ed3b10eb790157f568167e29d37763af4ebbf3ae9ce7fc0ed7f39710f58487069579a5eafa7e540e1e7e1 fix-gcc10-build.patch"
|