Received: by 10.223.176.5 with SMTP id f5csp2119480wra; Thu, 8 Feb 2018 08:44:45 -0800 (PST) X-Google-Smtp-Source: AH8x225w5A4ax2SdPcCKR7IoReZRtp/EMoMkXvaX26uJzJCBtHVgXrtOmmTXkVceBm6mCVA7508g X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr1224209plb.108.1518108285474; Thu, 08 Feb 2018 08:44:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518108285; cv=none; d=google.com; s=arc-20160816; b=rJEbaiduerPJLzC5BZb2EL+d5eSnYuLcZYaZvtn0yE23aDb+Zx6G74HzS/bLBV1htL 0lOaBzEBqWUO+DUKMZ6Sgc2WGoRWfSdyAXsrR0xz8TCevgby1mbG/qtPwlixhVVcdwkC F3Kj+98yV+TYc3z/MYfrL0ugDSkUyrm7LdXtyiA/hOfiSVgxBo1L2P/xJ1TmWwVvcfzu UiE9LMFCbYJ6iKQ2OSAF4MTmsMaUZJj0qIM6dJzyL0w3daZhFgcTbn6UyBo6hikmJjS3 /C5xQj34r+8duWaPVMAUqC1/xU6oyX4tb1ZR1kOcxmuz9LxxhAfYlrVdfzBOmZhctn/Z STYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=XOfwAFkaMZDr5v17Jk2pHFG9G9zTLX6evZnQS7AFCd0=; b=03UkCrjmq0eZhIZjPeat5+p2bXd0gg+F/uRtE138+1PujfgCCErVmTZgYmLzNDKT6y bWMFXs9LzHIeAI8X0LWvLigLXwh/ymAAyNJiSkNlYDPh6DknYoC8zhf9gLuTVIKf1AiM 4Ia0Aea1GAb7AGVI7IntCWCCd75ONGXaDyROLTnopjdIUo2J4hFyiBmVG6swnwGTB08W LFJpkZiAEO13+vH1gkjlr167mHQ5PPksLAzdqVl7pqd1lPBCQHC1zQ+Ig5J0Skng51R+ VD3WnDvdwv0gvAAYPp3uBSC9wZfS3Q6xZCBLRVhzm8jp6mc9E5rDx+YK/2Cb/k+VvEg2 lWng== ARC-Authentication-Results: i=1; mx.google.com; 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 b13-v6si200659plk.189.2018.02.08.08.44.28; Thu, 08 Feb 2018 08:44:45 -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; 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 S1752166AbeBHQnP (ORCPT + 99 others); Thu, 8 Feb 2018 11:43:15 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51428 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751094AbeBHQnN (ORCPT ); Thu, 8 Feb 2018 11:43:13 -0500 Received: from localhost (unknown [37.170.37.207]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 527D310CD; Thu, 8 Feb 2018 16:43:12 +0000 (UTC) Date: Thu, 8 Feb 2018 17:43:08 +0100 From: Greg Kroah-Hartman To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Linus Torvalds , Andrew Morton , Kees Cook , Nicolas Pitre , "Luis R . Rodriguez" , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , Martin Schwidefsky , Pavel Machek , linux-s390@vger.kernel.org, Jiri Kosina , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/7] Kconfig: add new special property shell= to test compiler options in Kconfig Message-ID: <20180208164308.GE9421@kroah.com> References: <1518106752-29228-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518106752-29228-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 09, 2018 at 01:19:05AM +0900, Masahiro Yamada wrote: > This was prompted by the email from Linus today's morning. > > I implmented this in a rush today, so there are still many TODOs, > but I put it here to start discussion. > > I think it is working, but as you notice, it is tedious to repeat something > like follows: > > config CC_HAS_STACKPROTECTOR > bool > option shell="$CC -Werror -fstack-protector -c -x c /dev/null" > > One possiblity is to put this ugly code into script like follows, > > config CC_STACKPROTECTOR > bool > option shell="$srctree/scripts/cc-option.sh $CC -fstack-protector" > > ... but this is longer. But it's easier to remember and cut/paste from :) > I was thinking of something like follows: > > config CC_STACKPROTECTOR > bool > option shell="$(CC_OPTION -fstack-protector)" Sure, that would be even nicer, if possible. Is it? Anyway, very nice work. I like moving the cache stuff to the .config file, that makes a lot of sense and will be even nicer to see in the /proc/config.gz output for when we are curious as to what the build options really were. thanks, greg k-h