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
|
2022-10-19 14:56:54 +00:00
|
|
|
pkgver=6.0.2
|
2022-10-17 18:46:10 +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
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
|
|
}
|
|
|
|
|
|
|
|
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="
|
2022-10-19 14:56:54 +00:00
|
|
|
3ed34de80bb80c387f2202b851b900664dff2f5b67aaad7a962919cb808eb89f6b7ae20c72baec2b3aab81f2a6a1c662fcf4e22f12888bff05e2edceeb7108b5 linux-v6.0.2-msm8996.tar.gz
|
2022-10-17 18:46:10 +00:00
|
|
|
b915dceafbb0c78f8f15c16272368ba524d6b270616d53ee816b067cb7beca774738f569dac73a665089193ffc55294b3fb1a3e8937fad03a931a0032e5077e0 config-postmarketos-qcom-msm8996.aarch64
|
2021-05-22 09:54:14 +00:00
|
|
|
"
|