Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4207019imm; Mon, 20 Aug 2018 11:38:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzTlraIH0b/pfkeO03k5T40maZ3cag+6o2eI76L5pQ3cUgeztx1HtyZHWNxZ7WXsOFSwqhk X-Received: by 2002:a17:902:27a8:: with SMTP id d37-v6mr47025569plb.290.1534790322116; Mon, 20 Aug 2018 11:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534790322; cv=none; d=google.com; s=arc-20160816; b=UGnLdPblVSWCuPAOysNxQJrlRmU/pZQT9VXvybGbpdtecUZAFpEtEtVSvYXAanWKnL J6HyQsL10alxCm2n+nvTGcTbTPLHSy8/OKeb30jjY12D4dOQ2eZZ6Uzz/8d5SjEwzFmy V6xVjNC+eHxRqq2NmqqrW0hm3WPVjRwzvKrmpBBr8rtZnCo3cnzTb34roFn9GvGttgVE aSSgxc3+Q4DaeRkvieM5t39RR4Ygy0U4pRutupb/QBm2iQKXJ/qUgtOOnRV2ibsS22Zk ZyFns2J9mt/uPTBX4/ofcEUeGfmiOOxXu6SS279s4HRPUCwf+oNTWepQ8Bj8eRBcNlON h0UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:arc-authentication-results; bh=FBNL9UaDyjC6PTjz/2tNADLrk92UqlrSTxGRv+U/Pn4=; b=fkTLqc1HOVS5rqWoFet4ts0UWRZSwKQTcwzUbZquvyrDmm7bjnHW7M5uMzoHIjDacU HdR2+t8qho8L3W6KCdUW+YdHSnNUGMhYJOhZtCfrD+CP263bL7ElJXaNcoCgCckM3Gj2 uoyC85lprM66Ug602dq3dUJo9peb+wJx0Ipx4JURHzLjdXvtJaVWZdb7QcWHBgMYY2y3 21+hbC0TSJut7fAeT++lP00Ynp54v8kpYjK7RljDIpvEG0V+2gPiI6mKwDXbSSoHRKpZ 9aHoBWzc08uWY6W4VV7nN2Fb6dk32NdJkhZnOxx47tlaCwRPJXxibCIEvrCsSZHQpVp1 ichw== 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 i3-v6si9799588plb.44.2018.08.20.11.38.26; Mon, 20 Aug 2018 11:38: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; 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 S1726596AbeHTVyC (ORCPT + 99 others); Mon, 20 Aug 2018 17:54:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:58354 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726077AbeHTVyB (ORCPT ); Mon, 20 Aug 2018 17:54:01 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A791FAD96; Mon, 20 Aug 2018 18:37:13 +0000 (UTC) Date: Mon, 20 Aug 2018 20:37:12 +0200 Message-ID: From: Takashi Iwai To: Masahiro Yamada Cc: Michal =?UTF-8?B?U3VjaMOhbmVr?= , Linux Kernel Mailing List , Andreas Schwab , Michal Kubecek , Michal Marek , Jonathan Corbet , Yoshinori Sato , Rich Felker , "David S. Miller" , Jeff Dike , Richard Weinberger , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Kees Cook , Philippe Ombredanne , Greg Kroah-Hartman , Ulf Magnusson , Jeff Mahoney , "Peter Zijlstra," , Mathieu Desnoyers , Frederic Weisbecker , Randy Dunlap , Dominik Brodowski , Nicholas Piggin , Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux-sh list , sparclinux , linux-um@lists.infradead.org Subject: Re: due to kconfig changes kernel config file is no longer sufficient for configuring the kernel In-Reply-To: References: <20180627143705.5a1fed1c@kitsune.suse.cz> <20180628111623.3807fe9b@naga.suse.cz> <20180806200725.4efa5d35@kitsune.suse.cz> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Aug 2018 20:15:12 +0200, Masahiro Yamada wrote: > > 2018-08-07 3:07 GMT+09:00 Michal Suchánek : > > On Mon, 30 Jul 2018 17:02:42 +0900 > > Masahiro Yamada wrote: > > > >> 2018-06-28 18:16 GMT+09:00 Michal Suchánek : > >> > On Wed, 27 Jun 2018 23:07:21 +0900 > >> > Masahiro Yamada wrote: > >> > > >> >> Hi. > >> >> > >> >> > >> >> 2018-06-27 21:37 GMT+09:00 Michal Suchánek : > >> >> > Hello, > >> >> > > >> >> > in the x86 Kconfig we have this: > >> >> > > >> >> > # Select 32 or 64 bit > >> >> > config 64BIT > >> >> > bool "64-bit kernel" if "$(ARCH)" = "x86" > >> >> > default "$(ARCH)" != "i386" > >> >> > ---help--- > >> >> > Say yes to build a 64-bit kernel - formerly known as > >> >> > x86_64 Say no to build a 32-bit kernel - formerly known as i386 > >> >> > > >> >> > Since commit 104daea149c4 ("kconfig: reference environment > >> >> > variables directly and remove 'option env='") the value of ARCH > >> >> > is not saved in the kernel config. > >> >> > >> >> I think this commit is unrelated. It was just a syntax change. > >> > > >> > This does not look like syntax only change to me: > >> > > >> > diff --git a/init/Kconfig b/init/Kconfig > >> > index 15aae32e0719..1217fc62ca61 100644 > >> > --- a/init/Kconfig > >> > +++ b/init/Kconfig > >> > @@ -1,20 +1,12 @@ > >> > -config ARCH > >> > - string > >> > - option env="ARCH" > >> > - > >> > -config KERNELVERSION > >> > - string > >> > - option env="KERNELVERSION" > >> > - > >> > >> This is just syntax change. > >> > >> 'option env=' was used to reference an environment variable. > >> > >> Now, $(ARCH), $(KERNELVERSION) are simpler forms. > >> > >> > >> >> > >> >> Unless I am missing something, > >> >> we have never saved ARCH in the .config in the past. > >> > > >> > There was a config symbol defined for it before the commit removed > >> > it. > >> > >> No. > >> > >> CONFIG symbols with'option env=' > >> are not written out to the .config file. > >> > >> We have never had CONFIG_ARCH or CONFIG_KERNELVERSION. Maybe it sounds like a stupid question, but... if passing ARCH= is almost mandatory for distinguishing the bi-arch or cross-compile cases, why don't we save it in .config? The whole "regression" we've seen can be worked around by passing ARCH at each time. So, by having it in .config, everything would work more easily, no? thanks, Takashi