diff options
Diffstat (limited to 'sim/common/Make-common.in')
-rw-r--r-- | sim/common/Make-common.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index c12d155..606e595 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -462,11 +462,13 @@ sim-inline.c: $(srccom)/sim-inline.c hw-config.h: Makefile.in $(srccom)/Make-common.in config.status Makefile rm -f tmp-hw.h echo "/* generated by Makefile */" > tmp-hw.h - for hw in $(SIM_HW) ; do \ + sim_hw="$(SIM_HW)"; \ + for hw in $$sim_hw ; do \ echo "extern const struct hw_descriptor dv_$${hw}_descriptor[];" ; \ done >> tmp-hw.h echo "const struct hw_descriptor *hw_descriptors[] = {" >> tmp-hw.h - for hw in $(SIM_HW) ; do \ + sim_hw="$(SIM_HW)"; \ + for hw in $$sim_hw ; do \ echo " dv_$${hw}_descriptor," ; \ done >> tmp-hw.h echo " NULL," >> tmp-hw.h |