83f63d1c1b
is upstream: - Fix-cont_splash_mem-mapping - removed-clash-with-smem_reg [ci:skip-build] already built successfully in CI
66 lines
2 KiB
Text
66 lines
2 KiB
Text
# Maintainer: Petr Vorel <petr.vorel@gmail.com>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="postmarketos-qcom-msm8994"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.6_rc3
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel for Qualcomm MSM8994/MSM8992 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-nftables
|
|
pmb:kconfigcheck-zram
|
|
"
|
|
makedepends="
|
|
bison
|
|
findutils
|
|
flex
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
|
|
_tag=${pkgver//_/-}
|
|
source="
|
|
https://git.kernel.org/torvalds/t/linux-$_tag.tar.gz
|
|
config-$_flavor.$arch
|
|
0001-arm64-dts-qcom-msm8994-huawei-angler-Add-regulators.patch
|
|
0002-arm64-dts-qcom-msm8992-lg-h815.patch
|
|
"
|
|
builddir="$srcdir/linux-${_tag#v}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/boot
|
|
make zinstall modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
}
|
|
|
|
sha512sums="
|
|
59dfaf0d49d898c0f00019364845271f58ad4401f7f2a6fe3e2b3718a29a5e183a356b5400f4936967bc215471dbe87278ec5c3ab6e9e52643d7e869233b3833 linux-6.6-rc3.tar.gz
|
|
c22a124924834c109f48bebed108d9d748c5c16313ac2a80c61cb4f048d2e1397686c69892d6a24b8572dfcb99f3b79fc3014efba94b07ed78ba644f8efcf256 config-postmarketos-qcom-msm8994.aarch64
|
|
4dc3de184eac5cfb593a308278e3a5ab27f5e94b5dec8b288c053070f788fdb8d8fad8628b5a996701eacc11b1015999b99f8d279b207e214dd0e63f97cfb4d6 0001-arm64-dts-qcom-msm8994-huawei-angler-Add-regulators.patch
|
|
ccb27539814382dcaea29e294c2c2ca931496f27643ce87c3cd76c3fecd5babe4a4504bd174df33e2e0c034cafbae5a4c98ed50abfa317455c5667e98fe753a3 0002-arm64-dts-qcom-msm8992-lg-h815.patch
|
|
"
|