6670: Don't init DDR PLL twice
[keystone-rtos/ibl.git] / release.sh
1 #!/bin/sh
2 # Generate the source release tarballs
3 export IBL_VERSION="1_0_0_11"
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/
56 cp -f src/make/bin/i2cparam_0x50_c6455_le_0x500.out ibl_bin_$IBL_VERSION/c6455/le/
58 # Build C6455 EVM BE
59 pushd src/make
60 make clean
61 make evm_c6455 ENDIAN=big
62 popd
63 # Copy the files to the Binary package
64 cp -f src/make/bin/i2crom_0x50_c6455_be.dat ibl_bin_$IBL_VERSION/c6455/be/
65 cp -f src/make/bin/i2crom_0x50_c6455_be.bin ibl_bin_$IBL_VERSION/c6455/be/
66 cp -f src/make/bin/i2cparam_0x50_c6455_be_0x500.out ibl_bin_$IBL_VERSION/c6455/be/
69 # Build C6472 EVM LE
70 pushd src/make
71 make clean
72 make evm_c6472 ENDIAN=little
73 popd
74 # Copy the files to the Binary package
75 cp -f src/make/bin/i2crom_0x50_c6472_le.dat ibl_bin_$IBL_VERSION/c6472/le/
76 cp -f src/make/bin/i2crom_0x50_c6472_le.bin ibl_bin_$IBL_VERSION/c6472/le/
77 cp -f src/make/bin/i2cparam_0x50_c6472_le_0x500.out ibl_bin_$IBL_VERSION/c6472/le/
79 # Build C6472 EVM BE
80 pushd src/make
81 make clean
82 make evm_c6472 ENDIAN=big
83 popd
84 # Copy the files to the Binary package
85 cp -f src/make/bin/i2crom_0x50_c6472_be.dat ibl_bin_$IBL_VERSION/c6472/be/
86 cp -f src/make/bin/i2crom_0x50_c6472_be.bin ibl_bin_$IBL_VERSION/c6472/be/
87 cp -f src/make/bin/i2cparam_0x50_c6472_be_0x500.out ibl_bin_$IBL_VERSION/c6472/be/
89 # Build c6474 EVM little endian
90 pushd src/make
91 make clean
92 make evm_c6474 ENDIAN=little
93 popd
94 # Copy the files to the Binary package
95 cp -f src/make/bin/i2crom_0x50_c6474_le.dat ibl_bin_$IBL_VERSION/c6474/le/
96 cp -f src/make/bin/i2crom_0x50_c6474_le.bin ibl_bin_$IBL_VERSION/c6474/le/
97 cp -f src/make/bin/i2cparam_0x50_c6474_le_0x200.out ibl_bin_$IBL_VERSION/c6474/le/
100 # Build c6474 EVM Big endian
101 pushd src/make
102 make clean
103 make evm_c6474 ENDIAN=big
104 popd
105 # Copy the files to the Binary package
106 cp -f src/make/bin/i2crom_0x50_c6474_be.dat ibl_bin_$IBL_VERSION/c6474/be/
107 cp -f src/make/bin/i2crom_0x50_c6474_be.bin ibl_bin_$IBL_VERSION/c6474/be/
108 cp -f src/make/bin/i2cparam_0x50_c6474_be_0x200.out ibl_bin_$IBL_VERSION/c6474/be/
110 # Build c6474l EVM little Endian
111 pushd src/make
112 make clean
113 make evm_c6474l ENDIAN=little
114 popd
115 # Copy the files to the Binary package
116 cp -f src/make/bin/i2crom_0x50_c6474l_le.dat ibl_bin_$IBL_VERSION/c6474l/le/
117 cp -f src/make/bin/i2crom_0x50_c6474l_le.bin ibl_bin_$IBL_VERSION/c6474l/le/
118 cp -f src/make/bin/i2cparam_0x50_c6474l_le_0x200.out ibl_bin_$IBL_VERSION/c6474l/le/
120 # Build c6474l EVM Big Endian
121 pushd src/make
122 make clean
123 make evm_c6474l ENDIAN=big
124 popd
125 # Copy the files to the Binary package
126 cp -f src/make/bin/i2crom_0x50_c6474l_be.dat ibl_bin_$IBL_VERSION/c6474l/be/
127 cp -f src/make/bin/i2crom_0x50_c6474l_be.bin ibl_bin_$IBL_VERSION/c6474l/be/
128 cp -f src/make/bin/i2cparam_0x50_c6474l_be_0x200.out ibl_bin_$IBL_VERSION/c6474l/be/
130 # Build c6457 EVM little
131 pushd src/make
132 make clean
133 make evm_c6457 ENDIAN=little
134 popd
135 cp -f src/make/bin/i2crom_0x50_c6457_le.dat ibl_bin_$IBL_VERSION/c6457/le/
136 cp -f src/make/bin/i2crom_0x50_c6457_le.bin ibl_bin_$IBL_VERSION/c6457/le/
137 cp -f src/make/bin/i2cparam_0x50_c6457_le_0x200.out ibl_bin_$IBL_VERSION/c6457/le/
139 # Build c6457 EVM big
140 pushd src/make
141 make clean
142 make evm_c6457 ENDIAN=big
143 popd
144 cp -f src/make/bin/i2crom_0x50_c6457_be.dat ibl_bin_$IBL_VERSION/c6457/be/
145 cp -f src/make/bin/i2crom_0x50_c6457_be.bin ibl_bin_$IBL_VERSION/c6457/be/
146 cp -f src/make/bin/i2cparam_0x50_c6457_be_0x200.out ibl_bin_$IBL_VERSION/c6457/be/
148 # Build c6678 EVM LE
149 pushd src/make
150 make clean
151 make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
152 popd
153 cp -f src/make/bin/i2crom_0x51_c6678_le.dat ibl_bin_$IBL_VERSION/c6678/le/
154 cp -f src/make/bin/i2crom_0x51_c6678_le.bin ibl_bin_$IBL_VERSION/c6678/le/
155 cp -f src/make/bin/i2cparam_0x51_c6678_le_0x500.out ibl_bin_$IBL_VERSION/c6678/le/
157 # Build c6678 EVM BE
158 pushd src/make
159 make clean
160 make evm_c6678_i2c ENDIAN=big I2C_BUS_ADDR=0x51 
161 popd
162 cp -f src/make/bin/i2crom_0x51_c6678_be.dat ibl_bin_$IBL_VERSION/c6678/be/
163 cp -f src/make/bin/i2crom_0x51_c6678_be.bin ibl_bin_$IBL_VERSION/c6678/be/
164 cp -f src/make/bin/i2cparam_0x51_c6678_be_0x500.out ibl_bin_$IBL_VERSION/c6678/be/
166 # Build c6670 EVM LE
167 pushd src/make
168 make clean
169 make evm_c6670_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
170 popd
171 cp -f src/make/bin/i2crom_0x51_c6670_le.dat ibl_bin_$IBL_VERSION/c6670/le/
172 cp -f src/make/bin/i2crom_0x51_c6670_le.bin ibl_bin_$IBL_VERSION/c6670/le/
173 cp -f src/make/bin/i2cparam_0x51_c6670_le_0x500.out ibl_bin_$IBL_VERSION/c6670/le/
175 # Build c6670 EVM BE
176 pushd src/make
177 make clean
178 make evm_c6670_i2c ENDIAN=big I2C_BUS_ADDR=0x51 
179 popd
180 cp -f src/make/bin/i2crom_0x51_c6670_be.dat ibl_bin_$IBL_VERSION/c6670/be/
181 cp -f src/make/bin/i2crom_0x51_c6670_be.bin ibl_bin_$IBL_VERSION/c6670/be/
182 cp -f src/make/bin/i2cparam_0x51_c6670_be_0x500.out ibl_bin_$IBL_VERSION/c6670/be/
184 # Create Tar archive for binary package
185 tar -czf ibl_bin_$IBL_VERSION.tgz ibl_bin_$IBL_VERSION