From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 167BC3858D32; Sat, 5 Nov 2022 13:02:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 167BC3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667653352; bh=9hefAbnZctyzj0D6IbObiU2QAYwdn77YUwxsoH/Xops=; h=From:To:Subject:Date:From; b=TvY//rakiF5T8zGKqguPhhz0Y7Sui2z88g7z8yVZmu4uOQIVsFwtw9jROfFT1RJZ2 f7+HHdN68Cy8gY8DFc+v8AnX1mjRtkdlIwEQu72Xe6Kdv8nNrWczhjayEQRAslCeql FdH6U0S18CFkwYPoEcX6/BcQAbARSLtSUtL6G8es= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: bfin: move linux-fixed-code.h to top-level X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: c0c25232da12f3985041cded1bb7e761d4d0cd1e X-Git-Newrev: e5f7bc29350058330fbc3ed4fd0c6135bd892f53 Message-Id: <20221105130232.167BC3858D32@sourceware.org> Date: Sat, 5 Nov 2022 13:02:32 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De5f7bc293500= 58330fbc3ed4fd0c6135bd892f53 commit e5f7bc29350058330fbc3ed4fd0c6135bd892f53 Author: Mike Frysinger Date: Sat Nov 5 16:15:30 2022 +0700 sim: bfin: move linux-fixed-code.h to top-level Diff: --- 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/Makefile.in b/sim/Makefile.in index abf852589cf..67ba10c3b19 100644 --- a/sim/Makefile.in +++ b/sim/Makefile.in @@ -3173,6 +3173,24 @@ testsuite/common/bits64m63.c: testsuite/common/bits-= gen$(EXEEXT) testsuite/commo $(AM_V_at)cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp $(AM_V_at)mv $@.tmp $@ =20 +@SIM_ENABLE_ARCH_bfin_TRUE@bfin/linux-fixed-code.h: @MAINT@ $(srcdir)/bfin= /linux-fixed-code.s bfin/local.mk bfin/$(am__dirstamp) +@SIM_ENABLE_ARCH_bfin_TRUE@ $(AM_V_GEN)$(AS_FOR_TARGET_BFIN) $(srcdir)/bfi= n/linux-fixed-code.s -o bfin/linux-fixed-code.o +@SIM_ENABLE_ARCH_bfin_TRUE@ $(AM_V_at)(\ +@SIM_ENABLE_ARCH_bfin_TRUE@ set -e; \ +@SIM_ENABLE_ARCH_bfin_TRUE@ echo "/* DO NOT EDIT: Autogenerated from linu= x-fixed-code.s. */"; \ +@SIM_ENABLE_ARCH_bfin_TRUE@ echo "static const unsigned char bfin_linux_f= ixed_code[] =3D"; \ +@SIM_ENABLE_ARCH_bfin_TRUE@ echo "{"; \ +@SIM_ENABLE_ARCH_bfin_TRUE@ $(OBJDUMP_FOR_TARGET_BFIN) -d -z bfin/linux-f= ixed-code.o > $@.dis; \ +@SIM_ENABLE_ARCH_bfin_TRUE@ sed -n \ +@SIM_ENABLE_ARCH_bfin_TRUE@ -e 's:^[^ ]* :0x:' \ +@SIM_ENABLE_ARCH_bfin_TRUE@ -e '/^0x/{s: .*::;s: *$$:,:;s: :, 0x:g;p;}' \ +@SIM_ENABLE_ARCH_bfin_TRUE@ $@.dis; \ +@SIM_ENABLE_ARCH_bfin_TRUE@ rm -f $@.dis; \ +@SIM_ENABLE_ARCH_bfin_TRUE@ echo "};" \ +@SIM_ENABLE_ARCH_bfin_TRUE@ ) > $@.tmp +@SIM_ENABLE_ARCH_bfin_TRUE@ $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $= @.tmp $(srcdir)/bfin/linux-fixed-code.h +@SIM_ENABLE_ARCH_bfin_TRUE@ $(AM_V_at)touch $(srcdir)/bfin/linux-fixed-cod= e.h + @SIM_ENABLE_ARCH_bpf_TRUE@bpf/mloop-le.c bpf/eng-le.h: bpf/stamp-mloop-le = ; @true @SIM_ENABLE_ARCH_bpf_TRUE@bpf/stamp-mloop-le: $(srccom)/genmloop.sh bpf/ml= oop.in @SIM_ENABLE_ARCH_bpf_TRUE@ $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shel= l $(SHELL) \ diff --git a/sim/bfin/Makefile.in b/sim/bfin/Makefile.in index 5a36be78c3f..0655a06d5f2 100644 --- a/sim/bfin/Makefile.in +++ b/sim/bfin/Makefile.in @@ -62,20 +62,3 @@ SIM_EXTRA_HW_DEVICES =3D \ SIM_EXTRA_CFLAGS =3D $(SDL_CFLAGS) =20 ## COMMON_POST_CONFIG_FRAG - -$(srcdir)/linux-fixed-code.h: $(MAINT) $(srcdir)/linux-fixed-code.s Makefi= le.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[] =3D"; \ - 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 f61c917d712..956b3aec30d 100644 --- a/sim/bfin/local.mk +++ b/sim/bfin/local.mk @@ -23,3 +23,21 @@ $(SIM_COMMON_LIBS) =20 noinst_PROGRAMS +=3D %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[] =3D"; \ + 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-f= ixed-code.h + $(AM_V_at)touch $(srcdir)/%D%/linux-fixed-code.h