2021-09-23 10:09:46 +00:00
|
|
|
# Maintainer: Henrik Grimler <henrik@grimler.se>
|
2022-10-10 00:46:37 +00:00
|
|
|
# Co-Maintainer: Jenneron <jenneron@protonmail.com>
|
2021-09-23 10:09:46 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/exynos_defconfig
|
|
|
|
# and Hardkernel's odroidxu4_defconfig
|
|
|
|
|
|
|
|
pkgname=linux-postmarketos-exynos5
|
2023-04-21 20:11:21 +00:00
|
|
|
pkgver=6.1.24
|
2023-01-18 17:29:16 +00:00
|
|
|
pkgrel=0
|
2021-09-23 10:09:46 +00:00
|
|
|
pkgdesc="Mainline kernel fork for Samsung Exynos5 devices"
|
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
|
|
|
_flavor="${pkgname#linux-}"
|
2022-11-30 06:48:42 +00:00
|
|
|
url="https://gitlab.com/exynos5-mainline/linux"
|
2021-09-23 10:09:46 +00:00
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-11-28 17:47:22 +00:00
|
|
|
pmb:kconfigcheck-community
|
2021-09-23 10:09:46 +00:00
|
|
|
"
|
|
|
|
makedepends="
|
2022-10-10 00:46:37 +00:00
|
|
|
bash
|
2021-09-23 10:09:46 +00:00
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
2022-12-29 17:22:07 +00:00
|
|
|
postmarketos-installkernel
|
2021-09-23 10:09:46 +00:00
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
gmp-dev
|
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
|
|
|
xz
|
|
|
|
"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
case $pkgver in
|
|
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
|
|
*.*) _kernver=$pkgver;;
|
|
|
|
esac
|
2023-04-21 20:11:21 +00:00
|
|
|
_tag="v${pkgver//_/-}-exynos5-lts"
|
2021-09-23 10:09:46 +00:00
|
|
|
source="
|
2022-11-30 06:48:42 +00:00
|
|
|
$pkgname-$_tag.tar.bz2::$url/-/archive/$_tag/linux-$_tag.tar.bz2
|
2021-09-23 10:09:46 +00:00
|
|
|
$_config
|
|
|
|
"
|
2022-11-30 06:48:42 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2021-09-23 10:09:46 +00:00
|
|
|
|
|
|
|
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 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2021-09-23 10:09:46 +00:00
|
|
|
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="
|
2023-04-21 20:11:21 +00:00
|
|
|
99271fe0d381f3e5b620e29e840b4f14bb1919c396d38a683fe5b28a63924a0e56a4269156fb2dbf2d0319d599ff671db2d221a2e2426a02a261003429018f4d linux-postmarketos-exynos5-v6.1.24-exynos5-lts.tar.bz2
|
|
|
|
6bc966511b9429419507f80c261dd3c94d7ce936145cf3a4bb6902d321f27a68ebadaa5faef23f2e0267c10493030e6ef809f65aea01a41036b872e8527d3efd config-postmarketos-exynos5.armv7
|
2021-09-23 10:09:46 +00:00
|
|
|
"
|