Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2536748ybl; Thu, 29 Aug 2019 09:27:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPn13xe6PH3q8Iuoa2PNiQl97f4A4ZCc9yje6OzSXwFfnQjeevgeEy78yOxzmRPvUGiKMP X-Received: by 2002:a17:90a:bf01:: with SMTP id c1mr10897096pjs.30.1567096050706; Thu, 29 Aug 2019 09:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567096050; cv=none; d=google.com; s=arc-20160816; b=dB6UuD5We/ZwnJf7qykAfEmim5UvscZgcRvCPLyKs4tyHYiT+pcY1WvsPF8LUPXWJN q9FLQITfqCVijXjvF0tMsMBFe4DUIcrlk6SkBP1i/AWiPmjUFInfGYjwScEwQmkTODq5 fDRkgpPm7lOIQctYoWpCcKhSjsbo1Qad7k9CGXJHOX8MzZUDRKMOMt6m5Xdnd+mhG+OH 31ufg2w+wO/133Paa1NGZUvcxKFPcucKafrZda3P/gBmhYUANs19EP07gyKPoQQF3xlH wOGERqu4eBtlCfLdMPsYslITDkn9H8HKb/sIoAr5wsK7vZX13MQ5REey600rh1X/AwAp GLbQ== 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:dkim-filter; bh=djapCPPU6dehPlWydqfVQgD2+TU/sE2npWhyfpxVb70=; b=SX8pN82Uk/FPc+TYVT7lwrjqrChZo51p0kSjz4Hus8gjTHlUPu6WOKanau3dapBO3y 1lcEVrk8dcvg+7ry502sDvAIFE6H8j4CV9FeEPonMoXVk3HvUo40TwW+Oopff+YV3H4c i4miYWMw9UCdxaBuH0cfbb25sRkWRudwBhw4HoEcTKV/0UmPZ4ysuvXuMWwnZOiodsC9 wyac5Z1GgeZXuKyCDE0BCGXu+fOFQ+6PKVE4FuNt//IUbU4Ev0q7Bet1klUgXanFHkH6 z1tME0JEo59jPlCBoBTyZEci6WwrSt2aEl9VRaY8YAHfOyg9GNCWOJg2KWz9E16B8BiK 7+CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=krpulTwV; 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 n1si2552467pjt.23.2019.08.29.09.27.13; Thu, 29 Aug 2019 09:27:30 -0700 (PDT) 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=@nifty.com header.s=dec2015msa header.b=krpulTwV; 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 S1727410AbfH2Q00 (ORCPT + 99 others); Thu, 29 Aug 2019 12:26:26 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:55684 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726973AbfH2Q00 (ORCPT ); Thu, 29 Aug 2019 12:26:26 -0400 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x7TGQM8L007451; Fri, 30 Aug 2019 01:26:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x7TGQM8L007451 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567095982; bh=djapCPPU6dehPlWydqfVQgD2+TU/sE2npWhyfpxVb70=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=krpulTwVUrkoRWArUbDmwgoo3AvvUUSr8RKCDtDyC0l3Jc3qScpxQC6YYZ2v3USY2 zDWHCwvcqTuNEs68k2QGx6h3LWhKKBaG6u7b3tW/zKQssCgKnZnPd+nfmz7Pumks5k s10q0ADmRkFlDGsJY4BrDsnNYKNNe9oPAnD+G23wMlV8IBDd0ZwGFF2N3ogG+vcTGu 3F2bPVQ36iXcqQaJeWeJ6hiKEpo6FEVfok6vEt6iEsBQCejdQYrZBvh/qLyNoECvHV 1c5MrKa0DR7mQ49KJ6qfqMgKZFnAbZBSC+d058BW5PE/7QuKND8G08MvnQ98oUe0Jy WUKJVlUsCNDnQ== X-Nifty-SrcIP: [209.85.217.41] Received: by mail-vs1-f41.google.com with SMTP id q188so2831892vsa.4; Thu, 29 Aug 2019 09:26:22 -0700 (PDT) X-Gm-Message-State: APjAAAVGsg9+fBCSQIfNQWPOtFwhHmZ1BNWN0a5e1YI5eQQHKG3YjYOT 8J3/nvGSFxTTw+yV8VVIoPPfJCwyAY7+/ft22nc= X-Received: by 2002:a67:fd97:: with SMTP id k23mr6035069vsq.179.1567095980891; Thu, 29 Aug 2019 09:26:20 -0700 (PDT) MIME-Version: 1.0 References: <20190822044613.5349-1-yamada.masahiro@socionext.com> <20190822044613.5349-6-yamada.masahiro@socionext.com> In-Reply-To: <20190822044613.5349-6-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Fri, 30 Aug 2019 01:25:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/6] kbuild: check clean srctree even earlier To: Linux Kbuild mailing list Cc: Geert Uytterhoeven , Michal Marek , Linux Kernel Mailing List 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, Aug 22, 2019 at 1:46 PM Masahiro Yamada wrote: > > Move the outputmakefile target to the leftmost in the prerequisite list > so that this is checked first. There is no guarantee that Make runs the > prerequisites from left to right, Looks like this is guaranteed. I did not know POSIX defined this. I will reword the commit log as follows: " kbuild: check clean srctree even earlier Move the outputmakefile target to the leftmost in the prerequisite list so that this is checked first. GNU Make processes the prerequisites left to right. GNU Make will keep to stick to this behavior, and it seems even POSIX standard, according to this: https://lists.gnu.org/archive/html/bug-make/2019-08/msg00030.html The POSIX standard of make is available here: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html Of course, when the parallel option -j given, other targets will be run simultaneously but it is nice to show the error as early as possible. " > but at least the released versions of > GNU Make work like that when the parallel build option is not given. > > Of course, when the parallel option -j given, other targets will be run > simultaneously but it is nice to show the error as early as possible. > > Signed-off-by: Masahiro Yamada > --- > > Makefile | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/Makefile b/Makefile > index 960df4d35b15..089983a8a028 100644 > --- a/Makefile > +++ b/Makefile > @@ -581,10 +581,10 @@ ifdef config-build > include arch/$(SRCARCH)/Makefile > export KBUILD_DEFCONFIG KBUILD_KCONFIG CC_VERSION_TEXT > > -config: scripts_basic outputmakefile FORCE > +config: outputmakefile scripts_basic FORCE > $(Q)$(MAKE) $(build)=scripts/kconfig $@ > > -%config: scripts_basic outputmakefile FORCE > +%config: outputmakefile scripts_basic FORCE > $(Q)$(MAKE) $(build)=scripts/kconfig $@ > > else #!config-build > @@ -1123,7 +1123,7 @@ scripts: scripts_basic scripts_dtc > > PHONY += prepare archprepare > > -archprepare: archheaders archscripts scripts include/config/kernel.release outputmakefile \ > +archprepare: outputmakefile archheaders archscripts scripts include/config/kernel.release \ > asm-generic $(version_h) $(autoksyms_h) include/generated/utsrelease.h > > prepare0: archprepare > -- > 2.17.1 > -- Best Regards Masahiro Yamada