Skip to contentSkip to conversation

Fix dependency issue introduced by commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8

PATCH Superseded 陳韋任 2 participants 3 messages Feb 21, 2012 – Feb 22, 2012 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

陳韋任

author
#0 lore raw

PATCH 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. Building recurse-all target first fixes the problem.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index e66e885..618b306 100644
@@ -79,7 +79,7 @@ defconfig:
 
 -include config-all-devices.mak
 
-build-all: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all
+build-all: $(DOCS) $(TOOLS) recurse-all $(HELPERS-y)
 
 config-host.h: config-host.h-timestamp
 config-host.h-timestamp: config-host.mak
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 4 lines · 陳韋任

 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. Building recurse-all target first fixes the problem.

The build system should not rely on ordering side-effects. Instead, please explicitly declare the dependency for the helper or see if the dependency can be eliminated if it is inappropriate.

Stefan

author
#2 lore raw
Quoted 9 lines · Stefan Hajnoczi
Quoted 4 lines · 陳韋任

 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. Building recurse-all target first fixes the problem.

The build system should not rely on ordering side-effects. Instead, please explicitly declare the dependency for the helper or see if the dependency can be eliminated if it is inappropriate.

O.K., since the dependency cannot be eliminated, I'll explicitly declare the
dependency for the helper.

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