From patchwork Sat Nov 5 12:51:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 59994 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 8612C3858419 for ; Sat, 5 Nov 2022 12:51:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8612C3858419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667652695; bh=DUetlBT6ylLlH1DnTJ8D1SaJ7eEm0SilVKHAGqj9duI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=UfXja6LS5eDVsE2MSvFkcXaiLik03IbiAujYz5k6To2c2WOZQHSF1gX8qJup2y7G4 1oFmI1vGzLfYZhwQVr9w9/RKtKbhgAor3gZ8WB7DW4IeA/azq4yR1NR6VT/snKfcNY 8X1RNF4D5V5KaLxNNeLQ8h58GwHprYn/9X8MXbP8= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org 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 Received: by smtp.gentoo.org (Postfix, from userid 559) id EACA9341233; Sat, 5 Nov 2022 12:51:10 +0000 (UTC) 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 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 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" --- 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