pmaports/device/testing/linux-postmarketos-exynos5/APKBUILD
Henrik Grimler 8583329551
linux-postmarketos-exynos5: upgrade to 6.1.24 (lts) (MR 4022)
The pmaports package will follow lts releases from now on.
Intermediate versions will be tagged in the
gitlab.com/exynos5-mainline/linux repo.

Also enable CONFIG_LRU_GEN while we are at it (but not
CONFIG_LRU_GEN_ENABLED for now).
[ci:skip-build]: already built successfully in CI
2023-04-23 15:23:59 +02:00

74 lines
1.9 KiB
Text

# Maintainer: Henrik Grimler <henrik@grimler.se>
# Co-Maintainer: Jenneron <jenneron@protonmail.com>
# Kernel config based on: arch/arm/configs/exynos_defconfig
# and Hardkernel's odroidxu4_defconfig
pkgname=linux-postmarketos-exynos5
pkgver=6.1.24
pkgrel=0
pkgdesc="Mainline kernel fork for Samsung Exynos5 devices"
arch="armv7"
_carch="arm"
_flavor="${pkgname#linux-}"
url="https://gitlab.com/exynos5-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-community
"
makedepends="
bash
bison
findutils
flex
postmarketos-installkernel
openssl-dev
perl
gmp-dev
mpc1-dev
mpfr-dev
xz
"
# Source
_config="config-$_flavor.$arch"
case $pkgver in
*.*.*) _kernver=${pkgver%.0};;
*.*) _kernver=$pkgver;;
esac
_tag="v${pkgver//_/-}-exynos5-lts"
source="
$pkgname-$_tag.tar.bz2::$url/-/archive/$_tag/linux-$_tag.tar.bz2
$_config
"
builddir="$srcdir/linux-$_tag"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$CARCH" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
mkdir -p "$pkgdir"/boot
make zinstall modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_PATH="$pkgdir"/boot \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
install -D "$builddir"/include/config/kernel.release \
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
}
sha512sums="
99271fe0d381f3e5b620e29e840b4f14bb1919c396d38a683fe5b28a63924a0e56a4269156fb2dbf2d0319d599ff671db2d221a2e2426a02a261003429018f4d linux-postmarketos-exynos5-v6.1.24-exynos5-lts.tar.bz2
6bc966511b9429419507f80c261dd3c94d7ce936145cf3a4bb6902d321f27a68ebadaa5faef23f2e0267c10493030e6ef809f65aea01a41036b872e8527d3efd config-postmarketos-exynos5.armv7
"