linux-kobo-clara-mainline: add wifi support (MR 2334)

This commit is contained in:
Timotej Lazar 2021-07-11 22:02:40 +02:00 committed by Dylan Van Assche
parent c1a3d06678
commit 6d8e4afad1
No known key found for this signature in database
GPG key ID: 8642571587897EA1

View file

@ -2,7 +2,7 @@
pkgname=linux-kobo-clara-mainline pkgname=linux-kobo-clara-mainline
pkgver=5.12.0 pkgver=5.12.0
pkgrel=0 pkgrel=1
pkgdesc="Kobo Clara HD kernel fork, close to mainline" pkgdesc="Kobo Clara HD kernel fork, close to mainline"
arch="armv7" arch="armv7"
_carch="arm" _carch="arm"
@ -28,13 +28,17 @@ makedepends="
# Source # Source
_repository="linux" _repository="linux"
_commit="4dd67a97287964010bdae4751cb965bf118c14d7" _commit="4dd67a97287964010bdae4751cb965bf118c14d7"
_rtl8189fs_repository="rtl8189ES_linux"
_rtl8189fs_commit="62c31d577c385316bb99107f60e63169dacc37db"
_config="config-$_flavor.$arch" _config="config-$_flavor.$arch"
source=" source="
$pkgname-$_commit.tar.gz::https://github.com/akemnade/$_repository/archive/$_commit.tar.gz $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 $_config
" "
builddir="$srcdir/$_repository-$_commit" builddir="$srcdir/$_repository-$_commit"
_outdir="out" _outdir="out"
_rtl8189fs_dir="$srcdir/$_rtl8189fs_repository-$_rtl8189fs_commit"
prepare() { prepare() {
REPLACE_GCCH=0 REPLACE_GCCH=0
@ -46,18 +50,22 @@ build() {
unset LDFLAGS unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \ make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$(( pkgrel + 1 ))-postmarketOS" KBUILD_BUILD_VERSION="$(( pkgrel + 1 ))-postmarketOS"
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$(( pkgrel + 1 ))-postmarketOS" \
-C "$_rtl8189fs_dir" KSRC="$builddir"
} }
package() { package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir" downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
make modules_install dtbs_install \ make modules_install dtbs_install \
O="$_outdir" \ O="$_outdir" ARCH="$_carch" \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \ INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb" INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
install -Dm644 "$_rtl8189fs_dir"/8189fs.ko "$pkgdir/lib/modules/$pkgver/kernel/drivers/net/wireless"
} }
sha512sums=" sha512sums="
7a2a2f5817eae9e8917b60a92c041912c0073e7f6aa48664a4b399e7d39a8f790d9ab020384bcc12d85d973b1879cadffc0a266885d7584a8a631b680c170acf linux-kobo-clara-mainline-4dd67a97287964010bdae4751cb965bf118c14d7.tar.gz 7a2a2f5817eae9e8917b60a92c041912c0073e7f6aa48664a4b399e7d39a8f790d9ab020384bcc12d85d973b1879cadffc0a266885d7584a8a631b680c170acf linux-kobo-clara-mainline-4dd67a97287964010bdae4751cb965bf118c14d7.tar.gz
c7ffab0eaed9c57fb32cbfc01c47c1ed5c7c8c3a36633c93e43a61bb42f107687d0ccd8855e61b86fc04dcffcd7b2116cf57e2fe4b6ce17522fa68d1c1cc89a0 rtl8189ES_linux-62c31d577c385316bb99107f60e63169dacc37db.tar.gz
256971be31b2ecf3a4c41c047f7c8eb6e8255a1c275fe1c86e13f96139f454db8d5c1998b7be4aa0f67dcc93e0a5ec2fd7b3526e6e60afab72e44a33be42c8f0 config-kobo-clara-mainline.armv7 256971be31b2ecf3a4c41c047f7c8eb6e8255a1c275fe1c86e13f96139f454db8d5c1998b7be4aa0f67dcc93e0a5ec2fd7b3526e6e60afab72e44a33be42c8f0 config-kobo-clara-mainline.armv7
" "