# Maintainer: Andreas Kemnade # Kernel config based on: arch/arm/configs/kobo_defconfig pkgname=linux-kobo-clara-mainline pkgver=6.8.7 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="3af283cc39dd57f3571778f579f3789def1f9175" _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=" 7867a4239d7bbe57e03be3d2f419bf237faa901927186e5b050d403928329b3d3aa0882dadcd6aad6f181326aded6c68b0f2cd49828c36af01f41baacd3028c4 linux-kobo-clara-mainline-3af283cc39dd57f3571778f579f3789def1f9175.tar.gz 8356d9b0c31de0914248f8e0531c0e3de0c9893fc6e0fdac013771b4f916a10f16cee69c354dc4f0fa8341d16155da5d710569e52f738073a5d3e436bec10334 rtl8189ES_linux-5d523593f41c0b8d723c6aa86b217ee1d0965786.tar.gz 07280e05e86006c589095551602784d8325b2c84139d3caf40fab930ac95343a4d7f7a987f758bc9554ca726e7ddf8af6f6dcd243079b2ba84125fa321be7b89 config-kobo-clara-mainline.armv7 "