# Maintainer: Andreas Kemnade # Kernel config based on: arch/arm/configs/kobo_defconfig pkgname=linux-kobo-clara-mainline pkgver=5.17.9 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="ed1f542d165b9d01e09497cb5583549972529aef" _rtl8189fs_repository="rtl8189ES_linux" _rtl8189fs_commit="71500c28164369800041d1716ac513457179ce93" _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 \ -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=" 412fd300adace68f28f0e7cd2a709d798d65a3178a11666e5302f4017119cc94bc87b80045e511f2500b33eb425751e61f8ec1489df5334ebd24b05e9ff1cb3e linux-kobo-clara-mainline-ed1f542d165b9d01e09497cb5583549972529aef.tar.gz d147907ec2e2258963fd97fa00be674211800576741e6631d778c1ba72f572fb2ed421a320a15950c55f73e99a0687fe5b0113a7a27a77dcbbfa2b129f7fbfa9 rtl8189ES_linux-71500c28164369800041d1716ac513457179ce93.tar.gz 8fbc974ad17775dd5e6c69b4fc828cd0d7ad8d10620a3814c290e230ccb49677b62591cfe6a4c51a89f208cb6d4846d62b92fac93062d0f0c2354eebe1623662 config-kobo-clara-mainline.armv7 "