2021-10-12 18:57:07 +00:00
|
|
|
# Maintainer: Petr Vorel <petr.vorel@gmail.com>
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-msm8994"
|
|
|
|
pkgname=linux-$_flavor
|
2024-03-12 10:41:51 +00:00
|
|
|
pkgver=6.8
|
2023-08-23 16:23:36 +00:00
|
|
|
pkgrel=0
|
2023-03-24 19:24:02 +00:00
|
|
|
pkgdesc="Mainline kernel for Qualcomm MSM8994/MSM8992 devices"
|
2021-10-12 18:57:07 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
2023-03-24 19:24:02 +00:00
|
|
|
pmb:kconfigcheck-zram
|
2021-10-12 18:57:07 +00:00
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
"
|
|
|
|
|
2023-03-24 19:24:02 +00:00
|
|
|
_tag=${pkgver//_/-}
|
2021-10-12 18:57:07 +00:00
|
|
|
source="
|
2023-03-24 19:24:02 +00:00
|
|
|
https://git.kernel.org/torvalds/t/linux-$_tag.tar.gz
|
2021-10-12 18:57:07 +00:00
|
|
|
config-$_flavor.$arch
|
2023-08-23 16:23:36 +00:00
|
|
|
0001-arm64-dts-qcom-msm8994-huawei-angler-Add-regulators.patch
|
|
|
|
0002-arm64-dts-qcom-msm8992-lg-h815.patch
|
2021-10-12 18:57:07 +00:00
|
|
|
"
|
2023-03-24 19:24:02 +00:00
|
|
|
builddir="$srcdir/linux-${_tag#v}"
|
2021-10-12 18:57:07 +00:00
|
|
|
|
|
|
|
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 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2021-10-12 18:57:07 +00:00
|
|
|
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="
|
2024-03-12 10:41:51 +00:00
|
|
|
17991b3e0cd69e910416e8b11ba48919a4ee179bf1bb8a66516897218f1bafb297754777ebee77e75f6f844a6ec79a748b10371e33ae5374a4f4accab6c6b8f7 linux-6.8.tar.gz
|
|
|
|
18045ce30abc81bbfada6ac999fd2f49f8a4ba82ce60952b9e8d62dc6374d7dd5072adeb323efc5be37cbba1a495ad44d1bd4a9f6d195be55e11752f0fda262f config-postmarketos-qcom-msm8994.aarch64
|
2023-08-23 16:23:36 +00:00
|
|
|
4dc3de184eac5cfb593a308278e3a5ab27f5e94b5dec8b288c053070f788fdb8d8fad8628b5a996701eacc11b1015999b99f8d279b207e214dd0e63f97cfb4d6 0001-arm64-dts-qcom-msm8994-huawei-angler-Add-regulators.patch
|
2024-03-12 10:50:33 +00:00
|
|
|
1293b1db2fa485f1e5fd11b6e44d71e42a3c6a2fc46b49498fc12c261729055c94edb0b081a8d0495658ba04353ac70c32377e5228c4ed2c1e43de321c628f78 0002-arm64-dts-qcom-msm8992-lg-h815.patch
|
2021-10-12 18:57:07 +00:00
|
|
|
"
|