merge of '3e6216a45414da116d701e5ace53a09e1c10f258'
[vuplus_openembedded] / contrib / angstrom / build-release.sh
1 #!/bin/bash
2
3 DO_UCLIBC=1
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                 
24                 if [ "$BUILD_CLEAN" != "" ]
25                 then
26                         bitbake -c clean $BUILD_CLEAN
27                 fi
28
29                 for target in $BUILD_TARGETS
30                 do
31                         bitbake $target && do_report_success
32                 done
33         fi
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 ep93xx gumstix-connex gumstix-verdex efika dht-walnut omap5912osk
53 do
54         BUILD_MACHINE=$machine
55         BUILD_CLEAN="libtool-cross 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 # graphics, flash storage
78 for machine in fic-gta01 a780 at91sam9263ek qemuarm h2200 h3900 h4000 h5000 poodle tosa hx4700 c7x0 spitz akita collie simpad 
79 do
80         BUILD_CLEAN="base-files"
81         BUILD_MACHINE=$machine
82         BUILD_TARGETS="base-image console-image minimal-gpe-image x11-image"
83         do_build
84 done
85
86 # graphics, disk storage        
87 for machine in spitz 
88 do
89         BUILD_CLEAN="base-files"
90         BUILD_MACHINE=$machine
91         BUILD_TARGETS="x11-gpe-image x11-pimlico-image x11-office-image"
92         do_build
93 done 
94
95 #phones
96 for machine in fic-gta01 a780 
97 do
98         BUILD_MACHINE=$machine
99         BUILD_TARGETS="minimal-openmoko-image openmoko-image"
100         do_build
101 done    
102
103 # populate feeds
104 #for machine in ep93xx a780 efika collie ixp4xxbe
105 #do
106 #        BUILD_MACHINE=$machine
107 #        BUILD_TARGETS="meta-angstrom-2007"
108 #       do_build
109 #done
110