c64x: Add Multi Boot Support
[keystone-rtos/ibl.git] / release.sh
1 #!/bin/sh
2 # Generate the source release tarballs
3 export IBL_VERSION="1_0_0_8"
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/le-be
17 mkdir ibl_bin_$IBL_VERSION/c6472/
18 mkdir ibl_bin_$IBL_VERSION/c6472/le-be
20 mkdir ibl_bin_$IBL_VERSION/c6474/
21 mkdir ibl_bin_$IBL_VERSION/c6474/be
22 mkdir ibl_bin_$IBL_VERSION/c6474/le
24 mkdir ibl_bin_$IBL_VERSION/c6474l/
25 mkdir ibl_bin_$IBL_VERSION/c6474l/be
26 mkdir ibl_bin_$IBL_VERSION/c6474l/le
28 mkdir ibl_bin_$IBL_VERSION/c6457/
29 mkdir ibl_bin_$IBL_VERSION/c6457/be
30 mkdir ibl_bin_$IBL_VERSION/c6457/le
32 mkdir ibl_bin_$IBL_VERSION/c6678/
33 mkdir ibl_bin_$IBL_VERSION/c6678/le
35 mkdir ibl_bin_$IBL_VERSION/c6670/
36 mkdir ibl_bin_$IBL_VERSION/c6670/le
38 # Copy i2cConfig GEL file
39 cp -f src/util/i2cConfig/i2cConfig.gel ibl_bin_$IBL_VERSION/i2cConfig.gel
41 # Set Build environment
42 source src/make/setupenvLnx.sh
44 # Build C6455 EVM
45 pushd src/make
46 make clean
47 make evm_c6455 I2C_MAP_ADDR=0x500
48 popd
49 # Copy the files to the Binary package
50 cp -f src/make/bin/i2crom_0x50_c6455_le-be.dat ibl_bin_$IBL_VERSION/c6455/le-be/
51 cp -f src/make/bin/i2crom_0x50_c6455_le-be.bin ibl_bin_$IBL_VERSION/c6455/le-be/
52 cp -f src/make/bin/i2cparam_0x50_c6455_le_0x500.out ibl_bin_$IBL_VERSION/c6455/le-be/
54 # Build C6455 EVM BE
55 pushd src/make
56 make clean
57 make evm_c6455 I2C_MAP_ADDR=0x800
58 popd
59 # Copy the files to the Binary package
60 cp -f src/make/bin/i2cparam_0x50_c6455_be_0x800.out ibl_bin_$IBL_VERSION/c6455/le-be/
63 # Build C6472 le
64 pushd src/make
65 make clean
66 make evm_c6472 I2C_MAP_ADDR=0x500
67 popd
68 # Copy the files to the Binary package
69 cp -f src/make/bin/i2crom_0x50_c6472_le-be.dat ibl_bin_$IBL_VERSION/c6472/le-be/
70 cp -f src/make/bin/i2crom_0x50_c6472_le-be.bin ibl_bin_$IBL_VERSION/c6472/le-be/
71 cp -f src/make/bin/i2cparam_0x50_c6472_le_0x500.out ibl_bin_$IBL_VERSION/c6472/le-be/
73 # Build C6472 EVM BE
74 pushd src/make
75 make clean
76 make evm_c6472 I2C_MAP_ADDR=0x800
77 popd
78 # Copy the files to the Binary package
79 cp -f src/make/bin/i2cparam_0x50_c6472_be_0x800.out ibl_bin_$IBL_VERSION/c6472/le-be/
81 # Build c6474 EVM little endian
82 pushd src/make
83 make clean
84 make evm_c6474 ENDIAN=little
85 popd
86 # Copy the files to the Binary package
87 cp -f src/make/bin/i2crom_0x50_c6474_le.dat ibl_bin_$IBL_VERSION/c6474/le/
88 cp -f src/make/bin/i2crom_0x50_c6474_le.bin ibl_bin_$IBL_VERSION/c6474/le/
89 cp -f src/make/bin/i2cparam_0x50_c6474_le_0x200.out ibl_bin_$IBL_VERSION/c6474/le/
92 # Build c6474 EVM Big endian
93 pushd src/make
94 make clean
95 make evm_c6474 ENDIAN=big
96 popd
97 # Copy the files to the Binary package
98 cp -f src/make/bin/i2crom_0x50_c6474_be.dat ibl_bin_$IBL_VERSION/c6474/be/
99 cp -f src/make/bin/i2crom_0x50_c6474_be.bin ibl_bin_$IBL_VERSION/c6474/be/
100 cp -f src/make/bin/i2cparam_0x50_c6474_be_0x200.out ibl_bin_$IBL_VERSION/c6474/be/
102 # Build c6474l EVM little Endian
103 pushd src/make
104 make clean
105 make evm_c6474l ENDIAN=little
106 popd
107 # Copy the files to the Binary package
108 cp -f src/make/bin/i2crom_0x50_c6474l_le.dat ibl_bin_$IBL_VERSION/c6474l/le/
109 cp -f src/make/bin/i2crom_0x50_c6474l_le.bin ibl_bin_$IBL_VERSION/c6474l/le/
110 cp -f src/make/bin/i2cparam_0x50_c6474l_le_0x200.out ibl_bin_$IBL_VERSION/c6474l/le/
112 # Build c6474l EVM Big Endian
113 pushd src/make
114 make clean
115 make evm_c6474l ENDIAN=big
116 popd
117 # Copy the files to the Binary package
118 cp -f src/make/bin/i2crom_0x50_c6474l_be.dat ibl_bin_$IBL_VERSION/c6474l/be/
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.dat ibl_bin_$IBL_VERSION/c6457/le/
128 cp -f src/make/bin/i2crom_0x50_c6457_le.bin ibl_bin_$IBL_VERSION/c6457/le/
129 cp -f src/make/bin/i2cparam_0x50_c6457_le_0x200.out ibl_bin_$IBL_VERSION/c6457/le/
131 # Build c6457 EVM big
132 pushd src/make
133 make clean
134 make evm_c6457 ENDIAN=big
135 popd
136 cp -f src/make/bin/i2crom_0x50_c6457_be.dat ibl_bin_$IBL_VERSION/c6457/be/
137 cp -f src/make/bin/i2crom_0x50_c6457_be.bin ibl_bin_$IBL_VERSION/c6457/be/
138 cp -f src/make/bin/i2cparam_0x50_c6457_be_0x200.out ibl_bin_$IBL_VERSION/c6457/be/
140 # Build c6678 EVM 
141 pushd src/make
142 make clean
143 make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
144 popd
145 cp -f src/make/bin/i2crom_0x51_c6678_le.dat ibl_bin_$IBL_VERSION/c6678/le/
146 cp -f src/make/bin/i2crom_0x51_c6678_le.bin ibl_bin_$IBL_VERSION/c6678/le/
147 cp -f src/make/bin/i2cparam_0x51_c6678_le_0x500.out ibl_bin_$IBL_VERSION/c6678/le/
149 # Build c6670 EVM 
150 pushd src/make
151 make clean
152 make evm_c6670_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
153 popd
154 cp -f src/make/bin/i2crom_0x51_c6670_le.dat ibl_bin_$IBL_VERSION/c6670/le/
155 cp -f src/make/bin/i2crom_0x51_c6670_le.bin ibl_bin_$IBL_VERSION/c6670/le/
156 cp -f src/make/bin/i2cparam_0x51_c6670_le_0x500.out ibl_bin_$IBL_VERSION/c6670/le/
158 # Create Tar archive for binary package
159 tar -czf ibl_bin_$IBL_VERSION.tgz ibl_bin_$IBL_VERSION