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-06-27 20:11:55 +00:00
|
|
|
pkgver=6.4.0
|
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-06-27 20:11:55 +00:00
|
|
|
a32692e7b7810c1cd5710d83c73c9dc93f682f0a89728c79c5afafd7df7469d2bdada9745394c69a9b0f7c9689f8af751fa1753e58a1399848704997e963dc8f linux-v6.4.0-msm8974.tar.gz
|
|
|
|
0d175b1f87619cd23d93101aa4a22f9cb26bfce456a2cfa13eb29851dcc7bcfb58677fee80602fa6a1c76fe84950c0eacb389a6f13b7cda6a26dd793923deef5 config-postmarketos-qcom-msm8974.armv7
|
2021-05-31 20:12:34 +00:00
|
|
|
"
|