215f8401d367cc3820b3f9f188936ec554d8364c
[keystone-rtos/ibl.git] / release.sh
1 #!/bin/sh
2 # Generate the source release tarballs
3 export IBL_VERSION="1_0_0_1"
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 # Copy i2cConfig GEL file
36 cp -f src/util/i2cConfig/i2cConfig.gel ibl_bin_$IBL_VERSION/i2cConfig.gel
38 # Set Build environment
39 source src/make/setupenvLnx.sh
41 # Build C6455 EVM
42 pushd src/make
43 make clean
44 make evm_c6455 I2C_MAP_ADDR=0x500
45 popd
46 # Copy the files to the Binary package
47 cp -f src/make/ibl_c6455/i2crom.dat ibl_bin_$IBL_VERSION/c6455/le-be/i2crom_0x50_c6455.dat
48 cp -f src/util/i2cWrite/i2cWrite_le.out ibl_bin_$IBL_VERSION/c6455/le-be/i2cWrite_c6455_le.out
49 cp -f src/util/i2cConfig/i2cparam_c6455_le.out ibl_bin_$IBL_VERSION/c6455/le-be/i2cparam_c6455_le_0x500.out
51 # Build C6455 EVM BE
52 pushd src/make
53 make clean
54 make evm_c6455 I2C_MAP_ADDR=0x800
55 popd
56 # Copy the files to the Binary package
57 cp -f src/util/i2cConfig/i2cparam_c6455_le.out ibl_bin_$IBL_VERSION/c6455/le-be/i2cparam_c6455_le_0x800.out
60 # Build C6472 le
61 pushd src/make
62 make clean
63 make evm_c6472 I2C_MAP_ADDR=0x500
64 popd
65 # Copy the files to the Binary package
66 cp -f src/make/ibl_c6472/i2crom.dat ibl_bin_$IBL_VERSION/c6472/le-be/i2crom_0x50_c6472.dat
67 cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6472/le-be/i2Write_c6472_le.out
68 cp -f src/util/i2cConfig/i2cparam_c6472_le.out ibl_bin_$IBL_VERSION/c6472/le-be/i2cparam_c6472_le_0x500.out
70 # Build C6472 EVM BE
71 pushd src/make
72 make clean
73 make evm_c6472 I2C_MAP_ADDR=0x800
74 popd
75 # Copy the files to the Binary package
76 cp -f src/util/i2cConfig/i2cparam_c6472_le.out ibl_bin_$IBL_VERSION/c6472/le-be/i2cparam_c6472_le_0x800.out
78 # Build c6474 EVM
79 pushd src/make
80 make clean
81 make evm_c6474 
82 popd
83 # Copy the files to the Binary package
84 cp -f src/make/ibl_c6474/i2crom_0x50_c6474_le.dat ibl_bin_$IBL_VERSION/c6474/le/
85 cp -f src/make/ibl_c6474/i2crom_0x50_c6474_be.dat ibl_bin_$IBL_VERSION/c6474/be/
86 cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6474/le/i2cWrite_c6474_le.out
87 cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6474/be/i2cWrite_c6474_be.out
88 cp -f src/util/i2cConfig/i2cparam_c6474_le.out   ibl_bin_$IBL_VERSION/c6474/le/
89 cp -f src/util/i2cConfig/i2cparam_c6474_be.out   ibl_bin_$IBL_VERSION/c6474/be/
92 # Build c6474l EVM
93 pushd src/make
94 make clean
95 make evm_c6474l
96 popd
97 # Copy the files to the Binary package
98 cp -f src/make/ibl_c6474/i2crom_0x50_c6474l_le.dat ibl_bin_$IBL_VERSION/c6474l/le/
99 cp -f src/make/ibl_c6474/i2crom_0x50_c6474l_be.dat ibl_bin_$IBL_VERSION/c6474l/be/
100 cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6474l/le/i2cWrite_c6474l_le.out
101 cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6474l/be/i2cWrite_c6474l_be.out
102 cp -f src/util/i2cConfig/i2cparam_c6474_le.out   ibl_bin_$IBL_VERSION/c6474l/le/i2cparam_c6474l_le.out
103 cp -f src/util/i2cConfig/i2cparam_c6474_be.out   ibl_bin_$IBL_VERSION/c6474l/be/i2cparam_c6474l_be.out
106 # Build c6457 EVM 
107 pushd src/make
108 make clean
109 make evm_c6457 
110 popd
111 cp -f src/make/ibl_c6457/i2crom_0x50_c6457_le.dat ibl_bin_$IBL_VERSION/c6457/le/
112 cp -f src/make/ibl_c6457/i2crom_0x50_c6457_be.dat ibl_bin_$IBL_VERSION/c6457/be/
113 cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6457/le/i2cWrite_c6457_le.out
114 cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6457/be/i2cWrite_c6457_be.out
115 cp -f src/util/i2cConfig/i2cparam_c6457_le.out   ibl_bin_$IBL_VERSION/c6457/le/
116 cp -f src/util/i2cConfig/i2cparam_c6457_be.out   ibl_bin_$IBL_VERSION/c6457/be/
118 # Build c6678 EVM 
119 pushd src/make
120 make clean
121 make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
122 popd
123 cp -f src/make/ibl_c661x/i2crom.dat ibl_bin_$IBL_VERSION/c6678/le/i2crom_0x51_c6678_le.dat
124 cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6678/le/i2cWrite_c6678_le.out
125 cp -f src/util/i2cConfig/i2cparam_c661x_le.out ibl_bin_$IBL_VERSION/c6678/le/i2cparam_c6678_le.out
127 # Create Tar archive for binary package
128 tar -czf ibl_bin_$IBL_VERSION.tgz ibl_bin_$IBL_VERSION