build: fix missing trace dep on GENERATED_HEADERS
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
@@ -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
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
@@ -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
Anthony Liguori
AppliedRe: [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.Signed-off-by Michael Roth<[email protected]>
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 17 lines
--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)configure +1
-1@@ -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"
Re: [Qemu-devel] [PATCH 2/2] build: fix race with creating qapi-generated
In reply to Michael RothQuoted 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.Signed-off-by Michael Roth<[email protected]>
Applied for real this time :-) Thanks.
Regards,
Anthony Liguori
Quoted 17 lines
--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)configure +1
-1@@ -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"
Quoted 9 lines · Michael Roth
fc764105added an include forqemu-common.htotrace/control.h, which made all users of this header file dependent onGENERATED_HEADERS. Since it's used by pretty much all the trace backends now, make trace-obj-y dependent onGENERATED_HEADERS.Signed-off-by Michael Roth <[email protected]>---
Makefile.objs | 2 ++1 files changed, 2 insertions(+), 0 deletions(-)