2019-12-22 17:23:03 +00:00
|
|
|
# Maintainer: David Heidelberg <david@ixit.cz>
|
|
|
|
pkgname=linux-asus-grouper
|
2021-07-30 21:03:34 +00:00
|
|
|
pkgver=5.14.0_rc3
|
2020-09-02 07:44:01 +00:00
|
|
|
pkgrel=0
|
2019-12-22 17:23:03 +00:00
|
|
|
arch="armv7"
|
2021-08-01 09:27:14 +00:00
|
|
|
pkgdesc="Linux kernel with experimental patches for Tegra (optimized for size constrained boot.img of Nexus 7 grouper/tilapia (2012))"
|
2019-12-22 17:23:03 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
|
2020-03-03 11:22:50 +00:00
|
|
|
devicepkg-dev bison flex openssl-dev xz findutils"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2019-12-22 17:23:03 +00:00
|
|
|
license="GPL-2.0-only"
|
2017-07-20 16:05:33 +00:00
|
|
|
|
2021-08-01 09:27:14 +00:00
|
|
|
# Source
|
|
|
|
_flavor=asus-grouper
|
|
|
|
_commit="6ab7e328e14f2693ca800ac742f2f5cb3e5e450e"
|
2017-07-20 16:05:33 +00:00
|
|
|
_carch="arm"
|
2021-08-01 09:27:14 +00:00
|
|
|
_config="config-$_flavor.armv7"
|
|
|
|
source="$pkgname-$pkgver-$_commit.tar.gz::https://github.com/grate-driver/linux/archive/$_commit.tar.gz
|
|
|
|
$_config"
|
2021-08-01 09:30:25 +00:00
|
|
|
builddir="$srcdir/linux-$_commit"
|
2021-08-01 09:27:14 +00:00
|
|
|
_outdir="out"
|
2017-07-20 16:05:33 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-09-02 07:41:29 +00:00
|
|
|
default_prepare
|
|
|
|
|
2021-08-01 09:30:25 +00:00
|
|
|
REPLACE_GCCH=0 \
|
|
|
|
. downstreamkernel_prepare
|
2017-07-20 16:05:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2021-08-01 09:30:25 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
2017-07-20 16:05:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-08-01 09:30:25 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2017-07-20 16:05:33 +00:00
|
|
|
|
2021-08-01 09:30:25 +00:00
|
|
|
make modules_install dtbs_install \
|
|
|
|
O="$_outdir" ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
2019-12-22 17:23:03 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
|
|
}
|
2021-07-30 21:03:34 +00:00
|
|
|
|
|
|
|
sha512sums="05b76312634a425297fe70b14ce6a5e502227fd9f9c490abc3f20aeb5b330111290fe280cfeeacb53de659beef0c6b3312655fde8263af7f954ce1954560dd20 linux-asus-grouper-5.14.0_rc3-6ab7e328e14f2693ca800ac742f2f5cb3e5e450e.tar.gz
|
|
|
|
af9db52e246783ce61a3b0254f0a7de8258bfdcbfb4551e78c3e3b71e63663b999187ac8534a93baa9ccf730ebc51942559e283a4ea2efc07d689547113d81f3 config-asus-grouper.armv7"
|