mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
1. xend-pci-quirks.sxp: Specifies which PCI device(s) may write to a set of PCI configuration space registers. A quirky PCI device is identified by its vendor ID, device ID, subvendor ID, and subdevice ID. If a matching entry is found, the corresponding fields will be sent to the PCI bus manager. Fields are composed of a register, size, and mask -- although the mask field is currently unused. The included policy file is for a range of tg3 devices, which is the only type of quirky device I know about. Users with other quirky devices are invited to either add entries to this policy file or add an entry in the permissive file, described next. In either case, send an email to the xen-devel list to make the device known. 2. xend-pci-permissive.sxp Lists PCI devices that pciback should not prevent from writing to their configuration space. This can be necessary if, for example, a new Tigon3 devices is released with different PCI vendor/device values such that no entry in xend-pci-quirks.sxp is triggered. Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
121 lines
3.5 KiB
Makefile
121 lines
3.5 KiB
Makefile
XEN_ROOT = ../../
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
INSTALL = install
|
|
INSTALL_DIR = $(INSTALL) -d -m0755
|
|
INSTALL_PROG = $(INSTALL) -m0755
|
|
INSTALL_DATA = $(INSTALL) -m0644
|
|
|
|
# Init scripts.
|
|
XEND_INITD = init.d/xend
|
|
XENDOMAINS_INITD = init.d/xendomains
|
|
XENDOMAINS_SYSCONFIG = init.d/sysconfig.xendomains
|
|
|
|
# Xen configuration dir and configs to go there.
|
|
XEN_CONFIG_DIR = /etc/xen
|
|
XEN_CONFIGS = xend-config.sxp
|
|
XEN_CONFIGS += xmexample1
|
|
XEN_CONFIGS += xmexample2
|
|
XEN_CONFIGS += xmexample.hvm
|
|
XEN_CONFIGS += xmexample.vti
|
|
XEN_CONFIGS += xend-pci-quirks.sxp
|
|
XEN_CONFIGS += xend-pci-permissive.sxp
|
|
|
|
# Xen script dir and scripts to go there.
|
|
XEN_SCRIPT_DIR = /etc/xen/scripts
|
|
XEN_SCRIPTS = network-bridge vif-bridge
|
|
XEN_SCRIPTS += network-route vif-route
|
|
XEN_SCRIPTS += network-nat vif-nat
|
|
XEN_SCRIPTS += block
|
|
XEN_SCRIPTS += block-enbd block-nbd
|
|
XEN_SCRIPTS += blktap
|
|
XEN_SCRIPTS += vtpm vtpm-delete
|
|
XEN_SCRIPTS += xen-hotplug-cleanup
|
|
XEN_SCRIPTS += external-device-migrate
|
|
XEN_SCRIPT_DATA = xen-script-common.sh locking.sh logging.sh
|
|
XEN_SCRIPT_DATA += xen-hotplug-common.sh xen-network-common.sh vif-common.sh
|
|
XEN_SCRIPT_DATA += block-common.sh vtpm-common.sh vtpm-hotplug-common.sh
|
|
XEN_SCRIPT_DATA += vtpm-migration.sh vtpm-impl
|
|
|
|
XEN_HOTPLUG_DIR = /etc/hotplug
|
|
XEN_HOTPLUG_SCRIPTS = xen-backend.agent
|
|
|
|
UDEV_RULES_DIR = /etc/udev
|
|
UDEV_RULES = xen-backend.rules
|
|
|
|
DI = $(if $(DISTDIR),$(shell readlink -f $(DISTDIR)),)
|
|
DE = $(if $(DESTDIR),$(shell readlink -f $(DESTDIR)),)
|
|
ifeq ($(findstring $(DI),$(DE)),$(DI))
|
|
HOTPLUGS=install-hotplug install-udev
|
|
else
|
|
ifeq ($(shell [ -x /usr/bin/udevinfo ] && [ `/usr/bin/udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/'` -ge 059 ] && echo 1),1)
|
|
HOTPLUGS=install-udev
|
|
else
|
|
HOTPLUGS=install-hotplug
|
|
endif
|
|
endif
|
|
|
|
.PHONY: all
|
|
all:
|
|
|
|
.PHONY: build
|
|
build:
|
|
|
|
.PHONY: install
|
|
install: all install-initd install-configs install-scripts $(HOTPLUGS)
|
|
|
|
.PHONY: install-initd
|
|
install-initd:
|
|
[ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d
|
|
[ -d $(DESTDIR)/etc/sysconfig ] || $(INSTALL_DIR) $(DESTDIR)/etc/sysconfig
|
|
$(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d
|
|
$(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d
|
|
$(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)/etc/sysconfig/xendomains
|
|
|
|
.PHONY: install-configs
|
|
install-configs: $(XEN_CONFIGS)
|
|
[ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
|
|
[ -d $(DESTDIR)$(XEN_CONFIG_DIR)/auto ] || \
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
|
|
for i in $(XEN_CONFIGS); \
|
|
do [ -e $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
|
|
done
|
|
|
|
.PHONY: install-scripts
|
|
install-scripts:
|
|
[ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
|
|
for i in $(XEN_SCRIPTS); \
|
|
do \
|
|
$(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
for i in $(XEN_SCRIPT_DATA); \
|
|
do \
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
|
|
.PHONY: install-hotplug
|
|
install-hotplug:
|
|
[ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_HOTPLUG_DIR)
|
|
for i in $(XEN_HOTPLUG_SCRIPTS); \
|
|
do \
|
|
$(INSTALL_PROG) $$i $(DESTDIR)$(XEN_HOTPLUG_DIR); \
|
|
done
|
|
|
|
.PHONY: install-udev
|
|
install-udev:
|
|
[ -d $(DESTDIR)$(UDEV_RULES_DIR) ] || \
|
|
$(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)/rules.d
|
|
for i in $(UDEV_RULES); \
|
|
do \
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \
|
|
( cd $(DESTDIR)$(UDEV_RULES_DIR)/rules.d ; \
|
|
ln -sf ../$$i . ) \
|
|
done
|
|
|
|
.PHONY: clean
|
|
clean:
|