* [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible
@ 2012-03-06 18:50 Lluís Vilanova
2012-03-06 19:00 ` Peter Maydell
2012-03-11 16:08 ` Blue Swirl
0 siblings, 2 replies; 3+ messages in thread
From: Lluís Vilanova @ 2012-03-06 18:50 UTC (permalink / raw)
To: qemu-devel
Current code depends on variables defined in config-host.mak before it is
actually included.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Cc: Paul Brook <paul@codesourcery.com>
---
Makefile | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 49c775b..408065e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,13 +3,7 @@
# Always point to the root of the build tree (needs GNU make).
BUILD_DIR=$(CURDIR)
-GENERATED_HEADERS = config-host.h trace.h qemu-options.def
-ifeq ($(TRACE_BACKEND),dtrace)
-GENERATED_HEADERS += trace-dtrace.h
-endif
-GENERATED_HEADERS += qmp-commands.h qapi-types.h qapi-visit.h
-GENERATED_SOURCES += qmp-marshal.c qapi-types.c qapi-visit.c
-
+# All following code might depend on configuration variables
ifneq ($(wildcard config-host.mak),)
# Put the all: rule here so that config-host.mak can contain dependencies.
all: build-all
@@ -24,6 +18,13 @@ config-host.mak:
@exit 1
endif
+GENERATED_HEADERS = config-host.h trace.h qemu-options.def
+ifeq ($(TRACE_BACKEND),dtrace)
+GENERATED_HEADERS += trace-dtrace.h
+endif
+GENERATED_HEADERS += qmp-commands.h qapi-types.h qapi-visit.h
+GENERATED_SOURCES += qmp-marshal.c qapi-types.c qapi-visit.c
+
# Don't try to regenerate Makefile or configure
# We don't generate any of them
Makefile: ;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible
2012-03-06 18:50 [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible Lluís Vilanova
@ 2012-03-06 19:00 ` Peter Maydell
2012-03-11 16:08 ` Blue Swirl
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2012-03-06 19:00 UTC (permalink / raw)
To: Lluís Vilanova; +Cc: qemu-devel
2012/3/6 Lluís Vilanova <vilanova@ac.upc.edu>:
> Current code depends on variables defined in config-host.mak before it is
> actually included.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible
2012-03-06 18:50 [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible Lluís Vilanova
2012-03-06 19:00 ` Peter Maydell
@ 2012-03-11 16:08 ` Blue Swirl
1 sibling, 0 replies; 3+ messages in thread
From: Blue Swirl @ 2012-03-11 16:08 UTC (permalink / raw)
To: Lluís Vilanova; +Cc: qemu-devel
Thanks, applied.
On Tue, Mar 6, 2012 at 18:50, Lluís Vilanova <vilanova@ac.upc.edu> wrote:
> Current code depends on variables defined in config-host.mak before it is
> actually included.
>
> Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
> Cc: Anthony Liguori <aliguori@us.ibm.com>
> Cc: Paul Brook <paul@codesourcery.com>
> ---
> Makefile | 15 ++++++++-------
> 1 files changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 49c775b..408065e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -3,13 +3,7 @@
> # Always point to the root of the build tree (needs GNU make).
> BUILD_DIR=$(CURDIR)
>
> -GENERATED_HEADERS = config-host.h trace.h qemu-options.def
> -ifeq ($(TRACE_BACKEND),dtrace)
> -GENERATED_HEADERS += trace-dtrace.h
> -endif
> -GENERATED_HEADERS += qmp-commands.h qapi-types.h qapi-visit.h
> -GENERATED_SOURCES += qmp-marshal.c qapi-types.c qapi-visit.c
> -
> +# All following code might depend on configuration variables
> ifneq ($(wildcard config-host.mak),)
> # Put the all: rule here so that config-host.mak can contain dependencies.
> all: build-all
> @@ -24,6 +18,13 @@ config-host.mak:
> @exit 1
> endif
>
> +GENERATED_HEADERS = config-host.h trace.h qemu-options.def
> +ifeq ($(TRACE_BACKEND),dtrace)
> +GENERATED_HEADERS += trace-dtrace.h
> +endif
> +GENERATED_HEADERS += qmp-commands.h qapi-types.h qapi-visit.h
> +GENERATED_SOURCES += qmp-marshal.c qapi-types.c qapi-visit.c
> +
> # Don't try to regenerate Makefile or configure
> # We don't generate any of them
> Makefile: ;
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-11 16:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 18:50 [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible Lluís Vilanova
2012-03-06 19:00 ` Peter Maydell
2012-03-11 16:08 ` Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).