2023-12-09 08:36:11 +00:00
|
|
|
# Maintainer: Svyatoslav Ryhel <clamor95@gmail.com>
|
|
|
|
|
2021-01-29 20:38:26 +00:00
|
|
|
pkgname=linux-postmarketos-grate
|
2023-12-15 08:29:09 +00:00
|
|
|
pkgver=6.6.7
|
2022-11-17 07:40:36 +00:00
|
|
|
pkgrel=0
|
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"
|
2023-12-09 08:36:11 +00:00
|
|
|
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"
|
2021-01-29 20:38:26 +00:00
|
|
|
|
|
|
|
# Source
|
2023-12-09 08:36:11 +00:00
|
|
|
_flavor="${pkgname#linux-}"
|
|
|
|
_tag="v${pkgver//_/-}-stable"
|
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="
|
2023-12-15 08:29:09 +00:00
|
|
|
734bf6b2132a45eb0768f5793a0d39815390500af84608080493811603bcf2b8e95b13a4478c7b1a0e91bd16e632cb4e68588494af6406901ca5de5eb7700ebc linux-postmarketos-grate-v6.6.7-stable.tar.bz2
|
|
|
|
442c97e4d59d6a2c975e01f9e56886c8c22dc5a2c9b9b1f07d7cf21599392ea221f48e146f485d4bcd9ff5ef23f3ea634862d339122e9e6cd85c77a68c1d9f74 config-postmarketos-grate.armv7
|
2021-04-21 07:51:32 +00:00
|
|
|
"
|