pmaports/device/testing/linux-kobo-clara-mainline/APKBUILD
Newbyte 70efe55031
linux-*: install dtbs to /boot/dtbs (MR 3254)
[ci:ignore-count]: Too many packages probably
[ci:skip-build]: No way this would finish in time
2022-10-09 17:04:30 +02:00

74 lines
2.4 KiB
Text

# Maintainer: Andreas Kemnade <andreas@kemnade.info>
# Kernel config based on: arch/arm/configs/kobo_defconfig
pkgname=linux-kobo-clara-mainline
pkgver=5.19.11
pkgrel=1
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="14094f669808ea48f3cea07f35b64cb6ece6f27e"
_rtl8189fs_repository="rtl8189ES_linux"
_rtl8189fs_commit="732da93d86a79e23adc75cc3f3f1cdc3b3524504"
_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" \
CONFIG_RTW_SDIO_PM_KEEP_POWER=n \
CONFIG_RTW_DEBUG=n \
-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/boot/dtbs"
install -Dm644 "$_rtl8189fs_dir"/8189fs.ko "$pkgdir/lib/modules/$pkgver/kernel/drivers/net/wireless"
}
sha512sums="
f8159e239ccf7db75d0eda54bd0163e1110cedb4a392c6a107cf439eaf0c8a15b473bed5e9b9328d3cb999e121b42c71106d28d3458d64def35a270f8e754395 linux-kobo-clara-mainline-14094f669808ea48f3cea07f35b64cb6ece6f27e.tar.gz
cbfc3e49686d291013a1fcdc26cf091ffef5087294e192387626ce4171e6ea8ff6c004efdf4242159793293e148899e3a0e07e72ef7c8e40da21bbf6fe8b71d5 rtl8189ES_linux-732da93d86a79e23adc75cc3f3f1cdc3b3524504.tar.gz
1e6787cf1e5eabdf3e4f9d572c71bb79f480327ae6a86a24f80fd1110a8035d1dda7a62b2098feb6bc130b6941b4430e1b2b91a0b1d7a0cfdf74efd059c23c09 config-kobo-clara-mainline.armv7
"