diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-05 16:15:30 +0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-05 20:02:15 +0700 |
commit | e5f7bc29350058330fbc3ed4fd0c6135bd892f53 (patch) | |
tree | 9ee4b646d3e8e9c85bd6640e0604d889581de28d /sim/bfin | |
parent | c0c25232da12f3985041cded1bb7e761d4d0cd1e (diff) | |
download | fsf-binutils-gdb-e5f7bc29350058330fbc3ed4fd0c6135bd892f53.zip fsf-binutils-gdb-e5f7bc29350058330fbc3ed4fd0c6135bd892f53.tar.gz fsf-binutils-gdb-e5f7bc29350058330fbc3ed4fd0c6135bd892f53.tar.bz2 |
sim: bfin: move linux-fixed-code.h to top-level
Diffstat (limited to 'sim/bfin')
-rw-r--r-- | sim/bfin/Makefile.in | 17 | ||||
-rw-r--r-- | sim/bfin/local.mk | 18 |
2 files changed, 18 insertions, 17 deletions
diff --git a/sim/bfin/Makefile.in b/sim/bfin/Makefile.in index 5a36be7..0655a06 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 f61c917..956b3ae 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 |