diff mbox

[1/2] build: Always have 'BUILD_DIR' variable pointing to the root of the build tree

Message ID 20110915204535.17235.55522.stgit@ginnungagap.bsc.es
State New
Headers show

Commit Message

Lluís Vilanova Sept. 15, 2011, 8:45 p.m. UTC
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
 Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

Comments

Anthony Liguori Sept. 16, 2011, 2:45 p.m. UTC | #1
On 09/15/2011 03:45 PM, Lluís Vilanova wrote:
> Signed-off-by: Lluís Vilanova<vilanova@ac.upc.edu>

Applied all.  Thanks.

Regards,

Anthony Liguori

> ---
>   Makefile |    5 ++++-
>   1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 7e9382f..57cc399 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1,5 +1,8 @@
>   # Makefile for QEMU.
>
> +# Always point to the root of the build tree
> +BUILD_DIR=$(PWD)
> +
>   GENERATED_HEADERS = config-host.h trace.h qemu-options.def
>   ifeq ($(TRACE_BACKEND),dtrace)
>   GENERATED_HEADERS += trace-dtrace.h
> @@ -37,7 +40,7 @@ else
>   DOCS=
>   endif
>
> -SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
> +SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR)
>   SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
>   SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS))
>
>
>
>
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 7e9382f..57cc399 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@ 
 # Makefile for QEMU.
 
+# Always point to the root of the build tree
+BUILD_DIR=$(PWD)
+
 GENERATED_HEADERS = config-host.h trace.h qemu-options.def
 ifeq ($(TRACE_BACKEND),dtrace)
 GENERATED_HEADERS += trace-dtrace.h
@@ -37,7 +40,7 @@  else
 DOCS=
 endif
 
-SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
+SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR)
 SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
 SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS))