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
|
2024-03-14 19:26:50 +00:00
|
|
|
pkgver=6.8.0
|
|
|
|
pkgrel=0
|
2023-12-28 22:11:43 +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
|
|
|
"
|
2023-12-28 22:11:43 +00:00
|
|
|
builddir="$srcdir/linux-${_tag#v}"
|
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="
|
2024-03-14 19:26:50 +00:00
|
|
|
8c1544654355e482a633ce3e897bdbf62eeaba03f6d3c215b4c7dfe79cc2a41e04348fc9c0ef84138d07207a44a8502884888e37d7a7aa5ec14775896d538a9f linux-v6.8.0-msm8974.tar.gz
|
|
|
|
70af38b52754681678b813ead4c73f7c17b7e94569d9a43ae53403c268a87b259722a209791584f0a1d67ecd37c3eab3605f440224303c07152230d0020e3167 config-postmarketos-qcom-msm8974.armv7
|
2021-05-31 20:12:34 +00:00
|
|
|
"
|