From patchwork Wed Nov 7 09:40:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Murzin X-Patchwork-Id: 10672055 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1F5C7109C for ; Wed, 7 Nov 2018 09:41:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DF292B93F for ; Wed, 7 Nov 2018 09:41:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 020962B946; Wed, 7 Nov 2018 09:40:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D60892B93F for ; Wed, 7 Nov 2018 09:40:58 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=vZWq1Sq+DDDVC5htXWelurf1YvH3GcLOtv0lqLtnVsM=; b=VkV P4ZxsniZ5RNRTOkgDDBhJECjXxFMXB6AYpD3F3NCCiL/T5Vx+BJDO5CCCuO+uXDevfOj7/0+8XYpG BKCV4cIycHCJAZdOrsp3wRBJXDDQG4/7/+ofj2eKQqqKbtI4bbOCjqq68ZuRiCHiKQWgP+WUp/I+N xR5q1Xc6bDozWoxmox57Er8oW56Z/WTJ37Hcj7UrsbP1mnEk1HdS2cmQBgZdlj2jx6fyTbkojI0Tw lj+2mELvIsFboNiM4gtrVUyXXUCsDczVIgPpKEuHp/Sie/7sIBb9oLwYoJZ4BG3mW098U3+U5AQGX HvO/bVcQaGluGZygHKEwtE5Y4PXxk7A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKKKW-00087U-Nn; Wed, 07 Nov 2018 09:40:56 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKKKB-0007lB-RF for linux-arm-kernel@bombadil.infradead.org; Wed, 07 Nov 2018 09:40:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+1uSbAId3ZjycEYSpoEyUoDDX1KDaDZIwQc9smrJE9g=; b=cYvIr1XCtA4q/4vH4bKKaWTp4 //iSsSmr5vGY9//oa/VP8SRcyKISwYlG3PmZFt/tutONzn24b32xfen0dEpLGH5RT+QxoGPn9Po+z 9ZyNaBBy7PbwMYo1d2Ls9nSfZnHakg0y4dML09w+KQ4LGjAh7tqb15xHW8gJ/h5hZaRNl82fMX+b1 7SD1s3Tiu+9rxbEJE5x2GOUhGc4jszP4KeBlwZj0fwqoi9QycHA9mTKbEf3i9xwi2HJtfIqvtsAQB c81ShFbpCCtD0QU0fM1COWBgRNwwyshZ/f0D1ldVwk6nfauvO+/FX8EokfUB1fCcXi5htJFsvmwiL IOexSkAVA==; Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKKK7-0001x8-5y for linux-arm-kernel@lists.infradead.org; Wed, 07 Nov 2018 09:40:34 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E5EE3A78; Wed, 7 Nov 2018 01:40:18 -0800 (PST) Received: from login2.euhpc.arm.com (login2.euhpc.arm.com [10.6.27.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D4EB13F718; Wed, 7 Nov 2018 01:40:17 -0800 (PST) From: Vladimir Murzin To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 0/4] Minor improvements over handling dependency on GAS Date: Wed, 7 Nov 2018 09:40:04 +0000 Message-Id: <1541583608-26375-1-git-send-email-vladimir.murzin@arm.com> X-Mailer: git-send-email 2.0.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181107_094031_381234_24A05587 X-CRM114-Status: UNSURE ( 7.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yamada.masahiro@socionext.com, kbuild-all@01.org, linux-crypto@vger.kernel.org, linux-kbuild@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With recent changes in Kconfig processing it is now possible to expose dependency on specific tools and supported options via Kconfig rather than bury it deep in Makefile. This small series try to address the case where the whole feature, for instance arm64/lse or arm/crypto, depends on GAS. Vladimir Murzin (4): kconfig: add as-instr macro to scripts/Kconfig.include arm64: lse: expose dependency on gas via Kconfig arm64: turn "broken gas inst" into real config option ARM: crypto: expose dependency on gas via Kconfig arch/arm/crypto/Kconfig | 31 +++++++++++++++++++++---------- arch/arm/crypto/Makefile | 31 ++++++------------------------- arch/arm64/Kconfig | 4 ++++ arch/arm64/Makefile | 18 ++---------------- arch/arm64/include/asm/atomic.h | 2 +- arch/arm64/include/asm/lse.h | 6 +++--- arch/arm64/kernel/cpufeature.c | 4 ++-- scripts/Kconfig.include | 4 ++++ 8 files changed, 43 insertions(+), 57 deletions(-)