Received: by 10.223.185.116 with SMTP id b49csp443844wrg; Wed, 21 Feb 2018 00:46:31 -0800 (PST) X-Google-Smtp-Source: AH8x227KOdac2TFmzlQdbOfyagJUPCzfCygzCZx3P9j1r0sJ9nLqYsLXE2MGZEinPiwTYCovzda8 X-Received: by 10.98.229.21 with SMTP id n21mr2555860pff.158.1519202791238; Wed, 21 Feb 2018 00:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519202791; cv=none; d=google.com; s=arc-20160816; b=zQIRw0hWMnHqcNl99gVH8rJ5PoeX15HfwuJ+l888TGmzconKtRk7g6I3E0db6kwvsn 7YsG+ou8xYGpWkkLI0Ut7CHfOpnc+owH+oo/I5AJZMcfUp0r9qbLrI1nBDp5B7eQuTRA HKVH/PBqSECbJg9QMiiyYj7XgdjTrRkTUDKQLKehPiLtVPIpwYAmghwAAKW7pB9NrGYn ocV+kz6qUY9LnFX1BbKl06vEMJzY7WAL19vkrEstbS5KB/6QQBYIquQ7mAF8oiJKQwM+ f1ipaorblo6ubkuk3kfIjzR7gzB9Z9zYNegJxGC+tGZdkN1YgGpIAGO+5lM3ogSPdMK+ UGOw== 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=fRDLos7XG6JltQGtJEy8h5voEhzrb39985bVFRx4XYw=; b=uZ1oRqBCG1QVtCDbx4fU4TsqfG6mskeXZMJgKY2AXBNnYJ1XPRRmf09ae//3CRLVo+ 1LWJnOT0q0RoCgN7419fEzczMh9hX5bairXIdRoZ0iC1O2DPkdqDD5AjSek9hha6Asrt t5Cy3DhOqq61yaUjcnRKbddpD4R7uDtZLJyYrfQwYNvjI6b53wJC8JEztpjQPDAdHa29 kGJsjOpXCm/YV9Wrk0vDJMC1NMZ/OUUcH8uGllmyZb7Cnd8Ix5YaneZyT7y66ep4qKoR wNjW2nrzW9uvuLgDBViDldEFGUTeDdcubG6MQS3O3vJ1boUWjcJSkmjevZyjQFc7bxun j/5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=zPcWnXm7; 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 i6-v6si901178plt.262.2018.02.21.00.46.15; Wed, 21 Feb 2018 00:46:31 -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=@nifty.com header.s=dec2015msa header.b=zPcWnXm7; 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 S1751959AbeBUHjW (ORCPT + 99 others); Wed, 21 Feb 2018 02:39:22 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:33412 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751934AbeBUHjT (ORCPT ); Wed, 21 Feb 2018 02:39:19 -0500 Received: from mail-vk0-f50.google.com (mail-vk0-f50.google.com [209.85.213.50]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w1L7d6lZ022096; Wed, 21 Feb 2018 16:39:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w1L7d6lZ022096 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519198747; bh=fRDLos7XG6JltQGtJEy8h5voEhzrb39985bVFRx4XYw=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=zPcWnXm7mstJTGugR+ZQXJ/SbLk+Nf0T4jJfk1tCKCD0QTF0SjFfWzwCMOoW642Yt y4Y7a8tq01pfOYowQISQVB4pKQXbnNMWcS2qRic/sNK3217ptxlgwIvV/wxjlWmbk9 yJeI0eJmvpUtRNXfisPhTk31nvTRn1oKX0Szcc01misl9rqa36OaweKIsFLYYsJZ5/ IdACf+GoBALOvIW1MtaVTvqR5nWbWVMTBmdfvrwBD/Z7xsU0nnPqMPrvcCZP9wjgAK ZMl7IBrgtXrIB425/Ksh5fvVJMrTBB8TxaTa91Oj2kiCuD5AlddzhGUDJOasK89Lm4 nDEcyDuk5eDOA== X-Nifty-SrcIP: [209.85.213.50] Received: by mail-vk0-f50.google.com with SMTP id k187so403176vke.12; Tue, 20 Feb 2018 23:39:07 -0800 (PST) X-Gm-Message-State: APf1xPDwfPXY6SYgeQ8+rpt+yI5TwCkqLMcb9Hiwk21+m06palYzaVhr FKY3+TzhvowhNsnOg5c7IFXLNWlZq3MeCx9x8RE= X-Received: by 10.31.237.68 with SMTP id l65mr1725372vkh.11.1519198746170; Tue, 20 Feb 2018 23:39:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.83.212 with HTTP; Tue, 20 Feb 2018 23:38:25 -0800 (PST) In-Reply-To: References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> <20180218221352.GA6651@ravnborg.org> From: Masahiro Yamada Date: Wed, 21 Feb 2018 16:38:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig To: Ulf Magnusson Cc: Sam Ravnborg , Linux Kbuild mailing list , Linus Torvalds , Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Michal Marek , Peter Oberparleiter , kernel-hardening@lists.openwall.com, Jonathan Corbet , sparclinux@vger.kernel.org, Linux-sh list , X86 ML , Thomas Gleixner , Rich Felker , Jeff Dike , "H. Peter Anvin" , user-mode-linux-devel@lists.sourceforge.net, Yoshinori Sato , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, Paul Mackerras , user-mode-linux-user@lists.sourceforge.net, Ingo Molnar , "David S. Miller" , Michael Ellerman , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Richard Weinberger , Emese Revfy 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-02-20 0:18 GMT+09:00 Ulf Magnusson : >> >> I'm not happy that we in one context can reference CONFIG variables >> directly, but inside the $(call ...) and $(shell ...) needs the $ prefix. >> But I could not come up with something un-ambigious where this could be avoided. > > I think we should be careful about allowing references to config > symbols. It mixes up the parsing and evaluation phases, since $() is > expanded during parsing (which I consider a feature and think is > needed to retain sanity). > > Patch 06/23 removes the last existing instance of symbol references in > strings by getting rid of 'option env'. That's an improvement to me. > We shouldn't add it back. This is really important design decision, so I'd like to hear a little more from experts. For example, x86 allows users to choose sub-arch, either 'i386' or 'x86_64'. https://github.com/torvalds/linux/blob/v4.16-rc2/arch/x86/Kconfig#L4 If the user toggles CONFIG_64BIT, the bi-arch compiler will work in a slightly different mode (at least, back-end parts) So, my question is, is there a case, $(cc-option, -m32 -foo) is y, but $(cc-option, -m64 -foo) is n ? (or vice versa) If the answer is yes, $(cc-option -foo) would have to be re-calculated every time CONFIG_64BIT is toggled. This is what I'd like to avoid, though. -- Best Regards Masahiro Yamada