2021-01-29 20:38:26 +00:00
|
|
|
pkgname=linux-postmarketos-grate
|
2021-10-07 19:06:38 +00:00
|
|
|
pkgver=5.15.0_rc4
|
|
|
|
pkgrel=0
|
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
|
2021-10-07 19:06:38 +00:00
|
|
|
pmb:kconfigcheck-nftables pmb:kconfigcheck-zram
|
|
|
|
pmb:kconfigcheck-containers pmb:kconfigcheck-anbox"
|
2021-01-29 20:38:26 +00:00
|
|
|
license="GPL-2.0-only"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_flavor=postmarketos-grate
|
2021-10-07 19:06:38 +00:00
|
|
|
_commit="64b369377d2b502b79a12b6c3c1b6b27d0320015"
|
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-10-07 19:06:38 +00:00
|
|
|
bc73f00ea4bc8f1e204e969e9d778646ee6f7a4414d42d352b46b44b41e4cbf2083ef7990c5225d870abbd16cb2871980799f01de010cd76e90335c92c3d0789 linux-postmarketos-grate-5.15.0_rc4-64b369377d2b502b79a12b6c3c1b6b27d0320015.tar.gz
|
|
|
|
fcb67ac00de88824080f85acc552c6fb55d5076b39ac5db320529fa13335c418e5ef0745bb8fab474639e28947211b085c28a5376ee4bf954f9d0a003db04712 config-postmarketos-grate.armv7
|
2021-04-21 07:51:32 +00:00
|
|
|
"
|