2018-12-31 19:44:13 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2019-10-10 17:10:11 +00:00
|
|
|
# Kernel config based on: https://github.com/me176c-dev/archlinux-me176c/blob/master/linux-me176c/config
|
2018-12-31 19:44:13 +00:00
|
|
|
|
2019-10-10 17:10:11 +00:00
|
|
|
_flavor="asus-me176c"
|
|
|
|
pkgname="linux-${_flavor}"
|
|
|
|
pkgver=4.19.80
|
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Mainline kernel fork for ASUS MeMO Pad 7 (ME176C(X))"
|
2018-12-31 19:44:13 +00:00
|
|
|
arch="x86_64"
|
|
|
|
_carch="x86_64"
|
2019-10-10 17:10:11 +00:00
|
|
|
url="https://github.com/me176c-dev/linux-me176c"
|
2018-12-31 19:44:13 +00:00
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps"
|
2019-10-10 17:10:11 +00:00
|
|
|
depends_dev="perl gmp-dev elfutils-dev bash flex bison"
|
|
|
|
makedepends="$depends_dev sed installkernel bc linux-headers openssl-dev xz"
|
2018-12-31 19:44:13 +00:00
|
|
|
|
|
|
|
# Compiler: latest GCC from Alpine
|
|
|
|
HOSTCC="${CC:-gcc}"
|
|
|
|
HOSTCC="${HOSTCC#${CROSS_COMPILE}}"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2019-10-10 17:10:11 +00:00
|
|
|
$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz
|
|
|
|
config-$_flavor.$arch
|
2018-12-31 19:44:13 +00:00
|
|
|
"
|
2019-10-10 17:10:11 +00:00
|
|
|
builddir="$srcdir/linux-me176c-$pkgver"
|
2018-12-31 19:44:13 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2019-10-10 17:10:11 +00:00
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
2018-12-31 19:44:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2019-10-10 17:10:11 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
2018-12-31 19:44:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-10-10 17:10:11 +00:00
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make install modules_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir"
|
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
2018-12-31 19:44:13 +00:00
|
|
|
}
|
|
|
|
|
2019-10-10 17:10:11 +00:00
|
|
|
sha512sums="7725d0fb7152d7727c769d831d00afd2dd9e0b9df7349c0a8cde4c432b42ea24cf06a4f5a9016a5e8b41f28fd71dfca8c5b9b67ecccbd2857682d19f18ba8655 linux-asus-me176c-4.19.80.tar.gz
|
|
|
|
fea1ad3104daa792678735bf190a8b351e8b7e529895b219aae1ed789e02bf9d13cd5ec9c9322ce080c3fd26da56e064a8e4053918dfd0a817b9f205b2559ce6 config-asus-me176c.x86_64"
|