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
|
2023-11-08 22:59:39 +00:00
|
|
|
pkgver=6.6.0
|
|
|
|
pkgrel=0
|
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"
|
2023-11-08 22:59:39 +00:00
|
|
|
_commit="879daa81c5939cae8bc079bcb34e911b6658e500"
|
2021-07-11 20:02:40 +00:00
|
|
|
_rtl8189fs_repository="rtl8189ES_linux"
|
2023-11-08 22:59:39 +00:00
|
|
|
_rtl8189fs_commit="75a566a830037c7d1309c5a9fe411562772a1cf2"
|
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"
|
2023-02-18 12:18:11 +00:00
|
|
|
install -Dm644 "$_rtl8189fs_dir"/8189fs.ko "$pkgdir/lib/modules/$(make -s O="$_outdir" ARCH="$_carch" kernelrelease)/kernel/drivers/net/wireless"
|
2021-07-10 14:43:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-11-08 22:59:39 +00:00
|
|
|
4c3db716940e27422b35b20579b3bd16c00a9419af9130d2fb20e6fe332830315050acb1548528acf00668e5c4d36fc6583c6fe3d3d4f99f27f542a9c0c253f2 linux-kobo-clara-mainline-879daa81c5939cae8bc079bcb34e911b6658e500.tar.gz
|
|
|
|
f2f0723d37eb23182247d181b5d239468f1b1e3472420cf2022a483961e52993ff469161c6f15c436d83b82f467845749bf6795f4560a6d3e0be01c60d964dcf rtl8189ES_linux-75a566a830037c7d1309c5a9fe411562772a1cf2.tar.gz
|
|
|
|
153978b10246d365c7dc8af79376ca4e5156056cb07d65e444493ca7dde0e84711a60c15d9d841656af094e5c0feff9b5eebcf6dc6d9c2a6376698c952990521 config-kobo-clara-mainline.armv7
|
2021-07-10 14:43:24 +00:00
|
|
|
"
|