2012-11-17 01:35:27 +08:00
|
|
|
#######################################################################
|
|
|
|
# Stub library, linked in tools
|
|
|
|
stub-obj-y = stubs/
|
|
|
|
|
2012-03-05 04:32:36 +08:00
|
|
|
#######################################################################
|
|
|
|
# Target-independent parts used in system and user emulation
|
|
|
|
universal-obj-y =
|
2012-06-03 23:03:23 +08:00
|
|
|
universal-obj-y += qemu-log.o
|
2012-03-05 04:32:36 +08:00
|
|
|
|
2010-01-07 03:24:05 +08:00
|
|
|
#######################################################################
|
|
|
|
# QObject
|
|
|
|
qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
|
|
|
|
qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
|
2012-12-20 23:09:36 +08:00
|
|
|
qobject-obj-y += qerror.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2012-03-05 04:32:36 +08:00
|
|
|
universal-obj-y += $(qobject-obj-y)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# QOM
|
2012-05-22 19:42:53 +08:00
|
|
|
qom-obj-y = qom/
|
2012-03-05 04:32:36 +08:00
|
|
|
|
|
|
|
universal-obj-y += $(qom-obj-y)
|
|
|
|
|
2012-12-06 00:49:12 +08:00
|
|
|
#######################################################################
|
|
|
|
# Core hw code (qdev core)
|
|
|
|
hw-core-obj-y += hw/
|
|
|
|
|
|
|
|
universal-obj-y += $(hw-core-obj-y)
|
|
|
|
|
2010-10-26 16:39:19 +08:00
|
|
|
#######################################################################
|
2012-12-20 21:34:31 +08:00
|
|
|
# util-obj-y is code depending on the OS (win32 vs posix)
|
|
|
|
util-obj-y = osdep.o cutils.o qemu-timer-common.o
|
2012-12-20 23:09:36 +08:00
|
|
|
util-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o event_notifier-win32.o
|
|
|
|
util-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.o event_notifier-posix.o
|
|
|
|
util-obj-y += envlist.o path.o host-utils.o cache-utils.o module.o
|
|
|
|
util-obj-y += bitmap.o bitops.o
|
|
|
|
util-obj-y += acl.o
|
|
|
|
util-obj-y += error.o qemu-error.o
|
|
|
|
util-obj-$(CONFIG_POSIX) += compatfd.o
|
|
|
|
util-obj-y += iov.o aes.o qemu-config.o qemu-sockets.o uri.o notify.o
|
|
|
|
util-obj-y += qemu-option.o qemu-progress.o
|
2010-10-26 16:39:19 +08:00
|
|
|
|
2011-01-18 00:08:14 +08:00
|
|
|
#######################################################################
|
|
|
|
# coroutines
|
2011-09-08 19:46:25 +08:00
|
|
|
coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o
|
2012-01-18 22:40:40 +08:00
|
|
|
coroutine-obj-y += qemu-coroutine-sleep.o
|
2012-05-02 02:45:39 +08:00
|
|
|
|
|
|
|
# If you change this logic, please also check tests/Makefile
|
2011-06-10 01:41:06 +08:00
|
|
|
ifeq ($(CONFIG_UCONTEXT_COROUTINE),y)
|
2011-01-18 00:08:14 +08:00
|
|
|
coroutine-obj-$(CONFIG_POSIX) += coroutine-ucontext.o
|
2011-06-10 01:41:06 +08:00
|
|
|
else
|
2012-02-28 19:25:51 +08:00
|
|
|
ifeq ($(CONFIG_SIGALTSTACK_COROUTINE),y)
|
|
|
|
coroutine-obj-$(CONFIG_POSIX) += coroutine-sigaltstack.o
|
|
|
|
else
|
2011-06-10 01:41:06 +08:00
|
|
|
coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o
|
|
|
|
endif
|
2012-02-28 19:25:51 +08:00
|
|
|
endif
|
2011-01-18 00:08:14 +08:00
|
|
|
coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
|
|
|
|
|
2010-01-07 03:24:05 +08:00
|
|
|
#######################################################################
|
|
|
|
# block-obj-y is code used by both qemu system emulation and qemu-img
|
|
|
|
|
2012-12-20 23:09:36 +08:00
|
|
|
block-obj-y = async.o thread-pool.o
|
|
|
|
block-obj-y += nbd.o block.o blockjob.o
|
2011-10-24 19:33:01 +08:00
|
|
|
block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
|
2012-12-20 23:09:36 +08:00
|
|
|
block-obj-y += main-loop.o iohandler.o qemu-timer.o
|
|
|
|
block-obj-$(CONFIG_POSIX) += aio-posix.o
|
|
|
|
block-obj-$(CONFIG_WIN32) += aio-win32.o
|
2012-05-22 19:44:39 +08:00
|
|
|
block-obj-y += block/
|
2012-09-19 21:11:05 +08:00
|
|
|
block-obj-y += $(qapi-obj-y) qapi-types.o qapi-visit.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2011-06-01 15:05:13 +08:00
|
|
|
ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
|
2010-11-27 06:08:48 +08:00
|
|
|
# Lots of the fsdev/9pcode is pulled in by vl.c via qemu_fsdev_add.
|
|
|
|
# only pull in the actual virtio-9p device if we also enabled virtio.
|
|
|
|
CONFIG_REALLY_VIRTFS=y
|
|
|
|
endif
|
2010-04-29 20:14:43 +08:00
|
|
|
|
2010-01-07 03:24:05 +08:00
|
|
|
######################################################################
|
2011-11-15 20:47:11 +08:00
|
|
|
# Target independent part of system emulation. The long term path is to
|
|
|
|
# suppress *all* target specific code in case of system emulation, i.e. a
|
|
|
|
# single QEMU executable should support all CPUs and machines.
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2012-08-22 22:43:07 +08:00
|
|
|
common-obj-y = $(block-obj-y) blockdev.o blockdev-nbd.o block/
|
2012-10-24 17:27:28 +08:00
|
|
|
common-obj-y += net/
|
2012-05-22 19:42:53 +08:00
|
|
|
common-obj-y += qom/
|
2012-11-28 19:06:30 +08:00
|
|
|
common-obj-y += readline.o
|
2010-06-12 13:49:30 +08:00
|
|
|
common-obj-$(CONFIG_WIN32) += os-win32.o
|
|
|
|
common-obj-$(CONFIG_POSIX) += os-posix.o
|
2010-05-21 17:54:32 +08:00
|
|
|
|
2012-05-22 19:46:08 +08:00
|
|
|
common-obj-$(CONFIG_LINUX) += fsdev/
|
|
|
|
extra-obj-$(CONFIG_LINUX) += fsdev/
|
|
|
|
|
2012-12-20 23:09:36 +08:00
|
|
|
common-obj-y += tcg-runtime.o
|
2012-10-03 20:18:33 +08:00
|
|
|
common-obj-y += migration.o migration-tcp.o
|
2011-12-20 21:59:12 +08:00
|
|
|
common-obj-y += qemu-char.o #aio.o
|
2012-12-20 23:09:36 +08:00
|
|
|
common-obj-y += block-migration.o
|
2012-08-07 02:42:50 +08:00
|
|
|
common-obj-y += page_cache.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
common-obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
|
2010-09-27 00:07:57 +08:00
|
|
|
common-obj-$(CONFIG_WIN32) += version.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2012-05-22 19:48:15 +08:00
|
|
|
common-obj-$(CONFIG_SPICE) += spice-qemu-char.o
|
2012-05-22 19:49:02 +08:00
|
|
|
|
|
|
|
common-obj-y += audio/
|
2012-05-29 17:08:47 +08:00
|
|
|
common-obj-y += hw/
|
2012-12-18 01:17:08 +08:00
|
|
|
extra-obj-y += hw/
|
|
|
|
|
2012-05-22 19:48:15 +08:00
|
|
|
common-obj-y += ui/
|
2012-05-29 17:08:47 +08:00
|
|
|
common-obj-y += bt-host.o bt-vhci.o
|
2010-07-08 02:57:52 +08:00
|
|
|
|
2012-10-06 01:39:33 +08:00
|
|
|
common-obj-y += dma-helpers.o
|
|
|
|
common-obj-y += qtest.o
|
|
|
|
common-obj-y += vl.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2012-05-22 19:49:43 +08:00
|
|
|
common-obj-$(CONFIG_SLIRP) += slirp/
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2012-06-25 23:03:47 +08:00
|
|
|
common-obj-y += backends/
|
|
|
|
|
2012-08-15 05:44:05 +08:00
|
|
|
######################################################################
|
|
|
|
# libseccomp
|
|
|
|
ifeq ($(CONFIG_SECCOMP),y)
|
|
|
|
common-obj-y += qemu-seccomp.o
|
|
|
|
endif
|
|
|
|
|
2010-01-07 03:24:05 +08:00
|
|
|
######################################################################
|
|
|
|
# libuser
|
|
|
|
|
|
|
|
user-obj-y =
|
2012-12-20 23:09:36 +08:00
|
|
|
user-obj-y += tcg-runtime.o
|
2012-05-22 19:42:53 +08:00
|
|
|
user-obj-y += qom/
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2010-03-21 16:28:47 +08:00
|
|
|
######################################################################
|
2012-10-24 17:12:21 +08:00
|
|
|
# disassemblers
|
2010-03-21 16:28:47 +08:00
|
|
|
# NOTE: the disassembler code is only needed for debugging
|
|
|
|
|
2012-10-24 17:12:21 +08:00
|
|
|
universal-obj-y += disas/
|
2010-03-30 03:23:52 +08:00
|
|
|
|
2010-05-23 00:52:39 +08:00
|
|
|
######################################################################
|
|
|
|
# trace
|
|
|
|
|
2012-12-15 03:13:09 +08:00
|
|
|
trace-obj-y += trace/
|
2011-09-08 07:40:51 +08:00
|
|
|
|
2012-10-24 17:16:01 +08:00
|
|
|
universal-obj-y += $(trace-obj-y)
|
|
|
|
|
libcacard: initial commit
libcacard emulates a Common Access Card (CAC) which is a standard
for smartcards. It is used by the emulated ccid card introduced in
a following patch. Docs are available in docs/libcacard.txt
Signed-off-by: Alon Levy <alevy@redhat.com>
---
changes from v24->v25:
* Fix out of tree builds.
* Fix build with linux-user targets.
changes from v23->v24: (Jes Sorensen review 2)
* Makefile.target: use obj-$(CONFIG_*) +=
* remove unrequired includes, include qemu-common before qemu-thread
* required adding #define NO_NSPR_10_SUPPORT (harmless)
changes from v22->v23:
* configure fixes: (reported by Stefan Hajnoczi)
* test a = b, not a == b (second isn't portable)
* quote $source_path in case it contains spaces
- this doesn't really help since there are many other places
that need similar fixes, not introduced by this patch.
changes from v21->v22:
* fix configure to not link libcacard if nss not found
(reported by Stefan Hajnoczi)
* fix vscclient linkage with simpletrace backend
(reported by Stefan Hajnoczi)
* card_7816.c: add missing break in ERROR_DATA_NOT_FOUND
(reported by William van de Velde)
changes from v20->v21: (Jes Sorensen review)
* use qemu infrastructure: qemu-thread, qemu-common (qemu_malloc
and qemu_free), error_report
* assert instead of ASSERT
* cosmetic fixes
* use strpbrk and isspace
* add --disable-nss --enable-nss here, instead of in the final patch.
* split vscclient, passthru and docs to following patches.
changes from v19->v20:
* checkpatch.pl
changes from v15->v16:
Build:
* don't erase self with distclean
* fix make clean after make distclean
* Makefile: make vscclient link quiet
Behavioral:
* vcard_emul_nss: load coolkey in more situations
* vscclient:
* use hton,ntoh
* send init on connect, only start vevent thread on response
* read payload after header check, before type switch
* remove Reconnect
* update for vscard_common changes, empty Flush implementation
Style/Whitespace:
* fix wrong variable usage
* remove unused variable
* use only C style comments
* add copyright header
* fix tabulation
Signed-off-by: Alon Levy <alevy@redhat.com>
libcacard: fix out of tree builds
2010-11-28 22:36:38 +08:00
|
|
|
######################################################################
|
|
|
|
# smartcard
|
|
|
|
|
2012-05-29 17:40:24 +08:00
|
|
|
libcacard-y += libcacard/cac.o libcacard/event.o
|
|
|
|
libcacard-y += libcacard/vcard.o libcacard/vreader.o
|
|
|
|
libcacard-y += libcacard/vcard_emul_nss.o
|
|
|
|
libcacard-y += libcacard/vcard_emul_type.o
|
|
|
|
libcacard-y += libcacard/card_7816.o
|
|
|
|
|
|
|
|
common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y)
|
libcacard: initial commit
libcacard emulates a Common Access Card (CAC) which is a standard
for smartcards. It is used by the emulated ccid card introduced in
a following patch. Docs are available in docs/libcacard.txt
Signed-off-by: Alon Levy <alevy@redhat.com>
---
changes from v24->v25:
* Fix out of tree builds.
* Fix build with linux-user targets.
changes from v23->v24: (Jes Sorensen review 2)
* Makefile.target: use obj-$(CONFIG_*) +=
* remove unrequired includes, include qemu-common before qemu-thread
* required adding #define NO_NSPR_10_SUPPORT (harmless)
changes from v22->v23:
* configure fixes: (reported by Stefan Hajnoczi)
* test a = b, not a == b (second isn't portable)
* quote $source_path in case it contains spaces
- this doesn't really help since there are many other places
that need similar fixes, not introduced by this patch.
changes from v21->v22:
* fix configure to not link libcacard if nss not found
(reported by Stefan Hajnoczi)
* fix vscclient linkage with simpletrace backend
(reported by Stefan Hajnoczi)
* card_7816.c: add missing break in ERROR_DATA_NOT_FOUND
(reported by William van de Velde)
changes from v20->v21: (Jes Sorensen review)
* use qemu infrastructure: qemu-thread, qemu-common (qemu_malloc
and qemu_free), error_report
* assert instead of ASSERT
* cosmetic fixes
* use strpbrk and isspace
* add --disable-nss --enable-nss here, instead of in the final patch.
* split vscclient, passthru and docs to following patches.
changes from v19->v20:
* checkpatch.pl
changes from v15->v16:
Build:
* don't erase self with distclean
* fix make clean after make distclean
* Makefile: make vscclient link quiet
Behavioral:
* vcard_emul_nss: load coolkey in more situations
* vscclient:
* use hton,ntoh
* send init on connect, only start vevent thread on response
* read payload after header check, before type switch
* remove Reconnect
* update for vscard_common changes, empty Flush implementation
Style/Whitespace:
* fix wrong variable usage
* remove unused variable
* use only C style comments
* add copyright header
* fix tabulation
Signed-off-by: Alon Levy <alevy@redhat.com>
libcacard: fix out of tree builds
2010-11-28 22:36:38 +08:00
|
|
|
|
2011-07-20 03:50:32 +08:00
|
|
|
######################################################################
|
|
|
|
# qapi
|
|
|
|
|
2012-05-22 19:50:34 +08:00
|
|
|
qapi-obj-y = qapi/
|
2012-08-02 03:30:13 +08:00
|
|
|
qapi-obj-y += qapi-types.o qapi-visit.o
|
2011-07-20 03:50:32 +08:00
|
|
|
|
2012-03-05 04:32:36 +08:00
|
|
|
common-obj-y += qmp-marshal.o qapi-visit.o qapi-types.o
|
2011-09-03 01:34:48 +08:00
|
|
|
common-obj-y += qmp.o hmp.o
|
2011-09-03 01:34:47 +08:00
|
|
|
|
2012-03-05 04:32:36 +08:00
|
|
|
universal-obj-y += $(qapi-obj-y)
|
|
|
|
|
2011-08-12 04:38:12 +08:00
|
|
|
######################################################################
|
|
|
|
# guest agent
|
|
|
|
|
2012-12-20 23:09:36 +08:00
|
|
|
qga-obj-y = qga/
|
2011-08-12 04:38:12 +08:00
|
|
|
|
2010-03-30 03:23:52 +08:00
|
|
|
vl.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
|
|
|
|
|
|
|
|
vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)
|
|
|
|
|
2011-08-21 11:18:37 +08:00
|
|
|
QEMU_CFLAGS+=$(GLIB_CFLAGS)
|
|
|
|
|
2012-05-22 19:42:53 +08:00
|
|
|
nested-vars += \
|
2012-11-17 01:35:27 +08:00
|
|
|
stub-obj-y \
|
2012-05-22 19:50:58 +08:00
|
|
|
qga-obj-y \
|
2012-05-22 19:42:53 +08:00
|
|
|
qom-obj-y \
|
2012-05-22 19:50:34 +08:00
|
|
|
qapi-obj-y \
|
2012-09-19 21:11:05 +08:00
|
|
|
block-obj-y \
|
2012-05-22 19:42:53 +08:00
|
|
|
user-obj-y \
|
2012-05-22 19:46:08 +08:00
|
|
|
common-obj-y \
|
2012-10-24 17:12:21 +08:00
|
|
|
universal-obj-y \
|
2012-12-06 00:49:12 +08:00
|
|
|
hw-core-obj-y \
|
2012-12-15 03:13:09 +08:00
|
|
|
extra-obj-y \
|
|
|
|
trace-obj-y
|
2012-05-22 19:41:27 +08:00
|
|
|
dummy := $(call unnest-vars)
|