angstrom image builder: only do uclibc for the old-style initramfs stuff
[vuplus_openembedded] / contrib / angstrom / build-release.sh
1 #!/bin/bash
2
3 DO_UCLIBC=0
4
5 do_build() {
6         if [ $DO_UCLIBC = 1 ]
7         then
8                 BUILD_MODE="uclibc"
9                 echo 'ANGSTROM_MODE = "uclibc"' > conf/auto.conf
10
11                 if [ "$BUILD_CLEAN" != "" ]
12                 then
13                         MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
14                 fi
15
16                 for target in $BUILD_TARGETS
17                 do
18                         MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
19                 done
20         fi
21
22         BUILD_MODE="glibc"
23         echo 'ANGSTROM_MODE = "glibc"' > conf/auto.conf
24
25         if [ "$BUILD_CLEAN" != "" ]
26         then
27                 MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
28         fi
29
30         for target in $BUILD_TARGETS
31         do
32                 MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
33         done
34 }
35
36 do_report_success() {
37
38         echo "$(date -u +%s) $target $BUILD_MODE $machine" >> autobuilder.log
39 }
40
41 #cross toolchain
42 #for machine in ep93xx a780 efika collie ixp4xxbe
43 #do
44 #        BUILD_MACHINE=$machine
45 #        BUILD_TARGETS="meta-toolchain"
46 #       BUILD_CLEAN="meta-toolchain"
47 #        do_build
48 #done
49
50
51 # No graphics
52 for machine in gumstix-connex gumstix-verdex efika dht-walnut omap5912osk
53 do
54         BUILD_MACHINE=$machine
55         BUILD_CLEAN="base-files"
56         BUILD_TARGETS="base-image console-image"
57         do_build
58 done
59
60 for machine in ixp4xxle ixp4xxbe 
61 do
62         BUILD_CLEAN="base-files"
63         BUILD_MACHINE=$machine
64         BUILD_TARGETS="base-image nslu2-base-image nas-server-image"
65         do_build
66 done     
67
68 # build altboot images for zaurus
69 for machine in c7x0 poodle tosa akita spitz collie
70 do
71         BUILD_CLEAN="base-files"
72         BUILD_MACHINE=$machine
73         BUILD_TARGETS="altboot-console-image"
74         do_build
75 done  
76
77 # Make uclibc initramfs-bootmenu-image for ipaqs, this should move to more generic klibc stuff, but till then:
78 DO_UCLIBC=1
79 for machine in h2200 h3900 h4000 h5000 hx4700
80 do
81         BUILD_MACHINE=$machine
82         BUILD_TARGETS="initramfs-bootmenu-image"
83 done
84 DO_UCLIBC=0
85
86 # graphics, flash storage
87 for machine in beagleboard omap3evm om-gta01 om-gta02 a780 at91sam9263ek qemuarm qemux86 h2200 h3900 h4000 h5000 poodle tosa hx4700 c7x0 spitz akita collie simpad 
88 do
89         BUILD_CLEAN="base-files"
90         BUILD_MACHINE=$machine
91         BUILD_TARGETS="initramfs-bootmenu-image base-image console-image minimal-gpe-image x11-image"
92         do_build
93 done
94
95 # graphics, disk storage        
96 for machine in spitz beagleboard omap3evm 
97 do
98         BUILD_CLEAN="base-files"
99         BUILD_MACHINE=$machine
100         BUILD_TARGETS="x11-gpe-image x11-pimlico-image x11-office-image"
101         do_build
102 done 
103
104 #phones
105 for machine in om-gta01 om-gta02 a780  
106 do
107         BUILD_MACHINE=$machine
108         BUILD_TARGETS="minimal-openmoko-image openmoko-image fso-console-image fso-illume-image fso-image-light fso-image-nox fso-image"
109         do_build
110 done    
111
112 # omap3 boards
113 for machine in beagleboard omap3evm
114 do
115         BUILD_MACHINE=$machine
116         BUILD_TARGETS="beagleboard-demo-image"
117         do_build
118 done