Skip to contentSkip to conversation

Fix dependency issue introduced by commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8

PATCH In review 陳韋任 3 participants 5 messages Feb 22, 2012 – Feb 23, 2012 Kbuild

lore
Share & tools
lore

陳韋任

author
#0 lore raw

PATCH v2 1/1 Fix dependency issue introduced by commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8

Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 adds basic version of bridge
helper, but introduces dependency issue at the same time. While building target xxx-linux-user, qemu-bridge-helper.c needs config-host.h which is not generated at the moment. Explicitly declaring the dependency for the helper in the Makefile.

---
v2: Explicitly declaring the dependency for the helper instead of relying on
ordering side-effects.

 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index e66e885..1b2488c 100644
@@ -36,7 +36,7 @@ $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw)
 
 LIBS+=-lz $(LIBS_TOOLS)
 
-HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF)
+HELPERS-$(CONFIG_LINUX) : config-host.h qemu-bridge-helper$(EXESUF)
 
 ifdef BUILD_DOCS
 DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 QMP/qmp-commands.txt
Signature · 1 line
1.7.3.4
#1 lore raw

Makefile $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw) · line 39

Quoted 3 lines · 陳韋任
Makefile +1 -1
-HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF)
+HELPERS-$(CONFIG_LINUX) : config-host.h qemu-bridge-helper$(EXESUF)

This is not declaring the dependency, it is declaring a target.

The rule should be like

qemu-bridge-helper.o: config-host.h

Paolo

#2 lore raw

Am 22.02.2012 08:27, schrieb Paolo Bonzini:

Quoted 10 lines · 陳韋任

Makefile $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw) · line 39

Quoted 3 lines
Makefile +1 -1
-HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF)
+HELPERS-$(CONFIG_LINUX) : config-host.h qemu-bridge-helper$(EXESUF)

This is not declaring the dependency, it is declaring a target.

The rule should be like

qemu-bridge-helper.o: config-host.h

...which Peter has already done:

http://patchwork.ozlabs.org/patch/142306/

Please coordinate with him.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
author
#3 lore raw
Quoted 5 lines

...which Peter has already done:

http://patchwork.ozlabs.org/patch/142306/

Please coordinate with him.

O.K., I already told Stefan to ignore my patch. :)
Thanks!

Regards,
chenwj

Signature · 5 lines
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
author
#4 lore raw
In reply to 陳韋任

Hi Stefan,

Peter already fix this issue [1]. Please ignore my patch, thanks!

Regards,
chenwj

[1] http://patchwork.ozlabs.org/patch/142306/

Signature · 5 lines
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj