Skip to contentSkip to conversation

Fix multiple qemu-options.def generation

PATCH Paolo Bonzini 2 participants 2 messages Feb 10, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 12 lines
Makefile.objs +1 -1
index 4a1eaa1..ee9f190 100755
@@ -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.def

os-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
index ed59c9e..6f753ae 100644
@@ -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

#2 lore raw
Quoted 15 lines
Quoted 12 lines
Makefile.objs +1 -1
index 4a1eaa1..ee9f190 100755
@@ -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.def

os-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)$@")

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