From patchwork Sat Jun 23 13:56:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 139754 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2032452lji; Sat, 23 Jun 2018 06:58:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIMmAI0ojgaZf4yoM9HA1+d1xjPrPagBhR5vK6FJzxFgKGyBAADoMzoy84Z7xe/JdZi551Q X-Received: by 2002:a62:da59:: with SMTP id w25-v6mr5966461pfl.161.1529762302882; Sat, 23 Jun 2018 06:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529762302; cv=none; d=google.com; s=arc-20160816; b=ucJOFK5l1q3O18KzNHvU6Pzkm6bY8qIYwhrSeod8jtjhNEs1GLbjDPp7FwwG4q9d0I v7xmDKAyJ8KzMTPSu2JbLXz9HqTeXGTpinJVWcTHk1CVdo4pOBNINyhbtQ4LEMy2WLY/ 3mob2k+9/fVaBYVlE6R8qG9SnsLkrqc86vngZ/6nPXwktk3ay92zwcACnozF38T2RzRe DEzTXsKitErUjrURc1ZIYovAwCb6QwhxvNn0tpmG0D5pN0BstiNyuEcuaZaAGNrynCLj kNUNRY/8j7LN/CM1Ggixib+tiO4FSGeJzvkjT/UWA8i7E+MwFC6INSOMIhy4u5TmVLgV PtTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=v6NARSvF1UqBTvB6pr8gmxA1bLYv2eXXGO7gcMxQNZ0=; b=oJ1DF/3OwyBRzggLEeQney8JI3MpIjQ4asdMvF5ncFGmK78hKYwkII9XoGfmB49tkH B+biSanOEUUs+G5+HC83DuDz5tYoN61Ygn2d5UzWkJh5Seq3nwUaHGDmB5b2eqRJTb4W C9clWVIk0AYXv8IzAyVyXAYITwCpTIjuJ+UKcqtAUtK/e0Ob+HQYDSObknDovTRkjxiM LtzySPr3OzZ58NJIQRHMYgD5MzRRNFERWBwQlcePML+KsiIm5+OwGxxYha4Oxb/Pa2uV MIqPMO/71GeFqAUhWxJB6pNFnmsv3Az+LAM99sHRhD+mcJ3oAWEAIOUcje5BUgbukBOJ D9KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="1Iaqp/EV"; 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 v18-v6si9663452plo.285.2018.06.23.06.58.22; Sat, 23 Jun 2018 06:58:22 -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="1Iaqp/EV"; 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 S1751813AbeFWN6S (ORCPT + 31 others); Sat, 23 Jun 2018 09:58:18 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:44605 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487AbeFWN6N (ORCPT ); Sat, 23 Jun 2018 09:58:13 -0400 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-08.nifty.com with ESMTP id w5NDvYBU015690; Sat, 23 Jun 2018 22:57:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w5NDvYBU015690 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1529762255; bh=v6NARSvF1UqBTvB6pr8gmxA1bLYv2eXXGO7gcMxQNZ0=; h=From:To:Cc:Subject:Date:From; b=1Iaqp/EVhNjHBgpUr4UWufcGiyqjvj7AuPsqZOYTZVQmx41NulFOS/LwfKjEaHgun wV2rNuDFF7Pa86FFiNwtL34vDqEVrdwj1wOLyG9B+Q/mgI/Mg86hibtvQlgzQd6BVp 8BB9erTO71djodbIx3IlcIzSAZX03MnexbcMzpGn1UigpTaJ9oPPRU28mGRj7Kv/36 DAJRSMMV0vKdu2uHnGH8qrw9R71aAaAOxPUKuKNuZEA4OD3bh8nUX/igFHiMibDM5D cTnGzRpMVlvrs3xGT534uES8xIqlyhhV+ndeItVgTiUuPmCDLWMyGIQDustn1HX6+j SfNh+Wvo6tPlA== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] kbuild: use 'include' directive to load auto.conf from top Makefile Date: Sat, 23 Jun 2018 22:56:07 +0900 Message-Id: <1529762169-13488-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When you build targets that require the kernel configuration, dot-config is set to 1, then the top-level Makefile includes auto.conf. However, Make considers its inclusion is optional because the '-include' directive is used. If a necessary configuration file is missing for the external module building, the following error message is displayed: ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. However, Make still continues building; /bin/false let the creation of 'include/config/auto.config' fail, but Make can ignore the error since it is included by the '-include' directive. Use the 'include' directive instead. This allows the /bin/false to correctly terminate the whole build process. Signed-off-by: Masahiro Yamada --- Changes in v2: - New patch Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/Makefile b/Makefile index ca2af1a..413c2ed 100644 --- a/Makefile +++ b/Makefile @@ -589,7 +589,7 @@ virt-y := virt/ endif # KBUILD_EXTMOD ifeq ($(dot-config),1) --include include/config/auto.conf +include include/config/auto.conf endif # The all: target is the default when no target is given on the From patchwork Sat Jun 23 13:56:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 139755 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2032605lji; Sat, 23 Jun 2018 06:58:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJOUMuZcFrLa38z1dYv/dnYh6XzloOrLHL3Px0RWShtZaaEau4L5yg7WFVbwVsd4+74G+oX X-Received: by 2002:a17:902:758e:: with SMTP id j14-v6mr5589780pll.160.1529762313222; Sat, 23 Jun 2018 06:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529762313; cv=none; d=google.com; s=arc-20160816; b=YnxrymTq5aWC/BL3SQSLBwDt1i1S7ob1IvxX7Pr/5rgkBc/Zt9g9bDeHWsbYMNR+0R lZVCyIZIA9FGRiphrx5TDm22vo/FttlmJqTGGNf/vUMJj2o3IJBiKnzmHiaOeSEcbMP2 J4erJVu4X4eaiwu2uhcR1LFlOkRqOdFcyNA1aPWQP6wN9zMTOQHtCDlci51nYgA7tOkZ 9GS4ZQsqyHfKoSDeEVMAYiEv+v1s59ecEDm3o/HYi8lKqofivwgLFtnMqGpg1BFecrQp K1y1q24PLZMnhrPehWtnqEPzFZd3e7bM87S9M28yfDIlo1i2THorm2XUPp1X3SHnyRxs xcAg== 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=BhaTLl7qF75US9NEVf7QohyaPmquhej9ID5Zt2moriM=; b=I0ovOgKAIk7xmS42lVFQ+vLB3m3/3PLlLAmzOJacR1UDqp9ZgbF485eO4jKW7pWtPm roqWZMa3aW+5WcEdOXeEMUfx52lsBLVGvkacWs1qGByJD6zsXHsC9HHc284igwpE0iZb HScGcm7olUyddfxYN5HGj4eSDxFUHXGz4y84kB3NIsxoRvjbYXhP3PhteBDnMCGUXhrO m9++8ZOaiR/EifyuWTqNbI1q3lc3CD5jwnmTgOrIsbA8KshuDhJ40zefOZ16qOV/0B4B 7s2+23yJxVYVbnYCK3DFUl6rhKGEaPMVoHVVdr/A5mJCvXj36qcF4Lt2TP97xzKkIzCW W3Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vqNUMFyh; 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 w65-v6si9949112pfb.309.2018.06.23.06.58.32; Sat, 23 Jun 2018 06:58:33 -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=vqNUMFyh; 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 S1751723AbeFWN6Q (ORCPT + 31 others); Sat, 23 Jun 2018 09:58:16 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:44603 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbeFWN6N (ORCPT ); Sat, 23 Jun 2018 09:58:13 -0400 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-08.nifty.com with ESMTP id w5NDvYBV015690; Sat, 23 Jun 2018 22:57:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w5NDvYBV015690 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1529762256; bh=BhaTLl7qF75US9NEVf7QohyaPmquhej9ID5Zt2moriM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vqNUMFyhWkX8T7CTOVceTK5PSM6BqBOsB5zkOJ/q71NM1qFCTdZvv6mb6qYGayT9R IUE9AiQzzpKp2FHmkaoKmIOJc1t5CiLkguDEjUDQnOJu7uOea5h2jkB0SFD4Cvxr5p EYCRxJHd1Bq/zgW1zyPnLPRnLb0GipUu9O3otKLNF5iJbncE76WmVNuJEPiKXS+v5f MMkrNMKBsDRtnoqa12qlFl6GTtDH20eEmC8/sNMNSZacbT1pYExkq9Yz6YndfzucRh VFHK2C+ltjJV2ysPYIbTp6QYWmad7wlO59Z5+kCoz/Ql+AOvZ4hSrY9MFa/gCcQF24 UhVFJygt6M3Fg== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] kbuild: do not update config when running install targets Date: Sat, 23 Jun 2018 22:56:08 +0900 Message-Id: <1529762169-13488-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529762169-13488-1-git-send-email-yamada.masahiro@socionext.com> References: <1529762169-13488-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 "make syncconfig" is automatically invoked when any of the following happens: - .config is updated - any of Kconfig files is updated - any of environment variables referenced in Kconfig is changed Then, it updates configuration files such as include/config/auto.conf include/generated/autoconf.h, etc. Even install targets (install, modules_install, etc.) are no exception. However, they should never ever modify the source tree. Install targets are often run with root privileges. Once those configuration files are owned by root, "make mrproper" would end up with permission error. Install targets should just copy things blindly. They should not care whether the configuration is up-to-date or not. This makes more sense because we are interested in the configuration that was used in the previous kernel building. This issue has existed since before, but rarely happened. I expect more chance where people are hit by this; with the new Kconfig syntax extension, the .config now contains the compiler information. If you cross-compile the kernel with CROSS_COMPILE, but forget to pass it for "make install", you meet "any of environment variables referenced in Kconfig is changed" because $(CC) is referenced in Kconfig. Another scenario is the compiler upgrade before the installation. Install targets need the configuration. "make modules_install" refer to CONFIG_MODULES etc. "make dtbs_install" also needs CONFIG_ARCH_* to decide which dtb files to install. However, the auto-update of the configuration files should be avoided. We already do this for external modules. Now, Make targets are categorized into 3 groups: [1] Do not need the kernel configuration at all help, coccicheck, headers_install etc. [2] Need the latest kernel configuration If new config options are added, Kconfig will show prompt to ask user's selection. Build targets such as vmlinux, in-kernel modules are the cases. [3] Need the kernel configuration, but do not want to update it Install targets except headers_install, and external modules are the cases. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) -- 2.7.4 diff --git a/Makefile b/Makefile index 413c2ed..f1e06fba 100644 --- a/Makefile +++ b/Makefile @@ -225,10 +225,12 @@ no-dot-config-targets := $(clean-targets) \ cscope gtags TAGS tags help% %docs check% coccicheck \ $(version_h) headers_% archheaders archscripts \ kernelversion %src-pkg +no-sync-config-targets := $(no-dot-config-targets) install %install -config-targets := 0 -mixed-targets := 0 -dot-config := 1 +config-targets := 0 +mixed-targets := 0 +dot-config := 1 +may-sync-config := 1 ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) @@ -236,6 +238,16 @@ ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) endif endif +ifneq ($(filter $(no-sync-config-targets), $(MAKECMDGOALS)),) + ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),) + may-sync-config := 0 + endif +endif + +ifneq ($(KBUILD_EXTMOD),) + may-sync-config := 0 +endif + ifeq ($(KBUILD_EXTMOD),) ifneq ($(filter config %config,$(MAKECMDGOALS)),) config-targets := 1 @@ -611,7 +623,7 @@ ARCH_CFLAGS := include arch/$(SRCARCH)/Makefile ifeq ($(dot-config),1) -ifeq ($(KBUILD_EXTMOD),) +ifeq ($(may-sync-config),1) # Read in dependencies to all Kconfig* files, make sure to run syncconfig if # changes are detected. This should be included after arch/$(SRCARCH)/Makefile # because some architectures define CROSS_COMPILE there. @@ -639,7 +651,7 @@ include/config/auto.conf: echo >&2 ; \ /bin/false) -endif # KBUILD_EXTMOD +endif # may-sync-config else # Dummy target needed, because used as prerequisite From patchwork Sat Jun 23 13:56:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 139756 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2032692lji; Sat, 23 Jun 2018 06:58:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLZlfK45n1BA27EzE3wcIrOwA5SrY6CUU//sqA6lMY001nWVKLIcQNMI6cdP+2lbTeTYAp8 X-Received: by 2002:a17:902:7581:: with SMTP id j1-v6mr5710998pll.218.1529762321284; Sat, 23 Jun 2018 06:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529762321; cv=none; d=google.com; s=arc-20160816; b=Ayv74iXiUHenA66kop2rtUOuzehD1G0y3qJuNWTleZgUl8rE9yYeoIha5dX9MVQxrm lF9A2VS2mJWWGh7gVGu/KSUY5mMzQ5u6MjOyRnZGK9EChlZ6ayKhzsRy3WkG+88KgR5P axMziQyRLAU8lQ5vwnbGITF+M1nTp08EKvyEmkON1G0DBvaxrKKnPdRQ0ZBmCx0EfIVQ /eU46SmGcdEFMqwjdjmEP0eHJPh/6j0DU2NCPw1sXBh5a4COXp/lUmpwgbLl/iT8t3x4 IzHSkhN4ZnOnTNN0ElOwKmCwiGVYKlkiHKKXumPcPgDYPvbkNUAL+T0sbnc3tjuAJByJ rATA== 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=eF6juXb7PirRchUcfKJpaftuAQl8aBHmTPqdBo4/Lqw=; b=spJuT2pKXryckFet1cK2atDndiGX4QvRdksVjicHfAqhNchkwu0hCR/d6tE2N0pDdH jbOu2xguF6nEc76JpBBdSGk5Qr9krZZPpJpOY8ikodUrCBNtxZul9BHs9Mk3RXe5UPPD 4fWew90wkkwkQKfQDoO916ommSoBBUz7HvNIG+lx3FDWIVN8aUFn/pUqjto73nLXjTb7 qHasZNkUQZvxE09/1VrlUfJ+rinSJ8mgjVETk5ugC181uJS4T49QXiAXpCQtVP6i7T7p COJPseplGlymfadOJl9zCsCfkSIQdLZdC0VXBMWyBFbGOLHqD5PgA8MucR1XBQ+k9uxM l1Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Nmyd8BvV; 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 x12-v6si7895392pgt.362.2018.06.23.06.58.40; Sat, 23 Jun 2018 06:58:41 -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=Nmyd8BvV; 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 S1751652AbeFWN6P (ORCPT + 31 others); Sat, 23 Jun 2018 09:58:15 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:44602 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbeFWN6N (ORCPT ); Sat, 23 Jun 2018 09:58:13 -0400 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-08.nifty.com with ESMTP id w5NDvYBW015690; Sat, 23 Jun 2018 22:57:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w5NDvYBW015690 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1529762256; bh=eF6juXb7PirRchUcfKJpaftuAQl8aBHmTPqdBo4/Lqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nmyd8BvV8EY4bEtgAC9k6W+nM6sM3FbLyMCoPHjKLvEM9zj0B4NZ7zXV+9htJI3Fk B7CX7gOwYC3vERSIVhughD9DksIgZCX4nkHVMlpONDfASbxRhlNw3kO5S1Iuc6rvto DGVXikA+FsM1zfiCYGdusSdAxiUG7zbqICJYkZ+6lNEaeFfHZFE3LUmYQkW+grRRa+ imx95FK5IIkz8RLUuLBb0te+f/x30FsKh8c+JOCJs+HnQ6cpLmDd+VEUybgX6HilCm bJ33+iJAfTgeitMU1dnHBwK0PjDpHrZu8/o/7BHHvYv7N6jRhaUQwWiIkc5kGoZ4ID A3imn6KzTBnLg== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] kbuild: do not update config for 'make kernelrelease' Date: Sat, 23 Jun 2018 22:56:09 +0900 Message-Id: <1529762169-13488-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529762169-13488-1-git-send-email-yamada.masahiro@socionext.com> References: <1529762169-13488-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 'make kernelrelease' depends on CONFIG_LOCALVERSION(_AUTO), but for the same reason as install targets, we do not want to update the configuration just for printing the kernelrelease string. This is likely to happen when you compiled the kernel with CROSS_COMPILE, but forget to pass it to 'make kernelrelease'. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/Makefile b/Makefile index f1e06fba..bb7394a 100644 --- a/Makefile +++ b/Makefile @@ -225,7 +225,8 @@ no-dot-config-targets := $(clean-targets) \ cscope gtags TAGS tags help% %docs check% coccicheck \ $(version_h) headers_% archheaders archscripts \ kernelversion %src-pkg -no-sync-config-targets := $(no-dot-config-targets) install %install +no-sync-config-targets := $(no-dot-config-targets) install %install \ + kernelrelease config-targets := 0 mixed-targets := 0