Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp824102ybm; Wed, 27 May 2020 08:52:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtjvqE7JYYbwC3W3WH/yoUAOnHRPkbeDlSdIoUBouPsGEEZVzMkXN/nsoko3lH8M1mrtjA X-Received: by 2002:a17:906:b88c:: with SMTP id hb12mr3934668ejb.483.1590594745700; Wed, 27 May 2020 08:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590594745; cv=none; d=google.com; s=arc-20160816; b=QWNrpL/X6GczQw220kn3t4YI3u8+vtp6fkzBqTG8qKQw+sdUtcIwnBzyy8C4wX62bP CvJ4lYbRvDqQjWr+Ic5yPPGyV45ETVHnipRRVLLAxTWzHQxLte4oyjoxeZ+2I32zM/ke K8Gl9u4Q8awSoTTdvseD9L0yMvi/WHH6f1wmakcjXHtUvTG+uH39p/QekirVsi7Wc2fd 0PuSlH1MkIe3RlD3nzIruTNNdt58h/RxJiwSR5qR9p8kUfK9RPcUwIcHvf7ICi9rR1bP sKaYwCPUTgEg5n5V0udB9cjnYorh6EQYYRNIKs3Tr6FFseArwkbuSMLmcWeI9S7CO7eV x5kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=NRYEF+SUtReVFYdb8yyymYdhj3YTbjTmhty25GBoIek=; b=eV5DrG52mKs/DeweBy2Vmjl4OUywRw86jkxIZlaewm8Hg+fam41KSDuQay97yuuGSW Hh16p1WFrgxsRHZIcx6w6jWQ6CuoIxtmwvKbrcqLWdyGSdUsBJ4JJeixPWXvxu6Dfr0j 2By4IlfH9YBy8j36orERZ/1gDjyhpQYCZI+1bbUmpiLv+dM4lfPZjwvu0Z+DTkhYhcbp gzcssKGXmSS+7PV5xFHp5jZZfIUM+hT2hLzb+p1dRzVpE5MWk0JT5V/6FfY0QhIyd+Pm TjuKb5ciUjZnhTSej9XmQ5WGFu1rsesLPnV9ceg6Dk5BpzPsoUq06lDARZw8siQWBS0f 4Egw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si2064475ejk.369.2020.05.27.08.52.02; Wed, 27 May 2020 08:52:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730178AbgE0NA1 (ORCPT + 99 others); Wed, 27 May 2020 09:00:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:32968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730045AbgE0NA1 (ORCPT ); Wed, 27 May 2020 09:00:27 -0400 Received: from [10.44.0.192] (unknown [103.48.210.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1438220873; Wed, 27 May 2020 13:00:24 +0000 (UTC) Subject: Re: [PATCH 4/4] m68k: pass -D options to KBUILD_CPPFLAGS instead of KBUILD_{A,C}FLAGS To: Masahiro Yamada , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org References: <20200526123810.301667-1-masahiroy@kernel.org> <20200526123810.301667-4-masahiroy@kernel.org> From: Greg Ungerer Message-ID: <59d886a9-2ebd-8fab-9b42-f71808288968@linux-m68k.org> Date: Wed, 27 May 2020 23:00:20 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200526123810.301667-4-masahiroy@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/5/20 10:38 pm, Masahiro Yamada wrote: > Precisely, -D is a preprocessor option. > > KBUILD_CPPFLAGS is passed to for compiling .c and .S files too. > > Signed-off-by: Masahiro Yamada Acked-by: Greg Ungerer Regards Greg > --- > > arch/m68k/Makefile | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile > index ae6e29da3a3e..c28f9f917ac0 100644 > --- a/arch/m68k/Makefile > +++ b/arch/m68k/Makefile > @@ -70,9 +70,8 @@ ifdef CONFIG_MMU > KBUILD_CFLAGS += -fno-strength-reduce -ffixed-a2 > else > # we can use a m68k-linux-gcc toolchain with these in place > -KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" > -KBUILD_CFLAGS += -D__uClinux__ > -KBUILD_AFLAGS += -D__uClinux__ > +KBUILD_CPPFLAGS += -DUTS_SYSNAME=\"uClinux\" > +KBUILD_CPPFLAGS += -D__uClinux__ > endif > > KBUILD_LDFLAGS := -m m68kelf >