Added a script for release. Update the manifest
[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 # Copy i2cConfig GEL file
34 cp -f src/util/i2cConfig/i2cConfig.gel ibl_bin/
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 # Build C6455 BE
50 pushd src/make
51 make clean
52 make c6455 ENDIAN=big
53 popd
54 # Copy the files to the Binary package
55 cp -f src/make/ibl_c6455/i2crom_be.dat ibl_bin/c6455/be/
56 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6455/be/
57 cp -f src/util/i2cConfig/i2cparam_c6455.out   ibl_bin/c6455/be/
59 # Build C6472 le
60 pushd src/make
61 make clean
62 make c6472 ENDIAN=little
63 popd
64 # Copy the files to the Binary package
65 cp -f src/make/ibl_c6472/i2crom_le.dat ibl_bin/c6472/le/
66 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6472/le/
67 cp -f src/util/i2cConfig/i2cparam_c6472.out   ibl_bin/c6472/le/
70 # Build c6472 be
71 pushd src/make
72 make clean
73 make c6472 ENDIAN=big
74 popd
75 # Copy the files to the Binary package
76 cp -f src/make/ibl_c6472/i2crom_be.dat ibl_bin/c6472/be/
77 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6472/be/
78 cp -f src/util/i2cConfig/i2cparam_c6472.out   ibl_bin/c6472/be/
80 # Build c6474 le
81 pushd src/make
82 make clean
83 make c6474 ENDIAN=little
84 popd
85 # Copy the files to the Binary package
86 cp -f src/make/ibl_c6474/i2crom_le.dat ibl_bin/c6474/le/
87 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6474/le/
88 cp -f src/util/i2cConfig/i2cparam_c6474.out   ibl_bin/c6474/le/
91 # Build c6474 be
92 pushd src/make
93 make clean
94 make c6474 ENDIAN=big
95 popd
96 # Copy the files to the Binary package
97 cp -f src/make/ibl_c6474/i2crom_be.dat ibl_bin/c6474/be/
98 cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6474/be/
99 cp -f src/util/i2cConfig/i2cparam_c6474.out   ibl_bin/c6474/be/
101 # Build c6474l le
102 #pushd src/make
103 #make clean
104 #make c6474l ENDIAN=little
105 #popd
106 # Copy the files to the Binary package
107 #cp -f src/make/ibl_c6474l/i2crom_le.dat ibl_bin/c6474l/le/
108 #cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6474l/le/
109 #cp -f src/util/i2cConfig/i2cparam_c6474l.out   ibl_bin/c6474l/le/
112 # Build c6474l be
113 #pushd src/make
114 #make clean
115 #make c6474l ENDIAN=big
116 #popd
117 # Copy the files to the Binary package
118 #cp -f src/make/ibl_c6474l/i2crom_be.dat ibl_bin/c6474l/be/
119 #cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6474l/be/
120 #cp -f src/util/i2cConfig/i2cparam_c6474l.out   ibl_bin/c6474l/be/
123 # Build c6457 le
124 #pushd src/make
125 #make clean
126 #make c6457 ENDIAN=little
127 #popd
128 # Copy the files to the Binary package
129 #cp -f src/make/ibl_c6457/i2crom_le.dat ibl_bin/c6457/le/
130 #cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6457/le/
131 #cp -f src/util/i2cConfig/i2cparam_c6457.out   ibl_bin/c6457/le/
134 # Build c6457 be
135 #pushd src/make
136 #make clean
137 #make c6457 ENDIAN=big
138 #popd
139 # Copy the files to the Binary package
140 #cp -f src/make/ibl_c6457/i2crom_be.dat ibl_bin/c6457/be/
141 #cp -f src/util/i2cWrite/i2cWrite.out   ibl_bin/c6457/be/
142 #cp -f src/util/i2cConfig/i2cparam_c6457.out   ibl_bin/c6457/be/
144 # Create Tar archive for binary package
145 tar -cvzf ibl_bin.tar ibl_bin