Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
7197390a
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7197390a
编写于
11月 18, 2011
作者:
A
Anthony Liguori
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'qmp/queue/qmp-1.0' into staging
上级
c951d9a6
1b14254b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
23 deletion
+26
-23
Makefile
Makefile
+25
-22
qapi/qmp-output-visitor.c
qapi/qmp-output-visitor.c
+1
-1
未找到文件。
Makefile
浏览文件 @
7197390a
...
...
@@ -8,6 +8,7 @@ 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
ifneq
($(wildcard config-host.mak),)
# Put the all: rule here so that config-host.mak can contain dependencies.
...
...
@@ -171,34 +172,34 @@ qapi-dir := qapi-generated
test-visitor.o test-qmp-commands.o qemu-ga$(EXESUF)
:
QEMU_CFLAGS += -I $(qapi-dir)
qemu-ga$(EXESUF)
:
LIBS = $(LIBS_QGA)
$(qapi-dir)/test-qapi-types.c
:
$(qapi-dir)/test-qapi-types.h
$(
qapi-dir)/test-qapi-types.h
:
$(
SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py
$(qapi-dir)/test-qapi-types.c
$(qapi-dir)/test-qapi-types.h
:
\
$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-types.py
-o
"
$
(qapi-dir
)
"
-p
"test-"
<
$<
,
" GEN
$@
"
)
$(qapi-dir)/test-qapi-visit.c
:
$(qapi-dir)/test-qapi-visit.h
$(
qapi-dir)/test-qapi-visit.h
:
$(
SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py
$(qapi-dir)/test-qapi-visit.c
$(qapi-dir)/test-qapi-visit.h
:
\
$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-visit.py
-o
"
$
(qapi-dir
)
"
-p
"test-"
<
$<
,
" GEN
$@
"
)
$(qapi-dir)/test-qmp-commands.h
:
$(qapi-dir)/test-qmp-marshal.c
$(
qapi-dir)/test-qmp-marshal.c
:
$(
SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py
$(qapi-dir)/test-qmp-commands.h
$(qapi-dir)/test-qmp-marshal.c
:
\
$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-commands.py
-o
"
$
(qapi-dir
)
"
-p
"test-"
<
$<
,
" GEN
$@
"
)
$(qapi-dir)/qga-qapi-types.c
:
$(qapi-dir)/qga-qapi-types.h
$(
qapi-dir)/qga-qapi-types.h
:
$(
SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-types.py
$(qapi-dir)/qga-qapi-types.c
$(qapi-dir)/qga-qapi-types.h
:
\
$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-types.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-types.py
-o
"
$
(qapi-dir
)
"
-p
"qga-"
<
$<
,
" GEN
$@
"
)
$(qapi-dir)/qga-qapi-visit.c
:
$(qapi-dir)/qga-qapi-visit.h
$(
qapi-dir)/qga-qapi-visit.h
:
$(
SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-visit.py
$(qapi-dir)/qga-qapi-visit.c
$(qapi-dir)/qga-qapi-visit.h
:
\
$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-visit.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-visit.py
-o
"
$
(qapi-dir
)
"
-p
"qga-"
<
$<
,
" GEN
$@
"
)
$(qapi-dir)/qga-qmp-commands.h
:
$(qapi-dir)/qga-qmp-marshal.c
$(
qapi-dir)/qga-qmp-marshal.c
:
$(
SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-commands.py
$(qapi-dir)/qga-qmp-commands.h
$(qapi-dir)/qga-qmp-marshal.c
:
\
$(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-commands.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-commands.py
-o
"
$
(qapi-dir
)
"
-p
"qga-"
<
$<
,
" GEN
$@
"
)
qapi-types.c
:
qapi-types.h
qapi-types.h
:
$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py
qapi-types.c
qapi-types.h
:
\
$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-types.py
-o
"."
<
$<
,
" GEN
$@
"
)
qapi-visit.c
:
qapi-visit.h
qapi-visit.h
:
$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-visit.py
qapi-visit.c
qapi-visit.h
:
\
$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-visit.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-visit.py
-o
"."
<
$<
,
" GEN
$@
"
)
qmp-commands.h
:
qmp-marshal.c
qmp-marshal.c
:
$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py
qmp-commands.h
qmp-marshal.c
:
\
$(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py
$(
call
quiet-command,
$(PYTHON)
$(SRC_PATH)
/scripts/qapi-commands.py
-m
-o
"."
<
$<
,
" GEN
$@
"
)
test-visitor.o
:
$(addprefix $(qapi-dir)/
,
test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h) $(qapi-obj-y)
...
...
@@ -207,11 +208,12 @@ test-visitor: test-visitor.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qap
test-qmp-commands.o
:
$(addprefix $(qapi-dir)/
,
test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h test-qmp-marshal.c test-qmp-commands.h) $(qapi-obj-y)
test-qmp-commands
:
test-qmp-commands.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o $(qapi-dir)/test-qmp-marshal.o module.o
QGALIB_GEN
=
$(
addprefix
$
(
qapi-dir
)
/, qga-qapi-types.c qga-qapi-types.h qga-qapi-visit.c qga-qmp-marshal.c
)
$(QGALIB_GEN)
:
$(GENERATED_HEADERS)
$(qga-obj-y) qemu-ga.o
:
$(QGALIB_GEN)
QGALIB_OBJ
=
$(
addprefix
$
(
qapi-dir
)
/, qga-qapi-types.o qga-qapi-visit.o qga-qmp-marshal.o
)
QGALIB_GEN
=
$(
addprefix
$
(
qapi-dir
)
/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h
)
$(QGALIB_OBJ)
:
$(QGALIB_GEN) $(GENERATED_HEADERS)
$(qga-obj-y) qemu-ga.o
:
$(QGALIB_GEN) $(GENERATED_HEADERS)
qemu-ga$(EXESUF)
:
qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qobject-obj-y) $(version-obj-y) $(
addprefix $(qapi-dir)/
,
qga-qapi-visit.o qga-qapi-types.o qga-qmp-marshal.o
)
qemu-ga$(EXESUF)
:
qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qobject-obj-y) $(version-obj-y) $(
QGALIB_OBJ
)
QEMULIBS
=
libhw32 libhw64 libuser libdis libdis-user
...
...
@@ -227,6 +229,7 @@ clean:
rm
-f
trace.c
trace.h
trace.c-timestamp
trace.h-timestamp
rm
-f
trace-dtrace.dtrace
trace-dtrace.dtrace-timestamp
rm
-f
trace-dtrace.h
trace-dtrace.h-timestamp
rm
-f
$(GENERATED_SOURCES)
rm
-rf
$(qapi-dir)
$(MAKE)
-C
tests
clean
for
d
in
$(ALL_SUBDIRS)
$(QEMULIBS)
libcacard;
do
\
...
...
qapi/qmp-output-visitor.c
浏览文件 @
7197390a
...
...
@@ -190,7 +190,7 @@ static void qmp_output_type_enum(Visitor *v, int *obj, const char *strings[],
assert
(
strings
);
while
(
strings
[
i
++
]
!=
NULL
);
if
(
value
>=
i
-
1
)
{
if
(
value
<
0
||
value
>=
i
-
1
)
{
error_set
(
errp
,
QERR_INVALID_PARAMETER
,
name
?
name
:
"null"
);
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录