Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp571038ybl; Thu, 22 Aug 2019 01:17:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEvNrXvEvab0q1TbsqMlZc2vuXBav+agztIKmjiNpvCIpDExPiX6w6SvtIrqCg2DsoG6r0 X-Received: by 2002:a65:6552:: with SMTP id a18mr33478256pgw.208.1566461879384; Thu, 22 Aug 2019 01:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566461879; cv=none; d=google.com; s=arc-20160816; b=ghyUw+vOavW7arCPLzs07G0aUyP5B9TJ/YN1twTbMPb2PXPQtn8epwMIH57wqbMogQ FgnikJY5sdx3Gv3iP7v1fUKqaLw0NTh4zT85CBv1S067Kru54HOiAWQfpUMRccuumVg/ x/n7ToRyJRROIHR/rjVUZ+XQgOUNl7rZ+1AiYzUIm7J04/+Q0fgeuZ5iqk0krSHpUrql EWtbEgroK5E38/pEHLmewVxPlzCSWqYTBIlXmLUFiR0GqTDkmJbhCwYXChBstQdih5XQ mq7xgMd8+29yEthfZiXCoQkHbHD3cMswI8mpTsvvWMK20UZ8WqAPuhRkBNk3u7ekGffy TO0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=qUMeOvsH2PJ92pYaiUPXJnmgv8wzxTsns//qrBBelrw=; b=HBlYBnckQKTfWdllhwtWhXAx0a6JGWaS9t7fEXC3/M+s9AP/Z9Qrd0t65PnTTKqQlE 8Waj3t9cYoT5ZuMzCgoVMBxlC+fDSNhlebej+eZN6sOezvWTfKYAutvunvHqhm22gYWV wxVBJ4wDZcC7pmJ1bcyMCzByAxc9/m5XAxlWNGRkCA0hpCcnRhNljELHM6FobZ8L4ShN rjvOOKoLC1J78ga3q+DWdvH9jB2M8mJo9h5aBam+lryVxLBrWcHuIwzENdcHKwqQMO24 DwV2M0WvRZi9smKSUJgfhLetTp1wJp9Zq5MscR8A1JYDvpHFBUL1ClhUX0czVytiGT54 xl3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ukNEEp0b; 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 x17si18233709pfr.167.2019.08.22.01.17.44; Thu, 22 Aug 2019 01:17:59 -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=ukNEEp0b; 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 S1731043AbfHVEqg (ORCPT + 99 others); Thu, 22 Aug 2019 00:46:36 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:29727 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730905AbfHVEq3 (ORCPT ); Thu, 22 Aug 2019 00:46:29 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x7M4kEYk001492; Thu, 22 Aug 2019 13:46:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x7M4kEYk001492 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566449178; bh=qUMeOvsH2PJ92pYaiUPXJnmgv8wzxTsns//qrBBelrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ukNEEp0bnnzgMTNO6zcBJP1NojCo9Td3jckZzfz+VtHhbe5Yh8i496X1+WYcAP0Xh Mvrq39x/ipDBF3/vDZxGDdSf9Vqk4PqOSboyR+Zm60vchqNaMUeIl4DJvHuqrht6zz uwuHWhDH1yQKKgBLkYyVLXtp6cBQBCMAY52nXekony9+QBduLwTeJb9Q+ReLq4TS6c V9Ms86SteH17cF1Uz4d3gLLiZNlAyf62RxjAxaFDGFKyE07iSKWSwrqXo52jX3VhMB ooyBh863rRnwLsJLhbLT3B/ro2Vbird/InXvUSa01q3FdCjNGy062V4hAjteM7NQ+C /B3ZeBmNXUWOA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Geert Uytterhoeven , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 6/6] kbuild: check clean srctree even earlier Date: Thu, 22 Aug 2019 13:46:13 +0900 Message-Id: <20190822044613.5349-6-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190822044613.5349-1-yamada.masahiro@socionext.com> References: <20190822044613.5349-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, 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