Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp426918imb; Fri, 1 Mar 2019 04:35:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzrymqPUEQvaJQ/gc5EAxXx5FjxwNTu3sJJPKONAYSf8Dut8u7JHdE6bQVM5C7p9kHSxF8n X-Received: by 2002:a65:62d4:: with SMTP id m20mr135042pgv.416.1551443701301; Fri, 01 Mar 2019 04:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551443701; cv=none; d=google.com; s=arc-20160816; b=G9PJrGec/EDTfwtL1fetrg2lLiRBCvj34RktZOOdP/6W8HRDYGNdjI+4skYDICVG5T xh/I22ovkYEP276Xq8USiqP06dgCOcQkJm0497t/EONQbYjdSQ/elwYSUA8rnUCuv/fa s/4MrFe9qFzCFKdf4OXZtSFNhayUkltJ9bCyVF12NMF97Y6JSUfw57WeW7/CiShgAX9D 0jmOngDDoCpYcnjVqAACweayMSsX1L5g0zjri/2yLDXuAT4Pp6+NF53Cb11hWGX5UDvA 9E8SBscUqlvApfSlOxoNsJL1+krMLSI0W+x2gwwrN2w+OMcysGJseg8RytXOyW13s4gR HLhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=ZaIqmScFofWD3kt244KqIAoWRHjj+iv3v3NBIkRp1sM=; b=sW5Ie/Ax+xxiGkhdSN3QJGmSmh2ufYJoNYybbpR7MMczjv8gs83jCLkplA9j68bjIb p47zn6HQl4H4kuP4aqW/E0lxaPvjKZKbn20A1//c4KepNo7eUbxQyY4rI+cZIpXeuV0h nFKq6beRHTYpRDxfchomBBS6u16HpNfk7otoMTZQbkrGXAiBuYqFQEXiYUFE1JdOJKu9 kbdtkXoZJpDk4pOJdvfV6OT7nx3AbgACDsoCXQTn9BLS4moQQMgL4nKSx/1Rpl8h0dmg OIT5KCbpPK30+vkONjOk88l7deMCCQ6cgkrqdZqmP3jv+1CmqkbuOG+ZGKiUNf9oWqs4 hOEw== ARC-Authentication-Results: i=1; mx.google.com; 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 d14si20015069pgn.536.2019.03.01.04.34.45; Fri, 01 Mar 2019 04:35:01 -0800 (PST) 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; 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 S1728350AbfCAMdI (ORCPT + 99 others); Fri, 1 Mar 2019 07:33:08 -0500 Received: from mx2.suse.de ([195.135.220.15]:41316 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725978AbfCAMdH (ORCPT ); Fri, 1 Mar 2019 07:33:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7D287AF1B; Fri, 1 Mar 2019 12:33:06 +0000 (UTC) Date: Fri, 1 Mar 2019 13:33:04 +0100 From: Petr Vorel To: Arseny Maslennikov Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Randy Dunlap , Sam Ravnborg , Ulf Magnusson Subject: Re: [PATCH] scripts/kconfig/Makefile: use KCONFIG_CONFIG if set Message-ID: <20190301123304.GA2318@dell5510> Reply-To: Petr Vorel References: <20190221215901.23970-1-ar@cs.msu.ru> <20190221215901.23970-2-ar@cs.msu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190221215901.23970-2-ar@cs.msu.ru> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arseny, > In a kernel source tree: > % make mrproper > % make KCONFIG_CONFIG=.myconfig kvmconfig' > HOSTCC scripts/basic/fixdep > HOSTCC scripts/kconfig/conf.o > HOSTCC scripts/kconfig/confdata.o > HOSTCC scripts/kconfig/expr.o > HOSTCC scripts/kconfig/symbol.o > HOSTCC scripts/kconfig/preprocess.o > LEX scripts/kconfig/zconf.lex.c > YACC scripts/kconfig/zconf.tab.h > HOSTCC scripts/kconfig/zconf.lex.o > YACC scripts/kconfig/zconf.tab.c > HOSTCC scripts/kconfig/zconf.tab.o > HOSTLD scripts/kconfig/conf > The base file '.config' does not exist. Exit. > make[1]: *** [scripts/kconfig/Makefile:96: kvm_guest.config] Error 1 > make: *** [Makefile:538: kvmconfig] Error 2 > Essentially `make kvmconfig' (and probably other similar targets) > did ignore KCONFIG_CONFIG set to a different filename. > If KCONFIG_CONFIG is set, use it; otherwise behave as if it was set > to `.config'. > Signed-off-by: Arseny Maslennikov Good catch :). Yes, many targets are affected to it: xenconfig, tinyconfig + archs: rm -f .config; make ARCH=arm KCONFIG_CONFIG=.myconfig dram_0xd0000000.config Reviewed-by: Petr Vorel Tested-by: Petr Vorel Kind regards, Petr > --- > scripts/kconfig/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile > index 181973509a05..1c7ac07def4d 100644 > --- a/scripts/kconfig/Makefile > +++ b/scripts/kconfig/Makefile > @@ -93,7 +93,7 @@ configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/c > %.config: $(obj)/conf > $(if $(call configfiles),, $(error No configuration exists for this target on this architecture)) > - $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles) > + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m $(KCONFIG_CONFIG) $(configfiles) > +$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig > PHONY += kvmconfig