]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blob - release.sh
Makefile changes to exclude features in C64X devices to save eeprom space
[keystone-rtos/ibl.git] / release.sh
1 #!/bin/sh
2 # Generate the source release tarballs
3 export IBL_VERSION="1_0_0_4"
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/ibl_c6455/i2crom.dat ibl_bin_$IBL_VERSION/c6455/le-be/i2crom_0x50_c6455.dat
51 cp -f src/make/ibl_c6455/i2crom.bin ibl_bin_$IBL_VERSION/c6455/le-be/i2crom_0x50_c6455.bin
52 cp -f src/util/i2cConfig/i2cparam_c6455_le.out ibl_bin_$IBL_VERSION/c6455/le-be/i2cparam_c6455_le_0x500.out
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/util/i2cConfig/i2cparam_c6455_le.out ibl_bin_$IBL_VERSION/c6455/le-be/i2cparam_c6455_le_0x800.out
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/ibl_c6472/i2crom.dat ibl_bin_$IBL_VERSION/c6472/le-be/i2crom_0x50_c6472.dat
70 cp -f src/make/ibl_c6472/i2crom.bin ibl_bin_$IBL_VERSION/c6472/le-be/i2crom_0x50_c6472.bin
71 cp -f src/util/i2cConfig/i2cparam_c6472_le.out ibl_bin_$IBL_VERSION/c6472/le-be/i2cparam_c6472_le_0x500.out
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/util/i2cConfig/i2cparam_c6472_le.out ibl_bin_$IBL_VERSION/c6472/le-be/i2cparam_c6472_le_0x800.out
81 # Build c6474 EVM
82 pushd src/make
83 make clean
84 make evm_c6474 
85 popd
86 # Copy the files to the Binary package
87 cp -f src/make/ibl_c6474/i2crom_0x50_c6474_le.dat ibl_bin_$IBL_VERSION/c6474/le/
88 cp -f src/make/ibl_c6474/i2crom_0x50_c6474_le.bin ibl_bin_$IBL_VERSION/c6474/le/
89 cp -f src/make/ibl_c6474/i2crom_0x50_c6474_be.dat ibl_bin_$IBL_VERSION/c6474/be/
90 cp -f src/make/ibl_c6474/i2crom_0x50_c6474_be.bin ibl_bin_$IBL_VERSION/c6474/be/
91 cp -f src/util/i2cConfig/i2cparam_c6474_le.out   ibl_bin_$IBL_VERSION/c6474/le/
92 cp -f src/util/i2cConfig/i2cparam_c6474_be.out   ibl_bin_$IBL_VERSION/c6474/be/
95 # Build c6474l EVM
96 pushd src/make
97 make clean
98 make evm_c6474l
99 popd
100 # Copy the files to the Binary package
101 cp -f src/make/ibl_c6474/i2crom_0x50_c6474l_le.dat ibl_bin_$IBL_VERSION/c6474l/le/
102 cp -f src/make/ibl_c6474/i2crom_0x50_c6474l_le.bin ibl_bin_$IBL_VERSION/c6474l/le/
103 cp -f src/make/ibl_c6474/i2crom_0x50_c6474l_be.dat ibl_bin_$IBL_VERSION/c6474l/be/
104 cp -f src/make/ibl_c6474/i2crom_0x50_c6474l_be.bin ibl_bin_$IBL_VERSION/c6474l/be/
105 cp -f src/util/i2cConfig/i2cparam_c6474_le.out   ibl_bin_$IBL_VERSION/c6474l/le/i2cparam_c6474l_le.out
106 cp -f src/util/i2cConfig/i2cparam_c6474_be.out   ibl_bin_$IBL_VERSION/c6474l/be/i2cparam_c6474l_be.out
109 # Build c6457 EVM 
110 pushd src/make
111 make clean
112 make evm_c6457 
113 popd
114 cp -f src/make/ibl_c6457/i2crom_0x50_c6457_le.dat ibl_bin_$IBL_VERSION/c6457/le/
115 cp -f src/make/ibl_c6457/i2crom_0x50_c6457_le.bin ibl_bin_$IBL_VERSION/c6457/le/
116 cp -f src/make/ibl_c6457/i2crom_0x50_c6457_be.dat ibl_bin_$IBL_VERSION/c6457/be/
117 cp -f src/make/ibl_c6457/i2crom_0x50_c6457_be.bin ibl_bin_$IBL_VERSION/c6457/be/
118 cp -f src/util/i2cConfig/i2cparam_c6457_le.out   ibl_bin_$IBL_VERSION/c6457/le/
119 cp -f src/util/i2cConfig/i2cparam_c6457_be.out   ibl_bin_$IBL_VERSION/c6457/be/
121 # Build c6678 EVM 
122 pushd src/make
123 make clean
124 make evm_c667x_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
125 popd
126 cp -f src/make/ibl_c661x/i2crom.dat ibl_bin_$IBL_VERSION/c6678/le/i2crom_0x51_c6678_le.dat
127 cp -f src/make/ibl_c661x/i2crom.bin ibl_bin_$IBL_VERSION/c6678/le/i2crom_0x51_c6678_le.bin
128 cp -f src/util/i2cConfig/i2cparam_c661x_le.out ibl_bin_$IBL_VERSION/c6678/le/i2cparam_c6678_le.out
129 cp -f src/make/ibl_c661x/i2crom.dat ibl_bin_$IBL_VERSION/c6670/le/i2crom_0x51_c6670_le.dat
130 cp -f src/make/ibl_c661x/i2crom.bin ibl_bin_$IBL_VERSION/c6670/le/i2crom_0x51_c6670_le.bin
131 cp -f src/util/i2cConfig/i2cparam_c661x_le.out ibl_bin_$IBL_VERSION/c6670/le/i2cparam_c6670_le.out
133 # Create Tar archive for binary package
134 tar -czf ibl_bin_$IBL_VERSION.tgz ibl_bin_$IBL_VERSION