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
|
2023-06-06 19:10:17 +00:00
|
|
|
pkgrel=1
|
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
|
2023-06-06 19:10:17 +00:00
|
|
|
f567c9d2b5c64ee312d48d86c8082fb774e6d1a6a4cf1cb2c1b6bd0bd6464da495053be4fff1f56b6b5f7aab56469a21c618a530d277fcb213f0a9b0da1815b0 config-postmarketos-qcom-msm8996.aarch64
|
2021-05-22 09:54:14 +00:00
|
|
|
"
|