1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 thisapp = %{name}-%{version}-rc%{rc}
11 sup_arches = armv5tel armv7hl
13 groups = Development/Tools
14 url = http://www.denx.de/wiki/U-Boot
16 summary = U-Boot utilities.
19 U-Boot is a Boot Loader, i.e. its primary purpose in the shipping
20 system is to load some operating system.
23 source_dl = ftp://ftp.denx.de/pub/u-boot/
24 sources = %{thisapp}.tar.bz2
32 while read arch platform targets; do
33 # Skip all other architectures.
34 [ "${arch}" = "%{DISTRO_ARCH}" ] || continue
36 builddir="$(pwd)/build-${platform}"
39 make CROSS_COMPILE="" O=${builddir} ${platform}_config
40 make HOSTCC="gcc %{CFLAGS}" CROSS_COMPILE="" O=${builddir}
41 done < %{DIR_SOURCE}/targets
44 # Need to create a config because the tools won't build without.
45 make sheevaplug_config
47 make tools HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true" CROSS_COMPILE=""
48 make env HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true"
52 while read arch platform targets; do
53 # Skip all other architectures.
54 [ "${arch}" = "%{DISTRO_ARCH}" ] || continue
56 builddir="build-${platform}"
57 installdir="%{BUILDROOT}/usr/lib/%{name}/${platform}"
58 mkdir -pv ${installdir}
60 for target in ${targets}; do
61 install -D -m 644 ${builddir}/${target} ${installdir}
63 if [ -e "${builddir}/MLO" ]; then
64 install -D -m 644 ${builddir}/MLO ${installdir}
66 for f in ${builddir}/spl/*.bin; do
67 [ -e "${f}" ] || continue
68 install -D -m 644 ${f} ${installdir}
70 done < %{DIR_SOURCE}/targets
73 mkdir -pv %{BUILDROOT}/usr/bin %{BUILDROOT}/usr/share/man/man1
74 install -p -m 0755 tools/mkimage %{BUILDROOT}/usr/bin
75 install -p -m 0644 doc/mkimage.1 %{BUILDROOT}/usr/share/man/man1
76 install -p -m 0755 tools/env/fw_printenv %{BUILDROOT}/usr/bin
77 ln -svf fw_printenv %{BUILDROOT}/usr/bin/fw_setenv
85 summary = U-Boot utilities.
87 This package contains a few U-Boot utilities - mkimage
88 for creating boot images and fw_printenv/fw_setenv for
89 manipulating the boot environment variables.
98 package %{name}-debuginfo