# Maintainer: Andreas Kemnade # Kernel config based on: arch/arm/configs/kobo_defconfig pkgname=linux-kobo-clara-mainline pkgver=6.8.8 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="170464e5eb77c63c77ee7c81002a37ac033097ab" _rtl8189fs_repository="rtl8189ES_linux" _rtl8189fs_commit="5d523593f41c0b8d723c6aa86b217ee1d0965786" _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=" f036c72807965c403bcbc8fc29b6b2ae782927bac8c3cebf126accf8ad70abf2daf0dafd04553992402ecd6ec8e144ee6b361258f6a033a235393c9eec49bd79 linux-kobo-clara-mainline-170464e5eb77c63c77ee7c81002a37ac033097ab.tar.gz 8356d9b0c31de0914248f8e0531c0e3de0c9893fc6e0fdac013771b4f916a10f16cee69c354dc4f0fa8341d16155da5d710569e52f738073a5d3e436bec10334 rtl8189ES_linux-5d523593f41c0b8d723c6aa86b217ee1d0965786.tar.gz 5c9cd531ea45bda2232b5e72fa7b9e9ae7b25a4782b412ba5216b85d12dc11fca8c8903dee592bfe35aec3c954c742f156b1bf1796ef06877b31f0e0ece43a04 config-kobo-clara-mainline.armv7 "