From 9e17a88eb01862046da6159ef59fe599e41f6589 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Sun, 10 May 2009 01:28:01 +0900 Subject: [PATCH] --- yaml --- r: 146769 b: refs/heads/master c: 457daa2b66e07bbd2280b9f8d2b03e800f357243 h: refs/heads/master i: 146767: f204d68de965cd157ca3eab843045bc4ee56054f v: v3 --- [refs] | 2 +- trunk/arch/sh/Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1ff5866333e8..e9cb948c8d6f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b412a49af970e703124fa3259bf24165c0c74024 +refs/heads/master: 457daa2b66e07bbd2280b9f8d2b03e800f357243 diff --git a/trunk/arch/sh/Makefile b/trunk/arch/sh/Makefile index c1bbae1f65e3..a47fbd260ba4 100644 --- a/trunk/arch/sh/Makefile +++ b/trunk/arch/sh/Makefile @@ -101,6 +101,12 @@ LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \ -e phys_stext_shmedia endif +ifneq ($(SUBARCH),$(ARCH)) + ifeq ($(CROSS_COMPILE),) + CROSS_COMPILE := $(call cc-cross-prefix, $(UTS_MACHINE)-linux- $(UTS_MACHINE)-linux-gnu- $(UTS_MACHINE)-unknown-linux-gnu-) + endif +endif + ifdef CONFIG_CPU_LITTLE_ENDIAN ld-bfd := elf32-$(UTS_MACHINE)-linux LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' --oformat $(ld-bfd)