]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
u-boot: Update to 2012.10.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Dec 2012 23:29:50 +0000 (00:29 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Dec 2012 23:33:19 +0000 (00:33 +0100)
Remove all versions we currently do not support.

That leaves us with dreamplug and Pandaboard.

u-boot/targets
u-boot/u-boot.nm

index f6fad92ffdfc138511cb1af8cac74c341a07e20f..8f2c60193cbab65447e4df5cb299003df6a37c63 100644 (file)
@@ -1,12 +1,4 @@
-# HOST_ARCH            platform        target
+# HOST_ARCH            platform        targets
 # --------------------------------------------
-armv5tel               dockstar        u-boot.kwb
-# Dreamplug is not supported by this version of uboot.
-#armv5tel              dreamplug       u-boot.kwb
-armv5tel               guruplug        u-boot.kwb
-armv5tel               openrd_ultimate u-boot.kwb
-armv5tel               sheevaplug      u-boot.kwb
-armv7hl                        efikamx         u-boot.imx
-armv7hl                        igep0020        u-boot.bin
-armv7hl                        omap3_beagle    u-boot.bin
-armv7hl                        omap4_panda     u-boot.bin
+armv5tel               dreamplug       u-boot.bin
+armv7hl                        omap4_panda     u-boot.bin u-boot.img
index 0847564b2763c4f0b5829e3cb86695d762065a80..fc04ab920ef2ea15bdd5616d1e2816abf2478f5b 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = u-boot
-version    = 2011.09
+version    = 2012.10
 release    = 1
 sup_arches = armv5tel armv7hl
 
@@ -23,15 +23,15 @@ sources    = %{thisapp}.tar.bz2
 
 build
        build
-               while read arch platform target; do
+               while read arch platform targets; do
                        # Skip all other architectures.
                        [ "${arch}" = "%{DISTRO_ARCH}" ] || continue
 
                        builddir="$(pwd)/build-${platform}"
                        mkdir -p ${builddir}
 
-                       make O=${builddir} ${platform}_config
-                       make O=${builddir} ${builddir}/${target}
+                       make CROSS_COMPILE="" O=${builddir} ${platform}_config
+                       make HOSTCC="gcc %{CFLAGS}" CROSS_COMPILE="" O=${builddir}
                done < %{DIR_SOURCE}/targets
 
                # Build tools.
@@ -43,7 +43,7 @@ build
        end
 
        install
-               while read arch platform target; do
+               while read arch platform targets; do
                        # Skip all other architectures.
                        [ "${arch}" = "%{DISTRO_ARCH}" ] || continue
 
@@ -51,8 +51,16 @@ build
                        installdir="%{BUILDROOT}/usr/lib/%{name}/${platform}"
                        mkdir -pv ${installdir}
 
-                       install -D -m 644 ${builddir}/${target} ${installdir}
-                       install -D -m 644 ${builddir}/u-boot ${installdir}/uboot.elf
+                       for target in ${targets}; do
+                               install -D -m 644 ${builddir}/${target} ${installdir}
+                       done
+                       if [ -e "${builddir}/MLO" ]; then
+                               install -D -m 644 ${builddir}/MLO ${installdir}
+                       fi
+                       for f in ${builddir}/spl/*.bin; do
+                               [ -e "${f}" ] || continue
+                               install -D -m 644 ${f} ${installdir}
+                       done
                done < %{DIR_SOURCE}/targets
 
                # Install tools.