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-04-05 17:07:43 +00:00
|
|
|
pkgver=6.8.4
|
2024-03-14 19:26:50 +00:00
|
|
|
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}" \
|
2024-04-05 17:07:43 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
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-04-05 17:07:43 +00:00
|
|
|
5da93906b0df89278fd5ed4ea5a2a5f38b4b606b0d234686e4ee998dc9fb8e4b51626fd7a20c1fbed756f53cad1db27c3e29041e6358b1011534fb680977bc3b linux-v6.8.4-msm8974.tar.gz
|
|
|
|
9501006ee70fc8a9d8c67b99587345ab3fd0669df3873c75ac86ae72963abde8cedf55db0aea70ffb45416a506d55eaca67da49c0e4f5657e82a1ea0fe4b61ca config-postmarketos-qcom-msm8974.armv7
|
2021-05-31 20:12:34 +00:00
|
|
|
"
|