diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2009-07-09 14:27:59 -0400 |
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-07-09 12:36:15 -0700 |
| commit | 7f3e726d0ca52b9f3866caabbec8fd10b58154a6 (patch) | |
| tree | d28787e06357c9f320594734e5a51b2fd498b8f2 | |
| parent | ca1e6ddc32917d40fd3c1b7565870541002c722b (diff) | |
| download | uClibc-alpine-7f3e726d0ca52b9f3866caabbec8fd10b58154a6.tar.bz2 uClibc-alpine-7f3e726d0ca52b9f3866caabbec8fd10b58154a6.tar.xz | |
MAKEALL: expand cross-compiler arch search
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| -rwxr-xr-x | extra/scripts/MAKEALL | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/extra/scripts/MAKEALL b/extra/scripts/MAKEALL index 640907c94..dc9f754a0 100755 --- a/extra/scripts/MAKEALL +++ b/extra/scripts/MAKEALL @@ -30,18 +30,27 @@ setconfig() echo " ## setconfig ${opt} $*" } +get_arches() +{ + case $1 in + sh) echo sh4 sh2 sh3 sh1 sh;; + *) echo $1;; + esac +} + find_compiler() { local t a v o l - a=$1 - for v in unknown pc gentoo "" ; do - for o in linux uclinux "" ; do - for l in uclibc "" ; do - t="${a}${v:+-${v}}${o:+-${o}}${l:+-${l}}" - if ${t}-gcc --help > /dev/null 2>&1 ; then - echo ${t}- - return 0 - fi + for a in $(get_arches $1) ; do + for v in unknown pc gentoo "" ; do + for o in linux uclinux "" ; do + for l in uclibc "" ; do + t="${a}${v:+-${v}}${o:+-${o}}${l:+-${l}}" + if ${t}-gcc --help > /dev/null 2>&1 ; then + echo ${t}- + return 0 + fi + done done done done |
