2024-05-26 13:20:39 +00:00
|
|
|
# Maintainer: David Wronek <david@mainlining.org>
|
|
|
|
|
2022-08-22 20:17:09 +00:00
|
|
|
_flavor="postmarketos-qcom-sm7125"
|
|
|
|
pkgname=linux-$_flavor
|
2024-05-26 13:20:39 +00:00
|
|
|
pkgver=6.9.2
|
2022-08-22 20:17:09 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Mainline Kernel fork for SM7125 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2024-05-26 13:20:39 +00:00
|
|
|
url="https://kernel.org"
|
2022-08-22 20:17:09 +00:00
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
|
|
|
"
|
2024-05-26 13:20:39 +00:00
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
2022-08-22 20:17:09 +00:00
|
|
|
|
|
|
|
source="
|
2024-05-26 13:20:39 +00:00
|
|
|
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$pkgver.tar.xz
|
|
|
|
config-$_flavor.$arch
|
2022-08-22 20:17:09 +00:00
|
|
|
"
|
2024-05-26 13:20:39 +00:00
|
|
|
builddir="$srcdir/linux-$pkgver"
|
2022-08-22 20:17:09 +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
|
2024-05-26 13:20:39 +00:00
|
|
|
make zinstall modules_install dtbs_install \
|
2022-08-22 20:17:09 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2024-05-26 13:20:39 +00:00
|
|
|
|
2022-08-22 20:17:09 +00:00
|
|
|
sha512sums="
|
2024-05-26 13:20:39 +00:00
|
|
|
a168f5b3e7ee7451d5bb1c7f6c090d6002330a4529ef74b2e47f6902ba3d6feaa8dc89f7b5a072d52f6933fd08354a0ff1e12f22240ce53c758c144d4ad132cd linux-6.9.2.tar.xz
|
|
|
|
fe18f3efd0c4d9d37244f2727e93650132328de4c8db4d4128134064623f5e2c4318b9d61aea62286ac6f58735c9e7c7d3ede0b9c3c6fa2513212ac7f3badba6 config-postmarketos-qcom-sm7125.aarch64
|
2022-08-22 20:17:09 +00:00
|
|
|
"
|