merge of 'ad0c1c90501edf142b7f2f658fe2c819ce9e0608'
[vuplus_openembedded] / contrib / angstrom / build-release.sh
1 #!/bin/bash
2
3 DO_UCLIBC=0
4
5 do_build() {
6         echo "MACHINE = \"$BUILD_MACHINE\"" > conf/auto.conf
7
8         BUILD_MODE="glibc"
9         if [ "$BUILD_CLEAN" != "" ]
10         then
11                 bitbake -c clean $BUILD_CLEAN
12         fi
13
14         for target in $BUILD_TARGETS
15         do
16                 bitbake $target && do_report_success
17         done
18
19         if [ $DO_UCLIBC = 1 ]
20         then
21                 BUILD_MODE="uclibc"
22                 echo 'ANGSTROM_MODE = "uclibc"' >> conf/auto.conf
23                 for target in $BUILD_TARGETS
24                 do
25                         bitbake $target && do_report_success
26                 done
27         fi
28 }
29
30 do_report_success() {
31
32         echo "$(date -u +%s) $target $BUILD_MODE $machine" >> autobuilder.log
33 }
34
35 #cross toolchain
36 #for machine in ep93xx a780 efika collie ixp4xxbe
37 #do
38 #        BUILD_MACHINE=$machine
39 #        BUILD_TARGETS="meta-toolchain"
40 #       BUILD_CLEAN="meta-toolchain"
41 #        do_build
42 #done
43
44
45 # No graphics
46 for machine in ep93xx gumstix-connex gumstix-verdex efika omap5912osk
47 do
48         BUILD_MACHINE=$machine
49         BUILD_CLEAN="libtool-cross base-files"
50         BUILD_TARGETS="base-image console-image"
51         do_build
52 done
53
54 for machine in ixp4xxle ixp4xxbe 
55 do
56         BUILD_CLEAN="base-files"
57         BUILD_MACHINE=$machine
58         BUILD_TARGETS="base-image nslu2-base-image"
59         do_build
60 done     
61
62 # build altboot images for zaurus
63 for machine in c7x0 poodle tosa akita spitz collie
64 do
65         BUILD_CLEAN="base-files"
66         BUILD_MACHINE=$machine
67         BUILD_TARGETS="altboot-console-image"
68         do_build
69 done  
70
71 # graphics, flash storage
72 for machine in fic-gta01 a780 at91sam9263ek qemuarm h2200 h3900 h4000 poodle tosa hx4700 c7x0 spitz akita collie 
73 do
74         BUILD_CLEAN="base-files"
75         BUILD_MACHINE=$machine
76         BUILD_TARGETS="base-image console-image minimal-gpe-image x11-image"
77         do_build
78 done
79
80 # graphics, disk storage        
81 for machine in spitz 
82 do
83         BUILD_CLEAN="base-files"
84         BUILD_MACHINE=$machine
85         BUILD_TARGETS="x11-gpe-image x11-pimlico-image x11-office-image"
86         do_build
87 done 
88
89 #phones
90 for machine in fic-gta01 a780 
91 do
92         BUILD_MACHINE=$machine
93         BUILD_TARGETS="minimal-openmoko-image openmoko-image"
94         do_build
95 done    
96
97 # populate feeds
98 #for machine in ep93xx a780 efika collie ixp4xxbe
99 #do
100 #        BUILD_MACHINE=$machine
101 #        BUILD_TARGETS="meta-angstrom-2007"
102 #       do_build
103 #done
104