diff options
-rw-r--r-- | Config.mk | 2 | ||||
-rw-r--r-- | docs/Docs.mk | 4 | ||||
-rw-r--r-- | docs/Makefile | 16 | ||||
-rw-r--r-- | docs/xen-api/Makefile | 8 | ||||
-rw-r--r-- | stubdom/Makefile | 6 | ||||
-rw-r--r-- | tools/blktap/Makefile | 3 | ||||
-rw-r--r-- | tools/examples/Makefile | 18 | ||||
-rw-r--r-- | tools/examples/README | 4 | ||||
-rw-r--r-- | tools/examples/xmexample3 | 22 | ||||
-rw-r--r-- | tools/xenmon/Makefile | 2 |
10 files changed, 67 insertions, 18 deletions
@@ -19,6 +19,8 @@ HOSTCFLAGS += -fno-strict-aliasing DISTDIR ?= $(XEN_ROOT)/dist DESTDIR ?= / +DOCDIR ?= /usr/share/doc/xen +MANDIR ?= /usr/share/man # Allow phony attribute to be listed as dependency rather than fake target .PHONY: .phony diff --git a/docs/Docs.mk b/docs/Docs.mk index d620213982..3c95cfca45 100644 --- a/docs/Docs.mk +++ b/docs/Docs.mk @@ -7,7 +7,3 @@ DOXYGEN := doxygen POD2MAN := pod2man DOT := dot NEATO := neato - -pkgdocdir := /usr/share/doc/xen -mandir := /usr/share/man - diff --git a/docs/Makefile b/docs/Makefile index b412008125..dce7cd9d31 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -80,17 +80,17 @@ distclean: clean .PHONY: install install: all - rm -rf $(DESTDIR)$(pkgdocdir) - $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir) + rm -rf $(DESTDIR)$(DOCDIR) + $(INSTALL_DIR) $(DESTDIR)$(DOCDIR) $(MAKE) -C xen-api install - cp -dR ps $(DESTDIR)$(pkgdocdir) - cp -dR pdf $(DESTDIR)$(pkgdocdir) - $(INSTALL_DIR) $(DESTDIR)$(mandir) - cp -dR man1 $(DESTDIR)$(mandir) - cp -dR man5 $(DESTDIR)$(mandir) - [ ! -d html ] || cp -dR html $(DESTDIR)$(pkgdocdir) + cp -dR ps $(DESTDIR)$(DOCDIR) + cp -dR pdf $(DESTDIR)$(DOCDIR) + $(INSTALL_DIR) $(DESTDIR)$(MANDIR) + cp -dR man1 $(DESTDIR)$(MANDIR) + cp -dR man5 $(DESTDIR)$(MANDIR) + [ ! -d html ] || cp -dR html $(DESTDIR)$(DOCDIR) pdf/%.pdf: ps/%.ps $(INSTALL_DIR) $(@D) diff --git a/docs/xen-api/Makefile b/docs/xen-api/Makefile index 214f94325a..a25286a30a 100644 --- a/docs/xen-api/Makefile +++ b/docs/xen-api/Makefile @@ -16,11 +16,11 @@ all: build build: xenapi.pdf xenapi.ps install: - $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/ps - $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/pdf + $(INSTALL_DIR) $(DESTDIR)$(DOCDIR)/ps + $(INSTALL_DIR) $(DESTDIR)$(DOCDIR)/pdf - [ -e xenapi.ps ] && cp xenapi.ps $(DESTDIR)$(pkgdocdir)/ps || true - [ -e xenapi.pdf ] && cp xenapi.pdf $(DESTDIR)$(pkgdocdir)/pdf || true + [ -e xenapi.ps ] && cp xenapi.ps $(DESTDIR)$(DOCDIR)/ps || true + [ -e xenapi.pdf ] && cp xenapi.pdf $(DESTDIR)$(DOCDIR)/pdf || true xenapi.dvi: $(TEX) $(EPS) $(EPSDOT) $(LATEX) xenapi.tex diff --git a/stubdom/Makefile b/stubdom/Makefile index 753aabd0bf..6a39c39e7d 100644 --- a/stubdom/Makefile +++ b/stubdom/Makefile @@ -296,11 +296,15 @@ pv-grub: mini-os-grub libxc grub ######### ifeq ($(STUBDOM_SUPPORTED),1) -install: install-ioemu install-grub +install: install-readme install-ioemu install-grub else install: endif +install-readme: + $(INSTALL_DIR) $(DESTDIR)$(DOCDIR) + $(INSTALL_DATA) README $(DESTDIR)$(DOCDIR)/README.stubdom + install-ioemu: ioemu-stubdom $(INSTALL_DIR) "$(DESTDIR)/usr/lib/xen/bin" $(INSTALL_PROG) stubdom-dm "$(DESTDIR)/usr/lib/xen/bin" diff --git a/tools/blktap/Makefile b/tools/blktap/Makefile index 871e2c4b60..21c9556f60 100644 --- a/tools/blktap/Makefile +++ b/tools/blktap/Makefile @@ -8,3 +8,6 @@ SUBDIRS-y += drivers .PHONY: all clean install all clean install: %: subdirs-% +install: + $(INSTALL_DIR) $(DESTDIR)$(DOCDIR) + $(INSTALL_DATA) README $(DESTDIR)$(DOCDIR)/README.blktap diff --git a/tools/examples/Makefile b/tools/examples/Makefile index 8f967084a5..39310394f5 100644 --- a/tools/examples/Makefile +++ b/tools/examples/Makefile @@ -8,11 +8,18 @@ XENDOMAINS_SYSCONFIG = init.d/sysconfig.xendomains # Xen configuration dir and configs to go there. XEN_CONFIG_DIR = /etc/xen +XEN_READMES = README +XEN_READMES += README.incompatibilities XEN_CONFIGS = xend-config.sxp XEN_CONFIGS += xm-config.xml XEN_CONFIGS += xmexample1 XEN_CONFIGS += xmexample2 +XEN_CONFIGS += xmexample3 XEN_CONFIGS += xmexample.hvm +XEN_CONFIGS += xmexample.hvm-stubdom +XEN_CONFIGS += xmexample.hvm-dm +XEN_CONFIGS += xmexample.pv-grub +XEN_CONFIGS += xmexample.nbd XEN_CONFIGS += xmexample.vti XEN_CONFIGS += xend-pci-quirks.sxp XEN_CONFIGS += xend-pci-permissive.sxp @@ -59,7 +66,16 @@ all: build: .PHONY: install -install: all install-initd install-configs install-scripts $(HOTPLUGS) +install: all install-readmes install-initd install-configs install-scripts $(HOTPLUGS) + +.PHONY: install-readmes +install-readmes: + [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \ + $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR) + set -e; for i in $(XEN_READMES); \ + do [ -e $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \ + $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \ + done .PHONY: install-initd install-initd: diff --git a/tools/examples/README b/tools/examples/README index 00ef8dc352..e2e8f434df 100644 --- a/tools/examples/README +++ b/tools/examples/README @@ -44,4 +44,8 @@ xmexample3 - an advanced configuration script for 'xm create' xmexample.nbd - configuration script that uses NBD filesystems xmexample.hvm - a configuration script for creating a hvm domain with 'xm create' +xmexample.hvm-stubdom - a configuration script for creating a hvm domain with + 'xm create' that utilizes a stubdomain for device model +xmexample.pv-grub - a configuration script for creating a domain with 'xm create' + which boots PV-GRUB. xmexample.vti - a configuration script for creating a domain on vti diff --git a/tools/examples/xmexample3 b/tools/examples/xmexample3 index 8610fcc483..99281904fd 100644 --- a/tools/examples/xmexample3 +++ b/tools/examples/xmexample3 @@ -207,4 +207,26 @@ extra = "4 VMID=%d" % vmid #on_reboot = 'restart' #on_crash = 'restart' +#----------------------------------------------------------------------------- +# Configure PVSCSI devices: +# +#vscsi=[ 'PDEV, VDEV' ] +# +# PDEV gives physical SCSI device to be attached to specified guest +# domain by one of the following identifier format. +# - XX:XX:XX:XX (4-tuples with decimal notation which shows +# "host:channel:target:lun") +# - /dev/sdxx or sdx +# - /dev/stxx or stx +# - /dev/sgxx or sgx +# - result of 'scsi_id -gu -s'. +# ex. # scsi_id -gu -s /block/sdb +# 36000b5d0006a0000006a0257004c0000 +# +# VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as +# which the specified guest domain recognize. +# + +#vscsi = [ '/dev/sdx, 0:0:0:0' ] + #============================================================================ diff --git a/tools/xenmon/Makefile b/tools/xenmon/Makefile index 1a53d65d22..0b35f451d0 100644 --- a/tools/xenmon/Makefile +++ b/tools/xenmon/Makefile @@ -33,6 +33,8 @@ install: build $(INSTALL_PROG) xenbaked $(DESTDIR)$(SBINDIR)/xenbaked $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(SBINDIR)/xentrace_setmask $(INSTALL_PROG) xenmon.py $(DESTDIR)$(SBINDIR)/xenmon.py + $(INSTALL_DIR) $(DESTDIR)$(DOCDIR) + $(INSTALL_DATA) README $(DESTDIR)$(DOCDIR)/README.xenmon .PHONY: clean clean: |