pmaports/device/testing/linux-postmarketos-grate/APKBUILD
Robert Eckelmann 85a5d0756a
linux-postmarketos-grate: enable iscsi related options
enabling the required kconfig options to be able to use iscsi shares

Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9000>
2026-07-31 08:09:23 +09:00

65 lines
1.7 KiB
Text

# Co-Maintainer: Svyatoslav Ryhel <clamor95@gmail.com>
maintainer="Robert Eckelmann <longnoserob@postmarketos.org>"
pkgname=linux-postmarketos-grate
pkgver=7.0.1
pkgrel=1
pkgdesc="Linux kernel with experimental patches for Tegra"
arch="armv7"
url="https://codeberg.org/libre-tegra/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community pmb:kconfigcheck-uefi"
makedepends="
bison
clang
findutils
flex
lld
llvm
openssl-dev
perl
postmarketos-installkernel
xz
zstd
"
# Source
_flavor="${pkgname#linux-}"
_tag="stable"
_commit="bfffc6d6656e87f3de3aa4c09d852849081ef088"
_carch="arm"
_config="config-$_flavor.$arch"
source="$pkgname-$_tag.tar.gz::$url/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/linux"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$CARCH" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" LLVM=1 \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
mkdir -p "$pkgdir"/boot
make zinstall modules_install dtbs_install \
ARCH="$_carch" \
LLVM=1 \
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="
fa6a723db93d0c4c799ca8fb69a37ce13cc98a80ff688bc45dea7bd6d36df05b8f0deaa15a416e271a4ea0c5bb2097e63fc2d0a02903f11e6c404fbec82718a2 linux-postmarketos-grate-stable.tar.gz
2f168d312237b574c9f12a6566c62b33de0de0ec7f9a06a6593674e4a26b746b07797a108deca8b94dfe96476ac9c997ee97fdf4e8ab40927ecc7992b0a9720c config-postmarketos-grate.armv7
"