Skip to contentSkip to conversation

build: fix missing trace dep on GENERATED_HEADERS

PATCH Applied Michael Roth 3 participants 5 messages Sep 7, 2011 – Sep 23, 2011 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 build: fix missing trace dep on GENERATED_HEADERS

fc764105 added an include for qemu-common.h to trace/control.h, which made all users of this header file dependent on GENERATED_HEADERS. Since it's used by pretty much all the trace backends now, make trace-obj-y dependent on GENERATED_HEADERS.

---
 Makefile.objs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Makefile.objs +2 -0
index 26b885b..a529a11 100644
@@ -390,6 +390,8 @@ trace-nested-y += control.o
 
 trace-obj-y += $(addprefix trace/, $(trace-nested-y))
 
+$(trace-obj-y): $(GENERATED_HEADERS)
+
 ######################################################################
 # smartcard
 
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 build: fix race with creating qapi-generated

Since qapi-generated/ is a global QEMU include path, we need to make sure it is created before anything is compiled, so do this in the configure phase rather than via the Makefile.

---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index c3044c7..0794f31 100755
@@ -3612,7 +3612,7 @@ DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
 DIRS="$DIRS pc-bios/spapr-rtas"
 DIRS="$DIRS roms/seabios roms/vgabios"
 DIRS="$DIRS fsdev ui"
-DIRS="$DIRS qapi"
+DIRS="$DIRS qapi qapi-generated"
 DIRS="$DIRS qga trace"
 FILES="Makefile tests/Makefile"
 FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [Qemu-devel] [PATCH 2/2] build: fix race with creating qapi-generated

Quoted 5 lines · Michael Roth

Since qapi-generated/ is a global QEMU include path, we need to make sure it is created before anything is compiled, so do this in the configure phase rather than via the Makefile.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 17 lines
---
  configure |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index c3044c7..0794f31 100755
@@ -3612,7 +3612,7 @@ DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
  DIRS="$DIRS pc-bios/spapr-rtas"
  DIRS="$DIRS roms/seabios roms/vgabios"
  DIRS="$DIRS fsdev ui"
-DIRS="$DIRS qapi"
+DIRS="$DIRS qapi qapi-generated"
  DIRS="$DIRS qga trace"
  FILES="Makefile tests/Makefile"
  FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
#3 lore raw

Re: [Qemu-devel] [PATCH 2/2] build: fix race with creating qapi-generated

In reply to Michael Roth
Quoted 5 lines · Michael Roth

Since qapi-generated/ is a global QEMU include path, we need to make sure it is created before anything is compiled, so do this in the configure phase rather than via the Makefile.

Applied for real this time :-) Thanks.

Regards,

Anthony Liguori

Quoted 17 lines
---
  configure |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index c3044c7..0794f31 100755
@@ -3612,7 +3612,7 @@ DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
  DIRS="$DIRS pc-bios/spapr-rtas"
  DIRS="$DIRS roms/seabios roms/vgabios"
  DIRS="$DIRS fsdev ui"
-DIRS="$DIRS qapi"
+DIRS="$DIRS qapi qapi-generated"
  DIRS="$DIRS qga trace"
  FILES="Makefile tests/Makefile"
  FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
Reviewed-by on v1 1/2
#4 lore raw
In reply to Michael Roth
Quoted 9 lines · Michael Roth

fc764105 added an include for qemu-common.h to trace/control.h, which made all users of this header file dependent on GENERATED_HEADERS. Since it's used by pretty much all the trace backends now, make trace-obj-y dependent on GENERATED_HEADERS.

---
 Makefile.objs |    2 ++

 1 files changed, 2 insertions(+), 0 deletions(-)