2023-12-09 08:36:11 +00:00
|
|
|
# Maintainer: Svyatoslav Ryhel <clamor95@gmail.com>
|
2024-03-18 08:49:52 +00:00
|
|
|
# Co-Maintainer: Jenneron <jenneron@protonmail.com>
|
2024-03-19 20:31:55 +00:00
|
|
|
# Co-Maintainer: Jethrob <jeybee@hotmail.com>
|
2023-12-09 08:36:11 +00:00
|
|
|
|
2021-01-29 20:38:26 +00:00
|
|
|
pkgname=linux-postmarketos-grate
|
2024-03-18 08:47:53 +00:00
|
|
|
pkgver=6.6.22
|
2024-05-01 17:40:02 +00:00
|
|
|
pkgrel=1
|
2021-01-29 20:38:26 +00:00
|
|
|
pkgdesc="Linux kernel with experimental patches for Tegra"
|
2023-12-09 08:36:11 +00:00
|
|
|
arch="armv7"
|
|
|
|
url="https://gitlab.com/grate-driver/linux"
|
2021-01-29 20:38:26 +00:00
|
|
|
license="GPL-2.0-only"
|
2024-03-18 08:47:53 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community pmb:kconfigcheck-uefi"
|
2023-12-09 08:36:11 +00:00
|
|
|
makedepends="bash bison findutils flex postmarketos-installkernel openssl-dev
|
|
|
|
perl gmp-dev mpc1-dev mpfr-dev xz"
|
2021-01-29 20:38:26 +00:00
|
|
|
|
|
|
|
# Source
|
2023-12-09 08:36:11 +00:00
|
|
|
_flavor="${pkgname#linux-}"
|
2024-02-11 18:28:54 +00:00
|
|
|
_tag="v${pkgver//_/-}-lts"
|
2021-01-29 20:38:26 +00:00
|
|
|
_carch="arm"
|
|
|
|
_config="config-$_flavor.$arch"
|
2023-12-09 08:36:11 +00:00
|
|
|
source="$pkgname-$_tag.tar.bz2::$url/-/archive/$_tag/linux-$_tag.tar.bz2
|
2021-01-29 20:38:26 +00:00
|
|
|
$_config"
|
2023-12-09 08:36:11 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2021-01-29 20:38:26 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2023-12-09 08:36:11 +00:00
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
2021-01-29 20:38:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2023-12-09 08:36:11 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2021-01-29 20:38:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-12-09 08:36:11 +00:00
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
2021-01-29 20:38:26 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2023-12-09 08:36:11 +00:00
|
|
|
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
|
2021-01-29 20:38:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-21 07:51:32 +00:00
|
|
|
sha512sums="
|
2024-03-18 08:47:53 +00:00
|
|
|
db25898c5c4103e12ace113de7f7eba91b41f94a4dae270c9424341e8f796a98dee8676d1d02b229b0c4b11cc79b31454a13f9f2b7b1277b5ca9bb7328d54a39 linux-postmarketos-grate-v6.6.22-lts.tar.bz2
|
2024-05-01 17:40:02 +00:00
|
|
|
651bcf10d50f5ff0f20de03384a5a0e6318e0d2b8ad527e9a19e7e119ce06c5188bb772fbafc4f6d6c97188d24639eba8bcfd1dd10c2d6a6a24414f7d9aa0576 config-postmarketos-grate.armv7
|
2021-04-21 07:51:32 +00:00
|
|
|
"
|