Message ID | 1518806331-7101-10-git-send-email-yamada.masahiro@socionext.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp871241ljc; Fri, 16 Feb 2018 10:50:11 -0800 (PST) X-Google-Smtp-Source: AH8x225xEeFVeWh1wUE4JOh5UlogDbVyyUejGpUyr/IL72DYAgnktU0D224+rXP3R9hfD6Y54LFs X-Received: by 10.98.18.65 with SMTP id a62mr7000912pfj.115.1518807011036; Fri, 16 Feb 2018 10:50:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518807011; cv=none; d=google.com; s=arc-20160816; b=zFfz4EByuvofUTIZPwPVAjL5kD6uQ1daNMPjMQXXOZ3m3mQYjl4l9adG8LFqD/gPWA 3HwR8CaCxANENib+Kh2M+Tp3Ic4iUyxU/sNeP7jjwNyKN7mejezrhNG1KLYRdp88/CBB vgXKol/JiMhglYj/IIL0HtU5MS7LTDxjRyqxqeC5v2zwgEabKDJlv6pEn8ZihrIzVN/U tfxSKHkAkIMhob0hoWr0woOFZ/hjHFpdO47WLfZdpSpvberR3QjwkURuT8i7UQ+VydZZ dvJCN9FP5gXN5i2/8Fu/s65GNtrMafG4ybxwOeXbGEK4hWbfH8HLio2iV13RrvcvJHT9 dgfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=G5hsOF43iRoT1pN7d/9mibt7V26nz0plYRyEv44rmrM=; b=eQkuUHsQcyyTnQ+o0xF/Mo/ZvYKe6WjhMDww1rILIQSD+VkzXEnf5Xe0pdQDbmUMDA i48HtwZBh+rkh5V0b6K9nmD9VzhxBluJJ2Za8HcqyLi3CzaFEqhAauQDRdZ8bdm9e52j gLyuh0KHnX+vppw2nqmQyuuyPr/IcDCVlIK/QNVttq2Jkjn+w2slfHnr5FY0B3G3yrhj sYuQerMYpz4YUCgw3gLG8wDmGUOu4oWwEa5g8fB1rJd+8hqh8yocQWTNFaVlyDBE6u// jimqeqcjVBNctPPlRqt13CsRCB7kHjEvN/qx6okW2KD5fuAE7D72Vz395PDoPjxYp9PM Mm+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2QEWDR4H; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9-v6si1158173plp.425.2018.02.16.10.50.10; Fri, 16 Feb 2018 10:50:11 -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=2QEWDR4H; 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 S1751623AbeBPSry (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Fri, 16 Feb 2018 13:47:54 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:57772 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752659AbeBPSlS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 16 Feb 2018 13:41:18 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-07.nifty.com with ESMTP id w1GIdBTC013418; Sat, 17 Feb 2018 03:39:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w1GIdBTC013418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1518806361; bh=G5hsOF43iRoT1pN7d/9mibt7V26nz0plYRyEv44rmrM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2QEWDR4Hlr3QilxioYCpCSsx43ONaaJmInvWTXXUmE304l4lAMavOHPfAeA0T96gl AXKGQJOHHYwTFzyyf6xFcHDTAB/hG32I5n7NDEbux7IdeGTEV19T7dPMAWINmZ5Xsc n8TGz3q2v3Mk3WadW/wvNhMfgI4/zg8nlhffc1mvkQ+6cGWMRRSFFfcj7f7X/naLJ4 73fvUX8b4gX0kAjjgmsh5iK3Sh+aF6RZzt9fBS88p9pp++UNxaRsaMEIBNI6+P3rwh qrvOzQwf37NJ5VqnbGw8QJi94bHXwB/307gwrmuQyqSDDgVsqs3htVB0qtPEQswd+t /+r4sXsBGUqfQ== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada <yamada.masahiro@socionext.com> To: linux-kbuild@vger.kernel.org, Linus Torvalds <torvalds@linux-foundation.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Arnd Bergmann <arnd@arndb.de>, Kees Cook <keescook@chromium.org>, Randy Dunlap <rdunlap@infradead.org>, Ulf Magnusson <ulfalizer@gmail.com>, Sam Ravnborg <sam@ravnborg.org>, Michal Marek <michal.lkml@markovi.net>, Masahiro Yamada <yamada.masahiro@socionext.com>, linux-kernel@vger.kernel.org Subject: [PATCH 09/23] kconfig: add 'cc-option' macro Date: Sat, 17 Feb 2018 03:38:37 +0900 Message-Id: <1518806331-7101-10-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
kconfig: move compiler capability tests to Kconfig
|
expand
|
diff --git a/init/Kconfig b/init/Kconfig index b4814e6..f026a62 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -8,6 +8,10 @@ config DEFCONFIG_LIST default ARCH_DEFCONFIG default "arch/$ARCH/defconfig" +config cc-option + string + macro $(shell $CC -Werror $(1) -c -x c /dev/null -o /dev/null) + config CONSTRUCTORS bool depends on !UML
This will be the most frequently used macro. It evaluates to 'y' if the given argument is supported by the compiler, or 'n' otherwise. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- init/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4