]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - u-boot/u-boot.nm
libnetfilter_queue: Update to 1.0.2.
[people/ms/ipfire-3.x.git] / u-boot / u-boot.nm
index fc04ab920ef2ea15bdd5616d1e2816abf2478f5b..25be430fb5b9a4e066f90cbf895e6cee4d80bc01 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = u-boot
-version    = 2012.10
+version    = 2013.07
 release    = 1
 sup_arches = armv5tel armv7hl
 
@@ -22,47 +22,46 @@ source_dl  = ftp://ftp.denx.de/pub/u-boot/
 sources    = %{thisapp}.tar.bz2
 
 build
-       build
-               while read arch platform targets; do
-                       # Skip all other architectures.
-                       [ "${arch}" = "%{DISTRO_ARCH}" ] || continue
-
-                       builddir="$(pwd)/build-${platform}"
-                       mkdir -p ${builddir}
-
-                       make CROSS_COMPILE="" O=${builddir} ${platform}_config
-                       make HOSTCC="gcc %{CFLAGS}" CROSS_COMPILE="" O=${builddir}
-               done < %{DIR_SOURCE}/targets
-
-               # Build tools.
-               # Need to create a config because the tools won't build without.
-               make sheevaplug_config
-
-               make tools HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true" CROSS_COMPILE=""
-               make env HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true"
+       requires
+               dtc
        end
 
-       install
+       build
                while read arch platform targets; do
                        # Skip all other architectures.
                        [ "${arch}" = "%{DISTRO_ARCH}" ] || continue
 
-                       builddir="build-${platform}"
+                       make CROSS_COMPILE="" ${platform}_config
+                       make HOSTCC="gcc %{CFLAGS}" CROSS_COMPILE="" all ${targets}
+
+                       # install
                        installdir="%{BUILDROOT}/usr/lib/%{name}/${platform}"
                        mkdir -pv ${installdir}
 
                        for target in ${targets}; do
-                               install -D -m 644 ${builddir}/${target} ${installdir}
+                               install -D -m 644 ${target} ${installdir}
                        done
-                       if [ -e "${builddir}/MLO" ]; then
-                               install -D -m 644 ${builddir}/MLO ${installdir}
+                       if [ -e "MLO" ]; then
+                               install -D -m 644 MLO ${installdir}
                        fi
-                       for f in ${builddir}/spl/*.bin; do
+                       for f in spl/*.bin; do
                                [ -e "${f}" ] || continue
                                install -D -m 644 ${f} ${installdir}
                        done
+
+                       # Clean out the build environment.
+                       make distclean
                done < %{DIR_SOURCE}/targets
 
+               # Build tools.
+               # Need to create a config because the tools won't build without.
+               make sheevaplug_config
+
+               make tools HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true" CROSS_COMPILE=""
+               make env HOSTCC="gcc %{CFLAGS}" HOSTSTRIP="/bin/true"
+       end
+
+       install
                # Install tools.
                mkdir -pv %{BUILDROOT}/usr/bin %{BUILDROOT}/usr/share/man/man1
                install -p -m 0755 tools/mkimage %{BUILDROOT}/usr/bin