summaryrefslogtreecommitdiff
path: root/contrib/angstrom/build-release.sh
blob: 2d4566f793c857b8b75ea90b10b157d161ce41d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#!/bin/bash

DO_UCLIBC=0

do_build() {
        if [ $DO_UCLIBC = 1 ]
        then
                BUILD_MODE="uclibc"
                echo 'ANGSTROMLIBC = "uclibc"' > conf/auto.conf

                if [ "$BUILD_CLEAN" != "" ]
                then
                        MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
                fi

                for target in $BUILD_TARGETS
                do
                        MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
                done
        fi

	BUILD_MODE="glibc"
        echo 'ANGSTROMLIBC = "glibc"' > conf/auto.conf

	if [ "$BUILD_CLEAN" != "" ]
	then
		MACHINE=$BUILD_MACHINE bitbake -c clean $BUILD_CLEAN
	fi

	for target in $BUILD_TARGETS
	do
		MACHINE=$BUILD_MACHINE bitbake $target && do_report_success
	done
}

do_report_success() {

	echo "$(date -u +%s) $target $BUILD_MODE $machine" >> autobuilder.log
}

#cross toolchain
#for machine in ep93xx a780 efika collie ixp4xxbe
#do
#        BUILD_MACHINE=$machine
#        BUILD_TARGETS="meta-toolchain"
#       BUILD_CLEAN="meta-toolchain"
#        do_build
#done


# No graphics
for machine in gumstix-connex gumstix-verdex efika dht-walnut omap5912osk
do
	BUILD_MACHINE=$machine
	BUILD_CLEAN="base-files"
	BUILD_TARGETS="base-image console-image"
	do_build
done

for machine in ixp4xxle ixp4xxbe 
do
	BUILD_CLEAN="base-files"
	BUILD_MACHINE=$machine
	BUILD_TARGETS="base-image nslu2-base-image nas-server-image"
	do_build
done	 

# build altboot images for zaurus
for machine in c7x0 poodle tosa akita spitz collie
do
	BUILD_CLEAN="base-files"
	BUILD_MACHINE=$machine
	BUILD_TARGETS="altboot-console-image"
	do_build
done 

# build kexecboot kernels for supported machines
for machine in poodle collie
do
	BUILD_MACHINE=$machine
	BUILD_TARGETS="linux-kexecboot"
	do_build
done 


# Make uclibc initramfs-bootmenu-image for ipaqs, this should move to more generic klibc stuff, but till then:
DO_UCLIBC=1
for machine in h2200 h3900 h4000 h5000 hx4700
do
	BUILD_MACHINE=$machine
	BUILD_TARGETS="initramfs-bootmenu-image"
done
DO_UCLIBC=0

# graphics, flash storage
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 
do
	BUILD_CLEAN="base-files"
	BUILD_MACHINE=$machine
	BUILD_TARGETS="initramfs-bootmenu-image base-image console-image minimal-gpe-image x11-image"
	do_build
done

# graphics, disk storage	
for machine in spitz beagleboard omap3evm 
do
	BUILD_CLEAN="base-files"
	BUILD_MACHINE=$machine
	BUILD_TARGETS="x11-gpe-image x11-pimlico-image x11-office-image"
	do_build
done 

#phones
for machine in om-gta01 om-gta02 a780  
do
	BUILD_MACHINE=$machine
	BUILD_TARGETS="minimal-openmoko-image openmoko-image fso-console-image fso-illume-image fso-image-light fso-image-nox fso-image"
	do_build
done	

# omap3 boards
for machine in beagleboard omap3evm
do
	BUILD_MACHINE=$machine
	BUILD_TARGETS="beagleboard-demo-image"
	do_build
done

# Opie
for machine in h2200 h3900 h4000 h5000 hx4700 htcuniversal akita c7x0 collie poodle spitz tosa simpad
do
        BUILD_CLEAN="base-files"
        BUILD_MACHINE=$machine
        BUILD_TARGETS="opie-image"
        do_build
done