This is accompanied by fixes to build.git and xen.git.
ifdef CONFIG_STUBDOM
CONFIG_PASSTHROUGH=1
else
- ifeq (,$(wildcard /usr/include/pci))
+ ifeq (,$(wildcard $(PCI_PREFIX_DIR)/usr/include/pci))
$(warning *** pciutils-dev package not found - missing /usr/include/pci)
$(warning *** PCI passthrough capability has been disabled)
else
ifdef CONFIG_PASSTHROUGH
OBJS+= pass-through.o pt-msi.o
+ ifdef PCI_PREFIX_DIR
+ LIBS += -L$(PCI_PREFIX_DIR)/usr/lib
+ endif
LIBS += -lpci
CFLAGS += -DCONFIG_PASSTHROUGH
$(info *** PCI passthrough capability has been enabled ***)
echo "XEN_ROOT=$XEN_ROOT" >>config-host.mak
fi
+echo "PCI_PREFIX_DIR=${STAGING_ROOT}" >>config-host.mak
+
ln -sf ../Makefile.target $target/Makefile
ln -sf ../xen-config.mak $target/config.mak
cat xen-config-host.mak >>config-host.mak