diff options
author | Tom Rini <trini@ti.com> | 2012-09-14 07:15:48 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-14 07:15:48 -0700 |
commit | 8f082d78fafd94db3f21b503794e0875d3331e53 (patch) | |
tree | 1eef05dcd0fca58283eac2c5fff55ba53f5abc81 /arch/mips/config.mk | |
parent | f71d5cd56bee6e730fe46f5f2024f1b5106ab944 (diff) | |
parent | 748fd4a621a870d378e4e4f54df76a38fd5d3cba (diff) | |
download | u-boot-imx-8f082d78fafd94db3f21b503794e0875d3331e53.zip u-boot-imx-8f082d78fafd94db3f21b503794e0875d3331e53.tar.gz u-boot-imx-8f082d78fafd94db3f21b503794e0875d3331e53.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'arch/mips/config.mk')
-rw-r--r-- | arch/mips/config.mk | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/arch/mips/config.mk b/arch/mips/config.mk index 6ab8acd..de9140b 100644 --- a/arch/mips/config.mk +++ b/arch/mips/config.mk @@ -23,7 +23,21 @@ CROSS_COMPILE ?= mips_4KC- -CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds +# Handle special prefix in ELDK 4.0 toolchain +ifneq (,$(findstring 4KCle,$(CROSS_COMPILE))) +ENDIANNESS := -EL +endif + +ifdef CONFIG_SYS_LITTLE_ENDIAN +ENDIANNESS := -EL +endif + +ifdef CONFIG_SYS_BIG_ENDIAN +ENDIANNESS := -EB +endif + +# Default to EB if no endianess is configured +ENDIANNESS ?= -EB PLATFORM_CPPFLAGS += -DCONFIG_MIPS -D__MIPS__ @@ -47,8 +61,8 @@ PLATFORM_CPPFLAGS += -DCONFIG_MIPS -D__MIPS__ # On the other hand, we want PIC in the U-Boot code to relocate it from ROM # to RAM. $28 is always used as gp. # -PLATFORM_CPPFLAGS += -G 0 -mabicalls -fpic +PLATFORM_CPPFLAGS += -G 0 -mabicalls -fpic $(ENDIANNESS) PLATFORM_CPPFLAGS += -msoft-float -PLATFORM_LDFLAGS += -G 0 -static -n -nostdlib +PLATFORM_LDFLAGS += -G 0 -static -n -nostdlib $(ENDIANNESS) PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections LDFLAGS_FINAL += --gc-sections |