From patchwork Fri Jul 20 07:46:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 142443 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2650207ljj; Fri, 20 Jul 2018 00:48:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpep0LM2WsL21mm5gF3aLAaEEdIDcOAlExA4Zf/DQvAN3E1HWY9Glf7/swdNujEES0DmoT+6 X-Received: by 2002:a63:fa48:: with SMTP id g8-v6mr1053489pgk.224.1532072922295; Fri, 20 Jul 2018 00:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532072922; cv=none; d=google.com; s=arc-20160816; b=PXgljTBGCN0FIYqc9HzWT1KAqbcwax5dSyetDzzSn01M50yWQ8Ya5YPX+qoSBAq+Io n9hAXPNWiKfyIonXvPRKyHqJHydMvZ44y2hu+/9nuoZicPpZ9kzuUCIHuLDXFJxaWR99 IE3J5qeT/9W/UbKn1/uwna/vXGLPbgYsN4+3HrHMzRae5rbp6pzMP2s9BXdaBhCS+CY5 hGqk5rqDpF6F3EniYCYHsRRau1getF22y1S7T42jO0R4Ig5El9uiorLBWZOZ4Z0f5j7K KvGO9bAM54g1MvusTsS+1JEY4bnEZ82GTWRQq02UPoVbjOmnEFmRKfoHIi7avQ4RV7fi oWUQ== 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 :arc-authentication-results; bh=0AEHVsWGTyJTmFv8yz8zN2xealBncVG4ABdemn2CJys=; b=s3ktb7eH4/5/Jzo5E8iaUvqNUSf0n//BRpkS7Id4luu3Uho8ZdEYDIpZqZwk917hT4 5dJEuh6wnYPxfIWMZvbNd60Y8uJ8yxBVOXfxWhlgokscKtJGDtiY7NLWSIc7PwsP7fee MQC4n8hZ7oQ42HXDQpzkcj76t94Bs3RddGYg9gSA836ehLr554qm4VBFIyzBaUjZZYjh 3BKW6WFxKJQV1frjRL5o4HlgJPazA1ITyHAIQhPcj0nNadvLy4uyQdSvlrUPf9mZS1uB A4jg2UNhuxQZAxMO7S3j57jrbmOtbuHw1us/8HT/ATi4pmiO+/BraiR4DpT/96RX6Tjp fK2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ebH61TNe; 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 x1-v6si1379758pgx.60.2018.07.20.00.48.42; Fri, 20 Jul 2018 00:48:42 -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=ebH61TNe; 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 S1728335AbeGTIfj (ORCPT + 31 others); Fri, 20 Jul 2018 04:35:39 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:28746 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727755AbeGTIfJ (ORCPT ); Fri, 20 Jul 2018 04:35:09 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id w6K7kdj3008048; Fri, 20 Jul 2018 16:46:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w6K7kdj3008048 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1532072806; bh=0AEHVsWGTyJTmFv8yz8zN2xealBncVG4ABdemn2CJys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ebH61TNe8HjsZTIoHVQ2ZkzzjIKpmcbxPCf40AEu50t8rSvDMs76Dt6nKniwhOB38 WO3bLS6C35VQ55BMYbKkIZsMEZriIUTSCMXgw9Ru4xqW0qoB43XA1GMb5OQ865/oya 4ZHj3R1ZaEtrrro/H/og4efQm0wS/oXZDeV0RHuVm6Go+yWj6HYsyKJWZbUcSTRnoL tbuFoDkGl/tMmIYpYysC4fpgZpK6d+PbK0sSNUPeCr0r25sEoxBh9yz5lZw1dOAINw 9+ajZo5c3L6iW5q4rPmP13AeTzWdbHPvrRUDZ/YAgMmA9a0qnuXi9FiqMI1D//cqF6 rdad4bdXE1/OA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Dirk Gouders , Ulf Magnusson , Sam Ravnborg , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v4 11/11] kbuild: remove auto.conf from prerequisite of phony targets Date: Fri, 20 Jul 2018 16:46:36 +0900 Message-Id: <1532072796-7947-12-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532072796-7947-1-git-send-email-yamada.masahiro@socionext.com> References: <1532072796-7947-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The top-level Makefile adds include/config/auto.conf as prerequisites of 'scripts', 'prepare1', etc. They were needed to terminate the build when include/config/auto.conf is missing. Now that the inclusion of include/config/auto.conf is mandatory in the top-level Makefile if dot-config is 1 (Note 'include' directive is used instead of '-include'). Make terminates the build by itself if it fails to create or update include/config/auto.conf so we are sure that include/config/auto.conf exists in the very first stage of make. I am still keeping include/config/auto.conf as the prerequisite of %/modules.builtin because modules.builtin is a real file. According to commit a6c366324cac ("kbuild: Do not unnecessarily regenerate modules.builtin"), it is intentional to compare time-stamps between %/modules.builtin and include/config/auto.conf . I moved tristate.conf here because it is only included from scripts/Makefile.modbuiltin. Signed-off-by: Masahiro Yamada --- Changes in v4: None Makefile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) -- 2.7.4 diff --git a/Makefile b/Makefile index 0ec1c27..ceb9c1e 100644 --- a/Makefile +++ b/Makefile @@ -650,10 +650,6 @@ include/config/auto.conf: /bin/false) endif # may-sync-config - -else -# Dummy target needed, because used as prerequisite -include/config/auto.conf: ; endif # $(dot-config) KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) @@ -1048,15 +1044,14 @@ define filechk_kernel.release endef # Store (new) KERNELRELEASE string in include/config/kernel.release -include/config/kernel.release: include/config/auto.conf FORCE +include/config/kernel.release: $(srctree)/Makefile FORCE $(call filechk,kernel.release) # Additional helpers built in scripts/ # Carefully list dependencies so we do not try to build scripts twice # in parallel PHONY += scripts -scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \ - asm-generic gcc-plugins $(autoksyms_h) +scripts: scripts_basic asm-generic gcc-plugins $(autoksyms_h) $(Q)$(MAKE) $(build)=$(@) # Things we need to do before we recursively start building the kernel @@ -1086,8 +1081,7 @@ endif # that need to depend on updated CONFIG_* values can be checked here. prepare2: prepare3 outputmakefile asm-generic -prepare1: prepare2 $(version_h) $(autoksyms_h) include/generated/utsrelease.h \ - include/config/auto.conf +prepare1: prepare2 $(version_h) $(autoksyms_h) include/generated/utsrelease.h $(cmd_crmodverdir) archprepare: archheaders archscripts prepare1 scripts_basic @@ -1225,7 +1219,7 @@ modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin modules.builtin: $(vmlinux-dirs:%=%/modules.builtin) $(Q)$(AWK) '!x[$$0]++' $^ > $(objtree)/modules.builtin -%/modules.builtin: include/config/auto.conf +%/modules.builtin: include/config/auto.conf include/config/tristate.conf $(Q)$(MAKE) $(modbuiltin)=$*