aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-05-09 12:28:01 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-05-09 12:28:01 -0400
commit457daa2b66e07bbd2280b9f8d2b03e800f357243 (patch)
tree9b597631f1b112917b58d084e59d6158d9fe739b /arch/sh
parentb412a49af970e703124fa3259bf24165c0c74024 (diff)
sh: Hook up cc-cross-prefix support.
This implements a simple case that just iterates through the common cases, looking at UTS_MACHINE for hints. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index c1bbae1f65e3..a47fbd260ba4 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -101,6 +101,12 @@ LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \
101 -e phys_stext_shmedia 101 -e phys_stext_shmedia
102endif 102endif
103 103
104ifneq ($(SUBARCH),$(ARCH))
105 ifeq ($(CROSS_COMPILE),)
106 CROSS_COMPILE := $(call cc-cross-prefix, $(UTS_MACHINE)-linux- $(UTS_MACHINE)-linux-gnu- $(UTS_MACHINE)-unknown-linux-gnu-)
107 endif
108endif
109
104ifdef CONFIG_CPU_LITTLE_ENDIAN 110ifdef CONFIG_CPU_LITTLE_ENDIAN
105ld-bfd := elf32-$(UTS_MACHINE)-linux 111ld-bfd := elf32-$(UTS_MACHINE)-linux
106LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' --oformat $(ld-bfd) 112LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' --oformat $(ld-bfd)