2022-05-21 16:52:30 +00:00
|
|
|
# Maintainer: Andreas Kemnade <andreas@kemnade.info>
|
2021-07-10 14:43:24 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/kobo_defconfig
|
|
|
|
|
|
|
|
pkgname=linux-kobo-clara-mainline
|
2022-05-21 16:52:30 +00:00
|
|
|
pkgver=5.17.9
|
2021-12-19 21:49:43 +00:00
|
|
|
pkgrel=0
|
2021-07-10 14:43:24 +00:00
|
|
|
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"
|
2022-05-21 16:52:30 +00:00
|
|
|
_commit="ed1f542d165b9d01e09497cb5583549972529aef"
|
2021-07-11 20:02:40 +00:00
|
|
|
_rtl8189fs_repository="rtl8189ES_linux"
|
2022-05-21 16:52:30 +00:00
|
|
|
_rtl8189fs_commit="71500c28164369800041d1716ac513457179ce93"
|
2021-07-10 14:43:24 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/akemnade/$_repository/archive/$_commit.tar.gz
|
2021-07-11 20:02:40 +00:00
|
|
|
$_rtl8189fs_repository-$_rtl8189fs_commit.tar.gz::https://github.com/jwrdegoede/$_rtl8189fs_repository/archive/$_rtl8189fs_commit.tar.gz
|
2021-07-10 14:43:24 +00:00
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
_outdir="out"
|
2021-07-11 20:02:40 +00:00
|
|
|
_rtl8189fs_dir="$srcdir/$_rtl8189fs_repository-$_rtl8189fs_commit"
|
2021-07-10 14:43:24 +00:00
|
|
|
|
|
|
|
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"
|
2021-07-11 20:02:40 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$(( pkgrel + 1 ))-postmarketOS" \
|
2022-01-16 20:29:19 +00:00
|
|
|
CONFIG_RTW_SDIO_PM_KEEP_POWER=n \
|
2021-07-11 20:02:40 +00:00
|
|
|
-C "$_rtl8189fs_dir" KSRC="$builddir"
|
2021-07-10 14:43:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
|
|
|
make modules_install dtbs_install \
|
2021-07-11 20:02:40 +00:00
|
|
|
O="$_outdir" ARCH="$_carch" \
|
2021-07-10 14:43:24 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
2021-07-11 20:02:40 +00:00
|
|
|
install -Dm644 "$_rtl8189fs_dir"/8189fs.ko "$pkgdir/lib/modules/$pkgver/kernel/drivers/net/wireless"
|
2021-07-10 14:43:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2022-05-21 16:52:30 +00:00
|
|
|
412fd300adace68f28f0e7cd2a709d798d65a3178a11666e5302f4017119cc94bc87b80045e511f2500b33eb425751e61f8ec1489df5334ebd24b05e9ff1cb3e linux-kobo-clara-mainline-ed1f542d165b9d01e09497cb5583549972529aef.tar.gz
|
|
|
|
d147907ec2e2258963fd97fa00be674211800576741e6631d778c1ba72f572fb2ed421a320a15950c55f73e99a0687fe5b0113a7a27a77dcbbfa2b129f7fbfa9 rtl8189ES_linux-71500c28164369800041d1716ac513457179ce93.tar.gz
|
|
|
|
8fbc974ad17775dd5e6c69b4fc828cd0d7ad8d10620a3814c290e230ccb49677b62591cfe6a4c51a89f208cb6d4846d62b92fac93062d0f0c2354eebe1623662 config-kobo-clara-mainline.armv7
|
2021-07-10 14:43:24 +00:00
|
|
|
"
|