2021-05-22 09:54:14 +00:00
|
|
|
# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
|
2020-02-17 18:13:13 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-msm8996"
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-$_flavor
|
2023-05-03 16:56:42 +00:00
|
|
|
pkgver=6.3.1
|
2024-02-06 13:03:43 +00:00
|
|
|
pkgrel=2
|
2020-02-17 18:13:13 +00:00
|
|
|
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8996 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2021-10-24 12:16:07 +00:00
|
|
|
url="https://gitlab.com/msm8996-mainline/linux"
|
2020-02-17 18:13:13 +00:00
|
|
|
license="GPL-2.0-only"
|
2022-03-04 14:34:37 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community
|
2022-03-04 14:34:37 +00:00
|
|
|
"
|
2022-10-19 14:56:54 +00:00
|
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
2020-02-17 18:13:13 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_tag=v${pkgver//_/-}-msm8996
|
|
|
|
source="
|
2021-10-24 12:16:07 +00:00
|
|
|
linux-$_tag.tar.gz::$url/-/archive/$_tag/linux-$_tag.tar.gz
|
2020-02-17 18:13:13 +00:00
|
|
|
config-$_flavor.$arch
|
|
|
|
"
|
2021-10-24 12:16:07 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2020-02-17 18:13:13 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2023-02-27 11:26:23 +00:00
|
|
|
# V=1: workaround for pma#1990
|
2020-02-17 18:13:13 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2023-02-27 11:26:23 +00:00
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 )) \
|
|
|
|
V=1
|
2020-02-17 18:13:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
2021-08-25 19:35:59 +00:00
|
|
|
"$pkgdir/boot/vmlinuz"
|
2020-02-17 18:13:13 +00:00
|
|
|
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
|
|
|
|
make modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2021-03-27 07:15:47 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2020-02-17 18:13:13 +00:00
|
|
|
}
|
2021-05-22 09:54:14 +00:00
|
|
|
sha512sums="
|
2023-05-03 16:56:42 +00:00
|
|
|
3d842c6fa3e1f93875f9c8d4f51e66b267bbd6b0eabccc25b461cbc0616a632ee6f1f2001b77bef2aff6aa36a788277ab9fc930fcd6e71732e5cbffec2dcb269 linux-v6.3.1-msm8996.tar.gz
|
2024-02-06 13:03:43 +00:00
|
|
|
e54f2ca8f33b540282d38326b0f9cb5c8c5b06c272c1bfbfaca24d1bab872c547427f993263729b8505c1ce276311c43c012cda265bebedf934cced511e51174 config-postmarketos-qcom-msm8996.aarch64
|
2021-05-22 09:54:14 +00:00
|
|
|
"
|