Personal qemu branches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.objs 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. #######################################################################
  2. # Common libraries for tools and emulators
  3. stub-obj-y = stubs/ util/ crypto/
  4. util-obj-y = util/ qobject/ qapi/
  5. chardev-obj-y = chardev/
  6. #######################################################################
  7. # authz-obj-y is code used by both qemu system emulation and qemu-img
  8. authz-obj-y = authz/
  9. #######################################################################
  10. # block-obj-y is code used by both qemu system emulation and qemu-img
  11. block-obj-y = nbd/
  12. block-obj-y += block.o blockjob.o job.o
  13. block-obj-y += block/ scsi/
  14. block-obj-y += qemu-io-cmds.o
  15. block-obj-$(CONFIG_REPLICATION) += replication.o
  16. block-obj-m = block/
  17. #######################################################################
  18. # crypto-obj-y is code used by both qemu system emulation and qemu-img
  19. crypto-obj-y = crypto/
  20. crypto-aes-obj-y = crypto/
  21. #######################################################################
  22. # qom-obj-y is code used by both qemu system emulation and qemu-img
  23. qom-obj-y = qom/
  24. #######################################################################
  25. # io-obj-y is code used by both qemu system emulation and qemu-img
  26. io-obj-y = io/
  27. ######################################################################
  28. # Target independent part of system emulation. The long term path is to
  29. # suppress *all* target specific code in case of system emulation, i.e. a
  30. # single QEMU executable should support all CPUs and machines.
  31. ifeq ($(CONFIG_SOFTMMU),y)
  32. common-obj-y = blockdev.o blockdev-nbd.o block/
  33. common-obj-y += bootdevice.o iothread.o
  34. common-obj-y += job-qmp.o
  35. common-obj-y += net/
  36. common-obj-y += qdev-monitor.o device-hotplug.o
  37. common-obj-$(CONFIG_WIN32) += os-win32.o
  38. common-obj-$(CONFIG_POSIX) += os-posix.o
  39. common-obj-$(CONFIG_LINUX) += fsdev/
  40. common-obj-y += migration/
  41. common-obj-y += audio/
  42. common-obj-m += audio/
  43. common-obj-y += hw/
  44. common-obj-y += replay/
  45. common-obj-y += ui/
  46. common-obj-m += ui/
  47. common-obj-y += bt-host.o bt-vhci.o
  48. bt-host.o-cflags := $(BLUEZ_CFLAGS)
  49. common-obj-y += dma-helpers.o
  50. common-obj-y += vl.o
  51. vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
  52. common-obj-$(CONFIG_TPM) += tpm.o
  53. common-obj-y += backends/
  54. common-obj-y += chardev/
  55. common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
  56. qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
  57. qemu-seccomp.o-libs := $(SECCOMP_LIBS)
  58. common-obj-$(CONFIG_FDT) += device_tree.o
  59. ######################################################################
  60. # qapi
  61. common-obj-y += qmp.o hmp.o
  62. common-obj-y += qapi/
  63. endif
  64. #######################################################################
  65. # Target-independent parts used in system and user emulation
  66. common-obj-y += cpus-common.o
  67. common-obj-y += hw/
  68. common-obj-y += qom/
  69. common-obj-y += disas/
  70. ######################################################################
  71. # Resource file for Windows executables
  72. version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
  73. ######################################################################
  74. # tracing
  75. util-obj-y += trace/
  76. ######################################################################
  77. # guest agent
  78. # FIXME: a few definitions from qapi/qapi-types.o and
  79. # qapi/qapi-visit.o are needed by libqemuutil.a. These should be
  80. # extracted into a QAPI schema module, or perhaps a separate schema.
  81. qga-obj-y = qga/
  82. qga-vss-dll-obj-y = qga/
  83. ######################################################################
  84. # contrib
  85. elf2dmp-obj-y = contrib/elf2dmp/
  86. ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
  87. ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
  88. libvhost-user-obj-y = contrib/libvhost-user/
  89. vhost-user-scsi.o-cflags := $(LIBISCSI_CFLAGS)
  90. vhost-user-scsi.o-libs := $(LIBISCSI_LIBS)
  91. vhost-user-scsi-obj-y = contrib/vhost-user-scsi/
  92. vhost-user-blk-obj-y = contrib/vhost-user-blk/
  93. rdmacm-mux-obj-y = contrib/rdmacm-mux/
  94. ######################################################################
  95. trace-events-subdirs =
  96. trace-events-subdirs += accel/kvm
  97. trace-events-subdirs += accel/tcg
  98. trace-events-subdirs += crypto
  99. ifeq ($(CONFIG_USER_ONLY),y)
  100. trace-events-subdirs += linux-user
  101. endif
  102. ifeq ($(CONFIG_BLOCK),y)
  103. trace-events-subdirs += authz
  104. trace-events-subdirs += block
  105. trace-events-subdirs += io
  106. trace-events-subdirs += nbd
  107. trace-events-subdirs += scsi
  108. endif
  109. ifeq ($(CONFIG_SOFTMMU),y)
  110. trace-events-subdirs += chardev
  111. trace-events-subdirs += audio
  112. trace-events-subdirs += hw/9pfs
  113. trace-events-subdirs += hw/acpi
  114. trace-events-subdirs += hw/alpha
  115. trace-events-subdirs += hw/arm
  116. trace-events-subdirs += hw/audio
  117. trace-events-subdirs += hw/block
  118. trace-events-subdirs += hw/block/dataplane
  119. trace-events-subdirs += hw/char
  120. trace-events-subdirs += hw/dma
  121. trace-events-subdirs += hw/hppa
  122. trace-events-subdirs += hw/i2c
  123. trace-events-subdirs += hw/i386
  124. trace-events-subdirs += hw/i386/xen
  125. trace-events-subdirs += hw/ide
  126. trace-events-subdirs += hw/input
  127. trace-events-subdirs += hw/intc
  128. trace-events-subdirs += hw/isa
  129. trace-events-subdirs += hw/mem
  130. trace-events-subdirs += hw/misc
  131. trace-events-subdirs += hw/misc/macio
  132. trace-events-subdirs += hw/net
  133. trace-events-subdirs += hw/nvram
  134. trace-events-subdirs += hw/pci
  135. trace-events-subdirs += hw/pci-host
  136. trace-events-subdirs += hw/ppc
  137. trace-events-subdirs += hw/rdma
  138. trace-events-subdirs += hw/rdma/vmw
  139. trace-events-subdirs += hw/s390x
  140. trace-events-subdirs += hw/scsi
  141. trace-events-subdirs += hw/sd
  142. trace-events-subdirs += hw/sparc
  143. trace-events-subdirs += hw/sparc64
  144. trace-events-subdirs += hw/timer
  145. trace-events-subdirs += hw/tpm
  146. trace-events-subdirs += hw/usb
  147. trace-events-subdirs += hw/vfio
  148. trace-events-subdirs += hw/virtio
  149. trace-events-subdirs += hw/watchdog
  150. trace-events-subdirs += hw/xen
  151. trace-events-subdirs += hw/gpio
  152. trace-events-subdirs += migration
  153. trace-events-subdirs += net
  154. trace-events-subdirs += ui
  155. endif
  156. trace-events-subdirs += hw/display
  157. trace-events-subdirs += qapi
  158. trace-events-subdirs += qom
  159. trace-events-subdirs += target/arm
  160. trace-events-subdirs += target/hppa
  161. trace-events-subdirs += target/i386
  162. trace-events-subdirs += target/mips
  163. trace-events-subdirs += target/ppc
  164. trace-events-subdirs += target/riscv
  165. trace-events-subdirs += target/s390x
  166. trace-events-subdirs += target/sparc
  167. trace-events-subdirs += util
  168. trace-events-files = $(SRC_PATH)/trace-events $(trace-events-subdirs:%=$(SRC_PATH)/%/trace-events)
  169. trace-obj-y = trace-root.o
  170. trace-obj-y += $(trace-events-subdirs:%=%/trace.o)
  171. trace-obj-$(CONFIG_TRACE_UST) += trace-ust-all.o
  172. trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace-root.o
  173. trace-obj-$(CONFIG_TRACE_DTRACE) += $(trace-events-subdirs:%=%/trace-dtrace.o)