2022-05-21 16:52:30 +00:00
|
|
|
# Maintainer: Andreas Kemnade <andreas@kemnade.info>
|
2021-07-10 14:43:24 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/kobo_defconfig
|
|
|
|
|
|
|
|
pkgname=linux-kobo-clara-mainline
|
2022-09-27 06:26:48 +00:00
|
|
|
pkgver=5.19.11
|
2022-07-30 18:11:01 +00:00
|
|
|
pkgrel=1
|
2021-07-10 14:43:24 +00:00
|
|
|
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"
|
2022-09-27 06:26:48 +00:00
|
|
|
_commit="14094f669808ea48f3cea07f35b64cb6ece6f27e"
|
2021-07-11 20:02:40 +00:00
|
|
|
_rtl8189fs_repository="rtl8189ES_linux"
|
2022-09-27 06:26:48 +00:00
|
|
|
_rtl8189fs_commit="732da93d86a79e23adc75cc3f3f1cdc3b3524504"
|
2021-07-10 14:43:24 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/akemnade/$_repository/archive/$_commit.tar.gz
|
2021-07-11 20:02:40 +00:00
|
|
|
$_rtl8189fs_repository-$_rtl8189fs_commit.tar.gz::https://github.com/jwrdegoede/$_rtl8189fs_repository/archive/$_rtl8189fs_commit.tar.gz
|
2021-07-10 14:43:24 +00:00
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
_outdir="out"
|
2021-07-11 20:02:40 +00:00
|
|
|
_rtl8189fs_dir="$srcdir/$_rtl8189fs_repository-$_rtl8189fs_commit"
|
2021-07-10 14:43:24 +00:00
|
|
|
|
|
|
|
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"
|
2021-07-11 20:02:40 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$(( pkgrel + 1 ))-postmarketOS" \
|
2022-01-16 20:29:19 +00:00
|
|
|
CONFIG_RTW_SDIO_PM_KEEP_POWER=n \
|
2022-09-27 06:26:48 +00:00
|
|
|
CONFIG_RTW_DEBUG=n \
|
2021-07-11 20:02:40 +00:00
|
|
|
-C "$_rtl8189fs_dir" KSRC="$builddir"
|
2021-07-10 14:43:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
|
|
|
make modules_install dtbs_install \
|
2021-07-11 20:02:40 +00:00
|
|
|
O="$_outdir" ARCH="$_carch" \
|
2021-07-10 14:43:24 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2021-07-11 20:02:40 +00:00
|
|
|
install -Dm644 "$_rtl8189fs_dir"/8189fs.ko "$pkgdir/lib/modules/$pkgver/kernel/drivers/net/wireless"
|
2021-07-10 14:43:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2022-09-27 06:26:48 +00:00
|
|
|
f8159e239ccf7db75d0eda54bd0163e1110cedb4a392c6a107cf439eaf0c8a15b473bed5e9b9328d3cb999e121b42c71106d28d3458d64def35a270f8e754395 linux-kobo-clara-mainline-14094f669808ea48f3cea07f35b64cb6ece6f27e.tar.gz
|
|
|
|
cbfc3e49686d291013a1fcdc26cf091ffef5087294e192387626ce4171e6ea8ff6c004efdf4242159793293e148899e3a0e07e72ef7c8e40da21bbf6fe8b71d5 rtl8189ES_linux-732da93d86a79e23adc75cc3f3f1cdc3b3524504.tar.gz
|
|
|
|
1e6787cf1e5eabdf3e4f9d572c71bb79f480327ae6a86a24f80fd1110a8035d1dda7a62b2098feb6bc130b6941b4430e1b2b91a0b1d7a0cfdf74efd059c23c09 config-kobo-clara-mainline.armv7
|
2021-07-10 14:43:24 +00:00
|
|
|
"
|