2020-10-19 01:02:08 +00:00
|
|
|
# Maintainer: Thiago Foganholi <thiagaoplusplus@outlook.com>
|
2021-08-13 11:23:45 +00:00
|
|
|
# Co-Maintainer: Newbyte <newbyte@disroot.org>
|
2020-10-19 01:02:08 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/exynos_defconfig
|
|
|
|
|
|
|
|
pkgname=linux-postmarketos-exynos4
|
2024-02-25 19:48:23 +00:00
|
|
|
pkgver=6.7.6
|
2024-03-23 19:24:10 +00:00
|
|
|
pkgrel=2
|
2020-10-19 01:02:08 +00:00
|
|
|
pkgdesc="Mainline kernel fork for Samsung Exynos4 devices"
|
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
|
|
|
_flavor="${pkgname#linux-}"
|
2023-04-11 18:10:22 +00:00
|
|
|
url="https://gitlab.com/exynos4-mainline/linux"
|
2020-10-19 01:02:08 +00:00
|
|
|
license="GPL-2.0-only"
|
2021-07-19 21:31:42 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community
|
2021-07-19 21:31:42 +00:00
|
|
|
"
|
2021-10-11 12:18:48 +00:00
|
|
|
makedepends="
|
2022-10-11 11:30:55 +00:00
|
|
|
bash
|
2021-10-11 12:18:48 +00:00
|
|
|
bison
|
|
|
|
busybox-static-armv7
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
gmp-dev
|
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
xz
|
|
|
|
"
|
2020-10-19 01:02:08 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
case $pkgver in
|
|
|
|
*.*.*) _kernver=${pkgver%.0};;
|
|
|
|
*.*) _kernver=$pkgver;;
|
|
|
|
esac
|
2023-07-22 06:46:15 +00:00
|
|
|
_tag="v${pkgver//_/-}-exynos4"
|
2020-10-19 01:02:08 +00:00
|
|
|
source="
|
2023-04-11 18:10:22 +00:00
|
|
|
$pkgname-$_tag.tar.bz2::$url/-/archive/$_tag/linux-$_tag.tar.bz2
|
2020-10-19 01:02:08 +00:00
|
|
|
$_config
|
|
|
|
initramfs.list
|
|
|
|
init
|
2024-03-23 19:24:10 +00:00
|
|
|
tab3-limit-memory.patch
|
2020-10-19 01:02:08 +00:00
|
|
|
"
|
2023-04-11 18:10:22 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2020-10-19 01:02:08 +00:00
|
|
|
|
|
|
|
prepare_isorec() {
|
|
|
|
# https://wiki.postmarketos.org/wiki/Boot_process#isorec
|
|
|
|
cp -v /usr/$(arch_to_hostspec $arch)/bin/busybox.static \
|
|
|
|
"$builddir"/usr/
|
|
|
|
cp -v "$srcdir"/init "$builddir"/usr/
|
|
|
|
cp -v "$srcdir"/initramfs.list "$builddir"/usr/
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
prepare_isorec
|
|
|
|
cp -v "$srcdir/$_config" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2022-08-27 09:34:02 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" KCFLAGS="-Wno-array-bounds" \
|
2023-06-04 08:21:06 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2020-10-19 01:02:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2020-10-19 01:02:08 +00:00
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
}
|
|
|
|
|
2021-05-31 18:39:37 +00:00
|
|
|
sha512sums="
|
2024-02-25 19:48:23 +00:00
|
|
|
705cd617d135900cb25c8b6da7177d507e6a179b521e04aeae18080995514cbd69381a21f942ebf4d8cee427e3c60d53e6a06ed918ddcaacc243ca585ef61c11 linux-postmarketos-exynos4-v6.7.6-exynos4.tar.bz2
|
2024-03-18 22:12:08 +00:00
|
|
|
ee4cec8100ebe1d85bd18ba0ba5bdf9746f1fb7a7cb6dff0d8f6782d03f51e5d87f0d05a388ff641c276db7857e729ceb900bf33061d079e97cf6e7b43dd5027 config-postmarketos-exynos4.armv7
|
2020-10-19 01:02:08 +00:00
|
|
|
aaff0332b90e1f9f62de1128cace934717336e54ab09de46477369fa808302482d97334e43a85ee8597c1bcab64d3484750103559fea2ce8cd51776156bf7591 initramfs.list
|
2021-05-31 18:39:37 +00:00
|
|
|
09f1f214a24300696809727a7b04378887c06ca6f40803ca51a12bf2176a360b2eb8632139d6a0722094e05cb2038bdb04018a1e3d33fc2697674552ade03bee init
|
2024-03-23 19:24:10 +00:00
|
|
|
aea665e80dee318ec3be23d3f28b88e87eb551d2756e14d896781a0861a4387920f6969990eb171e8c7d6f86c36cef63a89337d63bfee7e44b9de7a8efb36c73 tab3-limit-memory.patch
|
2021-05-31 18:39:37 +00:00
|
|
|
"
|