Received: from eggs.gnu.org ([2001:4830:134:3::10]:54944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1DoV-00049c-Ou for qemu-devel@nongnu.org; Thu, 09 Jan 2014 06:30:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1DoQ-0000FX-1a for qemu-devel@nongnu.org; Thu, 09 Jan 2014 06:30:15 -0500 Received: from roura.ac.upc.es ([147.83.33.10]:52191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1DoP-0000Ef-Ec for qemu-devel@nongnu.org; Thu, 09 Jan 2014 06:30:09 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Thu, 9 Jan 2014 12:00:01 +0100 Message-Id: <20140109110001.23406.31784.stgit@fimbulvetr.bsc.es> In-Reply-To: <20140109105950.23406.55209.stgit@fimbulvetr.bsc.es> References: <20140109105950.23406.55209.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 2/2] qapi: [trivial] Set the input root directory when parsing QAPI files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi Signed-off-by: Llu=C3=ADs Vilanova --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 02ae76d..d950791 100644 --- a/Makefile +++ b/Makefile @@ -222,13 +222,19 @@ $(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/script= s/qapi-commands.py $(qapi-py) =20 qapi-types.c qapi-types.h :\ $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py= ) - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py $(gen-= out-type) -o "." -b < $<, " GEN $@") + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \ + $(gen-out-type) -o "." -i "$(SRC_PATH)" -b \ + < $<, " GEN $@") qapi-visit.c qapi-visit.h :\ $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py= ) - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py $(gen-= out-type) -o "." -b < $<, " GEN $@") + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py \ + $(gen-out-type) -o "." -i "$(SRC_PATH)" -b \ + < $<, " GEN $@") qmp-commands.h qmp-marshal.c :\ $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi= -py) - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py $(g= en-out-type) -m -o "." < $<, " GEN $@") + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py \ + $(gen-out-type) -m -o "." -i "$(SRC_PATH)" \ + < $<, " GEN $@") =20 QGALIB_GEN=3D$(addprefix qga/qapi-generated/, qga-qapi-types.h qga-qapi-= visit.h qga-qmp-commands.h) $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)