ia64/xen-unstable

view tools/Makefile @ 19615:13a4f4e6d0a3

x86 hvm: Correctly emulate task switches into vm86 mode.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 19 02:12:04 2009 +0100 (2009-05-19)
parents b5522741f6b5
children 2eb9f1db70a4
line source
1 XEN_ROOT = ../
2 include $(XEN_ROOT)/tools/Rules.mk
4 SUBDIRS-y :=
5 SUBDIRS-y += check
6 SUBDIRS-y += include
7 SUBDIRS-y += libxc
8 SUBDIRS-y += flask
9 SUBDIRS-y += xenstore
10 SUBDIRS-y += misc
11 SUBDIRS-y += examples
12 SUBDIRS-y += hotplug
13 SUBDIRS-y += xentrace
14 SUBDIRS-$(CONFIG_XCUTILS) += xcutils
15 SUBDIRS-$(CONFIG_X86) += firmware
16 SUBDIRS-$(ACM_SECURITY) += security
17 SUBDIRS-y += console
18 SUBDIRS-y += xenmon
19 SUBDIRS-$(VTPM_TOOLS) += vtpm_manager
20 SUBDIRS-$(VTPM_TOOLS) += vtpm
21 SUBDIRS-y += xenstat
22 SUBDIRS-$(CONFIG_Linux) += libaio
23 SUBDIRS-$(CONFIG_Linux) += blktap
24 SUBDIRS-y += libfsimage
25 SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
26 SUBDIRS-$(CONFIG_Linux) += fs-back
27 SUBDIRS-$(CONFIG_IOEMU) += ioemu-dir
28 SUBDIRS-y += xenpmd
30 # These don't cross-compile
31 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
32 SUBDIRS-$(PYTHON_TOOLS) += python
33 SUBDIRS-$(PYTHON_TOOLS) += pygrub
34 endif
36 # For the sake of linking, set the sys-root
37 ifneq ($(CROSS_COMPILE),)
38 CROSS_BIN_PATH ?= /usr/$(CROSS_COMPILE:-=)/bin
39 CROSS_SYS_ROOT ?= /usr/$(CROSS_COMPILE:-=)/sys-root
40 export CROSS_SYS_ROOT # exported for check/funcs.sh
41 export CROSS_BIN_PATH # exported for cross-install.sh
42 endif
44 .PHONY: all
45 all: subdirs-all
47 .PHONY: install
48 install: subdirs-install
49 $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
50 $(INSTALL_DIR) $(DESTDIR)/var/log/xen
51 $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
53 .PHONY: clean distclean
54 clean distclean: subdirs-clean
56 ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
57 IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
58 --cross-prefix=$(CROSS_COMPILE) \
59 --interp-prefix=$(CROSS_SYS_ROOT)
60 endif
62 ioemu/config-host.mak:
63 cd ioemu && XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) sh configure \
64 --prefix=$(PREFIX) $(IOEMU_CONFIGURE_CROSS)
66 subdir-all-ioemu subdir-install-ioemu: ioemu/config-host.mak
68 subdir-clean-ioemu:
69 $(MAKE) -C ioemu distclean
71 ioemu-dir-find:
72 set -ex; \
73 if test -d $(CONFIG_QEMU); then \
74 rm -f ioemu-dir; \
75 ln -sf $(CONFIG_QEMU) ioemu-dir; \
76 else \
77 if [ ! -d ioemu-remote ]; then \
78 rm -rf ioemu-remote ioemu-remote.tmp; \
79 mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \
80 $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \
81 if [ "$(QEMU_TAG)" ]; then \
82 cd ioemu-remote.tmp; \
83 $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \
84 $(GIT) checkout -b dummy $(QEMU_TAG); \
85 cd ..; \
86 fi; \
87 mv ioemu-remote.tmp ioemu-remote; \
88 fi; \
89 rm -f ioemu-dir; \
90 ln -sf ioemu-remote ioemu-dir; \
91 fi
92 set -e; \
93 $(absolutify_xen_root); \
94 PREFIX=$(PREFIX); \
95 export PREFIX; \
96 cd ioemu-dir; \
97 ./xen-setup $(IOEMU_CONFIGURE_CROSS)
99 subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find
101 subdir-clean-ioemu-dir:
102 set -e; if test -d ioemu-dir/.; then \
103 $(absolutify_xen_root); \
104 $(MAKE) -C ioemu-dir clean; \
105 fi