cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From f346ff306b647fe1db3ffe8c9880178382c7b98d Mon Sep 17 00:00:00 2001
218e99
From: Amos Kong <akong@redhat.com>
218e99
Date: Fri, 8 Nov 2013 06:13:58 +0100
218e99
Subject: [PATCH 3/4] qapi: enable generation of native list code
218e99
218e99
RH-Author: Amos Kong <akong@redhat.com>
218e99
Message-id: <1383891239-29531-4-git-send-email-akong@redhat.com>
218e99
Patchwork-id: 55610
218e99
O-Subject: [RHEL-7.0 qemu-kvm PATCH v2 3/4] qapi: enable generation of native list code
218e99
Bugzilla: 848203
218e99
RH-Acked-by: Vlad Yasevich <vyasevic@redhat.com>
218e99
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
218e99
From: Michael Roth <mdroth@linux.vnet.ibm.com>
218e99
218e99
Also, fix a dependency issue with libqemuutil: qemu-sockets.c needs
218e99
qapi-types.c/qapi-visit.c
218e99
218e99
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
218e99
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
218e99
Reviewed-by: Amos Kong <akong@redhat.com>
218e99
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
218e99
(cherry picked from commit 0b400e792718f59275d5d54c21de9a589b35a81f)
218e99
---
218e99
 Makefile |   10 +++++-----
218e99
 1 files changed, 5 insertions(+), 5 deletions(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 Makefile |   10 +++++-----
218e99
 1 files changed, 5 insertions(+), 5 deletions(-)
218e99
218e99
diff --git a/Makefile b/Makefile
218e99
index 45048a3..66774de 100644
218e99
--- a/Makefile
218e99
+++ b/Makefile
218e99
@@ -183,7 +183,7 @@ Makefile: $(version-obj-y) $(version-lobj-y)
218e99
 # Build libraries
218e99
 
218e99
 libqemustub.a: $(stub-obj-y)
218e99
-libqemuutil.a: $(util-obj-y)
218e99
+libqemuutil.a: $(util-obj-y) qapi-types.o qapi-visit.o
218e99
 
218e99
 ######################################################################
218e99
 
218e99
@@ -239,20 +239,20 @@ $(SRC_PATH)/qapi-schema-rhel.json: $(SRC_PATH)/qapi-schema.json
218e99
 ifeq ($(CONFIG_LIVE_BLOCK_OPS),y)
218e99
 qapi-types.c qapi-types.h :\
218e99
 $(SRC_PATH)/qapi-schema-rhev.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)
218e99
-	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o "."  < $<, "  GEN   $@")
218e99
+	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o "." -b < $<, "  GEN   $@")
218e99
 qapi-visit.c qapi-visit.h :\
218e99
 $(SRC_PATH)/qapi-schema-rhev.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py)
218e99
-	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o "."  < $<, "  GEN   $@")
218e99
+	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o "." -b < $<, "  GEN   $@")
218e99
 qmp-commands.h qmp-marshal.c :\
218e99
 $(SRC_PATH)/qapi-schema-rhev.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py)
218e99
 	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -m -o "."  < $<, "  GEN   $@")
218e99
 else
218e99
 qapi-types.c qapi-types.h :\
218e99
 $(SRC_PATH)/qapi-schema-rhel.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)
218e99
-	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o "."  < $<, "  GEN   $@")
218e99
+	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o "." -b < $<, "  GEN   $@")
218e99
 qapi-visit.c qapi-visit.h :\
218e99
 $(SRC_PATH)/qapi-schema-rhel.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py)
218e99
-	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o "."  < $<, "  GEN   $@")
218e99
+	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o "." -b < $<, "  GEN   $@")
218e99
 qmp-commands.h qmp-marshal.c :\
218e99
 $(SRC_PATH)/qapi-schema-rhel.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py)
218e99
 	$(call quiet-command,python $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -m -o "."  < $<, "  GEN   $@")
218e99
-- 
218e99
1.7.1
218e99