2021-01-29 20:38:26 +00:00
|
|
|
pkgname=linux-postmarketos-grate
|
2021-08-12 10:48:09 +00:00
|
|
|
pkgver=5.14.0_rc6
|
2021-09-08 19:51:09 +00:00
|
|
|
pkgrel=2
|
2021-01-29 20:38:26 +00:00
|
|
|
arch="armv7"
|
|
|
|
pkgdesc="Linux kernel with experimental patches for Tegra"
|
|
|
|
url="https://postmarketos.org"
|
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
|
|
|
|
devicepkg-dev bison flex openssl-dev xz findutils"
|
2021-06-28 20:05:19 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables pmb:kconfigcheck-zram"
|
2021-01-29 20:38:26 +00:00
|
|
|
license="GPL-2.0-only"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_flavor=postmarketos-grate
|
2021-08-12 10:48:09 +00:00
|
|
|
_commit="f6e4a8d26df39804bfbd793ef4871b38d0ebff84"
|
2021-01-29 20:38:26 +00:00
|
|
|
_carch="arm"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="$pkgname-$pkgver-$_commit.tar.gz::https://github.com/grate-driver/linux/archive/$_commit.tar.gz
|
|
|
|
$_config"
|
|
|
|
builddir="$srcdir/linux-$_commit"
|
2021-04-21 07:51:32 +00:00
|
|
|
_outdir="out"
|
2021-01-29 20:38:26 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
REPLACE_GCCH=0 \
|
|
|
|
. downstreamkernel_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2021-04-21 07:51:32 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
2021-01-29 20:38:26 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-04-21 07:51:32 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2021-01-29 20:38:26 +00:00
|
|
|
|
2021-04-21 07:51:32 +00:00
|
|
|
make modules_install dtbs_install \
|
|
|
|
O="$_outdir" ARCH="$_carch" \
|
2021-01-29 20:38:26 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
|
|
}
|
|
|
|
|
2021-04-21 07:51:32 +00:00
|
|
|
sha512sums="
|
2021-08-12 10:48:09 +00:00
|
|
|
1166c043e0334169caf21534128974a9aa97df38dbf1f3543919a5847f7726a2351ee7cbf68fc5b41cc09e153740d802382bfd611b1651dbbc21c45092ada9ce linux-postmarketos-grate-5.14.0_rc6-f6e4a8d26df39804bfbd793ef4871b38d0ebff84.tar.gz
|
2021-09-08 19:51:09 +00:00
|
|
|
d683f7018403d8127a541000b73a8bfd723aa1c98ed19734de66f3506120a55fcd8f482e0e28e3b14bc91239c374d11799a35ec86afd0c55fa9b57231e051255 config-postmarketos-grate.armv7
|
2021-04-21 07:51:32 +00:00
|
|
|
"
|