pmaports/device/community/linux-postmarketos-grate/APKBUILD
Clayton Craft 0c1113b3ec
linux-*: enable NLS_ASCII for kernels that support EFI boot (MR 5136)
These kernels must have NLS_ASCII set after bb6d7a05b, or else they
cannot mount the ESP as /boot and boot fails. This kconfig option will
be added to the pmb efi kconfig check so that this is caught in the
future pre-merge.

fixes 3909b1dbf and bb6d7a05b

[ci:skip-build] already built successfully in CI
2024-05-16 22:48:41 -07:00

53 lines
1.7 KiB
Text

# Maintainer: Svyatoslav Ryhel <clamor95@gmail.com>
# Co-Maintainer: Jenneron <jenneron@protonmail.com>
# Co-Maintainer: Jethrob <jeybee@hotmail.com>
pkgname=linux-postmarketos-grate
pkgver=6.6.22
pkgrel=2
pkgdesc="Linux kernel with experimental patches for Tegra"
arch="armv7"
url="https://gitlab.com/grate-driver/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community pmb:kconfigcheck-uefi"
makedepends="bash bison findutils flex postmarketos-installkernel openssl-dev
perl gmp-dev mpc1-dev mpfr-dev xz"
# Source
_flavor="${pkgname#linux-}"
_tag="v${pkgver//_/-}-lts"
_carch="arm"
_config="config-$_flavor.$arch"
source="$pkgname-$_tag.tar.bz2::$url/-/archive/$_tag/linux-$_tag.tar.bz2
$_config"
builddir="$srcdir/linux-$_tag"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$CARCH" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
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="
db25898c5c4103e12ace113de7f7eba91b41f94a4dae270c9424341e8f796a98dee8676d1d02b229b0c4b11cc79b31454a13f9f2b7b1277b5ca9bb7328d54a39 linux-postmarketos-grate-v6.6.22-lts.tar.bz2
094aed15d6e95830fd9e175f40b646088e21019c6243377983a5a1c6e378c1d530e91c8b62dfec357844fcd2ea5bc873270a56711480a4544628b12bda503619 config-postmarketos-grate.armv7
"