Skip to contentSkip to conversation

Makefile: Fix QOM dependencies

PATCH In review Andreas Färber 1 participant 2 messages May 27, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Fix QOM dependencies

Dependency files qom/*.d were not included by Makefile, causing changes in object.h (e.g., changes to struct Object) not to propagate to qom-qobject.o, container.o and cpu.o. Add qom/*.d to the wildcard list.

libuser/qom/cpu.o was unaffected since Makefile.user includes */*.d.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index 9b7a85e..0bb0529 100644
@@ -400,4 +400,4 @@ tar:
 	rm -rf /tmp/$(FILE)
 
 # Include automatically generated dependency files
--include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d ui/*.d qapi/*.d qga/*.d)
+-include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d ui/*.d qapi/*.d qga/*.d qom/*.d)
Signature · 1 line
1.7.7
#1 lore raw

Am 27.05.2012 02:29, schrieb Andreas Färber:

Quoted 16 lines

Dependency files qom/*.d were not included by Makefile, causing changes in object.h (e.g., changes to struct Object) not to propagate to qom-qobject.o, container.o and cpu.o. Add qom/*.d to the wildcard list.

libuser/qom/cpu.o was unaffected since Makefile.user includes */*.d.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +0 -0
index 9b7a85e..0bb0529 100644

Makefile tar: · line 403

Quoted 5 lines
Makefile +1 -1
@@ -400,4 +400,4 @@ tar:
 	rm -rf /tmp/$(FILE)
 
 # Include automatically generated dependency files
--include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d ui/*.d qapi/*.d qga/*.d)
+-include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d ui/*.d qapi/*.d qga/*.d qom/*.d)

I wonder if, independently of QOM, we also need to consider...
- qapi-generated/*.d,
- usb/*.d and
- tests/*.d?

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