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
|
2011-10-24 19:33:01 +08:00
|
|
|
qobject-obj-y += qerror.o error.o qemu-error.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2010-10-26 16:39:19 +08:00
|
|
|
#######################################################################
|
|
|
|
# oslib-obj-y is code depending on the OS (win32 vs posix)
|
|
|
|
oslib-obj-y = osdep.o
|
2011-05-02 15:54:03 +08:00
|
|
|
oslib-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o
|
|
|
|
oslib-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.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
|
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
|
|
|
|
coroutine-obj-$(CONFIG_POSIX) += coroutine-gthread.o
|
|
|
|
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
|
|
|
|
|
2011-08-21 11:23:03 +08:00
|
|
|
block-obj-y = cutils.o cache-utils.o qemu-option.o module.o async.o
|
2011-02-22 23:44:53 +08:00
|
|
|
block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o
|
2011-10-24 19:33:01 +08:00
|
|
|
block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
|
2010-01-07 03:24:05 +08:00
|
|
|
block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
|
|
|
|
block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
|
|
|
|
|
2010-04-08 04:30:24 +08:00
|
|
|
block-nested-y += raw.o cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
|
2011-01-11 00:15:10 +08:00
|
|
|
block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o
|
2010-12-07 00:08:01 +08:00
|
|
|
block-nested-y += qed.o qed-gencb.o qed-l2-cache.o qed-table.o qed-cluster.o
|
2010-12-07 00:08:02 +08:00
|
|
|
block-nested-y += qed-check.o
|
2010-09-21 22:43:03 +08:00
|
|
|
block-nested-y += parallels.o nbd.o blkdebug.o sheepdog.o blkverify.o
|
2012-01-18 22:40:44 +08:00
|
|
|
block-nested-y += stream.o
|
2010-01-07 03:24:05 +08:00
|
|
|
block-nested-$(CONFIG_WIN32) += raw-win32.o
|
|
|
|
block-nested-$(CONFIG_POSIX) += raw-posix.o
|
2011-10-25 16:24:24 +08:00
|
|
|
block-nested-$(CONFIG_LIBISCSI) += iscsi.o
|
2010-01-07 03:24:05 +08:00
|
|
|
block-nested-$(CONFIG_CURL) += curl.o
|
2010-12-07 03:53:01 +08:00
|
|
|
block-nested-$(CONFIG_RBD) += rbd.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
block-obj-y += $(addprefix block/, $(block-nested-y))
|
|
|
|
|
|
|
|
net-obj-y = net.o
|
|
|
|
net-nested-y = queue.o checksum.o util.o
|
|
|
|
net-nested-y += socket.o
|
|
|
|
net-nested-y += dump.o
|
|
|
|
net-nested-$(CONFIG_POSIX) += tap.o
|
|
|
|
net-nested-$(CONFIG_LINUX) += tap-linux.o
|
|
|
|
net-nested-$(CONFIG_WIN32) += tap-win32.o
|
|
|
|
net-nested-$(CONFIG_BSD) += tap-bsd.o
|
|
|
|
net-nested-$(CONFIG_SOLARIS) += tap-solaris.o
|
|
|
|
net-nested-$(CONFIG_AIX) += tap-aix.o
|
2010-09-20 06:50:47 +08:00
|
|
|
net-nested-$(CONFIG_HAIKU) += tap-haiku.o
|
2010-01-07 03:24:05 +08:00
|
|
|
net-nested-$(CONFIG_SLIRP) += slirp.o
|
|
|
|
net-nested-$(CONFIG_VDE) += vde.o
|
|
|
|
net-obj-y += $(addprefix net/, $(net-nested-y))
|
|
|
|
|
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
|
2011-12-14 16:19:06 +08:00
|
|
|
fsdev-nested-y = qemu-fsdev.o virtio-9p-marshal.o
|
2011-06-01 15:05:13 +08:00
|
|
|
else
|
|
|
|
fsdev-nested-y = qemu-fsdev-dummy.o
|
2010-11-27 06:08:48 +08:00
|
|
|
endif
|
2010-06-15 04:34:41 +08:00
|
|
|
fsdev-obj-$(CONFIG_VIRTFS) += $(addprefix fsdev/, $(fsdev-nested-y))
|
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
|
|
|
|
2011-06-02 01:14:50 +08:00
|
|
|
common-obj-y = $(block-obj-y) blockdev.o
|
2010-01-07 03:24:05 +08:00
|
|
|
common-obj-y += $(net-obj-y)
|
|
|
|
common-obj-y += $(qobject-obj-y)
|
2010-04-29 20:14:43 +08:00
|
|
|
common-obj-$(CONFIG_LINUX) += $(fsdev-obj-$(CONFIG_LINUX))
|
2011-10-24 19:33:01 +08:00
|
|
|
common-obj-y += readline.o console.o cursor.o
|
2010-10-26 16:39:19 +08:00
|
|
|
common-obj-y += $(oslib-obj-y)
|
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
|
|
|
|
2011-09-13 16:30:52 +08:00
|
|
|
common-obj-y += tcg-runtime.o host-utils.o main-loop.o
|
2011-09-26 19:52:26 +08:00
|
|
|
common-obj-y += irq.o input.o
|
2010-01-07 03:24:05 +08:00
|
|
|
common-obj-$(CONFIG_PTIMER) += ptimer.o
|
|
|
|
common-obj-$(CONFIG_MAX7310) += max7310.o
|
|
|
|
common-obj-$(CONFIG_WM8750) += wm8750.o
|
|
|
|
common-obj-$(CONFIG_TWL92230) += twl92230.o
|
|
|
|
common-obj-$(CONFIG_TSC2005) += tsc2005.o
|
|
|
|
common-obj-$(CONFIG_LM832X) += lm832x.o
|
|
|
|
common-obj-$(CONFIG_TMP105) += tmp105.o
|
|
|
|
common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
|
|
|
|
common-obj-$(CONFIG_SSD0303) += ssd0303.o
|
|
|
|
common-obj-$(CONFIG_SSD0323) += ssd0323.o
|
|
|
|
common-obj-$(CONFIG_ADS7846) += ads7846.o
|
|
|
|
common-obj-$(CONFIG_MAX111X) += max111x.o
|
|
|
|
common-obj-$(CONFIG_DS1338) += ds1338.o
|
|
|
|
common-obj-y += i2c.o smbus.o smbus_eeprom.o
|
|
|
|
common-obj-y += eeprom93xx.o
|
|
|
|
common-obj-y += scsi-disk.o cdrom.o
|
|
|
|
common-obj-y += scsi-generic.o scsi-bus.o
|
2011-07-15 21:08:01 +08:00
|
|
|
common-obj-y += hid.o
|
2010-01-07 03:24:05 +08:00
|
|
|
common-obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
|
2010-09-11 05:47:56 +08:00
|
|
|
common-obj-y += usb-serial.o usb-net.o usb-bus.o usb-desc.o usb-audio.o
|
2010-01-07 03:24:05 +08:00
|
|
|
common-obj-$(CONFIG_SSI) += ssi.o
|
|
|
|
common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
|
|
|
|
common-obj-$(CONFIG_SD) += sd.o
|
|
|
|
common-obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
|
|
|
|
common-obj-y += bt-hci-csr.o
|
2011-02-22 23:44:53 +08:00
|
|
|
common-obj-y += buffered_file.o migration.o migration-tcp.o
|
2011-12-20 21:59:12 +08:00
|
|
|
common-obj-y += qemu-char.o #aio.o
|
2010-01-07 03:24:05 +08:00
|
|
|
common-obj-y += msmouse.o ps2.o
|
2011-12-23 05:24:20 +08:00
|
|
|
common-obj-y += qdev.o qdev-properties.o qdev-monitor.o
|
2011-03-10 01:21:09 +08:00
|
|
|
common-obj-y += block-migration.o iohandler.o
|
2010-06-14 15:54:27 +08:00
|
|
|
common-obj-y += pflib.o
|
2011-02-04 16:06:04 +08:00
|
|
|
common-obj-y += bitmap.o bitops.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
common-obj-$(CONFIG_BRLAPI) += baum.o
|
|
|
|
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
|
|
|
|
2011-01-19 16:49:50 +08:00
|
|
|
common-obj-$(CONFIG_SPICE) += ui/spice-core.o ui/spice-input.o ui/spice-display.o spice-qemu-char.o
|
2010-03-11 22:13:27 +08:00
|
|
|
|
2011-12-04 07:10:08 +08:00
|
|
|
include $(SRC_PATH)/qom/Makefile
|
|
|
|
common-obj-y += $(addprefix qom/, $(qom-y))
|
|
|
|
|
2010-01-07 03:24:05 +08:00
|
|
|
audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
|
|
|
|
audio-obj-$(CONFIG_SDL) += sdlaudio.o
|
|
|
|
audio-obj-$(CONFIG_OSS) += ossaudio.o
|
2010-11-10 00:29:46 +08:00
|
|
|
audio-obj-$(CONFIG_SPICE) += spiceaudio.o
|
2010-01-07 03:24:05 +08:00
|
|
|
audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
|
|
|
|
audio-obj-$(CONFIG_ALSA) += alsaaudio.o
|
|
|
|
audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
|
|
|
|
audio-obj-$(CONFIG_FMOD) += fmodaudio.o
|
|
|
|
audio-obj-$(CONFIG_ESD) += esdaudio.o
|
|
|
|
audio-obj-$(CONFIG_PA) += paaudio.o
|
|
|
|
audio-obj-$(CONFIG_WINWAVE) += winwaveaudio.o
|
|
|
|
audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
|
|
|
|
audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
|
|
|
|
audio-obj-y += wavcapture.o
|
|
|
|
common-obj-y += $(addprefix audio/, $(audio-obj-y))
|
|
|
|
|
2010-07-08 02:57:52 +08:00
|
|
|
ui-obj-y += keymaps.o
|
|
|
|
ui-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
|
2011-06-03 02:51:22 +08:00
|
|
|
ui-obj-$(CONFIG_COCOA) += cocoa.o
|
2010-07-08 02:57:52 +08:00
|
|
|
ui-obj-$(CONFIG_CURSES) += curses.o
|
2011-03-16 20:33:36 +08:00
|
|
|
vnc-obj-y += vnc.o d3des.o
|
|
|
|
vnc-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
|
|
|
|
vnc-obj-y += vnc-enc-tight.o vnc-palette.o
|
|
|
|
vnc-obj-y += vnc-enc-zrle.o
|
|
|
|
vnc-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
|
|
|
|
vnc-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
|
2010-07-08 02:58:02 +08:00
|
|
|
ifdef CONFIG_VNC_THREAD
|
2011-03-16 20:33:36 +08:00
|
|
|
vnc-obj-y += vnc-jobs-async.o
|
2010-07-08 02:58:02 +08:00
|
|
|
else
|
2011-03-16 20:33:36 +08:00
|
|
|
vnc-obj-y += vnc-jobs-sync.o
|
2010-07-08 02:58:02 +08:00
|
|
|
endif
|
2010-07-08 02:57:52 +08:00
|
|
|
common-obj-y += $(addprefix ui/, $(ui-obj-y))
|
2011-03-16 20:33:36 +08:00
|
|
|
common-obj-$(CONFIG_VNC) += $(addprefix ui/, $(vnc-obj-y))
|
2010-07-08 02:57:52 +08:00
|
|
|
|
|
|
|
common-obj-y += iov.o acl.o
|
2011-05-02 15:54:03 +08:00
|
|
|
common-obj-$(CONFIG_POSIX) += compatfd.o
|
2010-04-20 03:47:49 +08:00
|
|
|
common-obj-y += notify.o event_notifier.o
|
2010-10-23 23:24:07 +08:00
|
|
|
common-obj-y += qemu-timer.o qemu-timer-common.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
|
|
|
|
slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
|
2011-08-03 18:52:54 +08:00
|
|
|
slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o arp_table.o
|
2010-01-07 03:24:05 +08:00
|
|
|
common-obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
|
|
|
|
|
|
|
|
# xen backend driver support
|
2011-06-22 04:59:07 +08:00
|
|
|
common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
|
|
|
|
common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# libuser
|
|
|
|
|
|
|
|
user-obj-y =
|
|
|
|
user-obj-y += envlist.o path.o
|
|
|
|
user-obj-y += tcg-runtime.o host-utils.o
|
|
|
|
user-obj-y += cutils.o cache-utils.o
|
2011-09-16 04:45:42 +08:00
|
|
|
user-obj-y += $(trace-obj-y)
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# libhw
|
|
|
|
|
|
|
|
hw-obj-y =
|
2010-04-20 03:46:13 +08:00
|
|
|
hw-obj-y += vl.o loader.o
|
2011-07-14 23:22:20 +08:00
|
|
|
hw-obj-$(CONFIG_VIRTIO) += virtio-console.o
|
2011-07-12 21:22:25 +08:00
|
|
|
hw-obj-y += usb-libhw.o
|
2011-04-26 09:32:08 +08:00
|
|
|
hw-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
|
2010-11-27 02:47:45 +08:00
|
|
|
hw-obj-y += fw_cfg.o
|
2010-12-22 18:54:48 +08:00
|
|
|
hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
|
2010-12-08 16:46:24 +08:00
|
|
|
hw-obj-$(CONFIG_PCI) += msix.o msi.o
|
2010-11-27 05:39:42 +08:00
|
|
|
hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
|
|
|
|
hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
|
2010-01-07 03:24:05 +08:00
|
|
|
hw-obj-y += watchdog.o
|
2010-03-22 03:47:09 +08:00
|
|
|
hw-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
|
2010-01-07 03:24:05 +08:00
|
|
|
hw-obj-$(CONFIG_ECC) += ecc.o
|
|
|
|
hw-obj-$(CONFIG_NAND) += nand.o
|
2010-03-30 03:23:56 +08:00
|
|
|
hw-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
|
2010-03-30 03:23:55 +08:00
|
|
|
hw-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
hw-obj-$(CONFIG_M48T59) += m48t59.o
|
|
|
|
hw-obj-$(CONFIG_ESCC) += escc.o
|
2010-04-18 06:34:03 +08:00
|
|
|
hw-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2010-03-22 03:47:11 +08:00
|
|
|
hw-obj-$(CONFIG_SERIAL) += serial.o
|
2010-03-22 03:47:01 +08:00
|
|
|
hw-obj-$(CONFIG_PARALLEL) += parallel.o
|
2010-03-22 03:47:02 +08:00
|
|
|
hw-obj-$(CONFIG_I8254) += i8254.o
|
2010-03-22 03:47:02 +08:00
|
|
|
hw-obj-$(CONFIG_PCSPK) += pcspk.o
|
2010-05-22 15:59:01 +08:00
|
|
|
hw-obj-$(CONFIG_PCKBD) += pckbd.o
|
2010-03-22 03:47:04 +08:00
|
|
|
hw-obj-$(CONFIG_USB_UHCI) += usb-uhci.o
|
2010-12-08 19:05:50 +08:00
|
|
|
hw-obj-$(CONFIG_USB_OHCI) += usb-ohci.o
|
2010-12-03 23:17:28 +08:00
|
|
|
hw-obj-$(CONFIG_USB_EHCI) += usb-ehci.o
|
2011-02-28 04:09:09 +08:00
|
|
|
hw-obj-$(CONFIG_USB_XHCI) += usb-xhci.o
|
2010-03-22 03:47:06 +08:00
|
|
|
hw-obj-$(CONFIG_FDC) += fdc.o
|
2010-05-18 03:32:37 +08:00
|
|
|
hw-obj-$(CONFIG_ACPI) += acpi.o acpi_piix4.o
|
|
|
|
hw-obj-$(CONFIG_APM) += pm_smbus.o apm.o
|
2010-05-22 16:00:52 +08:00
|
|
|
hw-obj-$(CONFIG_DMA) += dma.o
|
2010-12-25 12:29:37 +08:00
|
|
|
hw-obj-$(CONFIG_I82374) += i82374.o
|
2011-02-05 22:35:00 +08:00
|
|
|
hw-obj-$(CONFIG_HPET) += hpet.o
|
2011-02-13 20:31:28 +08:00
|
|
|
hw-obj-$(CONFIG_APPLESMC) += applesmc.o
|
2010-10-17 19:10:32 +08:00
|
|
|
hw-obj-$(CONFIG_SMARTCARD) += usb-ccid.o ccid-card-passthru.o
|
2010-10-24 18:09:18 +08:00
|
|
|
hw-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o
|
2011-07-19 17:04:10 +08:00
|
|
|
hw-obj-$(CONFIG_USB_REDIR) += usb-redir.o
|
2011-10-16 20:38:45 +08:00
|
|
|
hw-obj-$(CONFIG_I8259) += i8259_common.o i8259.o
|
2010-03-30 03:24:04 +08:00
|
|
|
|
|
|
|
# PPC devices
|
|
|
|
hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o
|
2010-12-25 13:01:41 +08:00
|
|
|
hw-obj-$(CONFIG_I82378) += i82378.o
|
2010-03-31 01:36:23 +08:00
|
|
|
# Mac shared devices
|
|
|
|
hw-obj-$(CONFIG_MACIO) += macio.o
|
|
|
|
hw-obj-$(CONFIG_CUDA) += cuda.o
|
|
|
|
hw-obj-$(CONFIG_ADB) += adb.o
|
|
|
|
hw-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
|
|
|
|
hw-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o
|
|
|
|
# OldWorld PowerMac
|
|
|
|
hw-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o
|
|
|
|
hw-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o
|
|
|
|
# NewWorld PowerMac
|
|
|
|
hw-obj-$(CONFIG_UNIN_PCI) += unin_pci.o
|
|
|
|
hw-obj-$(CONFIG_DEC_PCI) += dec_pci.o
|
|
|
|
# PowerPC E500 boards
|
|
|
|
hw-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o
|
2010-03-22 03:47:01 +08:00
|
|
|
|
2010-07-03 14:49:47 +08:00
|
|
|
# MIPS devices
|
|
|
|
hw-obj-$(CONFIG_PIIX4) += piix4.o
|
2011-09-05 04:51:28 +08:00
|
|
|
hw-obj-$(CONFIG_G364FB) += g364fb.o
|
2010-07-03 14:49:47 +08:00
|
|
|
|
2010-01-07 03:24:05 +08:00
|
|
|
# PCI watchdog devices
|
2010-11-27 05:39:42 +08:00
|
|
|
hw-obj-$(CONFIG_PCI) += wdt_i6300esb.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2010-12-01 13:11:51 +08:00
|
|
|
hw-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
# PCI network cards
|
2010-11-27 05:39:42 +08:00
|
|
|
hw-obj-$(CONFIG_NE2000_PCI) += ne2000.o
|
|
|
|
hw-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
|
2010-11-27 19:23:34 +08:00
|
|
|
hw-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
|
|
|
|
hw-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
|
2010-12-08 19:05:42 +08:00
|
|
|
hw-obj-$(CONFIG_E1000_PCI) += e1000.o
|
2010-12-08 19:05:47 +08:00
|
|
|
hw-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
|
|
|
hw-obj-$(CONFIG_SMC91C111) += smc91c111.o
|
|
|
|
hw-obj-$(CONFIG_LAN9118) += lan9118.o
|
2010-03-22 03:47:10 +08:00
|
|
|
hw-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
|
2011-10-16 06:56:45 +08:00
|
|
|
hw-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o
|
2010-01-07 03:24:05 +08:00
|
|
|
|
2010-03-22 03:47:05 +08:00
|
|
|
# IDE
|
2011-04-18 22:45:49 +08:00
|
|
|
hw-obj-$(CONFIG_IDE_CORE) += ide/core.o ide/atapi.o
|
2010-03-22 03:47:05 +08:00
|
|
|
hw-obj-$(CONFIG_IDE_QDEV) += ide/qdev.o
|
|
|
|
hw-obj-$(CONFIG_IDE_PCI) += ide/pci.o
|
|
|
|
hw-obj-$(CONFIG_IDE_ISA) += ide/isa.o
|
|
|
|
hw-obj-$(CONFIG_IDE_PIIX) += ide/piix.o
|
|
|
|
hw-obj-$(CONFIG_IDE_CMD646) += ide/cmd646.o
|
2010-03-30 03:23:57 +08:00
|
|
|
hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o
|
2010-06-29 10:49:50 +08:00
|
|
|
hw-obj-$(CONFIG_IDE_VIA) += ide/via.o
|
2010-12-14 08:34:40 +08:00
|
|
|
hw-obj-$(CONFIG_AHCI) += ide/ahci.o
|
2011-02-01 22:51:26 +08:00
|
|
|
hw-obj-$(CONFIG_AHCI) += ide/ich.o
|
2010-03-22 03:47:05 +08:00
|
|
|
|
2010-01-07 03:24:05 +08:00
|
|
|
# SCSI layer
|
2010-11-27 05:39:42 +08:00
|
|
|
hw-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
|
2010-01-07 03:24:05 +08:00
|
|
|
hw-obj-$(CONFIG_ESP) += esp.o
|
|
|
|
|
|
|
|
hw-obj-y += dma-helpers.o sysbus.o isa-bus.o
|
2011-12-13 04:29:28 +08:00
|
|
|
hw-obj-y += qdev-addr.o container.o
|
2010-03-21 16:28:47 +08:00
|
|
|
|
2010-03-22 03:47:00 +08:00
|
|
|
# VGA
|
|
|
|
hw-obj-$(CONFIG_VGA_PCI) += vga-pci.o
|
2010-03-22 03:47:03 +08:00
|
|
|
hw-obj-$(CONFIG_VGA_ISA) += vga-isa.o
|
2010-03-27 15:26:16 +08:00
|
|
|
hw-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o
|
2010-03-28 02:18:17 +08:00
|
|
|
hw-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o
|
2011-02-05 22:34:52 +08:00
|
|
|
hw-obj-$(CONFIG_VMMOUSE) += vmmouse.o
|
2011-10-09 17:58:00 +08:00
|
|
|
hw-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
|
2010-03-27 15:26:16 +08:00
|
|
|
|
|
|
|
hw-obj-$(CONFIG_RC4030) += rc4030.o
|
|
|
|
hw-obj-$(CONFIG_DP8393X) += dp8393x.o
|
|
|
|
hw-obj-$(CONFIG_DS1225Y) += ds1225y.o
|
|
|
|
hw-obj-$(CONFIG_MIPSNET) += mipsnet.o
|
2010-03-22 03:47:00 +08:00
|
|
|
|
2010-03-23 04:18:40 +08:00
|
|
|
# Sound
|
|
|
|
sound-obj-y =
|
|
|
|
sound-obj-$(CONFIG_SB16) += sb16.o
|
|
|
|
sound-obj-$(CONFIG_ES1370) += es1370.o
|
|
|
|
sound-obj-$(CONFIG_AC97) += ac97.o
|
|
|
|
sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
|
|
|
|
sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
|
|
|
|
sound-obj-$(CONFIG_CS4231A) += cs4231a.o
|
2010-11-01 20:05:32 +08:00
|
|
|
sound-obj-$(CONFIG_HDA) += intel-hda.o hda-audio.o
|
2010-03-23 04:18:40 +08:00
|
|
|
|
|
|
|
adlib.o fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
|
|
|
|
hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
|
|
|
|
|
2011-09-30 18:36:14 +08:00
|
|
|
9pfs-nested-$(CONFIG_VIRTFS) = virtio-9p.o
|
2011-08-02 14:05:54 +08:00
|
|
|
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-local.o virtio-9p-xattr.o
|
|
|
|
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-xattr-user.o virtio-9p-posix-acl.o
|
2011-05-19 07:04:13 +08:00
|
|
|
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-coth.o cofs.o codir.o cofile.o
|
2011-12-05 01:05:27 +08:00
|
|
|
9pfs-nested-$(CONFIG_VIRTFS) += coxattr.o virtio-9p-synth.o
|
|
|
|
9pfs-nested-$(CONFIG_OPEN_BY_HANDLE) += virtio-9p-handle.o
|
2011-12-14 16:19:28 +08:00
|
|
|
9pfs-nested-$(CONFIG_VIRTFS) += virtio-9p-proxy.o
|
2011-01-28 20:39:08 +08:00
|
|
|
|
2011-06-01 15:05:13 +08:00
|
|
|
hw-obj-$(CONFIG_REALLY_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
|
2011-04-24 09:40:22 +08:00
|
|
|
$(addprefix 9pfs/, $(9pfs-nested-y)): QEMU_CFLAGS+=$(GLIB_CFLAGS)
|
2011-01-28 20:39:08 +08:00
|
|
|
|
2010-05-15 03:31:53 +08:00
|
|
|
|
2010-03-21 16:28:47 +08:00
|
|
|
######################################################################
|
|
|
|
# libdis
|
|
|
|
# NOTE: the disassembler code is only needed for debugging
|
|
|
|
|
|
|
|
libdis-y =
|
|
|
|
libdis-$(CONFIG_ALPHA_DIS) += alpha-dis.o
|
|
|
|
libdis-$(CONFIG_ARM_DIS) += arm-dis.o
|
|
|
|
libdis-$(CONFIG_CRIS_DIS) += cris-dis.o
|
|
|
|
libdis-$(CONFIG_HPPA_DIS) += hppa-dis.o
|
|
|
|
libdis-$(CONFIG_I386_DIS) += i386-dis.o
|
2010-03-29 08:12:51 +08:00
|
|
|
libdis-$(CONFIG_IA64_DIS) += ia64-dis.o
|
2010-03-21 16:28:47 +08:00
|
|
|
libdis-$(CONFIG_M68K_DIS) += m68k-dis.o
|
|
|
|
libdis-$(CONFIG_MICROBLAZE_DIS) += microblaze-dis.o
|
|
|
|
libdis-$(CONFIG_MIPS_DIS) += mips-dis.o
|
|
|
|
libdis-$(CONFIG_PPC_DIS) += ppc-dis.o
|
|
|
|
libdis-$(CONFIG_S390_DIS) += s390-dis.o
|
|
|
|
libdis-$(CONFIG_SH4_DIS) += sh4-dis.o
|
|
|
|
libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o
|
2010-03-30 03:23:52 +08:00
|
|
|
|
2010-05-23 00:52:39 +08:00
|
|
|
######################################################################
|
|
|
|
# trace
|
|
|
|
|
2011-03-16 23:30:21 +08:00
|
|
|
ifeq ($(TRACE_BACKEND),dtrace)
|
|
|
|
trace.h: trace.h-timestamp trace-dtrace.h
|
|
|
|
else
|
|
|
|
trace.h: trace.h-timestamp
|
|
|
|
endif
|
2011-09-16 04:45:42 +08:00
|
|
|
trace.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
|
2011-03-16 23:30:21 +08:00
|
|
|
$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -h < $< > $@," GEN trace.h")
|
|
|
|
@cmp -s $@ trace.h || cp $@ trace.h
|
|
|
|
|
|
|
|
trace.c: trace.c-timestamp
|
2011-09-16 04:45:42 +08:00
|
|
|
trace.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
|
2011-03-16 23:30:21 +08:00
|
|
|
$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -c < $< > $@," GEN trace.c")
|
|
|
|
@cmp -s $@ trace.c || cp $@ trace.c
|
|
|
|
|
|
|
|
trace.o: trace.c $(GENERATED_HEADERS)
|
|
|
|
|
|
|
|
trace-dtrace.h: trace-dtrace.dtrace
|
|
|
|
$(call quiet-command,dtrace -o $@ -h -s $<, " GEN trace-dtrace.h")
|
|
|
|
|
|
|
|
# Normal practice is to name DTrace probe file with a '.d' extension
|
2011-04-28 23:20:25 +08:00
|
|
|
# but that gets picked up by QEMU's Makefile as an external dependency
|
2011-03-16 23:30:21 +08:00
|
|
|
# rule file. So we use '.dtrace' instead
|
|
|
|
trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp
|
2011-09-16 04:45:42 +08:00
|
|
|
trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak
|
2011-03-16 23:30:21 +08:00
|
|
|
$(call quiet-command,sh $(SRC_PATH)/scripts/tracetool --$(TRACE_BACKEND) -d < $< > $@," GEN trace-dtrace.dtrace")
|
|
|
|
@cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace
|
|
|
|
|
|
|
|
trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
|
|
|
|
$(call quiet-command,dtrace -o $@ -G -s $<, " GEN trace-dtrace.o")
|
|
|
|
|
2011-05-15 16:51:28 +08:00
|
|
|
ifeq ($(LIBTOOL),)
|
|
|
|
trace-dtrace.lo: trace-dtrace.dtrace
|
|
|
|
@echo "missing libtool. please install and rerun configure."; exit 1
|
|
|
|
else
|
|
|
|
trace-dtrace.lo: trace-dtrace.dtrace
|
2011-08-14 08:30:14 +08:00
|
|
|
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC dtrace -o $@ -G -s $<, " lt GEN trace-dtrace.o")
|
2011-05-15 16:51:28 +08:00
|
|
|
endif
|
|
|
|
|
2011-09-01 02:30:57 +08:00
|
|
|
trace/simple.o: trace/simple.c $(GENERATED_HEADERS)
|
2011-03-16 23:30:21 +08:00
|
|
|
|
2011-09-01 02:30:50 +08:00
|
|
|
trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o
|
|
|
|
ifneq ($(TRACE_BACKEND),dtrace)
|
2010-05-23 00:52:39 +08:00
|
|
|
trace-obj-y = trace.o
|
2010-11-12 21:20:24 +08:00
|
|
|
endif
|
2010-05-23 00:52:39 +08:00
|
|
|
|
2011-09-01 02:31:03 +08:00
|
|
|
trace-nested-$(CONFIG_TRACE_DEFAULT) += default.o
|
|
|
|
|
2011-09-01 02:30:57 +08:00
|
|
|
trace-nested-$(CONFIG_TRACE_SIMPLE) += simple.o
|
2011-09-01 02:30:50 +08:00
|
|
|
trace-obj-$(CONFIG_TRACE_SIMPLE) += qemu-timer-common.o
|
2011-09-01 02:31:51 +08:00
|
|
|
|
|
|
|
trace-nested-$(CONFIG_TRACE_STDERR) += stderr.o
|
2011-09-01 02:30:50 +08:00
|
|
|
|
2011-09-01 02:31:31 +08:00
|
|
|
trace-nested-y += control.o
|
|
|
|
|
2011-09-01 02:30:57 +08:00
|
|
|
trace-obj-y += $(addprefix trace/, $(trace-nested-y))
|
|
|
|
|
2011-09-08 07:40:51 +08:00
|
|
|
$(trace-obj-y): $(GENERATED_HEADERS)
|
|
|
|
|
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
|
|
|
|
|
|
|
|
libcacard-y = cac.o event.o vcard.o vreader.o vcard_emul_nss.o vcard_emul_type.o card_7816.o
|
|
|
|
|
2011-07-20 03:50:32 +08:00
|
|
|
######################################################################
|
|
|
|
# qapi
|
|
|
|
|
2011-07-20 03:50:35 +08:00
|
|
|
qapi-nested-y = qapi-visit-core.o qmp-input-visitor.o qmp-output-visitor.o qapi-dealloc-visitor.o
|
2011-07-20 03:50:37 +08:00
|
|
|
qapi-nested-y += qmp-registry.o qmp-dispatch.o
|
2011-07-20 03:50:32 +08:00
|
|
|
qapi-obj-y = $(addprefix qapi/, $(qapi-nested-y))
|
|
|
|
|
2011-09-03 01:34:47 +08:00
|
|
|
common-obj-y += qmp-marshal.o qapi-visit.o qapi-types.o $(qapi-obj-y)
|
2011-09-03 01:34:48 +08:00
|
|
|
common-obj-y += qmp.o hmp.o
|
2011-09-03 01:34:47 +08:00
|
|
|
|
2011-08-12 04:38:12 +08:00
|
|
|
######################################################################
|
|
|
|
# guest agent
|
|
|
|
|
|
|
|
qga-nested-y = guest-agent-commands.o guest-agent-command-state.o
|
|
|
|
qga-obj-y = $(addprefix qga/, $(qga-nested-y))
|
2011-10-24 19:33:01 +08:00
|
|
|
qga-obj-y += qemu-ga.o qemu-sockets.o module.o qemu-option.o
|
2011-08-12 04:38:12 +08:00
|
|
|
qga-obj-$(CONFIG_WIN32) += oslib-win32.o
|
|
|
|
qga-obj-$(CONFIG_POSIX) += oslib-posix.o
|
|
|
|
|
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)
|
|
|
|
|