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 47745385840D for ; Sat, 5 Nov 2022 12:51:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 47745385840D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id EACA9341233; Sat, 5 Nov 2022 12:51:10 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: bfin: move linux-fixed-code.h to top-level Date: Sat, 5 Nov 2022 19:51:06 +0700 Message-Id: <20221105125106.5721-1-vapier@gentoo.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 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: --- sim/Makefile.in | 18 ++++++++++++++++++ sim/bfin/Makefile.in | 17 ----------------- sim/bfin/local.mk | 18 ++++++++++++++++++ 3 files changed, 36 insertions(+), 17 deletions(-) diff --git a/sim/bfin/Makefile.in b/sim/bfin/Makefile.in index 5a36be78c3f1..0655a06d5f2a 100644 --- a/sim/bfin/Makefile.in +++ b/sim/bfin/Makefile.in @@ -62,20 +62,3 @@ SIM_EXTRA_HW_DEVICES = \ SIM_EXTRA_CFLAGS = $(SDL_CFLAGS) ## COMMON_POST_CONFIG_FRAG - -$(srcdir)/linux-fixed-code.h: $(MAINT) $(srcdir)/linux-fixed-code.s Makefile.in - $(AS_FOR_TARGET) $(srcdir)/linux-fixed-code.s -o linux-fixed-code.o - ( set -e; \ - echo "/* DO NOT EDIT: Autogenerated from linux-fixed-code.s. */"; \ - echo "static const unsigned char bfin_linux_fixed_code[] ="; \ - echo "{"; \ - $(OBJDUMP_FOR_TARGET) -d -z linux-fixed-code.o > $@.dis; \ - sed -n \ - -e 's:^[^ ]* :0x:' \ - -e '/^0x/{s: .*::;s: *$$:,:;s: :, 0x:g;p;}' \ - $@.dis; \ - rm -f $@.dis; \ - echo "};" \ - ) > $@.tmp - rm -f linux-fixed-code.o - mv $@.tmp $@ diff --git a/sim/bfin/local.mk b/sim/bfin/local.mk index f61c917d7121..956b3aec30da 100644 --- a/sim/bfin/local.mk +++ b/sim/bfin/local.mk @@ -23,3 +23,21 @@ $(SIM_COMMON_LIBS) noinst_PROGRAMS += %D%/run + +%D%/linux-fixed-code.h: @MAINT@ $(srcdir)/%D%/linux-fixed-code.s %D%/local.mk %D%/$(am__dirstamp) + $(AM_V_GEN)$(AS_FOR_TARGET_BFIN) $(srcdir)/%D%/linux-fixed-code.s -o %D%/linux-fixed-code.o + $(AM_V_at)(\ + set -e; \ + echo "/* DO NOT EDIT: Autogenerated from linux-fixed-code.s. */"; \ + echo "static const unsigned char bfin_linux_fixed_code[] ="; \ + echo "{"; \ + $(OBJDUMP_FOR_TARGET_BFIN) -d -z %D%/linux-fixed-code.o > $@.dis; \ + sed -n \ + -e 's:^[^ ]* :0x:' \ + -e '/^0x/{s: .*::;s: *$$:,:;s: :, 0x:g;p;}' \ + $@.dis; \ + rm -f $@.dis; \ + echo "};" \ + ) > $@.tmp + $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $(srcdir)/%D%/linux-fixed-code.h + $(AM_V_at)touch $(srcdir)/%D%/linux-fixed-code.h -- 2.38.1