blob: d220e18cc9fc187119775549787cb29856e8b49d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
#
# wrapper to setup cross-compilation of firmware
#
for v in CC CPP CXX AR NM RANLIB STRIP F77 CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
do
unset $v
done
args=
for t in "$@"
do
case "$t" in
(CC=*) ;;
(CPP=*) ;;
(CXX=*) ;;
(AR=*) ;;
(NM=*) ;;
(RANLIB=*) ;;
(STRIP=*) ;;
(F77=*) ;;
(CFLAGS=*) ;;
(CXXFLAGS=*) ;;
(CPPFLAGS=*) ;;
(LDFLAGS=*) ;;
(*) args="$args $t" ;;
esac
done
`dirname $0`/configure CFLAGS='-O2' $args --host=mb
|