2021-01-29 20:38:26 +00:00
|
|
|
pkgname=linux-postmarketos-grate
|
2022-07-30 16:33:04 +00:00
|
|
|
pkgver=5.19.0_rc8
|
2022-07-30 18:11:01 +00:00
|
|
|
pkgrel=1
|
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
|
2022-10-08 18:36:46 +00:00
|
|
|
pmb:kconfigcheck-containers pmb:kconfigcheck-waydroid"
|
2021-01-29 20:38:26 +00:00
|
|
|
license="GPL-2.0-only"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_flavor=postmarketos-grate
|
2022-07-30 16:33:04 +00:00
|
|
|
_commit="1adff051e7931baf427b7342acab81bc9aec7959"
|
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" \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2021-01-29 20:38:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-21 07:51:32 +00:00
|
|
|
sha512sums="
|
2022-07-30 16:33:04 +00:00
|
|
|
4903540d6d6cb2c700dcddfb38205bd0c9c9f8814b7dc0a54894da61d148a8bd88d7d568b9b8dfbf3dcc7a7192e26ea9d0868a99d763f1c27ef5bd47b8b897a6 linux-postmarketos-grate-5.19.0_rc8-1adff051e7931baf427b7342acab81bc9aec7959.tar.gz
|
|
|
|
107478f4e2828765764d0b30cc43b41300d6285598a60efd098bd49a9fd8a095d8e9f96df28d06dab5e77fe070f7759b9cef156794541afb33f92c855adde606 config-postmarketos-grate.armv7
|
2021-04-21 07:51:32 +00:00
|
|
|
"
|