48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
pkgname=linux-postmarketos-grate
|
|
pkgver=5.14.0_rc1
|
|
pkgrel=1
|
|
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"
|
|
options="!strip !check !tracedeps pmb:cross-native
|
|
pmb:kconfigcheck-nftables pmb:kconfigcheck-zram"
|
|
license="GPL-2.0-only"
|
|
|
|
# Source
|
|
_flavor=postmarketos-grate
|
|
_commit="683319d9293f69c6cb362c64008764c14caea45b"
|
|
_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"
|
|
_outdir="out"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
REPLACE_GCCH=0 \
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
}
|
|
|
|
package() {
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
|
|
|
make modules_install dtbs_install \
|
|
O="$_outdir" ARCH="$_carch" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
}
|
|
|
|
sha512sums="
|
|
87574884da14cc7c15e2cc492a2f7b442d2a8cb5db52b9c2469ced974813bf27b9c3e8672e6679998e330862a37d7bfd9501529bdec735133ede83bd8764b986 linux-postmarketos-grate-5.14.0_rc1-683319d9293f69c6cb362c64008764c14caea45b.tar.gz
|
|
548329b29d4dfc4a4a6613c3a87ea46c28fbb01149345124623d31162e009914479700044d37a3362c8dace0c1cd40249f81dd241def8aba26509dd223700383 config-postmarketos-grate.armv7
|
|
"
|