d5a197a10e
[ci:skip-build] Already built on CI in MR
52 lines
1.6 KiB
Text
52 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=5.15.0_rc4
|
|
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-msm8996"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables pmb:kconfigcheck-anbox"
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
# Source
|
|
_tag=v${pkgver//_/-}-msm8996
|
|
source="
|
|
linux-msm8996-$_tag.tar.gz::$url/-/archive/$_tag/linux-msm8996-$_tag.tar.gz
|
|
config-$_flavor.$arch
|
|
"
|
|
builddir="$srcdir/linux-msm8996-$_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() {
|
|
mkdir -p "$pkgdir"/boot
|
|
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"/usr/share/dtb
|
|
}
|
|
sha512sums="
|
|
56db898febb7b49fd12012f92d4a2b35ec36325777ebc83772a03f116ff11ffd10b546074397b8d097baecc53793736c327f6cf62ce13906cc5f2cd197308df0 linux-msm8996-v5.15.0-rc4-msm8996.tar.gz
|
|
e989d98b886d70becf97479faeae57cdb7389d0812b2edeb79a4823ee03058cf73919a317c2122f93027bbcf2c329abec0aad488ce64995cba7970ceabb6a010 config-postmarketos-qcom-msm8996.aarch64
|
|
"
|