Files
haikuports/sys-boot/u-boot/u_boot-2024.04.recipe
Schrijvers Luc d7df706ca3 u_boot, bump version (#10296)
previously one marked as vulnerable at repology
2024-04-04 10:11:09 +02:00

75 lines
2.2 KiB
Bash

SUMMARY="Boot loader for embedded boards"
DESCRIPTION="boot loader for embedded boards based on PowerPC, ARM, MIPS and several other \
processors, which can be installed in a boot ROM and used to \
initialize and test the hardware or to download and run application code.
The development of U-Boot is closely related to Linux: some parts of \
the source code originate in the Linux source tree, we have some \
header files in common, and special provision has been made to \
support booting of Linux images.
Some attention has been paid to make this software easily \
configurable and extendable. For instance, all monitor commands are \
implemented with the same call interface, so that it's very easy to \
add new commands. Also, instead of permanently adding rarely used \
code (for instance hardware test utilities) to the monitor, you can \
load and run it dynamically."
HOMEPAGE="https://www.denx.de/wiki/U-Boot"
COPYRIGHT="2000-2024 Wolfgang Denk, DENX Software Engineering"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://ftp.denx.de/pub/u-boot/u-boot-$portVersion.tar.bz2"
SOURCE_DIR="u-boot-$portVersion"
CHECKSUM_SHA256="18a853fe39fad7ad03a90cc2d4275aeaed6da69735defac3492b80508843dd4a"
PATCHES="u_boot-$portVersion.patchset"
ARCHITECTURES="any"
PROVIDES="
u_boot$secondaryArchSuffix = $portVersion
"
REQUIRES="
"
# The package is "any" because the result is only binaries. However, on gcc2 systems, we still need
# to build it using a modern compiler and set of libraries.
if [ "$targetArchitecture" = x86_gcc2 ]; then
hostArchSuffix="_x86"
else
hostArchSuffix="$secondaryArchSuffix"
fi
BUILD_REQUIRES="
haiku${hostArchSuffix}_devel
devel:libssl$hostArchSuffix
setuptools_python310
"
BUILD_PREREQUIRES="
cmd:arm_none_eabi_gcc
cmd:awk
cmd:bison
cmd:cmp
cmd:find
cmd:flex
cmd:gcc$hostArchSuffix
cmd:make
cmd:python3
cmd:swig
cmd:xargs
"
BUILD()
{
export PATH=/bin/x86:$PATH
export HOME=/tmp
# TODO figure out how to add more boards. Are out-of-tree builds possible?
CROSS_COMPILE=arm-none-eabi- make mk802ii_defconfig
CROSS_COMPILE=arm-none-eabi- make $jobArgs
}
INSTALL()
{
mkdir -p $dataDir/platform_loaders
cp u-boot-sunxi-with-spl.bin $dataDir/platform_loaders/
}