Received: by 10.223.185.116 with SMTP id b49csp7677405wrg; Thu, 1 Mar 2018 09:13:17 -0800 (PST) X-Google-Smtp-Source: AG47ELvNvYbBYwZfkG+H4ibkKvbRngzfkeHFkQG0NgjiL7tZgLFJlebdtT3mDvqXS46228VaBj4P X-Received: by 10.98.242.65 with SMTP id y1mr2603539pfl.232.1519924397828; Thu, 01 Mar 2018 09:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519924397; cv=none; d=google.com; s=arc-20160816; b=Z3miW/bifqUZYxyWK1Ue3qE8KrgCCs8jo6a8Im/WY2zhLa1tnd/GOSrzZw3kD/prOe NV/JEwWNpCdAnAzc+2ZkVm9BeBWodiOVYhw+EuIsoK/owzIC1ckVSbx0Be1lhK2Mchjd /K1lkT4V1XoPkCfhpIkZVh+4JdVgpfwlKhl7Pzc821xdDZAdIg1zMK0zXz4zViNkhMfz xZAkuFPElBmVaWCmush1oRHfMwnB0rP5UlOX7KCP+BLqpVqpGC3BvcpcUwlyrwYprsJZ NMUlZFeDzDmG/t7sLHsvw3xnR60+1E3fPXs1y6RCIyZdvVX+QV1Tl0CrtMy+ck0alZU8 gABA== 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 :arc-authentication-results; bh=2NQYbm9/uRxSTfdPLko4ufZaQL1131GjecIvede2KHo=; b=jugmviP47N2Y2UOBYEkf3IhbIwaEqW/0prtzO9eM/fT+cqsAtdcfMAwgAoxNyE49ms 4fE9Uc+64HiVhGH9nXvWmsRx5aKolvnE7wVbAcJk0RZpvQ+reAfeWEKoHwhMUQ/R+Oy5 QJetqES94NIjyaPm48dGtwBOdRO+IMcITK11p9Mw/zyDpdOsjZ9i8E5YcvliJ2fGTNPz W2qypTE5Mb55Pk0eTwPv3Fa/4flQs58zPDEMFo087BjhQlUNxlaOn+PEgN6CIfVXSZMg eGfG0Hf7HbZaWFww6KckxsVqdQSbtfDFcQv0rRGfyguHwH0urHBqtywT4BNSnmnFiWc8 wmWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EAKg1Jm9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si3300722pfh.151.2018.03.01.09.13.02; Thu, 01 Mar 2018 09:13:17 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EAKg1Jm9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033279AbeCARLu (ORCPT + 99 others); Thu, 1 Mar 2018 12:11:50 -0500 Received: from mail-ua0-f195.google.com ([209.85.217.195]:35424 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032742AbeCARLs (ORCPT ); Thu, 1 Mar 2018 12:11:48 -0500 Received: by mail-ua0-f195.google.com with SMTP id n1so4357452uaa.2; Thu, 01 Mar 2018 09:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2NQYbm9/uRxSTfdPLko4ufZaQL1131GjecIvede2KHo=; b=EAKg1Jm92X1jVeEcSGVARXDAFwoP29rg7btZLYEvu9K8VgJCUT6vAKz1oUuqAzcg1s Q8jitrfwNkXtil+IntJilC8koYk9rgx2ZdbQaZc5CPI0vzr8Cz+c5SPz1n3Zh4MThL5h kA+zWWKzA0VECRQKF3C1zD7SgnWv8gIVNTimQQ6c2hM714N3u4DoytkuYdcI7q5b2ZGz XWiEwNRkabd72A7JT30FPltCe1SWmybgW6tFsRC4HPoPTkksqI+vMjYkWeXObtraoxuu cKBmztb6bQyj1MXGoX3nDtBpvnOQopSMpVg2KxuWKPHA1suhoPDZQO9s9mlGW7FQiuHL EIQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2NQYbm9/uRxSTfdPLko4ufZaQL1131GjecIvede2KHo=; b=qgFLLyTAf0+z1/4DkSX0uducT5eNEWkGNNz+p+CijqOHuExqz64oKy4gg/maN70cjp NPK4NKeR+mhH5ioZctQ4gD9ZMA+lhEIAbaMK75YxqSadTCPI8UHs3rfiS+UIiggW8Y24 ZCzBTziPsfFRCo2YtmyuIBaU4/etzxqMd9yorDDPktbZiZQCkFp8zmxB/k7fRfIMym7k FAsqpr/CKoaaNt4P8LDQulda5csJmOkvqu7gDEZ85iM5FvyN/NPT6F6O1EfexaJ5qm4f 1Rv6nawa8MwDwXnNRNik1iDRQj/5BcKqVNx96zgKefUvWtm7P6vs6cveLeGoMVdI2wn4 SGLA== X-Gm-Message-State: APf1xPDkDeZVUE+QOK7gT3kuEiSL7IYlNMl5SvmuzX0SYseb72RdpSrs n/JBYj+CJzFHZB5H9HU5qBdmvTMFaGkrYmBBlfo= X-Received: by 10.159.52.101 with SMTP id s37mr1837520uab.24.1519924307754; Thu, 01 Mar 2018 09:11:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.220.145 with HTTP; Thu, 1 Mar 2018 09:11:47 -0800 (PST) In-Reply-To: References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> <1518806331-7101-5-git-send-email-yamada.masahiro@socionext.com> From: Ulf Magnusson Date: Thu, 1 Mar 2018 18:11:47 +0100 Message-ID: Subject: Re: [PATCH 04/23] kconfig: set SYMBOL_AUTO to the symbol marked with defconfig_list To: Masahiro Yamada Cc: Linux Kbuild mailing list , Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Sam Ravnborg , Michal Marek , Linux Kernel Mailing List , Linus Torvalds 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 On Thu, Mar 1, 2018 at 4:05 PM, Masahiro Yamada wrote: > 2018-02-17 3:38 GMT+09:00 Masahiro Yamada : >> The 'defconfig_list' is a weird attribute. If the '.config' is >> missing, conf_read_simple() iterates over all visible defaults, >> then it uses the first one for which fopen() succeeds. >> >> config DEFCONFIG_LIST >> string >> depends on !UML >> option defconfig_list >> default "/lib/modules/$UNAME_RELEASE/.config" >> default "/etc/kernel-config" >> default "/boot/config-$UNAME_RELEASE" >> default "$ARCH_DEFCONFIG" >> default "arch/$ARCH/defconfig" >> >> However, like other symbols, the first visible default is always >> written out to the .config file. This might be different from what >> has been actually used. >> >> For example, on my machine, the third one "/boot/config-$UNAME_RELEASE" >> is opened, like follows: >> >> $ rm .config >> $ make oldconfig 2>/dev/null >> scripts/kconfig/conf --oldconfig Kconfig >> # >> # using defaults found in /boot/config-4.4.0-112-generic >> # >> * >> * Restart config... >> * >> * >> * IRQ subsystem >> * >> Expose irq internals in debugfs (GENERIC_IRQ_DEBUGFS) [N/y/?] (NEW) >> >> However, the resulted .config file contains the first one since it is >> visible: >> >> $ grep CONFIG_DEFCONFIG_LIST .config >> CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" >> >> In order to stop confusing people, prevent this CONFIG option from >> being written to the .config file. >> >> Signed-off-by: Masahiro Yamada >> --- > > > This one is almost trivial, so I will pick it up now. > > Ulf, do you have any comment about this one? > > > > >> I'd like to fix the root case of this weirdness later. >> (and other 'option' attributes as well) >> >> But, this series is focusing a more important work in a bigger picture. >> >> For now, I decided to just hide CONFIG_DEFCONFIG_LIST >> from the .config file. >> >> >> scripts/kconfig/menu.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c >> index 9922285..36cd3e1 100644 >> --- a/scripts/kconfig/menu.c >> +++ b/scripts/kconfig/menu.c >> @@ -212,6 +212,7 @@ void menu_add_option(int token, char *arg) >> sym_defconfig_list = current_entry->sym; >> else if (sym_defconfig_list != current_entry->sym) >> zconf_error("trying to redefine defconfig symbol"); >> + sym_defconfig_list->flags |= SYMBOL_AUTO; >> break; >> case T_OPT_ENV: >> prop_add_env(arg); >> -- >> 2.7.4 >> >> -- >> 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 Seems reasonable to me. Reviewed-by: Ulf Magnusson Cheers, Ulf