2019-08-25 02:49:16 -07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2005-04-16 15:20:36 -07:00
|
|
|
#
|
|
|
|
# Copyright (C) 2000, 2002, 2003 Jeff Dike (jdike@karaya.com)
|
|
|
|
#
|
|
|
|
|
|
|
|
# pcap is broken in 2.5 because kbuild doesn't allow pcap.a to be linked
|
|
|
|
# in to pcap.o
|
|
|
|
|
|
|
|
slip-objs := slip_kern.o slip_user.o
|
|
|
|
slirp-objs := slirp_kern.o slirp_user.o
|
|
|
|
daemon-objs := daemon_kern.o daemon_user.o
|
2017-11-20 14:17:59 -07:00
|
|
|
vector-objs := vector_kern.o vector_user.o vector_transports.o
|
2011-05-24 17:13:02 -07:00
|
|
|
umcast-objs := umcast_kern.o umcast_user.o
|
2005-04-16 15:20:36 -07:00
|
|
|
net-objs := net_kern.o net_user.o
|
|
|
|
mconsole-objs := mconsole_kern.o mconsole_user.o
|
|
|
|
hostaudio-objs := hostaudio_kern.o
|
2005-10-10 20:10:32 -07:00
|
|
|
ubd-objs := ubd_kern.o ubd_user.o
|
2005-04-16 15:20:36 -07:00
|
|
|
port-objs := port_kern.o port_user.o
|
2023-04-25 01:38:37 -07:00
|
|
|
harddog-objs := harddog_kern.o
|
|
|
|
harddog-builtin-$(CONFIG_UML_WATCHDOG) := harddog_user.o harddog_user_exp.o
|
2021-01-15 05:12:18 -07:00
|
|
|
rtc-objs := rtc_kern.o rtc_user.o
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-04-17 11:04:55 -07:00
|
|
|
LDFLAGS_vde.o = $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a)
|
2007-10-16 01:26:48 -07:00
|
|
|
|
2024-03-28 06:24:24 -07:00
|
|
|
targets := vde_kern.o vde_user.o
|
2007-10-16 01:26:48 -07:00
|
|
|
|
|
|
|
$(obj)/vde.o: $(obj)/vde_kern.o $(obj)/vde_user.o
|
2018-07-12 01:01:35 -07:00
|
|
|
$(LD) -r -dp -o $@ $^ $(ld_flags)
|
2007-10-16 01:26:48 -07:00
|
|
|
|
2005-07-14 00:33:41 -07:00
|
|
|
#XXX: The call below does not work because the flags are added before the
|
|
|
|
# object name, so nothing from the library gets linked.
|
|
|
|
#$(call if_changed,ld)
|
|
|
|
|
|
|
|
# When the above is fixed, don't forget to add this too!
|
2005-07-28 21:16:03 -07:00
|
|
|
#targets += $(obj)/pcap.o
|
2005-07-14 00:33:41 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
obj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o
|
|
|
|
obj-$(CONFIG_SSL) += ssl.o
|
|
|
|
obj-$(CONFIG_STDERR_CONSOLE) += stderr_console.o
|
|
|
|
|
2005-06-13 15:52:18 -07:00
|
|
|
obj-$(CONFIG_UML_NET_SLIP) += slip.o slip_common.o
|
|
|
|
obj-$(CONFIG_UML_NET_SLIRP) += slirp.o slip_common.o
|
2005-04-16 15:20:36 -07:00
|
|
|
obj-$(CONFIG_UML_NET_DAEMON) += daemon.o
|
2017-11-20 14:17:59 -07:00
|
|
|
obj-$(CONFIG_UML_NET_VECTOR) += vector.o
|
2007-10-16 01:26:48 -07:00
|
|
|
obj-$(CONFIG_UML_NET_VDE) += vde.o
|
2011-05-24 17:13:02 -07:00
|
|
|
obj-$(CONFIG_UML_NET_MCAST) += umcast.o
|
2005-04-16 15:20:36 -07:00
|
|
|
obj-$(CONFIG_UML_NET) += net.o
|
|
|
|
obj-$(CONFIG_MCONSOLE) += mconsole.o
|
|
|
|
obj-$(CONFIG_MMAPPER) += mmapper_kern.o
|
|
|
|
obj-$(CONFIG_BLK_DEV_UBD) += ubd.o
|
2023-08-01 22:15:00 -07:00
|
|
|
obj-$(CONFIG_UML_SOUND) += hostaudio.o
|
2005-04-16 15:20:36 -07:00
|
|
|
obj-$(CONFIG_NULL_CHAN) += null.o
|
|
|
|
obj-$(CONFIG_PORT_CHAN) += port.o
|
|
|
|
obj-$(CONFIG_PTY_CHAN) += pty.o
|
|
|
|
obj-$(CONFIG_TTY_CHAN) += tty.o
|
|
|
|
obj-$(CONFIG_XTERM_CHAN) += xterm.o xterm_kern.o
|
|
|
|
obj-$(CONFIG_UML_WATCHDOG) += harddog.o
|
2023-04-25 01:38:37 -07:00
|
|
|
obj-y += $(harddog-builtin-y) $(harddog-builtin-m)
|
2005-04-16 15:20:36 -07:00
|
|
|
obj-$(CONFIG_BLK_DEV_COW_COMMON) += cow_user.o
|
|
|
|
obj-$(CONFIG_UML_RANDOM) += random.o
|
2019-09-11 05:51:20 -07:00
|
|
|
obj-$(CONFIG_VIRTIO_UML) += virtio_uml.o
|
2021-01-15 05:12:18 -07:00
|
|
|
obj-$(CONFIG_UML_RTC) += rtc.o
|
um: add PCI over virtio emulation driver
To support testing of PCI/PCIe drivers in UML, add a PCI bus
support driver. This driver uses virtio, which in UML is really
just vhost-user, to talk to devices, and adds the devices to
the virtual PCI bus in the system.
Since virtio already allows DMA/bus mastering this really isn't
all that hard, of course we need the logic_iomem infrastructure
that was added by a previous patch.
The protocol to talk to the device is has a few fairly simple
messages for reading to/writing from config and IO spaces, and
messages for the device to send the various interrupts (INT#,
MSI/MSI-X and while suspended PME#).
Note that currently no offical virtio device ID is assigned for
this protocol, as a consequence this patch requires defining it
in the Kconfig, with a default that makes the driver refuse to
work at all.
Finally, in order to add support for MSI/MSI-X interrupts, some
small changes are needed in the UML IRQ code, it needs to have
more interrupts, changing NR_IRQS from 64 to 128 if this driver
is enabled, but not actually use them for anything so that the
generic IRQ domain/MSI infrastructure can allocate IRQ numbers.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2021-03-05 05:19:58 -07:00
|
|
|
obj-$(CONFIG_UML_PCI_OVER_VIRTIO) += virt-pci.o
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2005-07-14 00:33:41 -07:00
|
|
|
# pcap_user.o must be added explicitly.
|
2024-03-28 06:24:24 -07:00
|
|
|
USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o vde_user.o vector_user.o
|
2008-08-25 01:14:29 -07:00
|
|
|
CFLAGS_null.o = -DDEV_NULL=$(DEV_NULL_PATH)
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-03-24 05:13:43 -07:00
|
|
|
CFLAGS_xterm.o += '-DCONFIG_XTERM_CHAN_DEFAULT_EMULATOR="$(CONFIG_XTERM_CHAN_DEFAULT_EMULATOR)"'
|
|
|
|
|
2023-01-28 02:24:23 -07:00
|
|
|
include $(srctree)/arch/um/scripts/Makefile.rules
|