Fix multiple qemu-options.def generation
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines
Makefile.objs +1
-1@@ -269,10 +269,10 @@ vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) -vl.o: qemu-options.def +vl.o: ../qemu-options.defos-posix.o: qemu-options.def
os-win32.o: qemu-options.def
-qemu-options.def: $(SRC_PATH)/qemu-options.hx
+%qemu-options.def: $(SRC_PATH)/qemu-options.hx
Quoted 1 line
$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@")
This is wrong, I think the problem is that you are missing a vpath directive.
Does this help?
rules.mak +1 -1
@@ -39,7 +39,7 @@ quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \ >/dev/null 2>&1 && echo OK), $2, $3) -VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi +VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi %.def set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1))) # find-in-path
Paolo
Quoted 15 lines
Quoted 12 lines
Makefile.objs +1
-1@@ -269,10 +269,10 @@ vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS) -vl.o: qemu-options.def +vl.o: ../qemu-options.defos-posix.o: qemu-options.def
os-win32.o: qemu-options.def
-qemu-options.def: $(SRC_PATH)/qemu-options.hx
+%qemu-options.def: $(SRC_PATH)/qemu-options.hxQuoted 1 line
$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN$(TARGET_DIR)$@")
Quoted 4 lines
This is wrong, I think the problem is that you are missing a vpath directive.
Does this help?
This patch was for older version of qemu.
Current one does not have this problem.
Pavel Dovgaluk