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
|
2021-08-03 09:20:01 +00:00
|
|
|
pkgver=5.14_rc4
|
2021-09-06 17:02:53 +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"
|
2020-06-07 20:30:19 +00:00
|
|
|
url="https://gitlab.com/msm8996-mainline/linux-msm8996"
|
2020-02-17 18:13:13 +00:00
|
|
|
license="GPL-2.0-only"
|
2021-07-08 16:45:55 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables"
|
2020-02-17 18:13:13 +00:00
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_tag=v${pkgver//_/-}-msm8996
|
|
|
|
source="
|
2020-06-07 20:30:19 +00:00
|
|
|
linux-msm8996-$_tag.tar.gz::$url/-/archive/$_tag/linux-msm8996-$_tag.tar.gz
|
2020-02-17 18:13:13 +00:00
|
|
|
config-$_flavor.$arch
|
|
|
|
"
|
2020-06-07 20:30:19 +00:00
|
|
|
builddir="$srcdir/linux-msm8996-$_tag"
|
2020-02-17 18:13:13 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
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 \
|
2020-02-17 18:13:13 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
|
|
}
|
2021-05-22 09:54:14 +00:00
|
|
|
sha512sums="
|
2021-08-25 19:35:59 +00:00
|
|
|
0a92ba0c13e4864fcb47369610e32facea6983e50d52579271d138f29f0a8500816b57ebda2435e39947c2f69a49a9c82e7a2585d4356036a3873fadc871206a linux-msm8996-v5.14-rc4-msm8996.tar.gz
|
2021-09-06 17:02:53 +00:00
|
|
|
2a22ad3f6ce067b93421b69eff9fbd0f7b4c38f208f5fed1c6feff089f4886cd158d89b6944254a4a532c0e96115f3d814584c4b980561b967e94f8a8fa3646d config-postmarketos-qcom-msm8996.aarch64
|
2021-05-22 09:54:14 +00:00
|
|
|
"
|