92134cfa3eed7562d810098fcd2c07618e07d1a8
[keystone-rtos/ibl.git] / release.sh
1 #!/bin/sh
2 # Generate the source release tarballs
3 cd ../
4 if [ -f ibl_src.tar ]; then rm ibl_src.tar; fi
6 tar -cvf ibl_src.tar ibl/src ibl/doc
8 cd ibl
9 # Create directories for binary builds
10 if [ -d ibl_bin ]; then rm -r ibl_bin; fi
12 mkdir ibl_bin
13 mkdir ibl_bin/c6455/
14 mkdir ibl_bin/c6455/be
15 mkdir ibl_bin/c6455/le
17 mkdir ibl_bin/c6472/
18 mkdir ibl_bin/c6472/be
19 mkdir ibl_bin/c6472/le
21 mkdir ibl_bin/c6474/
22 mkdir ibl_bin/c6474/be
23 mkdir ibl_bin/c6474/le
25 #mkdir ibl_bin/c6474l/
26 #mkdir ibl_bin/c6474l/be
27 #mkdir ibl_bin/c6474l/le
29 #mkdir ibl_bin/c6457/
30 #mkdir ibl_bin/c6457/be
31 #mkdir ibl_bin/c6457/le
33 # Overwrite Linux environment file
34 cp -f setupenvLnx.sh src/make/setupenvLnx.sh
36 # Build C6455 LE
37 pushd src/make
38 # Set Build environment
39 source setupenvLnx.sh
40 make clean
41 make c6455 ENDIAN=little
42 popd
43 # Copy the files to the Binary package
44 cp -f src/make/ibl_c6455/i2crom_le.dat ibl_bin/c6455/le/
45 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6455/le/
46 cp -f src/util/i2cConfig/i2cparam_c6455.out   ibl_bin/c6455/le/
49 # Copy i2cConfig GEL file
50 cp -f src/util/i2cConfig/i2cConfig.gel ibl_bin/i2cConfig.gel
53 # Build C6455 BE
54 pushd src/make
55 make clean
56 make c6455 ENDIAN=big
57 popd
58 # Copy the files to the Binary package
59 cp -f src/make/ibl_c6455/i2crom_be.dat ibl_bin/c6455/be/
60 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6455/be/
61 cp -f src/util/i2cConfig/i2cparam_c6455.out   ibl_bin/c6455/be/
63 # Build C6472 le
64 pushd src/make
65 make clean
66 make c6472 ENDIAN=little
67 popd
68 # Copy the files to the Binary package
69 cp -f src/make/ibl_c6472/i2crom_le.dat ibl_bin/c6472/le/
70 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6472/le/
71 cp -f src/util/i2cConfig/i2cparam_c6472.out   ibl_bin/c6472/le/
74 # Build c6472 be
75 pushd src/make
76 make clean
77 make c6472 ENDIAN=big
78 popd
79 # Copy the files to the Binary package
80 cp -f src/make/ibl_c6472/i2crom_be.dat ibl_bin/c6472/be/
81 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6472/be/
82 cp -f src/util/i2cConfig/i2cparam_c6472.out   ibl_bin/c6472/be/
84 # Build c6474 le
85 pushd src/make
86 make clean
87 make c6474 ENDIAN=little
88 popd
89 # Copy the files to the Binary package
90 cp -f src/make/ibl_c6474/i2crom_le.dat ibl_bin/c6474/le/
91 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6474/le/
92 cp -f src/util/i2cConfig/i2cparam_c6474.out   ibl_bin/c6474/le/
95 # Build c6474 be
96 pushd src/make
97 make clean
98 make c6474 ENDIAN=big
99 popd
100 # Copy the files to the Binary package
101 cp -f src/make/ibl_c6474/i2crom_be.dat ibl_bin/c6474/be/
102 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6474/be/
103 cp -f src/util/i2cConfig/i2cparam_c6474.out   ibl_bin/c6474/be/
105 # Build c6474l le
106 #pushd src/make
107 #make clean
108 #make c6474l ENDIAN=little
109 #popd
110 # Copy the files to the Binary package
111 #cp -f src/make/ibl_c6474l/i2crom_le.dat ibl_bin/c6474l/le/
112 #cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6474l/le/
113 #cp -f src/util/i2cConfig/i2cparam_c6474l.out   ibl_bin/c6474l/le/
116 # Build c6474l be
117 #pushd src/make
118 #make clean
119 #make c6474l ENDIAN=big
120 #popd
121 # Copy the files to the Binary package
122 #cp -f src/make/ibl_c6474l/i2crom_be.dat ibl_bin/c6474l/be/
123 #cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6474l/be/
124 #cp -f src/util/i2cConfig/i2cparam_c6474l.out   ibl_bin/c6474l/be/
127 # Build c6457 le
128 #pushd src/make
129 #make clean
130 #make c6457 ENDIAN=little
131 #popd
132 # Copy the files to the Binary package
133 #cp -f src/make/ibl_c6457/i2crom_le.dat ibl_bin/c6457/le/
134 #cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6457/le/
135 #cp -f src/util/i2cConfig/i2cparam_c6457.out   ibl_bin/c6457/le/
138 # Build c6457 be
139 #pushd src/make
140 #make clean
141 #make c6457 ENDIAN=big
142 #popd
143 # Copy the files to the Binary package
144 #cp -f src/make/ibl_c6457/i2crom_be.dat ibl_bin/c6457/be/
145 #cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6457/be/
146 #cp -f src/util/i2cConfig/i2cparam_c6457.out   ibl_bin/c6457/be/
148 # Create Tar archive for binary package
149 tar -cvzf ibl_bin.tar ibl_bin