sim: bfin: move linux-fixed-code.h to top-level
authorMike Frysinger <vapier@gentoo.org>
Sat, 5 Nov 2022 09:15:30 +0000 (16:15 +0700)
committerMike Frysinger <vapier@gentoo.org>
Sat, 5 Nov 2022 13:02:15 +0000 (20:02 +0700)
sim/Makefile.in
sim/bfin/Makefile.in
sim/bfin/local.mk

index abf852589cf7c87c1b0cbacadbea54e7bc06d31a..67ba10c3b1944a1af3f9f370a1fe15aa0b1ffee8 100644 (file)
@@ -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 $@
 
+@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)/bfin/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 linux-fixed-code.s.  */"; \
+@SIM_ENABLE_ARCH_bfin_TRUE@            echo "static const unsigned char bfin_linux_fixed_code[] ="; \
+@SIM_ENABLE_ARCH_bfin_TRUE@            echo "{"; \
+@SIM_ENABLE_ARCH_bfin_TRUE@            $(OBJDUMP_FOR_TARGET_BFIN) -d -z bfin/linux-fixed-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-code.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/mloop.in
 @SIM_ENABLE_ARCH_bpf_TRUE@     $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
index 5a36be78c3f153643abba7a1b290d18382142251..0655a06d5f2a2bb787a5cd2812a27f1ee3a02401 100644 (file)
@@ -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 $@
index f61c917d71213d819061e167b1962461db7e1e97..956b3aec30da3ae4a0a6bccafceb9ee8e08b00b0 100644 (file)
        $(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