Files
pmaports-rtwo/device/testing/u-boot-exynos5420/APKBUILD
T
Eisenbahnfan a2d63ae730 u-boot-exynos5420: Fix slow EFI boot time
CONFIG_EFI_GRUB_ARM32_WORKAROUND always disables the caches and mmu. EFI
requires that those are enabled. As a result it takes long to uncompress
the vmlinuz file.

The new u-boot release has this option disabled and thus boots far faster.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8571>
2026-05-17 11:25:59 +00:00

66 lines
1.7 KiB
Bash

maintainer="Hendrik Noack <hendrik.noack@protonmail.com>"
pkgname=u-boot-exynos5420
pkgver=2026.04_p1
pkgrel=0
pkgdesc="U-Boot bootloader for Samsung Exynos5420"
url="https://gitlab.com/exynos5-mainline/u-boot"
arch="armv7"
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
ISC LGPL-2.0-only LGPL-2.1-only X11"
depends="android-tools"
makedepends="
$depends_dev
bash
bc
bison
dtc
flex
openssl-dev
py3-setuptools
python3-dev
swig
gnutls-dev
"
options="!check"
_tag="v${pkgver//_p/-r}-galaxy-tab-pro"
source="
$pkgname-$_tag.tar.bz2::$url/-/archive/$_tag/u-boot-$_tag.tar.bz2
update-u-boot
"
builddir="$srcdir/u-boot-$_tag"
_devices="
n1awifi
n2awifi
v1a-wifi
"
build() {
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
export BUILD_DIR="$builddir"/build
mkdir -p $BUILD_DIR
for _device in $_devices; do
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm distclean
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm ${_device//-/_}_defconfig
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm all
mv "$BUILD_DIR/u-boot.bin" "$builddir/u-boot-$_device.bin"
done
}
package() {
for _device in $_devices; do
install -D -m644 "$builddir/u-boot-$_device.bin" \
-t "$pkgdir/usr/share/u-boot/samsung/"
done
install -D -m 755 "$srcdir"/update-u-boot "$pkgdir"/usr/sbin/update-u-boot
}
sha512sums="
7bc10bed7b827b69ede6020f05df3ed073fff0430ad13f644e06ea7479ce605c5cea6716fabc9caf5ba29ecc965826d35dc5fc07d7caf32f1fd0fa12fa01ad9e u-boot-exynos5420-v2026.04-r1-galaxy-tab-pro.tar.bz2
085effc688328f96f116e1199d55d4da4f34f08fa1045b4bcc7debc8ba7df28c589d54bc3cac7cd7ed9cb9d6c0f3655b5d101c5c3d8c9d5ff5b9ef2c3cb2514d update-u-boot
"