diff options
author | Ned Ludd <solar@gentoo.org> | 2009-11-22 22:50:56 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-11-22 22:52:11 -0500 |
commit | c3287ef6efa341c64449fee0e4bd2845f0860cb8 (patch) | |
tree | f207162342eb5e45930fd1cc1994eb37ea09ed90 /wrappers/emerge-wrapper | |
parent | emerge-wrapper: add GENTOO_MIRRORS automatically (diff) | |
download | crossdev-c3287ef6efa341c64449fee0e4bd2845f0860cb8.tar.gz crossdev-c3287ef6efa341c64449fee0e4bd2845f0860cb8.tar.bz2 crossdev-c3287ef6efa341c64449fee0e4bd2845f0860cb8.zip |
emerge-wrapper: add superh support
Signed-off-by: Ned Ludd <solar@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'wrappers/emerge-wrapper')
-rwxr-xr-x | wrappers/emerge-wrapper | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wrappers/emerge-wrapper b/wrappers/emerge-wrapper index ed166f5..cb04414 100755 --- a/wrappers/emerge-wrapper +++ b/wrappers/emerge-wrapper @@ -31,6 +31,10 @@ cross_wrap_etc() { E_MACHINE=EM_MIPS ARCH=mips fi + if [[ ${chost:0:2} == "sh" ]]; then + E_MACHINE=EM_SH + ARCH=sh + fi [[ ${chost/gnu/} != $chost ]] && sed -i -e s/__LIBC__/glibc/g ${conf} [[ ${chost/uclibc/} != $chost ]] && sed -i -e s/__LIBC__/glibc/g ${conf} [[ $E_MACHINE != "" ]] && sed -i -e s/'#E_MACHINE=__E_MACHINE__'/E_MACHINE=${E_MACHINE}/g ${conf} |