From 388d475815c23901010a25c845eb078d47ee0740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Vilanova?= Date: Thu, 15 Sep 2011 22:45:35 +0200 Subject: [PATCH] build: Always have 'BUILD_DIR' variable pointing to the root of the build tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lluís Vilanova Signed-off-by: Lluís Vilanova Signed-off-by: Anthony Liguori --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e9382f101..57cc3997e5 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))