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-03-03 11:22:50 +00:00
|
|
|
_commit="fadacdcb9e5b60f6547c37f519d1851cb2f90edb"
|
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-03-03 11:22:50 +00:00
|
|
|
pkgver=5.6.0_rc2
|
2019-12-22 17:23:03 +00:00
|
|
|
pkgrel=0
|
|
|
|
arch="armv7"
|
|
|
|
pkgdesc="Nexus 7 grouper/tilapia (2012) mainline kernel"
|
|
|
|
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() {
|
|
|
|
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-03-03 11:22:50 +00:00
|
|
|
sha512sums="22cdafad7888f3267fbd92cdb46d67390c89c9e2b433faaef591ca576bc88b4f51157495948a049f1be6b98a6eacc71ed7253033e98bc708a35e3c62f4f4cf90 linux-asus-grouper-5.6.0_rc2-fadacdcb9e5b60f6547c37f519d1851cb2f90edb.tar.gz
|
|
|
|
f8f1585a95a092bdb683c1472b033c55ac246ac1f362ce70d55f13903dc38fb399df1764e7a267409d260bd53fe0b63e0cf85dfcfe61caeb749c91e43c3ebd7b config-asus-grouper.armv7"
|