qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possi


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible
Date: Sun, 11 Mar 2012 16:08:31 +0000

Thanks, applied.

On Tue, Mar 6, 2012 at 18:50, Lluís Vilanova <address@hidden> wrote:
> Current code depends on variables defined in config-host.mak before it is
> actually included.
>
> Signed-off-by: Lluís Vilanova <address@hidden>
> Cc: Anthony Liguori <address@hidden>
> Cc: Paul Brook <address@hidden>
> ---
>  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:
>       address@hidden 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: ;
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]