diff options
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r-- | arch/sh/Makefile | 6 |
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 |
102 | endif | 102 | endif |
103 | 103 | ||
104 | ifneq ($(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 | ||
108 | endif | ||
109 | |||
104 | ifdef CONFIG_CPU_LITTLE_ENDIAN | 110 | ifdef CONFIG_CPU_LITTLE_ENDIAN |
105 | ld-bfd := elf32-$(UTS_MACHINE)-linux | 111 | ld-bfd := elf32-$(UTS_MACHINE)-linux |
106 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' --oformat $(ld-bfd) | 112 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' --oformat $(ld-bfd) |