From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB92BC10DCE for ; Fri, 6 Mar 2020 11:38:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AB89C20866 for ; Fri, 6 Mar 2020 11:38:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CTimv00S"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="jDr8BKd+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB89C20866 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oMRRWl+KIHCghnHXUjICADfIW23Bck20eyvOMU4bmkU=; b=CTimv00SBepqXG ayjDmCCPb+rpcPVrRtUazBNd9TF+JH2oUsurpO5iNdHH8rD07xZ1zC2/57O76eZ30i/2sY42W0VGJ dxgs60MAW6jsozaw0Sljegj5U2fYOUqzFRJqk+QsYnkpyN2mJS1/rra14KjL4D3IZialH4UG314vT Tk3TgStWsWGpQIAKPi5HynetSnkY0nmOf12nghIvPOoK9CvRLWOE7MCH/u8XO+PUxjk8JAZX5xAVs lqCxu4s+hpED2a8y+7gnl1MMwKVTwvqazBMGgcWnPprNPijfJnYAcp283KMvzQ4eBcjKPLNA+huC5 bWER8YzhaCR/vd2Uwrzw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jABJP-0002zW-4L; Fri, 06 Mar 2020 11:38:39 +0000 Received: from conssluserg-06.nifty.com ([210.131.2.91]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jABJM-0002yk-1L for linux-arm-kernel@lists.infradead.org; Fri, 06 Mar 2020 11:38:37 +0000 Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 026BcJjs027874 for ; Fri, 6 Mar 2020 20:38:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 026BcJjs027874 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1583494700; bh=ncu8WLAljVQR3QInSu6mMHuvxTgEWqiZtNOfEM4uZWo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jDr8BKd+KpPa9mct9RcKcFzVUwXmkTgwNddiTugo1yxY0lv2SvJdxXPaTnemFc4rD YiiAiLzYtr3vZwy8ZuwJ1Ne5qhb6Y6vs9Xkaqduf9FAIuaiKJ0vUBwqeHnrPnAgWV9 GWeRVxKjl3byW6tFRcJ4Al0+wsd+sJw/EH3XTOxqN7ets+v5WsIuUl4NjZv4zNe1VF jXMbmXTGNqFRilmn49EQgvm/CDh5WR5w6W0nCmhLhzXsmJmuL+NLBcuXAmKLTeqPWg RPJTaECKjUwLX0jAa0NhMzzdFsuKfinUxBfNN823t9u82hOfVyBqblq6mP+lKFxUnk VcfivaxL3aBXg== X-Nifty-SrcIP: [209.85.221.175] Received: by mail-vk1-f175.google.com with SMTP id y201so501882vky.8 for ; Fri, 06 Mar 2020 03:38:19 -0800 (PST) X-Gm-Message-State: ANhLgQ0oIur800JHeVk6L8lv8xqeW64gRcEcLebaT3OKip4hXdbiw2T3 KN0lNM6tZt/CvRsJvCT7eaQSmfNI3I15+hBVfb8= X-Google-Smtp-Source: ADFU+vtmXZGr7Ge50Ss53JblJfZbvh2OCKbpTUq7rB6QvrHFWeB9aTI49mIeYX5VgHRdp43DcgEXGMP7Ijnf/2CgIhU= X-Received: by 2002:a1f:cbc1:: with SMTP id b184mr1269535vkg.73.1583494698715; Fri, 06 Mar 2020 03:38:18 -0800 (PST) MIME-Version: 1.0 References: <1583476525-13505-1-git-send-email-amit.kachhap@arm.com> <1583476525-13505-17-git-send-email-amit.kachhap@arm.com> In-Reply-To: <1583476525-13505-17-git-send-email-amit.kachhap@arm.com> From: Masahiro Yamada Date: Fri, 6 Mar 2020 20:37:42 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 16/18] kconfig: Add support for 'as-option' To: Amit Daniel Kachhap X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200306_033836_452610_5826EE7E X-CRM114-Status: GOOD ( 15.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Kees Cook , Suzuki K Poulose , Catalin Marinas , Linux Kbuild mailing list , Kristina Martsenko , Dave Martin , Mark Brown , James Morse , Ramana Radhakrishnan , Vincenzo Frascino , Will Deacon , Ard Biesheuvel , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Mar 6, 2020 at 3:36 PM Amit Daniel Kachhap wrote: > > From: Vincenzo Frascino > > Currently kconfig does not have a feature that allows to detect if the > used assembler supports a specific compilation option. > > Introduce 'as-option' to serve this purpose in the context of Kconfig: > > config X > def_bool $(as-option,...) > > Cc: Masahiro Yamada > Cc: linux-kbuild@vger.kernel.org > Acked-by: Masahiro Yamada > Signed-off-by: Vincenzo Frascino > Signed-off-by: Amit Daniel Kachhap > --- > Changes since v5: > * More descriptions for using /dev/zero. FYI: This has been fixed: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3c968de5c7d1719b2f9b538f2f7f5f5922e5f311 So, this will not be a problem for the future release of binutils. Anyway, we need to take care of the released ones, so I am fine with /dev/zero. > scripts/Kconfig.include | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/scripts/Kconfig.include b/scripts/Kconfig.include > index 85334dc..a1c1925 100644 > --- a/scripts/Kconfig.include > +++ b/scripts/Kconfig.include > @@ -31,6 +31,12 @@ cc-option = $(success,$(CC) -Werror $(CLANG_FLAGS) $(1) -S -x c /dev/null -o /de > # Return y if the linker supports , n otherwise > ld-option = $(success,$(LD) -v $(1)) > > +# $(as-option,) > +# /dev/zero is used as output instead of /dev/null as some assembler cribs when > +# both input and output are same. Also both of them have same write behaviour so > +# can be easily substituted. > +as-option = $(success, $(CC) $(CLANG_FLAGS) $(1) -c -x assembler /dev/null -o /dev/zero) > + > # $(as-instr,) > # Return y if the assembler supports , n otherwise > as-instr = $(success,printf "%b\n" "$(1)" | $(CC) $(CLANG_FLAGS) -c -x assembler -o /dev/null -) > -- > 2.7.4 > -- Best Regards Masahiro Yamada _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel