2021-07-10 14:43:24 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/kobo_defconfig
|
|
|
|
|
|
|
|
pkgname=linux-kobo-clara-mainline
|
2022-01-16 20:29:19 +00:00
|
|
|
pkgver=5.16.0
|
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-01-16 20:29:19 +00:00
|
|
|
_commit="9be9fd52253701860b03e0d31557021943d7e0a0"
|
2021-07-11 20:02:40 +00:00
|
|
|
_rtl8189fs_repository="rtl8189ES_linux"
|
2021-12-19 21:49:43 +00:00
|
|
|
_rtl8189fs_commit="3129a665f835ce0342f9a85a0ce14a556e656b8c"
|
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-01-16 20:29:19 +00:00
|
|
|
8b171751da8c6b228cfeda9ffa77742fbeb70a588c9d22856e097431571e0b6b6737040c15d0849125bafc0cca600a934b0cf9cee36515d840b5d4c5665771ce linux-kobo-clara-mainline-9be9fd52253701860b03e0d31557021943d7e0a0.tar.gz
|
2021-12-19 21:49:43 +00:00
|
|
|
ef45b210ccd9ebb59552561a40bf37f0ef65c6d23c85ddefa1287c79bbea5fd0be9571e850b8980d8d4198a2076b75d9683c6620582a08b79564bec6639b2857 rtl8189ES_linux-3129a665f835ce0342f9a85a0ce14a556e656b8c.tar.gz
|
|
|
|
e60b676f69e77102f21b9b6322f545da24556664f9cb3cb914e5f0e53d4efa817da8830c274c89ebc15fa5aad4e7fe11b91cad4837f56d1d28405dfbc185753a config-kobo-clara-mainline.armv7
|
2021-07-10 14:43:24 +00:00
|
|
|
"
|