Message ID | 1526537830-22606-25-git-send-email-yamada.masahiro@socionext.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1878509lji; Wed, 16 May 2018 23:20:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqRcUFz9acN6zXEDCk0Qvgbup2Dr3Yw+nj//KIvEkMn+10z+hrlx2osSDHVAn8kor//MKFY X-Received: by 2002:a63:2b46:: with SMTP id r67-v6mr3074741pgr.89.1526538041500; Wed, 16 May 2018 23:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526538041; cv=none; d=google.com; s=arc-20160816; b=ZKtXzax73lg8+MFOVj5X8gTi6UpwQX4v/hIqFQFJXHXID65PSI7EjZ2c1DAUDuBjPV ai7tzQ9YrCToaj2Erusp/gZVy98+M9B2Qno3AnYUvVyHj1UIubQxvG0hrrzGGpwG4QgG J5FT4h1pwuJUH4pAhe9TaTYZTxjYlXTPSChfwqtYcW2g4LZf7rksMQv/p/dI02eLX1pS 9rkOY8++mxcxyT2l25ZFboa+4AkK66x8/rVOG7JnnvkZV0fzhCCvPw5caSyu41/7CsEe 6OtJUb10EmJm81bpHWs6SLhq6sJRTvyXps6BS6BTdmYRiw76qB4ERu7UDDCZKsQ2s7D8 LcpA== 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=svCMWd1eJifwrbrp8GDwRGkS3dcb1kFY41kde3D/Hv0=; b=WWhpNiaKZVJ1qk3V53Dxfx5qMrlur1CgA87yFRZKxSbcrwfXJhMazJ3d67FgYEJ3JN vKZt5KUGA8X98sQZiGqutUS/w0AFJUXyqGXzdRQ3o6tojI5JshC5ZQUYD4O81f+kw1Qu xolquJjND885bCbBTDw0lfnDMuu2X9F5RSm2d+750Ax/9zIWyNsM36l4vcCX0aPZaAgJ JmB/QVRyk0Hm1h6U+yVYYqr0NnkMCwexU2nB5wfDpt+oawJ82VZXHBqDQbyBjj1dSSLR rc4MwtrygSXf7vSq0XT1+4rB2IqO7AwFb3cnwjXVyK/vyK5DNeElEJbhc47TyDJ9GIE0 YsfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nZ8kZdMR; 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 b10-v6si4433280pla.282.2018.05.16.23.20.41; Wed, 16 May 2018 23:20:41 -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=nZ8kZdMR; 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 S1752516AbeEQGUh (ORCPT <rfc822;ramon.fried@linaro.org> + 29 others); Thu, 17 May 2018 02:20:37 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:26308 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752176AbeEQGT7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 May 2018 02:19:59 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w4H6HbUM002841; Thu, 17 May 2018 15:18:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w4H6HbUM002841 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526537882; bh=svCMWd1eJifwrbrp8GDwRGkS3dcb1kFY41kde3D/Hv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nZ8kZdMR1THYVzfecX++ogKUrJ+L5SDWTYbLDwLjnwkxk5MPoe3U3VWFEk+HulCrr M9tz+e3jl5B9l6osU9JikhZS9BlzTC9+8NTvrD+QX0x8Ta2AMxw3UxhDOjvF/t0Ats UOs10Nn2IVuLVKki8l5pKGXDed7GnC3TpBB+cXFs7UqEIzNLlO9b9CANoo+Erdnwmi XIGulccpsD/QQLr1yqBDQvptEyMRQTWonW38Nm+92ZPffP+ufHD/qXxnLcGgLQJJSo ygIYLroY6N3/Ow5zrmrYr1uQCUeCp3+oAc2MJf+PYQ8MZeaa+sNUmbhUK0oexEkC2R PmgEg/EAiI31Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada <yamada.masahiro@socionext.com> To: linux-kbuild@vger.kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org>, Sam Ravnborg <sam@ravnborg.org>, Ulf Magnusson <ulfalizer@gmail.com>, "Luis R . Rodriguez" <mcgrof@kernel.org>, linux-kernel@vger.kernel.org, Nicholas Piggin <npiggin@gmail.com>, Kees Cook <keescook@chromium.org>, Emese Revfy <re.emese@gmail.com>, x86@kernel.org, Masahiro Yamada <yamada.masahiro@socionext.com> Subject: [PATCH v4 24/31] kconfig: add CC_IS_GCC and GCC_VERSION Date: Thu, 17 May 2018 15:17:03 +0900 Message-Id: <1526537830-22606-25-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526537830-22606-1-git-send-email-yamada.masahiro@socionext.com> References: <1526537830-22606-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 66f0463..c6ac856 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -8,6 +8,14 @@ config DEFCONFIG_LIST default ARCH_DEFCONFIG default "arch/$(ARCH)/defconfig" +config CC_IS_GCC + def_bool $(success, $(CC) --version | grep -q gcc) + +config GCC_VERSION + int + default $(shell, $(srctree)/scripts/gcc-version.sh -p $(CC) | sed 's/^0*//') if CC_IS_GCC + default 0 + config CONSTRUCTORS bool depends on !UML