1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 sup_arches = armv5tel armv7hl
11 groups = Development/Tools
12 url = http://www.denx.de/wiki/U-Boot
14 summary = U-Boot utilities.
17 U-Boot is a Boot Loader, i.e. its primary purpose in the shipping
18 system is to load some operating system.
21 source_dl = ftp://ftp.denx.de/pub/u-boot/
22 sources = %{thisapp}.tar.bz2
30 while read arch platform targets; do
31 # Skip all other architectures.
32 [ "${arch}" = "%{DISTRO_ARCH}" ] || continue
34 make CROSS_COMPILE="" ${platform}_config
35 make HOSTCC="gcc %{CFLAGS}" CROSS_COMPILE="" all ${targets}
38 installdir="%{BUILDROOT}/usr/lib/%{name}/${platform}"
39 mkdir -pv ${installdir}
41 for target in ${targets}; do
42 install -D -m 644 ${target} ${installdir}
45 install -D -m 644 MLO ${installdir}
47 for f in spl/*.bin; do
48 [ -e "${f}" ] || continue
49 install -D -m 644 ${f} ${installdir}
52 # Clean out the build environment.
54 done < %{DIR_SOURCE}/targets
57 # Need to create a config because the tools won't build without.
58 make sheevaplug_config
60 make tools HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true" CROSS_COMPILE=""
61 make env HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true"
66 mkdir -pv %{BUILDROOT}/usr/bin %{BUILDROOT}/usr/share/man/man1
67 install -p -m 0755 tools/mkimage %{BUILDROOT}/usr/bin
68 install -p -m 0644 doc/mkimage.1 %{BUILDROOT}/usr/share/man/man1
69 install -p -m 0755 tools/env/fw_printenv %{BUILDROOT}/usr/bin
70 ln -svf fw_printenv %{BUILDROOT}/usr/bin/fw_setenv
78 summary = U-Boot utilities.
80 This package contains a few U-Boot utilities - mkimage
81 for creating boot images and fw_printenv/fw_setenv for
82 manipulating the boot environment variables.
91 package %{name}-debuginfo