From 5964ed56d9a138c1172db1335c65bda42c4f6260 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 24 Feb 2020 15:29:50 +0100 Subject: stubs: Add arch_type blockdev.c uses the arch_type constant, so before we can use the file in tools (i.e. outside of the system emulator), we need to add a stub for it. A new QEMU_ARCH_NONE is introduced for this case. Signed-off-by: Kevin Wolf Message-Id: <20200224143008.13362-3-kwolf@redhat.com> Acked-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- stubs/Makefile.objs | 1 + stubs/arch_type.c | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 stubs/arch_type.c (limited to 'stubs') diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 7afbe5f..24062ce 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -1,3 +1,4 @@ +stub-obj-y += arch_type.o stub-obj-y += bdrv-next-monitor-owned.o stub-obj-y += blk-commit-all.o stub-obj-y += blockdev-close-all-bdrv-states.o diff --git a/stubs/arch_type.c b/stubs/arch_type.c new file mode 100644 index 0000000..fc5423b --- /dev/null +++ b/stubs/arch_type.c @@ -0,0 +1,4 @@ +#include "qemu/osdep.h" +#include "sysemu/arch_init.h" + +const uint32_t arch_type = QEMU_ARCH_NONE; -- cgit v1.1