717130ccfe
Should fix CVE-2021-39685 [ci:skip-build] Already built on CI in MR
70 lines
2.2 KiB
Text
70 lines
2.2 KiB
Text
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
# Kernel config based on: https://github.com/me176c-dev/archlinux-me176c/blob/master/linux-me176c/config
|
|
|
|
_flavor="asus-me176c"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.4.165
|
|
_kernver=${pkgver%.*}
|
|
_me176cver=5.4.17
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for ASUS MeMO Pad 7 (ME176C(X))"
|
|
arch="x86_64"
|
|
_carch="x86_64"
|
|
url="https://github.com/me176c-dev/linux-me176c"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-anbox
|
|
pmb:kconfigcheck-nftables"
|
|
makedepends="
|
|
bison
|
|
diffutils
|
|
elfutils-dev
|
|
flex
|
|
gmp-dev
|
|
linux-headers
|
|
mpc1-dev
|
|
mpfr-dev
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
xz
|
|
"
|
|
|
|
# Source
|
|
source="
|
|
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$_kernver.tar.xz
|
|
linux-$pkgver.patch.xz::https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/patch-$pkgver.xz
|
|
https://github.com/me176c-dev/linux-me176c/releases/download/$_me176cver/linux-me176c-$_me176cver.patch.xz
|
|
config-$_flavor.$arch
|
|
"
|
|
builddir="$srcdir/linux-$_kernver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/boot
|
|
make install modules_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_MOD_STRIP=1
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
}
|
|
|
|
sha512sums="
|
|
9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f linux-5.4.tar.xz
|
|
c64606085a57f7068f393fe4ae62733602cf84709fe9599bfc18f066700766dbafa5ce9c93e50bfbeca7f4663b38da376a8460a53901f1edf5b07c1c3d552602 linux-5.4.165.patch.xz
|
|
aa462bfcbba87469a617e2ffd4058cd41137b74f836aae47ac89bc70de2836b8f3ddce94f597e61bb287eb009bb71f4e831c487b0073011673d5db4a8d8ae080 linux-me176c-5.4.17.patch.xz
|
|
56d565703da993f1908948b2232e42625783c18ef3e7053f71e3c808e98d35a472c27b32b7afcd91838b5ac6850bf6284d4c3bd7017e2964b80f4d9617952807 config-asus-me176c.x86_64
|
|
"
|