diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-07-09 14:27:59 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-07-09 15:11:46 -0400 |
commit | 5ca445cb7b0e1ed549ff1db454c6a0460e2e0833 (patch) | |
tree | 8fb7ee88eb4b06f2a6bed243da377a8793c44e81 /extra/scripts | |
parent | 9dd284eb5d042d5cb4fdfca892f5374bdeab4d11 (diff) |
MAKEALL: expand cross-compiler arch search
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'extra/scripts')
-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 |