From patchwork Fri May 28 04:05:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 12286157 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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 14793C4707F for ; Fri, 28 May 2021 04:08:42 +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 C892C613B6 for ; Fri, 28 May 2021 04:08:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C892C613B6 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+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.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=jX1JXD3IidB06FuounSEiz5Hr4JoiWMhyL1H2n9TGzc=; b=ohRn0B3Ab5+1tm hozOC/FlsVzHlZq9mBlCjRiZ1lkRdnS4Svu1E7Z80WfXBQRyjdxRxp08myC2+kU+rjm6aXnUFrFmW k2ukbAxrYhjfZj0nYCLmQ1nmaa1nv8ibMBOpojI7Uuguo1ptdEGa594bWNuumZFnETYv6Qx/3Snip NDoc3UzTEAy3YTzc1KRLGdOHVd2OJfSX55Ie/ARoZAVdy57wI9E/Yw2cPZziJQCMKVXkzS8cPlGhn 7vgIy42xcMDFMy9UvR4gvXz3ExOvy6uXA1rtWfAXp7aQYvxDD5ZMlDixcUmUGvg2LOwP7hn/1foCA xv3RYwoPuqwDmlMWtYOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmTlP-00BmSr-7M; Fri, 28 May 2021 04:06:23 +0000 Received: from conuserg-11.nifty.com ([210.131.2.78]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmTlL-00BmRx-Ur for linux-arm-kernel@lists.infradead.org; Fri, 28 May 2021 04:06:21 +0000 Received: from localhost.localdomain (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-11.nifty.com with ESMTP id 14S45hRN005132; Fri, 28 May 2021 13:05:44 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 14S45hRN005132 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1622174744; bh=v31y/lDLpAtuD0UANsxsxaUWRfMQ+aSQCWe2tci8zWc=; h=From:To:Cc:Subject:Date:From; b=bJNYOZrR5Wy5mXeXelnWzzI7JbjtEp+f8qvfmMkh2JDKn3u0IlCxMRq4AwSe6q/s0 xQICL2inyqPgnI5OmZ7H3nDUgJ5LvgIm28wBZastgPEDSaJe92q+yRct//6H8B23WH WwJapuhcWrcadLHGcMoNahRmpUeusWf0jxz48UnlXuHNckEvuGLx2hVS8vQlRmKA5T hJsivzsLIGPZteSSRBa0Mf9MXoLeJpgJVu8+zeuEzGI8O0JTkPA1cyI6RsNXYbL8mf 4l7LGtlbX5hHLpkBuIYP+iyB0zrqJPAlIVGBwzOBfK5TiVXaPegmwj057fizb6uRvh 3g2wlBHu1ja4w== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: patches@arm.linux.org.uk Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Linus Walleij , Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: syscalls: use pattern rules to generate syscall headers Date: Fri, 28 May 2021 13:05:42 +0900 Message-Id: <20210528040542.2161208-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210527_210620_229215_7D5DD38D X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use pattern rules to unify similar build rules between OABI and EABI. Signed-off-by: Masahiro Yamada Reviewed-by: Linus Walleij --- KernelVersion: v5.13-rc1 arch/arm/tools/Makefile | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/arch/arm/tools/Makefile b/arch/arm/tools/Makefile index 3f254456a830..4a5c50f67ced 100644 --- a/arch/arm/tools/Makefile +++ b/arch/arm/tools/Makefile @@ -39,30 +39,20 @@ $(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE $(call if_changed,gen_mach) quiet_cmd_syshdr = SYSHDR $@ - cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --abis $(abis) \ + cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --abis common,$* \ --offset __NR_SYSCALL_BASE $< $@ quiet_cmd_systbl = SYSTBL $@ - cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@ + cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis common,$* $< $@ quiet_cmd_sysnr = SYSNR $@ cmd_sysnr = $(CONFIG_SHELL) $(sysnr) $< $@ -$(uapi)/unistd-oabi.h: abis := common,oabi -$(uapi)/unistd-oabi.h: $(syscall) $(syshdr) FORCE - $(call if_changed,syshdr) - -$(uapi)/unistd-eabi.h: abis := common,eabi -$(uapi)/unistd-eabi.h: $(syscall) $(syshdr) FORCE +$(uapi)/unistd-%.h: $(syscall) $(syshdr) FORCE $(call if_changed,syshdr) $(kapi)/unistd-nr.h: $(syscall) $(sysnr) FORCE $(call if_changed,sysnr) -$(gen)/calls-oabi.S: abis := common,oabi -$(gen)/calls-oabi.S: $(syscall) $(systbl) FORCE - $(call if_changed,systbl) - -$(gen)/calls-eabi.S: abis := common,eabi -$(gen)/calls-eabi.S: $(syscall) $(systbl) FORCE +$(gen)/calls-%.S: $(syscall) $(systbl) FORCE $(call if_changed,systbl)