From patchwork Thu Aug 22 04:46:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 171997 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp361940ily; Wed, 21 Aug 2019 21:46:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqweA61i/4aWR34lcl21j8ZDuiUqgFFF6WgguS9Uni96SYaThDLskuAzAzMlqrr1aGl4ri3g X-Received: by 2002:a63:ed55:: with SMTP id m21mr32154910pgk.343.1566449203778; Wed, 21 Aug 2019 21:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566449203; cv=none; d=google.com; s=arc-20160816; b=0PzPuACmMOax+dK4HAsn724xGmTSOdBkjOJasX24+SAl1Y3FYnfYHnly2esCRibk2l TcjfKDGt8V7XWOsMBsR/ExXjywvbrfNhBTQCHQcQt7zWuP4GqS0JUFrGuD+NNmbS3BcL l+gTMButGCUc4NSHJwCSuZMv7ZNlVe0PCtsHtjoe2ftAoSd8VwGLIjGvUR0RNi7xSHBB 89lWJzV4O7M55qUVPhnjtUmeScEhpb+syCeAwWpMDFwzTuXZbLH4qWHWlzPbq8u2xXZb ltzkrzRpunpTb69EX3ijRxKZsTqywiCHflngRYvl0VhnOrbxC44xQf3IZun3v7AcK5RP MutQ== 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 s129si15664054pfc.16.2019.08.21.21.46.43; Wed, 21 Aug 2019 21:46:43 -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 S1731049AbfHVEqj (ORCPT + 28 others); Thu, 22 Aug 2019 00:46:39 -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(-) -- 2.17.1 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