| To: | linux-mips@oss.sgi.com, linux-mips@fnet.fr |
|---|---|
| Subject: | bi-endian toolchain switches |
| From: | Jim Freeman <jfree@sovereign.org> |
| Date: | Wed, 14 Feb 2001 14:20:24 -0700 |
| Sender: | owner-linux-mips@oss.sgi.com |
| User-agent: | Mutt/1.3.12i |
For bi-endian cross-compiler toolchains, something akin to the following
patch can be helpful for setting endianness switches according to
CONFIG_CPU_LITTLE_ENDIAN :
--- linux/arch/mips/Makefile 2001/02/14 21:04:31 1.1
+++ linux/arch/mips/Makefile 2001/02/14 21:07:00
@@ -18,9 +18,13 @@
ifdef CONFIG_CPU_LITTLE_ENDIAN
tool-prefix = mipsel-linux-
output-format = elf32-littlemips
+export LD = $(CROSS_COMPILE)ld -EL
+export CC = $(CROSS_COMPILE)cc -EL
else
tool-prefix = mips-linux-
output-format = elf32-bigmips
+export LD = $(CROSS_COMPILE)ld -EB
+export CC = $(CROSS_COMPILE)cc -EB
endif
ifdef CONFIG_CROSSCOMPILE
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | MIPS R5Kc core configuration, michaels |
|---|---|
| Next by Date: | [no subject], Deepa Suresh |
| Previous by Thread: | MIPS R5Kc core configuration, michaels |
| Next by Thread: | Re: bi-endian toolchain switches, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |