Révision | e5f7bc29350058330fbc3ed4fd0c6135bd892f53 (tree) |
---|---|
l'heure | 2022-11-05 22:02:15 |
Auteur | Mike Frysinger <vapier@gent...> |
Commiter | Mike Frysinger |
sim: bfin: move linux-fixed-code.h to top-level
@@ -3173,6 +3173,24 @@ testsuite/common/bits64m63.c: testsuite/common/bits-gen$(EXEEXT) testsuite/commo | ||
3173 | 3173 | $(AM_V_at)cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp |
3174 | 3174 | $(AM_V_at)mv $@.tmp $@ |
3175 | 3175 | |
3176 | +@SIM_ENABLE_ARCH_bfin_TRUE@bfin/linux-fixed-code.h: @MAINT@ $(srcdir)/bfin/linux-fixed-code.s bfin/local.mk bfin/$(am__dirstamp) | |
3177 | +@SIM_ENABLE_ARCH_bfin_TRUE@ $(AM_V_GEN)$(AS_FOR_TARGET_BFIN) $(srcdir)/bfin/linux-fixed-code.s -o bfin/linux-fixed-code.o | |
3178 | +@SIM_ENABLE_ARCH_bfin_TRUE@ $(AM_V_at)(\ | |
3179 | +@SIM_ENABLE_ARCH_bfin_TRUE@ set -e; \ | |
3180 | +@SIM_ENABLE_ARCH_bfin_TRUE@ echo "/* DO NOT EDIT: Autogenerated from linux-fixed-code.s. */"; \ | |
3181 | +@SIM_ENABLE_ARCH_bfin_TRUE@ echo "static const unsigned char bfin_linux_fixed_code[] ="; \ | |
3182 | +@SIM_ENABLE_ARCH_bfin_TRUE@ echo "{"; \ | |
3183 | +@SIM_ENABLE_ARCH_bfin_TRUE@ $(OBJDUMP_FOR_TARGET_BFIN) -d -z bfin/linux-fixed-code.o > $@.dis; \ | |
3184 | +@SIM_ENABLE_ARCH_bfin_TRUE@ sed -n \ | |
3185 | +@SIM_ENABLE_ARCH_bfin_TRUE@ -e 's:^[^ ]* :0x:' \ | |
3186 | +@SIM_ENABLE_ARCH_bfin_TRUE@ -e '/^0x/{s: .*::;s: *$$:,:;s: :, 0x:g;p;}' \ | |
3187 | +@SIM_ENABLE_ARCH_bfin_TRUE@ $@.dis; \ | |
3188 | +@SIM_ENABLE_ARCH_bfin_TRUE@ rm -f $@.dis; \ | |
3189 | +@SIM_ENABLE_ARCH_bfin_TRUE@ echo "};" \ | |
3190 | +@SIM_ENABLE_ARCH_bfin_TRUE@ ) > $@.tmp | |
3191 | +@SIM_ENABLE_ARCH_bfin_TRUE@ $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $(srcdir)/bfin/linux-fixed-code.h | |
3192 | +@SIM_ENABLE_ARCH_bfin_TRUE@ $(AM_V_at)touch $(srcdir)/bfin/linux-fixed-code.h | |
3193 | + | |
3176 | 3194 | @SIM_ENABLE_ARCH_bpf_TRUE@bpf/mloop-le.c bpf/eng-le.h: bpf/stamp-mloop-le ; @true |
3177 | 3195 | @SIM_ENABLE_ARCH_bpf_TRUE@bpf/stamp-mloop-le: $(srccom)/genmloop.sh bpf/mloop.in |
3178 | 3196 | @SIM_ENABLE_ARCH_bpf_TRUE@ $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \ |
@@ -62,20 +62,3 @@ SIM_EXTRA_HW_DEVICES = \ | ||
62 | 62 | SIM_EXTRA_CFLAGS = $(SDL_CFLAGS) |
63 | 63 | |
64 | 64 | ## COMMON_POST_CONFIG_FRAG |
65 | - | |
66 | -$(srcdir)/linux-fixed-code.h: $(MAINT) $(srcdir)/linux-fixed-code.s Makefile.in | |
67 | - $(AS_FOR_TARGET) $(srcdir)/linux-fixed-code.s -o linux-fixed-code.o | |
68 | - ( set -e; \ | |
69 | - echo "/* DO NOT EDIT: Autogenerated from linux-fixed-code.s. */"; \ | |
70 | - echo "static const unsigned char bfin_linux_fixed_code[] ="; \ | |
71 | - echo "{"; \ | |
72 | - $(OBJDUMP_FOR_TARGET) -d -z linux-fixed-code.o > $@.dis; \ | |
73 | - sed -n \ | |
74 | - -e 's:^[^ ]* :0x:' \ | |
75 | - -e '/^0x/{s: .*::;s: *$$:,:;s: :, 0x:g;p;}' \ | |
76 | - $@.dis; \ | |
77 | - rm -f $@.dis; \ | |
78 | - echo "};" \ | |
79 | - ) > $@.tmp | |
80 | - rm -f linux-fixed-code.o | |
81 | - mv $@.tmp $@ |
@@ -23,3 +23,21 @@ | ||
23 | 23 | $(SIM_COMMON_LIBS) |
24 | 24 | |
25 | 25 | noinst_PROGRAMS += %D%/run |
26 | + | |
27 | +%D%/linux-fixed-code.h: @MAINT@ $(srcdir)/%D%/linux-fixed-code.s %D%/local.mk %D%/$(am__dirstamp) | |
28 | + $(AM_V_GEN)$(AS_FOR_TARGET_BFIN) $(srcdir)/%D%/linux-fixed-code.s -o %D%/linux-fixed-code.o | |
29 | + $(AM_V_at)(\ | |
30 | + set -e; \ | |
31 | + echo "/* DO NOT EDIT: Autogenerated from linux-fixed-code.s. */"; \ | |
32 | + echo "static const unsigned char bfin_linux_fixed_code[] ="; \ | |
33 | + echo "{"; \ | |
34 | + $(OBJDUMP_FOR_TARGET_BFIN) -d -z %D%/linux-fixed-code.o > $@.dis; \ | |
35 | + sed -n \ | |
36 | + -e 's:^[^ ]* :0x:' \ | |
37 | + -e '/^0x/{s: .*::;s: *$$:,:;s: :, 0x:g;p;}' \ | |
38 | + $@.dis; \ | |
39 | + rm -f $@.dis; \ | |
40 | + echo "};" \ | |
41 | + ) > $@.tmp | |
42 | + $(AM_V_at)$(SHELL) $(srcroot)/move-if-change $@.tmp $(srcdir)/%D%/linux-fixed-code.h | |
43 | + $(AM_V_at)touch $(srcdir)/%D%/linux-fixed-code.h |