IBL updates. Change to version 1.0.0.13
[keystone-rtos/ibl.git] / release.sh
1 #!/bin/sh
2 # Generate the source release tarballs
3 export IBL_VERSION="1_0_0_13"
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.bin ibl_bin_$IBL_VERSION/c6455/le/
55 cp -f src/make/bin/i2cparam_0x50_c6455_le_0x500.out 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.bin ibl_bin_$IBL_VERSION/c6455/be/
64 cp -f src/make/bin/i2cparam_0x50_c6455_be_0x500.out 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.bin ibl_bin_$IBL_VERSION/c6472/le/
74 cp -f src/make/bin/i2cparam_0x50_c6472_le_0x500.out ibl_bin_$IBL_VERSION/c6472/le/
76 # Build C6472 EVM BE
77 pushd src/make
78 make clean
79 make evm_c6472 ENDIAN=big
80 popd
81 # Copy the files to the Binary package
82 cp -f src/make/bin/i2crom_0x50_c6472_be.bin ibl_bin_$IBL_VERSION/c6472/be/
83 cp -f src/make/bin/i2cparam_0x50_c6472_be_0x500.out ibl_bin_$IBL_VERSION/c6472/be/
85 # Build c6474 EVM little endian
86 pushd src/make
87 make clean
88 make evm_c6474 ENDIAN=little
89 popd
90 # Copy the files to the Binary package
91 cp -f src/make/bin/i2crom_0x50_c6474_le.bin ibl_bin_$IBL_VERSION/c6474/le/
92 cp -f src/make/bin/i2cparam_0x50_c6474_le_0x200.out ibl_bin_$IBL_VERSION/c6474/le/
95 # Build c6474 EVM Big endian
96 pushd src/make
97 make clean
98 make evm_c6474 ENDIAN=big
99 popd
100 # Copy the files to the Binary package
101 cp -f src/make/bin/i2crom_0x50_c6474_be.bin ibl_bin_$IBL_VERSION/c6474/be/
102 cp -f src/make/bin/i2cparam_0x50_c6474_be_0x200.out ibl_bin_$IBL_VERSION/c6474/be/
104 # Build c6474l EVM little Endian
105 pushd src/make
106 make clean
107 make evm_c6474l ENDIAN=little
108 popd
109 # Copy the files to the Binary package
110 cp -f src/make/bin/i2crom_0x50_c6474l_le.bin ibl_bin_$IBL_VERSION/c6474l/le/
111 cp -f src/make/bin/i2cparam_0x50_c6474l_le_0x200.out ibl_bin_$IBL_VERSION/c6474l/le/
113 # Build c6474l EVM Big Endian
114 pushd src/make
115 make clean
116 make evm_c6474l ENDIAN=big
117 popd
118 # Copy the files to the Binary package
119 cp -f src/make/bin/i2crom_0x50_c6474l_be.bin ibl_bin_$IBL_VERSION/c6474l/be/
120 cp -f src/make/bin/i2cparam_0x50_c6474l_be_0x200.out ibl_bin_$IBL_VERSION/c6474l/be/
122 # Build c6457 EVM little
123 pushd src/make
124 make clean
125 make evm_c6457 ENDIAN=little
126 popd
127 cp -f src/make/bin/i2crom_0x50_c6457_le.bin ibl_bin_$IBL_VERSION/c6457/le/
128 cp -f src/make/bin/i2cparam_0x50_c6457_le_0x200.out ibl_bin_$IBL_VERSION/c6457/le/
130 # Build c6457 EVM big
131 pushd src/make
132 make clean
133 make evm_c6457 ENDIAN=big
134 popd
135 cp -f src/make/bin/i2crom_0x50_c6457_be.bin ibl_bin_$IBL_VERSION/c6457/be/
136 cp -f src/make/bin/i2cparam_0x50_c6457_be_0x200.out ibl_bin_$IBL_VERSION/c6457/be/
138 # Build c6678 EVM LE
139 pushd src/make
140 make clean
141 make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
142 popd
143 cp -f src/make/bin/i2crom_0x51_c6678_le.bin ibl_bin_$IBL_VERSION/c6678/le/
144 cp -f src/make/bin/i2cparam_0x51_c6678_le_0x500.out ibl_bin_$IBL_VERSION/c6678/le/
146 # Build c6678 EVM BE
147 pushd src/make
148 make clean
149 make evm_c6678_i2c ENDIAN=big I2C_BUS_ADDR=0x51 
150 popd
151 cp -f src/make/bin/i2crom_0x51_c6678_be.bin ibl_bin_$IBL_VERSION/c6678/be/
152 cp -f src/make/bin/i2cparam_0x51_c6678_be_0x500.out ibl_bin_$IBL_VERSION/c6678/be/
154 # Build c6670 EVM LE
155 pushd src/make
156 make clean
157 make evm_c6670_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
158 popd
159 cp -f src/make/bin/i2crom_0x51_c6670_le.bin ibl_bin_$IBL_VERSION/c6670/le/
160 cp -f src/make/bin/i2cparam_0x51_c6670_le_0x500.out ibl_bin_$IBL_VERSION/c6670/le/
162 # Build c6670 EVM BE
163 pushd src/make
164 make clean
165 make evm_c6670_i2c ENDIAN=big I2C_BUS_ADDR=0x51 
166 popd
167 cp -f src/make/bin/i2crom_0x51_c6670_be.bin ibl_bin_$IBL_VERSION/c6670/be/
168 cp -f src/make/bin/i2cparam_0x51_c6670_be_0x500.out ibl_bin_$IBL_VERSION/c6670/be/
170 # Create Tar archive for binary package
171 tar -czf ibl_bin_$IBL_VERSION.tgz ibl_bin_$IBL_VERSION