linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: Fix building j2_defconfig
@ 2016-08-16 15:41 Jason Cooper
  2016-08-16 21:15 ` Rob Landley
  0 siblings, 1 reply; 4+ messages in thread
From: Jason Cooper @ 2016-08-16 15:41 UTC (permalink / raw)
  To: Rich Felker, Thomas Gleixner, Marc Zyngier
  Cc: linux-kernel, linux-sh, Jason Cooper

When targeting the j2, we need to retain '-m2'.  Previously, the
Makefile blew out -m2 on the next line via :=.

Fix this by s/:=/+=/ when building for the J2.

Fixes: 5a846abad07f6 ("sh: add support for J-Core J2 processor")
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
---
Thanks to Richard Felker for helping me locate the problem.

 arch/sh/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index 00476662ac2c..336f33a419d9 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -31,7 +31,7 @@ isa-y					:= $(isa-y)-up
 endif
 
 cflags-$(CONFIG_CPU_SH2)		:= $(call cc-option,-m2,)
-cflags-$(CONFIG_CPU_J2)			:= $(call cc-option,-mj2,)
+cflags-$(CONFIG_CPU_J2)			+= $(call cc-option,-mj2,)
 cflags-$(CONFIG_CPU_SH2A)		+= $(call cc-option,-m2a,) \
 					   $(call cc-option,-m2a-nofpu,) \
 					   $(call cc-option,-m4-nofpu,)
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-20  3:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-16 15:41 [PATCH] sh: Fix building j2_defconfig Jason Cooper
2016-08-16 21:15 ` Rob Landley
2016-08-16 21:23   ` Jason Cooper
2016-08-20  3:40     ` Rob Landley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).