ptx: scripts/settoolchain.sh typo?

Dan Kegel dank@kegel.com
Tue Feb 3 04:07:00 GMT 2004


Good catch, thanks.
- Dan

David Wuertele wrote:
> This one took me a while to track down...
> I've been setting TARGET=mipsel-unknown-linux-gnu, but settoolchain
> wasn't listening.  In settoolchain.sh, it says:
> 
>   case $TARGET in
>    ... snippage ...
> 
>        *mipsle*)      PTXARCH=MIPS ; PTXSUBARCH=MIPS_ARCH_LE ;;
>        *mips*)        PTXARCH=MIPS ; PTXSUBARCH=MIPS_ARCH_BE ;;
> 
>    ... snippage
>   esac
> 
> Note how this doesn't match mipsel, but it does match mips.  Ouch!
> When I changed "*mipsle*" to read "*mipsel*", the settoolchain appears
> to work fine.
> 
> I still haven't got ptx.sh to complete, because for some reason the
> PTXCONF_TARGET_CONFIG_FILE="powerpc-405.dat" line isn't getting set
> right.  Still slugging away at that one...
> 
> Dave
> --- ptxdist-testing-20031113/scripts/settoolchain.sh~   2004-02-02
> 11:16:12.000000000 -0800
> +++ ptxdist-testing-20031113/scripts/settoolchain.sh    2004-02-02
> 11:39:52.000000000 -0800
> @@ -51,7 +51,7 @@
>    *powerpc-7450-*) PTXARCH=PPC; PTXSUBARCH=OPT_PPC7450;;
>    *powerpc*)     PTXARCH=PPC ; PTXSUBARCH=OPT_PPC;;
>    *sparc*)       PTXARCH=SPARC ;;
> -  *mipsle*)      PTXARCH=MIPS ; PTXSUBARCH=MIPS_ARCH_LE ;;
> +  *mipsel*)      PTXARCH=MIPS ; PTXSUBARCH=MIPS_ARCH_LE ;;
>    *mips*)        PTXARCH=MIPS ; PTXSUBARCH=MIPS_ARCH_BE ;;
>    *cris*)        PTXARCH=CRIS ;;
>    *parisc*)      PTXARCH=PARISC ;;
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> 
> 
> 
> 


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list