From patchwork Sun Feb 27 08:52:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 12761559 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D0003C433EF for ; Sun, 27 Feb 2022 08:54:34 +0000 (UTC) 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=jtuv4IzOljdJkJ6RiBPh29uUzNn9jnXXxRj90Ujm318=; b=4OLQiqP9LIWPaf t3WcGe20i3CGQxkEuswq6YuGWOmIfJRAEvvZCHlF2T1LouGwY4LHkFMwznRF8oWNX0Qzeq9QFVfZd qmIa1j+E7s95rT8NBuSnYgGz2luqwm2OuBNg7l6vK5X25PiRLoeRIIjr8toILMjqbD0yqFXFumH87 ufNe4xRprQ75+D/4ziXyrZZIRxpbOes8YlzQIfo/X9AWehx49el904nO5vIlEV6VIL+LdqibTyAiH PC62cB85YWGwxHGNHMBkg3Q/U73ff+jcwi0yP0beMW9L/uZp1rP83EEp6CiESXiGyrapVLGYMpDpl 5lUv5MZs3Z3nSzp4k7ZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOFIo-008ynE-Rb; Sun, 27 Feb 2022 08:53:14 +0000 Received: from conuserg-10.nifty.com ([210.131.2.77]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOFIl-008ymu-7q for linux-arm-kernel@lists.infradead.org; Sun, 27 Feb 2022 08:53:13 +0000 Received: from grover.. (133-32-176-37.west.xps.vectant.ne.jp [133.32.176.37]) (authenticated) by conuserg-10.nifty.com with ESMTP id 21R8qfos030272; Sun, 27 Feb 2022 17:52:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 21R8qfos030272 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1645951962; bh=hp/jhp7PMs3ndVbX8PXnwZo8mIXWoUhisPVyctjQqPM=; h=From:To:Cc:Subject:Date:From; b=uyUnoa3rdoUY9fbhGPx6vdf8dFi/53IsGwlwKawIIifJMng6PNRnpCwP7t3sBjNBD qC/rz2GETlkW67XcIpMAjdxjFypMX531qhOtjnAmG/Lzp/wUgTUrBuZvmdrPcP4/MZ bzK88BOpd+Q+J9dN4yBs1EEiBx8xRkXXGzM8yBDUl00H0XsnYhfqQ8AuIJXBtAPeNL 9a4OpYVALCDrJ6FmYGn17oCAYnTIQ/D6S71ni+xMa93pXGd9jTUs+teLynidLXcOaP 8YVzL/84+Yobc3ZM2NAyVEPK7W2S9ge9XthM+Nvxj4ABCnOGZKv5Xyu370/lTOuIrt lg23HE3ASaTzA== X-Nifty-SrcIP: [133.32.176.37] From: Masahiro Yamada To: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Mark Brown , Mark Rutland , linux-kernel@vger.kernel.org Subject: [PATCH] arm64: clean up tools Makefile Date: Sun, 27 Feb 2022 17:52:32 +0900 Message-Id: <20220227085232.206529-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220227_005311_713447_1719E0EF X-CRM114-Status: UNSURE ( 9.06 ) 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 Remove unused gen-y. Remove redundant $(shell ...) because 'mkdir' is done in cmd_gen_cpucaps. Replace $(filter-out $(PHONY), $^) with the $(real-prereqs) shorthand. The '&&' in cmd_gen_cpucaps should be replaced with ';' because it is run under 'set -e' environment. Signed-off-by: Masahiro Yamada --- arch/arm64/tools/Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/arm64/tools/Makefile b/arch/arm64/tools/Makefile index 932b4fe5c768..cf1307188150 100644 --- a/arch/arm64/tools/Makefile +++ b/arch/arm64/tools/Makefile @@ -5,18 +5,14 @@ kapi := $(gen)/asm kapi-hdrs-y := $(kapi)/cpucaps.h -targets += $(addprefix ../../../,$(gen-y) $(kapi-hdrs-y)) +targets += $(addprefix ../../../, $(kapi-hdrs-y)) PHONY += kapi -kapi: $(kapi-hdrs-y) $(gen-y) - -# Create output directory if not already present -_dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') +kapi: $(kapi-hdrs-y) quiet_cmd_gen_cpucaps = GEN $@ - cmd_gen_cpucaps = mkdir -p $(dir $@) && \ - $(AWK) -f $(filter-out $(PHONY),$^) > $@ + cmd_gen_cpucaps = mkdir -p $(dir $@); $(AWK) -f $(real-prereqs) > $@ $(kapi)/cpucaps.h: $(src)/gen-cpucaps.awk $(src)/cpucaps FORCE $(call if_changed,gen_cpucaps)