Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1547939imm; Mon, 3 Sep 2018 03:25:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaksgMvpwV9prX5nZ+k3g9ajlbKpdT6No+zNgKRKZvuzoTHYkLZIds1QRXQwCzuC6G0yzTj X-Received: by 2002:a62:c9:: with SMTP id 192-v6mr28302629pfa.99.1535970333635; Mon, 03 Sep 2018 03:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535970333; cv=none; d=google.com; s=arc-20160816; b=yboSyA4uGKLFOnR03n7AbS5X64h/k1h2f0l18d+EbS9v2SLc/Ho5uRKJy9Cbr+bHO6 X+votwZMq0uYAn1O+nUZy4Sb3tTonsYKow10oXf9nmRBXFXH5gvpbjQjC/1zVs35VIp0 7tg08Yxa1F9WSKm0QKmzwqCLXQArj9m7DjAO0j/KLLArlWmcIQQnngU5KiGJioQrlriK COlWaHEZzLzDpPiyuaXEEMNGXVQBhdwY6JfkSt8SN/XdaYGJ7KT8t3py4olu4j5zbH5J R3N97cOXdA5XQznSRI1aQjVF5/WOu9unPfEG1afy0kNJPhlleL1EwoA/GmpdEisD07UN apQQ== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:dkim-filter:arc-authentication-results; bh=Y5TOG+LKnYD+uOxxlQ4UADrm7UwxsRgfYdEXrKFghh4=; b=y6XVJSmeuhc8HQETiFipTJIu7L6m0Ry72JXo8gyYWNgC1/oxjm7XILcWxr0aKz2oiI uRfj4BKe8CZWP53ORjUs6XfpNpyD7dWJOV5fjo7MRbBvIDH2yQBSu0/WVu7XhShOy/Jq 0/RP3k8Wh1sCUousLDMIQa5XqZqokIgUs5+cZVjATJA7plvcxvxdsPLcTBaGz/2RiGz4 N7m6IrCu1X72mQDs1gTC82hjZoGnOnPVTeOYaKkcNTArhEKWCluR2XM/E8IWFmc60d19 FavPM00TNIsvNkOWQJ61mjjNfkajET5QujcpSs086y2yryfixwGhLKXcdnB/REcE08ax 6H+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="ap/iolQe"; 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 o1-v6si17679665pld.223.2018.09.03.03.25.19; Mon, 03 Sep 2018 03:25: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="ap/iolQe"; 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 S1728097AbeICOnW (ORCPT + 99 others); Mon, 3 Sep 2018 10:43:22 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:35918 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbeICOnV (ORCPT ); Mon, 3 Sep 2018 10:43:21 -0400 Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w83ANkOL007761; Mon, 3 Sep 2018 19:23:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w83ANkOL007761 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1535970227; bh=Y5TOG+LKnYD+uOxxlQ4UADrm7UwxsRgfYdEXrKFghh4=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=ap/iolQesENzZdKmHnTaOFDBgGK4Lo/vU7eyLrqmBXkHNa7WU2KvJFk7psPkZ80qV iDsN2CBf+krw75NGsqG9xnj6SZrrJ6M+89meQl1IeQNJRtfTQXxQ7xHpRTCLUK+7DP Pyp2SV2ZkJ6lhXKlASVfRstyq0AqmkxTuBCjw01LYzZ4qZmZryHH3KMc1QxEj4ZIDO vgHTTelicCyS0e1AX5uN9EwgE71FUIUVjAV0VcDYuj90kpS4kytl/5kLTGFQQK96bJ 1sAqmPNKX9Wp5o9tRnSGOYHsDE3rvf6Eo12K43m8pfGc/boW5I/0I6BMmXMontdbcE 6aMC/grIMHkVA== X-Nifty-SrcIP: [209.85.222.53] Received: by mail-ua1-f53.google.com with SMTP id o11-v6so55164uak.5; Mon, 03 Sep 2018 03:23:47 -0700 (PDT) X-Gm-Message-State: APzg51Bs37JUMIM7g5Cd1nd1txYWmaNPpQs3FD6J8UBBGEuP5qNhansB n9DHfQwn4MrFhGO9+GpqkTiIAjicdgc1rMGy028= X-Received: by 2002:a67:4441:: with SMTP id r62-v6mr8176036vsa.38.1535970225680; Mon, 03 Sep 2018 03:23:45 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:7103:0:0:0:0:0 with HTTP; Mon, 3 Sep 2018 03:23:05 -0700 (PDT) In-Reply-To: References: <20180627143705.5a1fed1c@kitsune.suse.cz> <20180628111623.3807fe9b@naga.suse.cz> <20180806200725.4efa5d35@kitsune.suse.cz> From: Masahiro Yamada Date: Mon, 3 Sep 2018 19:23:05 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: due to kconfig changes kernel config file is no longer sufficient for configuring the kernel To: Takashi Iwai Cc: =?UTF-8?Q?Michal_Such=C3=A1nek?= , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. 2018-08-21 3:37 GMT+09:00 Takashi Iwai : > On Mon, 20 Aug 2018 20:15:12 +0200, > Masahiro Yamada wrote: >> >> 2018-08-07 3:07 GMT+09:00 Michal Such=C3=A1nek : >> > On Mon, 30 Jul 2018 17:02:42 +0900 >> > Masahiro Yamada wrote: >> > >> >> 2018-06-28 18:16 GMT+09:00 Michal Such=C3=A1nek : >> >> > On Wed, 27 Jun 2018 23:07:21 +0900 >> >> > Masahiro Yamada wrote: >> >> > >> >> >> Hi. >> >> >> >> >> >> >> >> >> 2018-06-27 21:37 GMT+09:00 Michal Such=C3=A1nek : >> >> >> > Hello, >> >> >> > >> >> >> > in the x86 Kconfig we have this: >> >> >> > >> >> >> > # Select 32 or 64 bit >> >> >> > config 64BIT >> >> >> > bool "64-bit kernel" if "$(ARCH)" =3D "x86" >> >> >> > default "$(ARCH)" !=3D "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=3D'") the value of ARC= H >> >> >> > 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=3D"ARCH" >> >> > - >> >> > -config KERNELVERSION >> >> > - string >> >> > - option env=3D"KERNELVERSION" >> >> > - >> >> >> >> This is just syntax change. >> >> >> >> 'option env=3D' 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=3D' >> >> 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=3D is almost mandatory for distinguishing the bi-arch or > cross-compile cases, why don't we save it in .config? The .config may not exist, may not be loaded. For "make help", "make headers_install" etc. ARCH needs be given from the command line anyway. I do not want to obscure "when to pass ARCH". > 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? Recording ARCH in .config does not solve the problem because the .config contents depend on the compiler. > > > thanks, > > Takashi --=20 Best Regards Masahiro Yamada