Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp290791ybl; Wed, 22 Jan 2020 21:45:43 -0800 (PST) X-Google-Smtp-Source: APXvYqy5F8LkIDxAuNlXmJj2ehdwvrOr6SbubQdqjcY0PlKOeRQlK2my7u9N3h91Um1PBEcXhe63 X-Received: by 2002:a9d:de9:: with SMTP id 96mr10319655ots.222.1579758343495; Wed, 22 Jan 2020 21:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579758343; cv=none; d=google.com; s=arc-20160816; b=pXYpTQJczbNWF0lf0Fqm7pUn3rUOMrctnVEonCkiERQLHtcL3eUMUfw0/LKlhAbiiI GjA063toVmLd2YhdJ75/pHHcjkq20XcgV3NZLnWlif6EkCUHzonQs6gHchA17Bwa45SM HX1zUzXXxNdVQudfEA4In5l3bU8eW7dVtos2yAoNq0C3JCozvVFgta8dh1YSgI9VZxWY bg3TTLgYGA/tck/fyGELSF0rXbHxe2mYYG2+fv3E6c01m+nrOCb5Y8gznYqlMGCj06hr f80yZGge3Zp5bDOR3rf9orr5jjJaz19z/qNFcpDzMAN9yXKX2w62bCf0XbZuapNoXvUZ dr0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UD2g3R6EAWCmOv3T2af3YKBLNY0Xvn+xHCncHmLKPFw=; b=d2QG2ZajlsC8D3efCwdsKPatW/Nb+o2HmwpBTJh8jzY2PIxGEGMNhT8Ao5BxWod3Qk +9+37tYHdc5fvRQry7840zlNaXVCmhE6PtJkO2Wt7vt8h5tNAC5t0Cdbo4U7odQV5FD8 wyqwha4gAC9CG15wjs3iKxfcL9EiMKaE2dBlZIS6xTP3RX8BqzUtWU6lXi64V1NUswI9 Fu8YuBPOIBV95zOc08AUc6TJruS2FJgnb3VWyOyJjKI+eZws/LEC6flXAj81Zra39f7I x2ffnDizYFmfupfmPqH0UjDqr+W2mJZsF02gPyLPochk7KaleOFUUNzYWqtStm7bs+x/ N3Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=JCtjWNLj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22si518538otq.94.2020.01.22.21.45.31; Wed, 22 Jan 2020 21:45:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=JCtjWNLj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726083AbgAWFoe (ORCPT + 99 others); Thu, 23 Jan 2020 00:44:34 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34849 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgAWFoe (ORCPT ); Thu, 23 Jan 2020 00:44:34 -0500 Received: by mail-wr1-f65.google.com with SMTP id g17so1696331wro.2 for ; Wed, 22 Jan 2020 21:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UD2g3R6EAWCmOv3T2af3YKBLNY0Xvn+xHCncHmLKPFw=; b=JCtjWNLjaIdA+tOfF5e30N6xC2R7EKBvmaDa2DeLl22ER2d0IuuWLEKyqXmriPYSJE u47z7moP4wmVG7uBkdVZheNXzoLQgOfF5vnl6Dad9pS/SUcffBKjsbgts5aTPxM87qWw nrH0jvVnL9LRDw/x9wuzLUlsp7y1lkYnqRf61oNVz2sVxuqxYoDgbSb3ap5rqN2dg3tI aydMjz7P8ZvJ4EsjW6EsmLSKHW9G1EssOHnior+6cBteMWG6w/IjiMkFD/tT3AnJDEbm a/UkkcZpfE5m6P4Jd20fsiCNz3IIhoCAF1ctZIMcgGMRn3blJFZhx73DWnthZyxwI2Mz hwPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UD2g3R6EAWCmOv3T2af3YKBLNY0Xvn+xHCncHmLKPFw=; b=gx9OjALbjPIHKbz7LyD7cGJaNqtHo4UbLPo+ucGPbFpgdDkSIsTYYfBFzsT5Sbs4hw u6DNqD+p77LyIteHqKIyNYLJ/q7c6thirmK3OtDNNTHYSEp7SF5UF/lQwr8Lm3B5NrqA +3pINuZjZx50/8cBGtS60yDT4bScp3+WzbUHP41GinQ/KKD4Giwi1pZ3R2jzZEWRCMpb 6YcD/wNvpnchbXrx67dcfRZPtOgRD/bB8X/kyYzsDfSCB5ybPMTXvKYD8ZWGnrxTLv5v egTA3QhizrzGITUrAin8LZXZaqwIfF3VzIln4QNPFe8vWjhOkJ2eBVmFAzYsFGziYxQw HPwg== X-Gm-Message-State: APjAAAX9nCUVp+2btiDLYzpxx7K5YU+ioOMX/ppubHYs1zmyRoPB7TOY sDcIBI2TzdviLrgV+BazO1I041v+k9hLoqPU/4mJwg== X-Received: by 2002:a5d:5345:: with SMTP id t5mr16455678wrv.0.1579758272249; Wed, 22 Jan 2020 21:44:32 -0800 (PST) MIME-Version: 1.0 References: <20200116143029.31441-1-guoren@kernel.org> In-Reply-To: <20200116143029.31441-1-guoren@kernel.org> From: Anup Patel Date: Thu, 23 Jan 2020 11:14:20 +0530 Message-ID: Subject: Re: [PATCH V2 1/4] riscv: Separate patch for cflags and aflags To: Guo Ren Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Vincent Chen , Zong Li , Greentime Hu , Bin Meng , Atish Patra , Andreas Schwab , "linux-kernel@vger.kernel.org List" , linux-arch@vger.kernel.org, Arnd Bergmann , linux-csky@vger.kernel.org, linux-riscv , Guo Ren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 8:01 PM wrote: > > From: Guo Ren > > Use "subst fd" in Makefile is a hack way and it's not convenient > to add new ISA feature. Just separate them into riscv-march-cflags > and riscv-march-aflags. > > Signed-off-by: Guo Ren > Cc: Anup Patel > --- > arch/riscv/Makefile | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index b9009a2fbaf5..6d09b53cf106 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -35,12 +35,18 @@ else > endif > > # ISA string setting > -riscv-march-$(CONFIG_ARCH_RV32I) := rv32ima > -riscv-march-$(CONFIG_ARCH_RV64I) := rv64ima > -riscv-march-$(CONFIG_FPU) := $(riscv-march-y)fd > -riscv-march-$(CONFIG_RISCV_ISA_C) := $(riscv-march-y)c > -KBUILD_CFLAGS += -march=$(subst fd,,$(riscv-march-y)) > -KBUILD_AFLAGS += -march=$(riscv-march-y) > +riscv-march-cflags-$(CONFIG_ARCH_RV32I) := rv32ima > +riscv-march-cflags-$(CONFIG_ARCH_RV64I) := rv64ima > +riscv-march-$(CONFIG_FPU) := $(riscv-march-y)fd > +riscv-march-cflags-$(CONFIG_RISCV_ISA_C) := $(riscv-march-cflags-y)c > + > +riscv-march-aflags-$(CONFIG_ARCH_RV32I) := rv32ima > +riscv-march-aflags-$(CONFIG_ARCH_RV64I) := rv64ima > +riscv-march-aflags-$(CONFIG_FPU) := $(riscv-march-aflags-y)fd > +riscv-march-aflags-$(CONFIG_RISCV_ISA_C) := $(riscv-march-aflags-y)c > + > +KBUILD_CFLAGS += -march=$(riscv-march-cflags-y) > +KBUILD_AFLAGS += -march=$(riscv-march-aflags-y) > > KBUILD_CFLAGS += -mno-save-restore > KBUILD_CFLAGS += -DCONFIG_PAGE_OFFSET=$(CONFIG_PAGE_OFFSET) > -- > 2.17.0 > LGTM. Reviewed-by: Anup Patel Regards, Anup