From patchwork Sat Nov 5 04:22:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 59985 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A2F0C3858285 for ; Sat, 5 Nov 2022 04:23:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2F0C3858285 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667622201; bh=JfDhm7XW1d4BYntqD+0UVdw0BW4ijl6lKLKRJ/YQQxw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=i3zcAua1Sywjamnfq6MyeWnHxXKhV0PnRBghWuRcHuLLgHJY2/JnaOjT75WrUw4qH +LHzdsnzu0yFhrvTstQcAkGKYyxH5vBzxcbS4aQGnUNTdgmIKnzPNNwGoIUqe1urwH 3qZ+sz5MlkYhjHnGrftuzmFzZP26wlh8vNTIqqUc= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id B95F03858D26 for ; Sat, 5 Nov 2022 04:22:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B95F03858D26 Received: by smtp.gentoo.org (Postfix, from userid 559) id 6675534115E; Sat, 5 Nov 2022 04:22:53 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH] sim: cris: move rvdummy linking to top-level Date: Sat, 5 Nov 2022 11:22:49 +0700 Message-Id: <20221105042249.22511-1-vapier@gentoo.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Mike Frysinger via Gdb-patches From: Mike Frysinger Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" This is only used by `make check`, so we can move it out of the default build too. --- sim/Makefile.in | 113 ++++++++++++++++++++++++++----------------- sim/cris/Makefile.in | 13 +---- sim/cris/local.mk | 7 +++ 3 files changed, 77 insertions(+), 56 deletions(-) diff --git a/sim/cris/Makefile.in b/sim/cris/Makefile.in index 7b69c114d929..3474eb9a827b 100644 --- a/sim/cris/Makefile.in +++ b/sim/cris/Makefile.in @@ -39,20 +39,9 @@ SIM_EXTRA_CLEAN = cris-clean arch = cris -# rvdummy is just used for testing. It does nothing if -# --enable-sim-hardware isn't active. - -all: rvdummy$(EXEEXT) - -check: rvdummy$(EXEEXT) - -rvdummy$(EXEEXT): rvdummy.o $(EXTRA_LIBDEPS) - $(ECHO_CCLD) $(LIBTOOL) $(AM_V_lt) --tag=CC --mode=link \ - $(CC) $(ALL_CFLAGS) -o rvdummy$(EXEEXT) rvdummy.o $(EXTRA_LIBS) - cris-clean: -rm -f stamp-arch - -rm -f tmp-* rvdummy$(EXEEXT) + -rm -f tmp-* # Useful when making CGEN-generated files manually, without --enable-cgen-maint. stamps: stamp-arch stamp-v10fcpu stamp-v32fcpu diff --git a/sim/cris/local.mk b/sim/cris/local.mk index 9416b7e8c014..62a3f8e80abf 100644 --- a/sim/cris/local.mk +++ b/sim/cris/local.mk @@ -16,6 +16,13 @@ ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . +## rvdummy is just used for testing -- it runs on the same host as `run`. +## It does nothing if --enable-sim-hardware isn't active. +%C%_rvdummy_SOURCES = %D%/rvdummy.c +%C%_rvdummy_LDADD = $(LIBIBERTY_LIB) + +check_PROGRAMS += %D%/rvdummy + %C%_BUILD_OUTPUTS = \ %D%/engv10.h \ %D%/mloopv10f.c \