Single Binary Build Update
[keystone-rtos/ibl.git] / release.sh
1 #!/bin/sh
2 # Generate the source release tarballs
3 export IBL_VERSION="1_0_0_9"
4 cd ../
5 if [ -f ibl_src_$IBL_VERSION.tgz ]; then rm ibl_src_$IBL_VERSION.tgz; fi
7 tar -czf ibl_src_$IBL_VERSION.tgz ibl/src ibl/doc
9 cd ibl
10 # Create directories for binary builds
11 if [ -d ibl_bin_$IBL_VERSION ]; then rm -r ibl_bin_$IBL_VERSION; fi
13 mkdir ibl_bin_$IBL_VERSION
14 mkdir ibl_bin_$IBL_VERSION/c6455/
15 mkdir ibl_bin_$IBL_VERSION/c6455/be
16 mkdir ibl_bin_$IBL_VERSION/c6455/le
18 mkdir ibl_bin_$IBL_VERSION/c6472/
19 mkdir ibl_bin_$IBL_VERSION/c6472/be
20 mkdir ibl_bin_$IBL_VERSION/c6472/le
22 mkdir ibl_bin_$IBL_VERSION/c6474/
23 mkdir ibl_bin_$IBL_VERSION/c6474/be
24 mkdir ibl_bin_$IBL_VERSION/c6474/le
26 mkdir ibl_bin_$IBL_VERSION/c6474l/
27 mkdir ibl_bin_$IBL_VERSION/c6474l/be
28 mkdir ibl_bin_$IBL_VERSION/c6474l/le
30 mkdir ibl_bin_$IBL_VERSION/c6457/
31 mkdir ibl_bin_$IBL_VERSION/c6457/be
32 mkdir ibl_bin_$IBL_VERSION/c6457/le
34 mkdir ibl_bin_$IBL_VERSION/c6678/
35 mkdir ibl_bin_$IBL_VERSION/c6678/le
36 mkdir ibl_bin_$IBL_VERSION/c6678/be
38 mkdir ibl_bin_$IBL_VERSION/c6670/
39 mkdir ibl_bin_$IBL_VERSION/c6670/le
40 mkdir ibl_bin_$IBL_VERSION/c6670/be
42 # Copy i2cConfig GEL file
43 cp -f src/util/i2cConfig/i2cConfig.gel ibl_bin_$IBL_VERSION/i2cConfig.gel
45 # Set Build environment
46 source src/make/setupenvLnx.sh
48 # Build C6455 EVM LE
49 pushd src/make
50 make clean
51 make evm_c6455 ENDIAN=little
52 popd
53 # Copy the files to the Binary package
54 cp -f src/make/bin/i2crom_0x50_c6455_le.dat ibl_bin_$IBL_VERSION/c6455/le/
55 cp -f src/make/bin/i2crom_0x50_c6455_le.bin ibl_bin_$IBL_VERSION/c6455/le/
57 # Build C6455 EVM BE
58 pushd src/make
59 make clean
60 make evm_c6455 ENDIAN=big
61 popd
62 # Copy the files to the Binary package
63 cp -f src/make/bin/i2crom_0x50_c6455_be.dat ibl_bin_$IBL_VERSION/c6455/be/
64 cp -f src/make/bin/i2crom_0x50_c6455_be.bin ibl_bin_$IBL_VERSION/c6455/be/
67 # Build C6472 EVM LE
68 pushd src/make
69 make clean
70 make evm_c6472 ENDIAN=little
71 popd
72 # Copy the files to the Binary package
73 cp -f src/make/bin/i2crom_0x50_c6472_le.dat ibl_bin_$IBL_VERSION/c6472/le/
74 cp -f src/make/bin/i2crom_0x50_c6472_le.bin ibl_bin_$IBL_VERSION/c6472/le/
77 # Build C6472 EVM BE
78 pushd src/make
79 make clean
80 make evm_c6472 ENDIAN=big
81 popd
82 # Copy the files to the Binary package
83 cp -f src/make/bin/i2crom_0x50_c6472_be.dat ibl_bin_$IBL_VERSION/c6472/be/
84 cp -f src/make/bin/i2crom_0x50_c6472_be.bin ibl_bin_$IBL_VERSION/c6472/be/
87 # Build c6474 EVM little endian
88 pushd src/make
89 make clean
90 make evm_c6474 ENDIAN=little
91 popd
92 # Copy the files to the Binary package
93 cp -f src/make/bin/i2crom_0x50_c6474_le.dat ibl_bin_$IBL_VERSION/c6474/le/
94 cp -f src/make/bin/i2crom_0x50_c6474_le.bin ibl_bin_$IBL_VERSION/c6474/le/
98 # Build c6474 EVM Big endian
99 pushd src/make
100 make clean
101 make evm_c6474 ENDIAN=big
102 popd
103 # Copy the files to the Binary package
104 cp -f src/make/bin/i2crom_0x50_c6474_be.dat ibl_bin_$IBL_VERSION/c6474/be/
105 cp -f src/make/bin/i2crom_0x50_c6474_be.bin ibl_bin_$IBL_VERSION/c6474/be/
107 # Build c6474l EVM little Endian
108 pushd src/make
109 make clean
110 make evm_c6474l ENDIAN=little
111 popd
112 # Copy the files to the Binary package
113 cp -f src/make/bin/i2crom_0x50_c6474l_le.dat ibl_bin_$IBL_VERSION/c6474l/le/
114 cp -f src/make/bin/i2crom_0x50_c6474l_le.bin ibl_bin_$IBL_VERSION/c6474l/le/
117 # Build c6474l EVM Big Endian
118 pushd src/make
119 make clean
120 make evm_c6474l ENDIAN=big
121 popd
122 # Copy the files to the Binary package
123 cp -f src/make/bin/i2crom_0x50_c6474l_be.dat ibl_bin_$IBL_VERSION/c6474l/be/
124 cp -f src/make/bin/i2crom_0x50_c6474l_be.bin ibl_bin_$IBL_VERSION/c6474l/be/
127 # Build c6457 EVM little
128 pushd src/make
129 make clean
130 make evm_c6457 ENDIAN=little
131 popd
132 cp -f src/make/bin/i2crom_0x50_c6457_le.dat ibl_bin_$IBL_VERSION/c6457/le/
133 cp -f src/make/bin/i2crom_0x50_c6457_le.bin ibl_bin_$IBL_VERSION/c6457/le/
136 # Build c6457 EVM big
137 pushd src/make
138 make clean
139 make evm_c6457 ENDIAN=big
140 popd
141 cp -f src/make/bin/i2crom_0x50_c6457_be.dat ibl_bin_$IBL_VERSION/c6457/be/
142 cp -f src/make/bin/i2crom_0x50_c6457_be.bin ibl_bin_$IBL_VERSION/c6457/be/
145 # Build c6678 EVM LE
146 pushd src/make
147 make clean
148 make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
149 popd
150 cp -f src/make/bin/i2crom_0x51_c6678_le.dat ibl_bin_$IBL_VERSION/c6678/le/
151 cp -f src/make/bin/i2crom_0x51_c6678_le.bin ibl_bin_$IBL_VERSION/c6678/le/
154 # Build c6678 EVM BE
155 pushd src/make
156 make clean
157 make evm_c6678_i2c ENDIAN=big I2C_BUS_ADDR=0x51 
158 popd
159 cp -f src/make/bin/i2crom_0x51_c6678_be.dat ibl_bin_$IBL_VERSION/c6678/be/
160 cp -f src/make/bin/i2crom_0x51_c6678_be.bin ibl_bin_$IBL_VERSION/c6678/be/
162 # Build c6670 EVM LE
163 pushd src/make
164 make clean
165 make evm_c6670_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
166 popd
167 cp -f src/make/bin/i2crom_0x51_c6670_le.dat ibl_bin_$IBL_VERSION/c6670/le/
168 cp -f src/make/bin/i2crom_0x51_c6670_le.bin ibl_bin_$IBL_VERSION/c6670/le/
171 # Build c6670 EVM BE
172 pushd src/make
173 make clean
174 make evm_c6670_i2c ENDIAN=big I2C_BUS_ADDR=0x51 
175 popd
176 cp -f src/make/bin/i2crom_0x51_c6670_be.dat ibl_bin_$IBL_VERSION/c6670/be/
177 cp -f src/make/bin/i2crom_0x51_c6670_be.bin ibl_bin_$IBL_VERSION/c6670/be/
180 # Create Tar archive for binary package
181 tar -czf ibl_bin_$IBL_VERSION.tgz ibl_bin_$IBL_VERSION