pmaports/device/testing/linux-kobo-clara-mainline/APKBUILD
Andreas Kemnade 7c91000470
linux-kobo-clara-mainline: upgrade to 5.15 (MR 2780)
Uses now DRM variant of EPDC driver. Updates will work automatically
without using special APIs.

Note:
/sys/class/graphics/fbcon/cursor_blink should probably be set to zero
to avoid battery draining if text console is displayed

[ci:skip-build] Already built on CI in MR
2021-12-22 03:59:13 +03:00

71 lines
2.3 KiB
Text

# Kernel config based on: arch/arm/configs/kobo_defconfig
pkgname=linux-kobo-clara-mainline
pkgver=5.15.0
pkgrel=0
pkgdesc="Kobo Clara HD kernel fork, close to mainline"
arch="armv7"
_carch="arm"
_flavor="kobo-clara-mainline"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables"
makedepends="
bash
bc
bison
devicepkg-dev
findutils
flex
gmp-dev
lzop
mpc1-dev
mpfr-dev
openssl-dev
perl
"
# Source
_repository="linux"
_commit="622c5f8420dd53980d9248c58d0a5b74c06cd022"
_rtl8189fs_repository="rtl8189ES_linux"
_rtl8189fs_commit="3129a665f835ce0342f9a85a0ce14a556e656b8c"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/akemnade/$_repository/archive/$_commit.tar.gz
$_rtl8189fs_repository-$_rtl8189fs_commit.tar.gz::https://github.com/jwrdegoede/$_rtl8189fs_repository/archive/$_rtl8189fs_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
_rtl8189fs_dir="$srcdir/$_rtl8189fs_repository-$_rtl8189fs_commit"
prepare() {
REPLACE_GCCH=0
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$(( pkgrel + 1 ))-postmarketOS"
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$(( pkgrel + 1 ))-postmarketOS" \
-C "$_rtl8189fs_dir" KSRC="$builddir"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
make modules_install dtbs_install \
O="$_outdir" ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
install -Dm644 "$_rtl8189fs_dir"/8189fs.ko "$pkgdir/lib/modules/$pkgver/kernel/drivers/net/wireless"
}
sha512sums="
f567b57abee54ba871cb699246b9129bf34149905871654dec2c34cdbfacd72993e596f1b3b638d964f65e253dcea18c3185ccdc39847892b9b5e639ee967ed7 linux-kobo-clara-mainline-622c5f8420dd53980d9248c58d0a5b74c06cd022.tar.gz
ef45b210ccd9ebb59552561a40bf37f0ef65c6d23c85ddefa1287c79bbea5fd0be9571e850b8980d8d4198a2076b75d9683c6620582a08b79564bec6639b2857 rtl8189ES_linux-3129a665f835ce0342f9a85a0ce14a556e656b8c.tar.gz
e60b676f69e77102f21b9b6322f545da24556664f9cb3cb914e5f0e53d4efa817da8830c274c89ebc15fa5aad4e7fe11b91cad4837f56d1d28405dfbc185753a config-kobo-clara-mainline.armv7
"