Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3320731ybz; Mon, 4 May 2020 00:14:07 -0700 (PDT) X-Google-Smtp-Source: APiQypKnTpG9/OFB0NkW9J/ZAupUubqetRw6UzNQ51Nb97SMy51iTsYcHVsQsTzcx7RRJvOSBYVb X-Received: by 2002:a05:6402:2293:: with SMTP id cw19mr13317759edb.351.1588576446818; Mon, 04 May 2020 00:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588576446; cv=none; d=google.com; s=arc-20160816; b=rdEmIgqpXqvxDLJyEHh6TjygITXQTa0OKBXqqvyiYw+x/t2JH7ct1dw6KjH+Kaqbul df3KyOGUz4AV3e7wUPKUDlQ8Z0oMUbHCIKvteX6Gi6s9y7XEg6HuKLmCEqSpbZf+plH+ K1/SBNl/kA0tmPDh4/JVq9W68V1aHPAxz3/IAMp4NZxQb4Dkk2dmLhZ76CGsNmNRNTsK a0YmQLVZDB62JOhFPG+xJ+dApbtzRQ8z5vd4LsizDyjFqUbloaW60VvrOoyui6mPt4od 2QgS7LegAZKhffjHWF2qwohOaETHBWZNg43FBSlBcj8PLmIhGgkKZlvSCZluI1XonLAQ swdg== 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 :in-reply-to:references:mime-version; bh=rfkxILgR6gYq3zL8Nxb8d3GiP3wwKG2LbudzQQF7WbU=; b=f4kur/Kr9nValQLfmXxi4cYb8/inQ3EgQbZ6cCvmzSAHm3bC26xF8UYF8wRa6nJHLT JzjR1p+2LATcLQG5Fgiy7/0mpcHKkNyg3bO6hRxD5+FW0+Wep5K3PWEQy3HsOm3PuJWv M0SxoikGua+dC2ogy+80IGEYVZivLKc1BQFnlXorxIYzjTxt1VdPAVmxpgrdXKpWISBC Rawdt/80++J/Mbotehs9Kb67jo3Sh6gjshb9FuKn4vexkMv+q4gG9LWhLp+Dyl1xu9+/ 7/y0mRsO4o1NdMqVCrQTbFln/MrdWBhiGSL5qTdM7mNFgSX2Nd+tAKM/xhaogK0RrAS7 bRnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by15si6394692ejb.229.2020.05.04.00.13.43; Mon, 04 May 2020 00:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727980AbgEDHLZ (ORCPT + 99 others); Mon, 4 May 2020 03:11:25 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46454 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbgEDHLY (ORCPT ); Mon, 4 May 2020 03:11:24 -0400 Received: by mail-ot1-f65.google.com with SMTP id z25so8024653otq.13 for ; Mon, 04 May 2020 00:11:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rfkxILgR6gYq3zL8Nxb8d3GiP3wwKG2LbudzQQF7WbU=; b=oOfOSSr/dGmYh+jgyKl4faHKwXMWHkL4It14ig4D+xNsjyb8fJTiEs6WntlJ106M/8 MhQbUQDWNt/6+jc1D8Y34o1AP+Kgt9pkvgAwwo0pD8Kq1Rp5vi70iFCil04knWNtC/G7 KYW7ONL8p/ynSVAkpvyfxsgBqJAa+rPofwhzUxCkE/A2WLYXIOZFQ/ki9XXA7yWqTZwX GitnNCnuiSr/VuvOkwQP3TWFVw0aTuVDjZ+3DJneTV5ELj5AfWAGWQvDfK4hRM1pDgPs tmbEFjcQBpviVfs15700KoLFTCQFzzRJO02xFzUlGwGVVvLUnnUwh4LV784rxjYUnfck JuEw== X-Gm-Message-State: AGi0Pub5s+YFPDTcH+4NcEuMRqUd73kFr8NgcpXeEpMnKw+VJOaQ7JOr x/3x0BVas0DPulUXxfip6UpRnPuN8aOFQ6wI3z4= X-Received: by 2002:a9d:7d85:: with SMTP id j5mr12499692otn.107.1588576283223; Mon, 04 May 2020 00:11:23 -0700 (PDT) MIME-Version: 1.0 References: <1585568499-21585-1-git-send-email-amit.kachhap@arm.com> In-Reply-To: <1585568499-21585-1-git-send-email-amit.kachhap@arm.com> From: Geert Uytterhoeven Date: Mon, 4 May 2020 09:11:12 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] init/kconfig: Add LD_VERSION Kconfig To: Amit Daniel Kachhap Cc: Linux ARM , Catalin Marinas , Vincenzo Frascino , Will Deacon , Linux Kernel Mailing List , Michael Ellerman 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 Hi Amit, On Mon, Mar 30, 2020 at 1:42 PM Amit Daniel Kachhap wrote: > This option can be used in Kconfig files to compare the ld version > and enable/disable incompatible config options if required. > > This option is used in the subsequent patch along with GCC_VERSION to > filter out an incompatible feature. > > Signed-off-by: Amit Daniel Kachhap > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -17,6 +17,10 @@ config GCC_VERSION > default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC > default 0 > > +config LD_VERSION > + int > + default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh) > + > config CC_IS_CLANG > def_bool $(success,$(CC) --version | head -n 1 | grep -q clang) .config: warning: symbol value '2.01827e+11' invalid for LD_VERSION Seen with the or32 compiler on kisskb, e.g. http://kisskb.ellerman.id.au/kisskb/buildresult/14226173/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds