54 lines
1.6 KiB
Text
54 lines
1.6 KiB
Text
# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="postmarketos-qcom-msm8996"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.0.2
|
|
pkgrel=1
|
|
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8996 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/msm8996-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
# Source
|
|
_tag=v${pkgver//_/-}-msm8996
|
|
source="
|
|
linux-$_tag.tar.gz::$url/-/archive/$_tag/linux-$_tag.tar.gz
|
|
config-$_flavor.$arch
|
|
"
|
|
builddir="$srcdir/linux-$_tag"
|
|
|
|
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" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
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" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
}
|
|
sha512sums="
|
|
3ed34de80bb80c387f2202b851b900664dff2f5b67aaad7a962919cb808eb89f6b7ae20c72baec2b3aab81f2a6a1c662fcf4e22f12888bff05e2edceeb7108b5 linux-v6.0.2-msm8996.tar.gz
|
|
b915dceafbb0c78f8f15c16272368ba524d6b270616d53ee816b067cb7beca774738f569dac73a665089193ffc55294b3fb1a3e8937fad03a931a0032e5077e0 config-postmarketos-qcom-msm8996.aarch64
|
|
"
|