Annotation of elwix/build_tools.sh, revision 1.1.2.2
1.1.2.1 misho 1: #!/bin/sh
2: #
3: # ELWIX build script for cross
4: #
5: # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
6: # by Michael Pounov <misho@elwix.org>
7: #
1.1.2.2 ! misho 8: # $Id: build_tools.sh,v 1.1.2.1 2012/02/17 13:41:19 misho Exp $
1.1.2.1 misho 9: #
10:
11: [ -r ./config/rc.elwix ] && . ./config/rc.elwix
12: if [ X"${ELWIX_IS_CONFIGURED}" != X"YES" ]; then
13: echo
14: echo "ELWIX project is not configured !?!"
15: echo
16: exit 1
17: fi
18:
19: if [ ! -d $BSDSRC ]; then
20: echo
21: echo "ELWIX project is not configured - missing BSD sources !?!"
22: echo
23: exit 1
24: fi
25:
26: if [ ! -d $DEST ]; then
27: echo
28: echo "ELWIX project is not configured - missing Dest directory !?!"
29: echo
30: exit 1
31: fi
32:
33: clean_tools()
34: {
35: echo "+++ Clean ELWIX FreeBSD tools ..."
36:
37: rm -rf ${WORLD}/usr/local
38: install -d ${WORLD}/usr/local
39: install -d ${WORLD}/usr/local/bin
40: install -d ${WORLD}/usr/local/include
41: install -d ${WORLD}/usr/local/lib
42: install -d ${WORLD}/usr/local/libdata
43: install -d ${WORLD}/usr/local/sbin
44:
45: }
46:
47: compile_fbsdtools()
48: {
49: echo "+++ Compile ELWIX FreeBSD tools ..."
50:
51: cd $CROSS_FT_ATH
52: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
53: clean DESTDIR=${WORLD}
54: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
55: DESTDIR=${WORLD}
56: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
57: install DESTDIR=${WORLD}
58: cd -
59:
60: cd $CROSS_FT_IPW
61: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
62: clean DESTDIR=${WORLD}
63: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
64: DESTDIR=${WORLD}
65: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
66: install DESTDIR=${WORLD}/usr/local/bin
67: cd -
68:
69: cd $CROSS_FT_IWI
70: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
71: clean DESTDIR=${WORLD}
72: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
73: DESTDIR=${WORLD}
74: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
75: install DESTDIR=${WORLD}/usr/local/bin
76: cd -
77:
78: cd $CROSS_FT_MWL
79: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
80: clean DESTDIR=${WORLD}
81: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
82: DESTDIR=${WORLD}
83: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
84: install DESTDIR=${WORLD}
85: cd -
86:
87: cd $CROSS_FT_NET80211
88: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
89: clean DESTDIR=${WORLD}
90: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
91: DESTDIR=${WORLD}
92: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
93: install DESTDIR=${WORLD}
94: cd -
95:
96: cd $CROSS_FT_VIMAGE
97: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
98: clean DESTDIR=${WORLD}
99: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
100: DESTDIR=${WORLD}
101: env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
102: install DESTDIR=${WORLD}
103: cd -
104:
105: # cd $CROSS_FT_WTAP
106: # env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
107: # clean DESTDIR=${WORLD}
108: # env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
109: # DESTDIR=${WORLD}
110: # env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
111: # install DESTDIR=${WORLD}
112: # cd -
113: }
114:
115: compile_tools()
116: {
117: echo "+++ Compile ELWIX Cross ..."
1.1.2.2 ! misho 118:
1.1.2.1 misho 119: cd $CROSS_AXL
120: ${AXL_CFG}
121: ${CBUILD} clean
122: ${CBUILD}
123: ${CBUILD} install
124: cd -
125:
126: cd $CROSS_AITIO
127: ${AITIO_CFG}
128: ${CBUILD} clean
129: ${CBUILD}
130: ${CBUILD} install
131: cd -
132:
133: cd $CROSS_AITCRC
134: ${AITCRC_CFG}
135: ${CBUILD} clean
136: ${CBUILD}
137: ${CBUILD} install
138: cd -
139:
140: cd $CROSS_AITCFG
141: ${AITCFG_CFG}
142: ${CBUILD} clean
143: ${CBUILD}
144: ${CBUILD} install
145: cd -
146:
147: cd $CROSS_AITSESS
148: ${AITSESS_CFG}
149: ${CBUILD} clean
150: ${CBUILD}
151: ${CBUILD} install
152: cd -
153:
154: cd $CROSS_AITRPC
155: ${AITRPC_CFG}
156: ${CBUILD} clean
157: ${CBUILD}
158: ${CBUILD} install
159: cd -
160:
161: cd $CROSS_AITSCHED
162: ${AITSCHED_CFG}
163: ${CBUILD} clean
164: ${CBUILD}
165: ${CBUILD} install
166: cd -
167:
168: cd $CROSS_AITPELCO
169: ${AITPELCO_CFG}
170: ${CBUILD} clean
171: ${CBUILD}
172: ${CBUILD} install
173: cd -
174:
175: cd $CROSS_AITPWD
176: ${AITPWD_CFG}
177: ${CBUILD} clean
178: ${CBUILD}
179: ${CBUILD} install
180: cd -
181:
182: cd $CROSS_AITSYNC
183: ${AITSYNC_CFG}
184: ${CBUILD} clean
185: ${CBUILD}
186: ${CBUILD} install
187: cd -
188:
189: cd $CROSS_AITCLI
190: ${AITCLI_CFG}
191: ${CBUILD} clean
192: ${CBUILD}
193: ${CBUILD} install
194: cd -
195:
196: cd $CROSS_AITMQTT
197: ${AITMQTT_CFG}
198: ${CBUILD} clean
199: ${CBUILD}
200: ${CBUILD} install
201: cd -
202:
203: cd $CROSS_EMBEDTOOLS
204: ${EMBEDTOOLS_CFG}
205: ${CBUILD} clean
206: ${CBUILD}
207: ${CBUILD} install
208: cd -
209:
210: cd $CROSS_ANSH
211: ${ANSH_CFG}
212: ${CBUILD} clean
213: ${CBUILD}
214: ${CBUILD} install
215: cd -
216:
217: echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${WORLD}/usr/local/elwix.ver
218: }
219:
220: ### main()
221: if ! SnitVer ${WORLD}/usr/local/elwix.ver; then
222: clean_tools
223: compile_fbsdtools
224: compile_tools
225: else
226: echo "Skipped ELWIX tools build ..."
227: fi
228:
229: echo "+++ Complete build ELWIX tools"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>