aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/Makefile')
-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)