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-12-18 10:18:13 +00:00
|
|
|
pkgver=5.15.10
|
2021-10-05 13:21: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"
|
2021-09-21 10:02:20 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables pmb:kconfigcheck-anbox"
|
2020-02-17 18:13:13 +00:00
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
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-12-18 10:18:13 +00:00
|
|
|
6fb78094b2cd721c0333eade50e30afdb91fe842d31268a7ec332ee22e191035746eae0680cf08ec13a0b303dcaa140e9c970523edd3cb9144d704575644812d linux-v5.15.10-msm8996.tar.gz
|
|
|
|
1d7ff6690adc08161d0e79734f2b2556ae4ce2a86bc1e2ca06e55984bfb8f3760424c3906adf425935a5f525d6f9322d174bc6a676e80de0960ce27cf52b2fe8 config-postmarketos-qcom-msm8996.aarch64
|
2021-05-22 09:54:14 +00:00
|
|
|
"
|