71 lines
2.3 KiB
Text
71 lines
2.3 KiB
Text
# Kernel config based on: arch/arm/configs/kobo_defconfig
|
|
|
|
pkgname=linux-kobo-clara-mainline
|
|
pkgver=5.13.0
|
|
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="b5908f2984910829a26594c5ea6b43ffeb9ce1e8"
|
|
_rtl8189fs_repository="rtl8189ES_linux"
|
|
_rtl8189fs_commit="62c31d577c385316bb99107f60e63169dacc37db"
|
|
_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" \
|
|
-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/usr/share/dtb"
|
|
install -Dm644 "$_rtl8189fs_dir"/8189fs.ko "$pkgdir/lib/modules/$pkgver/kernel/drivers/net/wireless"
|
|
}
|
|
|
|
sha512sums="
|
|
85622e760d4b73bf2b9d42b53b8af0538a2ea15d7c9a47d320cde03514342824939e9bf0667af9289055241dc1a31444c3a183a0966b61be5b1453d78d3175c7 linux-kobo-clara-mainline-b5908f2984910829a26594c5ea6b43ffeb9ce1e8.tar.gz
|
|
c7ffab0eaed9c57fb32cbfc01c47c1ed5c7c8c3a36633c93e43a61bb42f107687d0ccd8855e61b86fc04dcffcd7b2116cf57e2fe4b6ce17522fa68d1c1cc89a0 rtl8189ES_linux-62c31d577c385316bb99107f60e63169dacc37db.tar.gz
|
|
66d48278b7f7c5f00fc7b4cf40b366731fd1a770db8f8d6db9d216d193bc9f8ef137039ccde271e86e44ceb290e0472ea836a015cd803fabd3978bbf2076cec4 config-kobo-clara-mainline.armv7
|
|
"
|