]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - u-boot/u-boot.nm
u-boot: Update to 2013.07rc2.
[people/amarx/ipfire-3.x.git] / u-boot / u-boot.nm
CommitLineData
11ca4f20
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = u-boot
bd25a423 7version = 2013.07
90e71f0c
MT
8rc = 2
9release = 0.1.rc%{rc}
10thisapp = %{name}-%{version}-rc%{rc}
11ca4f20
MT
11sup_arches = armv5tel armv7hl
12
13groups = Development/Tools
14url = http://www.denx.de/wiki/U-Boot
15license = GPLv2+
16summary = U-Boot utilities.
17
18description
19 U-Boot is a Boot Loader, i.e. its primary purpose in the shipping
20 system is to load some operating system.
21end
22
23source_dl = ftp://ftp.denx.de/pub/u-boot/
24sources = %{thisapp}.tar.bz2
25
26build
90e71f0c
MT
27 requires
28 dtc
29 end
30
11ca4f20 31 build
67ae211c 32 while read arch platform targets; do
11ca4f20
MT
33 # Skip all other architectures.
34 [ "${arch}" = "%{DISTRO_ARCH}" ] || continue
35
bd25a423
MT
36 make CROSS_COMPILE="" ${platform}_config
37 make HOSTCC="gcc %{CFLAGS}" CROSS_COMPILE="" all ${targets}
11ca4f20 38
bd25a423 39 # install
11ca4f20
MT
40 installdir="%{BUILDROOT}/usr/lib/%{name}/${platform}"
41 mkdir -pv ${installdir}
42
67ae211c 43 for target in ${targets}; do
bd25a423 44 install -D -m 644 ${target} ${installdir}
67ae211c 45 done
bd25a423
MT
46 if [ -e "MLO" ]; then
47 install -D -m 644 MLO ${installdir}
67ae211c 48 fi
bd25a423 49 for f in spl/*.bin; do
67ae211c
MT
50 [ -e "${f}" ] || continue
51 install -D -m 644 ${f} ${installdir}
52 done
bd25a423
MT
53
54 # Clean out the build environment.
55 make distclean
11ca4f20
MT
56 done < %{DIR_SOURCE}/targets
57
bd25a423
MT
58 # Build tools.
59 # Need to create a config because the tools won't build without.
60 make sheevaplug_config
61
62 make tools HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true" CROSS_COMPILE=""
63 make env HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true"
64 end
65
66 install
11ca4f20
MT
67 # Install tools.
68 mkdir -pv %{BUILDROOT}/usr/bin %{BUILDROOT}/usr/share/man/man1
69 install -p -m 0755 tools/mkimage %{BUILDROOT}/usr/bin
70 install -p -m 0644 doc/mkimage.1 %{BUILDROOT}/usr/share/man/man1
71 install -p -m 0755 tools/env/fw_printenv %{BUILDROOT}/usr/bin
72 ln -svf fw_printenv %{BUILDROOT}/usr/bin/fw_setenv
73 end
74end
75
76packages
77 package %{name}
78
79 package %{name}-tools
80 summary = U-Boot utilities.
81 description
82 This package contains a few U-Boot utilities - mkimage
83 for creating boot images and fw_printenv/fw_setenv for
84 manipulating the boot environment variables.
85 end
86
87 files
88 /usr/bin
89 /usr/share/man/man1
90 end
91 end
42945a97
MT
92
93 package %{name}-debuginfo
94 template DEBUGINFO
95 end
11ca4f20 96end