2019-12-22 17:23:03 +00:00
|
|
|
# Maintainer: David Heidelberg <david@ixit.cz>
|
2017-07-20 16:05:33 +00:00
|
|
|
_flavor=asus-grouper
|
2020-09-02 07:44:01 +00:00
|
|
|
_commit="e87ec80ef138eefb741b4b01079eda9fcdc9c8cf"
|
2019-12-22 17:23:03 +00:00
|
|
|
_config="config-$_flavor.armv7"
|
2017-07-20 16:05:33 +00:00
|
|
|
|
2019-12-22 17:23:03 +00:00
|
|
|
pkgname=linux-asus-grouper
|
2020-09-02 07:44:01 +00:00
|
|
|
pkgver=5.9.0_rc2
|
|
|
|
pkgrel=0
|
2019-12-22 17:23:03 +00:00
|
|
|
arch="armv7"
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Nexus 7 grouper/tilapia (2012) kernel fork, close to mainline"
|
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"
|
2017-07-20 16:05:33 +00:00
|
|
|
source="
|
2020-03-03 11:22:50 +00:00
|
|
|
$pkgname-$pkgver-$_commit.tar.gz::https://github.com/okias/linux/archive/$_commit.tar.gz
|
2017-07-20 16:05:33 +00:00
|
|
|
$_config
|
|
|
|
"
|
2019-12-22 17:23:03 +00:00
|
|
|
license="GPL-2.0-only"
|
2017-07-20 16:05:33 +00:00
|
|
|
|
|
|
|
_carch="arm"
|
|
|
|
|
2019-12-22 17:23:03 +00:00
|
|
|
_ksrcdir="$srcdir/linux-$_commit"
|
2017-07-20 16:05:33 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-09-02 07:41:29 +00:00
|
|
|
default_prepare
|
|
|
|
|
2017-07-20 16:05:33 +00:00
|
|
|
mkdir -p "$srcdir"/build
|
2019-12-22 17:23:03 +00:00
|
|
|
cp -v "$srcdir"/$_config "$srcdir"/build/.config
|
2020-02-28 09:22:58 +00:00
|
|
|
make -C "$_ksrcdir" O="$srcdir"/build ARCH="$_carch" \
|
2019-12-22 17:23:03 +00:00
|
|
|
olddefconfig
|
2017-07-20 16:05:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"/build
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2017-10-04 15:05:00 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine"
|
2017-07-20 16:05:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-12-22 17:23:03 +00:00
|
|
|
install -Dm644 "$srcdir/build/arch/$_carch/boot/"*zImage \
|
2017-07-20 16:05:33 +00:00
|
|
|
"$pkgdir/boot/vmlinuz-$_flavor"
|
|
|
|
|
|
|
|
install -D "$srcdir/build/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
|
2019-12-22 17:23:03 +00:00
|
|
|
cd "$srcdir"/build
|
|
|
|
|
|
|
|
local _install
|
|
|
|
case "$CARCH" in
|
|
|
|
aarch64*|arm*) _install="modules_install dtbs_install" ;;
|
|
|
|
*) _install="modules_install" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
make -j1 $_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
|
|
|
}
|
2020-09-02 07:44:01 +00:00
|
|
|
sha512sums="fdbcd1396576b6949f75302828147a1416ab46e0686f3d66e53173b3e765387df3776ba7313f35268aef77495d22d5c41abd0e396e71316bb65de8f0f088515f linux-asus-grouper-5.9.0_rc2-e87ec80ef138eefb741b4b01079eda9fcdc9c8cf.tar.gz
|
|
|
|
1c51cef41f1665ab029dcac868b4a6233a413d76ff2d78af853d602b351ce15fef8d40aae7a2b10b74cc5006a5c6ddae41b547396416fdba4059173d71ba9712 config-asus-grouper.armv7"
|