2021-01-29 20:38:26 +00:00
|
|
|
pkgname=linux-postmarketos-grate
|
2022-11-17 07:40:36 +00:00
|
|
|
pkgver=6.0.6
|
|
|
|
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
|
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-11-17 07:40:36 +00:00
|
|
|
_commit="dbd9b1b73868c92eeef83cabb113c8cb03b8e11a"
|
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-11-17 07:40:36 +00:00
|
|
|
a4f8ad6b448d73e5817ffe362106106cbaa7e8f780dec848d4adbabb345c4f7e5985e5a701ad3b12c70b91fb9a9a7bc2768562460db9308f97a13bc5050c36ee linux-postmarketos-grate-6.0.6-dbd9b1b73868c92eeef83cabb113c8cb03b8e11a.tar.gz
|
|
|
|
905444a89b39e4f8ed2cb07d4b8e4a02135da6babf481f41fc404fa65e0ef2e06fac8b227f92aaa601968d05ce116e95e6262bcf84c291f6c1a1cfa7c823097d config-postmarketos-grate.armv7
|
2021-04-21 07:51:32 +00:00
|
|
|
"
|