summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>2008-06-18 19:05:23 -0500
committerJohn Rigby <jrigby@freescale.com>2008-07-11 10:45:57 -0600
commit8371dc2066136be21e10b7b9293e469297d77298 (patch)
tree02403b4543986392c755b8b9acf80e861782b1a8 /cpu
parent56d52615cd47bc522ee13bb7ec7e59d6ce9426c7 (diff)
downloadu-boot-imx-8371dc2066136be21e10b7b9293e469297d77298.zip
u-boot-imx-8371dc2066136be21e10b7b9293e469297d77298.tar.gz
u-boot-imx-8371dc2066136be21e10b7b9293e469297d77298.tar.bz2
ColdFire: Add -got=single param for new linux v4e toolchains
Signed-off-by: Kurt Mahan <kmahan@freescale.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mcf5445x/config.mk6
-rw-r--r--cpu/mcf547x_8x/config.mk6
2 files changed, 12 insertions, 0 deletions
diff --git a/cpu/mcf5445x/config.mk b/cpu/mcf5445x/config.mk
index 88433f2..67efa07 100644
--- a/cpu/mcf5445x/config.mk
+++ b/cpu/mcf5445x/config.mk
@@ -29,3 +29,9 @@ PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
else
PLATFORM_CPPFLAGS += -m5407 -fPIC
endif
+
+ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
+ifneq (,$(findstring GOT,$(shell $(LD) --help)))
+PLATFORM_LDFLAGS += --got=single
+endif
+endif
diff --git a/cpu/mcf547x_8x/config.mk b/cpu/mcf547x_8x/config.mk
index e5f4385..567b281 100644
--- a/cpu/mcf547x_8x/config.mk
+++ b/cpu/mcf547x_8x/config.mk
@@ -29,3 +29,9 @@ PLATFORM_CPPFLAGS += -mcpu=5485 -fPIC
else
PLATFORM_CPPFLAGS += -m5407 -fPIC
endif
+
+ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
+ifneq (,$(findstring GOT,$(shell $(LD) --help)))
+PLATFORM_LDFLAGS += --got=single
+endif
+endif