From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id E7011382FADC for ; Tue, 3 Jan 2023 07:59:03 +0000 (GMT) Received: by smtp.gentoo.org (Postfix, from userid 559) id BFB42340CD7; Tue, 3 Jan 2023 07:59:03 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 82/83] sim: common: simplify modules.c deps Date: Tue, 3 Jan 2023 02:56:04 -0500 Message-Id: <20230103075605.13606-83-vapier@gentoo.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230103075605.13606-1-vapier@gentoo.org> References: <20230103075605.13606-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Now that all ports (other than ppc) build in the top-level, we don't need to expand all the modules.c targets as a recursive dep. Each port depends on their respective file now, and the ppc port doesn't use it at all. --- sim/Makefile.in | 9 ++++----- sim/common/local.mk | 6 ++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sim/common/local.mk b/sim/common/local.mk index 5905266dd80b..4a609ba5f8c9 100644 --- a/sim/common/local.mk +++ b/sim/common/local.mk @@ -161,10 +161,8 @@ GEN_MODULES_C_SRCS = \ .PRECIOUS: %/stamp-modules ## NB: The ppc port doesn't currently utilize the modules API, so skip it. -%C%_GEN_MODULES_C_TARGETS = $(patsubst %,%/modules.c,$(filter-out ppc,$(SIM_ENABLED_ARCHES))) -MOSTLYCLEANFILES += $(%C%_GEN_MODULES_C_TARGETS) $(patsubst %,%/stamp-modules,$(SIM_ENABLED_ARCHES)) -## TODO: Drop this once each port's local.mk:libsim.a depends on it themself. -SIM_ALL_RECURSIVE_DEPS += $(%C%_GEN_MODULES_C_TARGETS) +%C%_GEN_MODULES_C_TARGETS = $(SIM_ENABLED_ARCHES:%=%/modules.c) +MOSTLYCLEANFILES += $(%C%_GEN_MODULES_C_TARGETS) $(SIM_ENABLED_ARCHES:%=%/stamp-modules) LIBIBERTY_LIB = ../libiberty/libiberty.a BFD_LIB = ../bfd/libbfd.la -- 2.39.0