blob: 53ca9b518aede547457118c36d464e35acd9bffc (
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
33
34
35
36
37
38
|
#!/bin/sh
#
# wrapper to setup cross-compilation of firmware
#
for v in CC CPP CXX AS AR NM RANLIB STRIP F77 CFLAGS CXXFLAGS CPPFLAGS LDFLAGS CCAS CCASFLAGS USB_LIBS USB_CFLAGS
do
unset $v
done
args=
for t in "$@"
do
case "$t" in
(CC=*) ;;
(CPP=*) ;;
(CXX=*) ;;
(AR=*) ;;
(AS=*) ;;
(NM=*) ;;
(RANLIB=*) ;;
(STRIP=*) ;;
(F77=*) ;;
(FFLAGS=*) ;;
(CFLAGS=*) ;;
(CXXFLAGS=*) ;;
(CPPFLAGS=*) ;;
(LDFLAGS=*) ;;
(CCAS=*) ;;
(CCASFLAGS=*) ;;
(USB_CFLAGS=*) ;;
(USB_LIBS=*) ;;
(*) args="$args $t" ;;
esac
done
`dirname $0`/configure CFLAGS='-O2' $args --host=mb
|