angstrom build release: do uclibc stuff first, so initramfs kernels build properly
authorKoen Kooi <koen@openembedded.org>
Wed, 5 Mar 2008 13:52:24 +0000 (13:52 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 5 Mar 2008 13:52:24 +0000 (13:52 +0000)
contrib/angstrom/build-release.sh

index 2f88245..31dd704 100755 (executable)
@@ -5,6 +5,22 @@ DO_UCLIBC=1
 do_build() {
        echo "MACHINE = \"$BUILD_MACHINE\"" > conf/auto.conf
 
+        if [ $DO_UCLIBC = 1 ]
+        then
+                BUILD_MODE="uclibc"
+                echo 'ANGSTROM_MODE = "uclibc"' >> conf/auto.conf
+
+                if [ "$BUILD_CLEAN" != "" ]
+                then
+                        bitbake -c clean $BUILD_CLEAN
+                fi
+
+                for target in $BUILD_TARGETS
+                do
+                        bitbake $target && do_report_success
+                done
+        fi
+
        BUILD_MODE="glibc"
        if [ "$BUILD_CLEAN" != "" ]
        then
@@ -15,22 +31,6 @@ do_build() {
        do
                bitbake $target && do_report_success
        done
-
-       if [ $DO_UCLIBC = 1 ]
-       then
-               BUILD_MODE="uclibc"
-               echo 'ANGSTROM_MODE = "uclibc"' >> conf/auto.conf
-               
-               if [ "$BUILD_CLEAN" != "" ]
-               then
-                       bitbake -c clean $BUILD_CLEAN
-               fi
-
-               for target in $BUILD_TARGETS
-               do
-                       bitbake $target && do_report_success
-               done
-       fi
 }
 
 do_report_success() {
@@ -79,7 +79,7 @@ for machine in fic-gta01 a780 at91sam9263ek qemuarm h2200 h3900 h4000 h5000 pood
 do
        BUILD_CLEAN="base-files"
        BUILD_MACHINE=$machine
-       BUILD_TARGETS="base-image console-image minimal-gpe-image x11-image"
+       BUILD_TARGETS="initramfs-bootmenu-image base-image console-image minimal-gpe-image x11-image"
        do_build
 done