Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3350380imm; Thu, 17 May 2018 07:26:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMLdhrffFUDGVocITOAZagb/jtRzYatXp4qn9+5FQDVWFH77G05x8A18JD4NyubS1XyqAh X-Received: by 2002:a17:902:b589:: with SMTP id a9-v6mr5256749pls.161.1526567187054; Thu, 17 May 2018 07:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526567187; cv=none; d=google.com; s=arc-20160816; b=Wz+jvrwVSQoZHfmu66JMGF6t7wrG953FhbYc9+yFK1M0b2nrIGWiPmpetNc+V9bFKH PIqHnDnStfRJ/ThYUTyMkEF0Ffx6/DZd0D9u+k6392I/cHDXIEJp1URD1m1AW10uXDEU cyyB8TA9NAF2dtK8mxo0d6epsUpq0d5rramuEVpPoOKlvr55MZIpuxbw3mTpKRakyeZ1 KwJvXGiP62a/qT/Pf71Zpxe95hR6nNgCCCNUcy4VqrpC8DCozO+Jf3tPPbTUFJaX665e gdfETDNifsaSjuVlZVCUCqvJSgUNw6HQKg0zlLstcwS+8QOzYGu+nAZvbapJIlo4Lfxj n64A== 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=tlMOoB6jQ5MM1KgH7VBrjHNovLwFL5b20TsZh+GujOA=; b=cVDzeDiu+dR+ZCQX0QTHhN0YLU3wRp9MNZ7SzmofX2Ds5rnXiS56nc9ja1W+kC6Qte njIAeCOMeb/IJ2BFx9rRllS3SBbdTKewBcHAoGP/B2w1ZqzZHNB5p1sPH3bDFCrLARn0 uIl1HDW8EkNVswUsdlDDpDl3RZqmnipEgeWuWcy1ewQ2RA5Rr6oEIJWwz5BCKf6ZUFqc Lf5UBBgw5eaOQ3iw0DrjdS4m1Ev3eWSBzpjzqRfBA5OcFjZq5HUfDqvekHz9EZH1JJHB GV68tPBj/vYkyOycIOGaQZHVx6mqhOY/2bgscyMDB+A9eH1QFlDiCVIXI78YsHW2j/x5 WLNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2tMOu6EY; 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 y21-v6si4126584pgv.283.2018.05.17.07.26.12; Thu, 17 May 2018 07:26:27 -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=2tMOu6EY; 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 S1752423AbeEQOXg (ORCPT + 99 others); Thu, 17 May 2018 10:23:36 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:48237 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404AbeEQOXf (ORCPT ); Thu, 17 May 2018 10:23:35 -0400 Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w4HENLbF003773; Thu, 17 May 2018 23:23:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w4HENLbF003773 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526567002; bh=tlMOoB6jQ5MM1KgH7VBrjHNovLwFL5b20TsZh+GujOA=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=2tMOu6EYiGecHjHlmjFwOXnWMmDB6ehpDkdsMPjO5Ce6EUSc5es7amkDx5OGAKbKS mIPedMzfV4WeGCCnc6G+tFm3+B45K/mtjBhOA07aoygm4xNzW81/7nj3qUgUk9emSL y0LYbZ+hC81YwinwxsOHFfQzLl5XioX1NDldrqCoHC72Wwu4iky7WV9xXYHNpu37PF 2mq8yTUvQN8HegebdhT2OShFCx2cxgBlOSdhTtWmHGbuxmfCz4PXhpXCks0vPtpOTV OwanHEcgPh7eoSo3oXsu7DtWJ/SWwPXbc8UlzPBE/m0K4W0xhpys7GrLig7d5tIBFT JWnxwxaZtODHw== X-Nifty-SrcIP: [209.85.213.47] Received: by mail-vk0-f47.google.com with SMTP id j7-v6so2786005vkc.9; Thu, 17 May 2018 07:23:22 -0700 (PDT) X-Gm-Message-State: ALKqPweFByD01goc43ibBRCz3HNPPw1V/xlZ+FAIkwYbtFfWuzmb0/9L Dv2EWjDeOxiNLoDXTNUvxCz+Qp4F8/s5H9qfaD0= X-Received: by 2002:a1f:9615:: with SMTP id y21-v6mr4228296vkd.154.1526567001094; Thu, 17 May 2018 07:23:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.85.216 with HTTP; Thu, 17 May 2018 07:22:40 -0700 (PDT) In-Reply-To: <20180517175156.4c4246f6@roar.ozlabs.ibm.com> References: <1526537830-22606-1-git-send-email-yamada.masahiro@socionext.com> <20180517175156.4c4246f6@roar.ozlabs.ibm.com> From: Masahiro Yamada Date: Thu, 17 May 2018 23:22:40 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 00/31] kconfig: move compiler capability tests to Kconfig To: Nicholas Piggin Cc: Linux Kbuild mailing list , Linus Torvalds , Sam Ravnborg , Ulf Magnusson , "Luis R . Rodriguez" , Linux Kernel Mailing List , Kees Cook , Emese Revfy , X86 ML 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-05-17 16:51 GMT+09:00 Nicholas Piggin : > On Thu, 17 May 2018 15:16:39 +0900 > Masahiro Yamada wrote: > >> [Introduction] >> >> The motivation of this work is to move the compiler option tests to >> Kconfig from Makefile. A number of kernel features require the >> compiler support. Enabling such features blindly in Kconfig ends up >> with a lot of nasty build-time testing in Makefiles. If a chosen >> feature turns out unsupported by the compiler, what the build system >> can do is either to disable it (silently!) or to forcibly break the >> build, despite Kconfig has let the user to enable it. By moving the >> compiler capability tests to Kconfig, Kconfig entries will be visible >> only when they are available. >> >> [Major Changes in V4] > > Do you have a git tree for v4? I can test it with the powerpc patches. > > The new scripting capability in kconfig has allowed us to already > improve the config process on powerpc: > > https://marc.info/?l=linuxppc-embedded&m=152648110727868&w=2 > > I'm sure there's more clever things we can do with it but I haven't > had time to think about it yet. One thing that comes to mind is that > It might be nice to show the option as disabled, then the user could > upgrade their compiler to get the options they want. > > Anyway v3 worked fine for me, the documentation is really nice, I > could implement the above patch without any problem despite being a > kbuild dummy. Thanks for the series, ack from me. For easier review and test, I pushed v4 to the following branch: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kconfig-shell-v4 -- Best Regards Masahiro Yamada