pmaports/device/testing/linux-postmarketos-grate/APKBUILD
Svyatoslav Ryhel 23e6297d4a
linux-postmarketos-grate: upgrade to 6.6.0 stable (MR 4606)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
2023-12-09 21:52:09 +01:00

51 lines
1.6 KiB
Text

# Maintainer: Svyatoslav Ryhel <clamor95@gmail.com>
pkgname=linux-postmarketos-grate
pkgver=6.6.0
pkgrel=0
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"
makedepends="bash bison findutils flex postmarketos-installkernel openssl-dev
perl gmp-dev mpc1-dev mpfr-dev xz"
# Source
_flavor="${pkgname#linux-}"
_tag="v${pkgver//_/-}-stable"
_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="
1a0c1d65027cf8968b2877b8682518c0ee387deaf9610b59174ab8cc11e02230a9a2d94129b428f8433d2a99060ec44ee85a6a84224f9b8f2bd2828112b6078c linux-postmarketos-grate-v6.6.0-stable.tar.bz2
09c408f1c17eaaa1f879f261ad19a8b6512cb23bad6835142bbd4984118f7ad3791e55889b432020889cfb63501fe3c7aa520a94e9eb74fd05b1e098912c901e config-postmarketos-grate.armv7
"