c0b5f13420
fixes #2652 [ci:skip-build] too many kernels to build, CI will never finish [ci:ignore-count]
59 lines
1.6 KiB
Text
59 lines
1.6 KiB
Text
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
_flavor="postmarketos-qcom-sm6350"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.8.1
|
|
pkgrel=1
|
|
pkgdesc="Mainline Kernel fork for SM6350/SM7225 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://github.com/z3ntu/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"
|
|
|
|
_repo="linux"
|
|
_config="config-$_flavor.$arch"
|
|
_tag="v$pkgver-sm6350"
|
|
|
|
# Source
|
|
source="
|
|
https://github.com/z3ntu/$_repo/archive/$_tag/$_repo-$_tag.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/$_repo-$pkgver-sm6350"
|
|
|
|
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() {
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
make 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="
|
|
d1ad03e14f6968550ee13cc96b546ff20edb8bbbb81701ef117f3a64429f591fc90131fcde5b241b82159d409d9819a2d7eff0ceaf90a22eed65d9a39e9955f6 linux-v6.8.1-sm6350.tar.gz
|
|
7fe6364177be5a9f4004f7695c59fb337d16bdd4f9c212e947932571947b06995adadebf21fafe46917966fe4943e68b1906a0e6c730d9680bdb36efea67684a config-postmarketos-qcom-sm6350.aarch64
|
|
"
|