# Maintainer: Andreas Kemnade # Kernel config based on: arch/arm/configs/kobo_defconfig pkgname=linux-kobo-clara-mainline pkgver=6.6.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="879daa81c5939cae8bc079bcb34e911b6658e500" _rtl8189fs_repository="rtl8189ES_linux" _rtl8189fs_commit="75a566a830037c7d1309c5a9fe411562772a1cf2" _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/$(make -s O="$_outdir" ARCH="$_carch" kernelrelease)/kernel/drivers/net/wireless" } sha512sums=" 4c3db716940e27422b35b20579b3bd16c00a9419af9130d2fb20e6fe332830315050acb1548528acf00668e5c4d36fc6583c6fe3d3d4f99f27f542a9c0c253f2 linux-kobo-clara-mainline-879daa81c5939cae8bc079bcb34e911b6658e500.tar.gz f2f0723d37eb23182247d181b5d239468f1b1e3472420cf2022a483961e52993ff469161c6f15c436d83b82f467845749bf6795f4560a6d3e0be01c60d964dcf rtl8189ES_linux-75a566a830037c7d1309c5a9fe411562772a1cf2.tar.gz 153978b10246d365c7dc8af79376ca4e5156056cb07d65e444493ca7dde0e84711a60c15d9d841656af094e5c0feff9b5eebcf6dc6d9c2a6376698c952990521 config-kobo-clara-mainline.armv7 "