2021-12-17 00:20:29 +00:00
|
|
|
# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
|
|
|
|
# Co-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
|
2023-01-22 11:51:43 +00:00
|
|
|
pkgver=6.1.7
|
2022-11-21 19:48:14 +00:00
|
|
|
pkgrel=0
|
2022-11-07 20:13:00 +00:00
|
|
|
_tag="v$pkgver-msm8974"
|
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-09-01 00:04:42 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-11-21 19:52:20 +00:00
|
|
|
pmb:kconfigcheck-community
|
2021-09-01 00:04:42 +00:00
|
|
|
"
|
2020-09-04 19:12:42 +00:00
|
|
|
makedepends="
|
2022-10-04 15:55:58 +00:00
|
|
|
bash
|
2020-09-04 19:12:42 +00:00
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
2021-03-27 13:27:58 +00:00
|
|
|
gmp-dev
|
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
2020-09-04 19:12:42 +00:00
|
|
|
openssl-dev
|
|
|
|
perl
|
2021-10-09 23:47:17 +00:00
|
|
|
postmarketos-installkernel
|
2020-09-04 19:12:42 +00:00
|
|
|
"
|
2021-12-12 15:46:43 +00:00
|
|
|
source="
|
2022-03-27 23:22:08 +00:00
|
|
|
linux-$_tag.tar.gz::https://github.com/msm8974-mainline/linux/archive/refs/tags/$_tag.tar.gz
|
2020-01-21 23:11:47 +00:00
|
|
|
config-$_flavor.armv7
|
2020-09-04 17:35:31 +00:00
|
|
|
"
|
2022-03-27 23:22:08 +00:00
|
|
|
builddir="$srcdir/linux-$pkgver-msm8974"
|
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 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2020-09-04 19:12:42 +00:00
|
|
|
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="
|
2023-01-22 11:51:43 +00:00
|
|
|
a0a9a4e25228a583c61123b18ad1ab0699fb27fea0695bfd088f4827df391c20fc58d50db03c1198ac4600391b4ccfb433e92e08ac3c98e5b7eb0d5f70de4085 linux-v6.1.7-msm8974.tar.gz
|
|
|
|
4771101a8017fda5f2d1f3bf9866fd3a7abc1464de0d974140f8f098f7cf4fa88fee3e571ae79d4ec71e25459e24099eeabe020018b44a55277b51e67955241c config-postmarketos-qcom-msm8974.armv7
|
2021-05-31 20:12:34 +00:00
|
|
|
"
|