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=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 4A0A8C10DCE for ; Fri, 13 Mar 2020 09:15:06 +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 0A1E7206FA for ; Fri, 13 Mar 2020 09:15:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QVweIOEl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0A1E7206FA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com 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-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=D+PmIBDbyvm8VWw8SHq08V0M9ik/kGnojirBnU8msPY=; b=QVweIOElBHwGPsugj4FISR5i8 kZ9UO8sXA90Jz7GvZAyEMWPErha4JOsNBQhv3U20MOVxCEAllauv5b+w3O5kC7AGSetEu8glirpEe UnsIjqygvpu3KwR0/n9jc8oMZSkhGCKLrZscBcnnrP9pve/dsUU/RJ+NqBEBip4fDfXph1tZC7wEJ qM/DHjGacPtNa2YHAIjsKG+ZWVr/Go7GlAUvzTx5Nd1vVKCz1J0SgLEiNvx3sAJ6Q6Wh+GoEE/Feq dRfqiCv5H2blvZVoFUIj9MgtnGyPh1LoXfdNESysskHeVZKG8RJzdxpfDAVGFvdvNlG0EulDiCeh/ oXWLGdO/A==; 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 1jCgPF-0004P8-Ho; Fri, 13 Mar 2020 09:15:01 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jCgOd-0003ju-6G for linux-arm-kernel@lists.infradead.org; Fri, 13 Mar 2020 09:14:25 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8F18831B; Fri, 13 Mar 2020 02:14:22 -0700 (PDT) Received: from [10.162.16.120] (a075563-lin.blr.arm.com [10.162.16.120]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C7C813F67D; Fri, 13 Mar 2020 02:14:18 -0700 (PDT) Subject: Re: [PATCH v7 15/17] kconfig: Add support for 'as-option' To: Masahiro Yamada References: <1584090304-18043-1-git-send-email-amit.kachhap@arm.com> <1584090304-18043-16-git-send-email-amit.kachhap@arm.com> From: Amit Kachhap Message-ID: Date: Fri, 13 Mar 2020 14:44:17 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200313_021423_437564_06520BD6 X-CRM114-Status: GOOD ( 19.39 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 3/13/20 2:40 PM, Masahiro Yamada wrote: > Hi Amit, > > On Fri, Mar 13, 2020 at 6:06 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 > > > If you have a chance for v8, > could you please drop these Cc lines? Ok sure I will remember. Cheers, Amit > > I had already given Ack, and am satisfied. > I have no more comment. > > Thanks. > > > >> Acked-by: Masahiro Yamada >> Signed-off-by: Vincenzo Frascino >> Signed-off-by: Amit Daniel Kachhap >> --- >> 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 >> > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel