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