Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4197254imm; Mon, 20 Aug 2018 11:28:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzmkce236vSLuJkW4MsCnsXOdcAhPuqID1IZAJqWu+fe5j3DrauLT/wA9yF9mXeDJ82l0qi X-Received: by 2002:a65:668f:: with SMTP id b15-v6mr17703082pgw.426.1534789698982; Mon, 20 Aug 2018 11:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534789698; cv=none; d=google.com; s=arc-20160816; b=yX8VOcqjTtFG4i8w9d9dAWbtjG9izYXzEEzlKRWSeFB4+xz/EBRx4pnOCNsYxAKefK PXN+OwQ67GvJAXdJBYSVtZYJEhOmeJmwGKOvd8fFfSvdKDIwvBgfphX7eC8xNg3pNgCp WQJUGWXOlkvJhraYkSFeKKDK8SWdiW1l+/UNXjbZkE2lvBEF9CMXN9yXXCLBRNYvZhYE ADo4f6NTKGaLJUOGW8OmmaobNgI15+GNxpvFoc5HiUZRQZXzfhveA3zaVhkrhA8u2gUe TO7vXWrsOnctgPdCQa4ku7yZfh/s1DdhpN+jqTPKZ15ufHsbbIYDEsITPA56oIHPZg+o HzVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=l7hZypD3JeUZUgstw0b2KnUCA1ccne6Ft+3q/ZjFcfI=; b=Vg0T7/0HSU8zw2NBMadSdbkdDwWIZC4L2pc+jKrB2tWrUs52s9LHH0a7/92t72rLYU QFsLIjTvCkhbSGlvJOM/XNfnpUMEIFKUY7v+363yYiSSpUt1A2SW6ZxTnDiXLWItdy2L XhiJMF/5mjWXLGuOjIcx/SajSoed8Mcw80B/5Un54jiIwlaEn0ZmguD+meRiMWd1UtEm G3XpUA1TRommtUTwDn98p/767ajT9qlJKkwE11mFf/kAbXmyBB5IoPOUjN/tSYCO5qBr bBe0abV9wbtz80OkBInILtKzLgV6MST2OF7BAkUmwjfiOQ3ubwwB9TmHi/ZZhWFo8BBn OwUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=PLTvcstW; 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 a12-v6si8907424pgv.680.2018.08.20.11.28.03; Mon, 20 Aug 2018 11:28:18 -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=PLTvcstW; 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 S1726614AbeHTVmV (ORCPT + 99 others); Mon, 20 Aug 2018 17:42:21 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:39307 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726573AbeHTVmU (ORCPT ); Mon, 20 Aug 2018 17:42:20 -0400 X-Greylist: delayed 578 seconds by postgrey-1.27 at vger.kernel.org; Mon, 20 Aug 2018 17:42:18 EDT Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w7KIPWh9002008; Tue, 21 Aug 2018 03:25:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w7KIPWh9002008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1534789533; bh=l7hZypD3JeUZUgstw0b2KnUCA1ccne6Ft+3q/ZjFcfI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=PLTvcstWibnylDOgBfeErUzWMKruIGIYwBKfQRV8+SiBuNL9s+SGPTwAFfJZUkq0A w/PjvI0RqhPaoQbfi4LwWrLfurNJZCeO0f4La53/2yeBJlE2SbMp1uz/7jt96yD3mn xJIMvGDdyEN7D28Kw/RE+lJ6/IE9Pc96w01+yjwlErFnMz3GeWmnU3GFwD2IDQ3Txj zcUcwfBHmgYND8vnLsZ1kBI+LF2AqsS4Xvzdi5JEftX08pzgQXRoF/cwMxg2Ty3Vit eRazJA/d+obUcnh9s1Gk9fD/kmboq4ogjBSp9HMqyGfgWvhPB4/BYLVKEsVEnhMvTN oWYmfrawXISBA== X-Nifty-SrcIP: [209.85.222.42] Received: by mail-ua1-f42.google.com with SMTP id u11-v6so10279260uan.13; Mon, 20 Aug 2018 11:25:32 -0700 (PDT) X-Gm-Message-State: AOUpUlGZg/iCscsNFAy8Szp2Khc1hWBPIpcWjRFWmC38FLT45mLzIUdw sgLEQXsYjrA33A4KXGTWOjaHCbDvvhxyOJVFnX0= X-Received: by 2002:ab0:30ce:: with SMTP id c14-v6mr30889680uam.58.1534789531457; Mon, 20 Aug 2018 11:25:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:2642:0:0:0:0:0 with HTTP; Mon, 20 Aug 2018 11:24:51 -0700 (PDT) In-Reply-To: <20180806183329.qditzzemevdafcwb@unicorn.suse.cz> References: <20180627143705.5a1fed1c@kitsune.suse.cz> <20180628111623.3807fe9b@naga.suse.cz> <20180806183329.qditzzemevdafcwb@unicorn.suse.cz> From: Masahiro Yamada Date: Tue, 21 Aug 2018 03:24:51 +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: Michal Kubecek Cc: =?UTF-8?Q?Michal_Such=C3=A1nek?= , Linux Kernel Mailing List , Takashi Iwai , Andreas Schwab , 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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-08-07 3:33 GMT+09:00 Michal Kubecek : > On Mon, Jul 30, 2018 at 05:02:42PM +0900, Masahiro Yamada wrote: >> >> For exmaple 'make ARCH=arm config' will create the config suitable >> only for ARM architecture. >> Then, you need to do 'make ARCH=arm' to build the kernel. >> >> If it is tedious to give 'ARCH=arm' to every make command, >> you can do 'export ARCH=arm' in your shell. >> >> Again, this is the behavior we have for a long time. > > Actually, this no longer works reliably. For example, when I run > > ARCH=powerpc make oldconfig > > with our ppc64le config on x86_64 system, I get different result than > when I run it on an actual ppc64le system (or when using a ppc64le cross > compiler on x86_64). This is because you used different compilers. > Since .config started to mix user configuration and build environment > capabilities, maintaining distribution configs became real pain. And > it's getting progressively worse. This is improvement requested by Linus Torvalds. Prior to the change, the user configuration in the .config did not reflect what you get. Even if you enable CONFIG_FOO=y, it might be silently disabled by $(call cc-option, ...) in Makefile if the feature is not supported by the compiler. By moving the compiler evaluation to the Kconfig phase, the .config matches to what you get. > Michal Kubecek > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada