From patchwork Tue Aug 16 15:41:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Cooper X-Patchwork-Id: 9284169 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8B10160839 for ; Tue, 16 Aug 2016 15:42:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79B8328664 for ; Tue, 16 Aug 2016 15:42:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E19F28668; Tue, 16 Aug 2016 15:42:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0207728664 for ; Tue, 16 Aug 2016 15:42:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752985AbcHPPmD (ORCPT ); Tue, 16 Aug 2016 11:42:03 -0400 Received: from outbound1a.ore.mailhop.org ([54.213.22.21]:49064 "EHLO outbound1a.ore.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751584AbcHPPmC (ORCPT ); Tue, 16 Aug 2016 11:42:02 -0400 X-MHO-User: 2718062b-63c8-11e6-a0ff-e511cd071b9b X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 74.99.77.15 X-Mail-Handler: DuoCircle Outbound SMTP Received: from io (unknown [74.99.77.15]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Tue, 16 Aug 2016 15:43:17 +0000 (UTC) Received: from triton.lakedaemon.net (triton.lakedaemon.net [10.16.5.27]) by io (Postfix) with ESMTP id 7CCE580207; Tue, 16 Aug 2016 15:41:57 +0000 (UTC) From: Jason Cooper To: Rich Felker , Thomas Gleixner , Marc Zyngier Cc: linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, Jason Cooper Subject: [PATCH] sh: Fix building j2_defconfig Date: Tue, 16 Aug 2016 15:41:40 +0000 Message-Id: <20160816154140.25022-1-jason@lakedaemon.net> X-Mailer: git-send-email 2.9.3 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Tested-by: Rob Landley --- 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,)