debuggers.hg

annotate tools/Makefile @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents 845d04d505d0
children 82bdaacd5caf
rev   line source
keir@20939 1 XEN_ROOT = ..
kaf24@4376 2 include $(XEN_ROOT)/tools/Rules.mk
iap10@809 3
kfraser@10235 4 SUBDIRS-y :=
keir@16944 5 SUBDIRS-y += check
keir@16932 6 SUBDIRS-y += include
kfraser@10235 7 SUBDIRS-y += libxc
kfraser@15848 8 SUBDIRS-y += flask
keir@19658 9 SUBDIRS-$(CONFIG_OCAML_XENSTORED) += ocaml-xenstored
kfraser@10235 10 SUBDIRS-y += xenstore
kfraser@10235 11 SUBDIRS-y += misc
kfraser@10235 12 SUBDIRS-y += examples
keir@18789 13 SUBDIRS-y += hotplug
kfraser@10235 14 SUBDIRS-y += xentrace
kaf24@10739 15 SUBDIRS-$(CONFIG_XCUTILS) += xcutils
kaf24@11030 16 SUBDIRS-$(CONFIG_X86) += firmware
kfraser@15869 17 SUBDIRS-$(ACM_SECURITY) += security
kfraser@10235 18 SUBDIRS-y += console
kfraser@10235 19 SUBDIRS-y += xenmon
kfraser@10235 20 SUBDIRS-$(VTPM_TOOLS) += vtpm_manager
kfraser@10235 21 SUBDIRS-$(VTPM_TOOLS) += vtpm
kfraser@10235 22 SUBDIRS-y += xenstat
keir@19358 23 SUBDIRS-$(CONFIG_Linux) += libaio
keir@20775 24 SUBDIRS-$(CONFIG_Linux) += memshr
keir@19358 25 SUBDIRS-$(CONFIG_Linux) += blktap
keir@19685 26 SUBDIRS-$(CONFIG_Linux) += blktap2
keir@19855 27 SUBDIRS-$(CONFIG_NetBSD) += libaio
keir@19855 28 SUBDIRS-$(CONFIG_NetBSD) += blktap2
keir@20012 29 SUBDIRS-$(CONFIG_NetBSD) += xenbackendd
Tim@12362 30 SUBDIRS-y += libfsimage
jfehlig@12634 31 SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
keir@19358 32 SUBDIRS-$(CONFIG_Linux) += fs-back
keir@19855 33 SUBDIRS-$(CONFIG_NetBSD) += fs-back
keir@17991 34 SUBDIRS-$(CONFIG_IOEMU) += ioemu-dir
keir@18740 35 SUBDIRS-y += xenpmd
keir@20462 36 SUBDIRS-y += libxl
keir@20485 37 SUBDIRS-y += remus
keir@20775 38 SUBDIRS-$(CONFIG_X86) += xenpaging
kfraser@10235 39
kaf24@6508 40 # These don't cross-compile
kaf24@6508 41 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
kfraser@14309 42 SUBDIRS-$(PYTHON_TOOLS) += python
kfraser@14309 43 SUBDIRS-$(PYTHON_TOOLS) += pygrub
kaf24@6508 44 endif
kaf24@6508 45
keir@16808 46 # For the sake of linking, set the sys-root
keir@16808 47 ifneq ($(CROSS_COMPILE),)
keir@18341 48 CROSS_BIN_PATH ?= /usr/$(CROSS_COMPILE:-=)/bin
keir@16808 49 CROSS_SYS_ROOT ?= /usr/$(CROSS_COMPILE:-=)/sys-root
keir@18341 50 export CROSS_SYS_ROOT # exported for check/funcs.sh
keir@18341 51 export CROSS_BIN_PATH # exported for cross-install.sh
keir@16808 52 endif
keir@16808 53
kaf24@9645 54 .PHONY: all
keir@17309 55 all: subdirs-all
kaf24@4376 56
kaf24@9645 57 .PHONY: install
keir@17309 58 install: subdirs-install
kfraser@14314 59 $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
kfraser@14314 60 $(INSTALL_DIR) $(DESTDIR)/var/log/xen
kfraser@15441 61 $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
keir@19658 62 $(INSTALL_DIR) $(DESTDIR)/var/lock/subsys
kaf24@4376 63
keir@16946 64 .PHONY: clean distclean
keir@17309 65 clean distclean: subdirs-clean
keir@16942 66
keir@16808 67 ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
keir@18239 68 IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
keir@18239 69 --cross-prefix=$(CROSS_COMPILE) \
keir@18441 70 --interp-prefix=$(CROSS_SYS_ROOT)
keir@16808 71 endif
keir@16943 72
keir@16943 73 ioemu/config-host.mak:
keir@18167 74 cd ioemu && XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) sh configure \
keir@18167 75 --prefix=$(PREFIX) $(IOEMU_CONFIGURE_CROSS)
cl349@5081 76
keir@16943 77 subdir-all-ioemu subdir-install-ioemu: ioemu/config-host.mak
keir@16943 78
keir@16943 79 subdir-clean-ioemu:
keir@16943 80 $(MAKE) -C ioemu distclean
keir@16943 81
keir@17991 82 ioemu-dir-find:
keir@17991 83 set -ex; \
keir@17991 84 if test -d $(CONFIG_QEMU); then \
keir@17991 85 rm -f ioemu-dir; \
keir@17991 86 ln -sf $(CONFIG_QEMU) ioemu-dir; \
keir@17991 87 else \
keir@17991 88 if [ ! -d ioemu-remote ]; then \
keir@17991 89 rm -rf ioemu-remote ioemu-remote.tmp; \
keir@17991 90 mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \
keir@17991 91 $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \
keir@18179 92 if [ "$(QEMU_TAG)" ]; then \
keir@18179 93 cd ioemu-remote.tmp; \
keir@18179 94 $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \
keir@18179 95 $(GIT) checkout -b dummy $(QEMU_TAG); \
keir@18179 96 cd ..; \
keir@18179 97 fi; \
keir@17991 98 mv ioemu-remote.tmp ioemu-remote; \
keir@17991 99 fi; \
keir@18030 100 rm -f ioemu-dir; \
keir@17991 101 ln -sf ioemu-remote ioemu-dir; \
keir@17991 102 fi
keir@18035 103 set -e; \
keir@18512 104 $(absolutify_xen_root); \
keir@19856 105 $(buildmakevars2shellvars); \
keir@18035 106 cd ioemu-dir; \
keir@18239 107 ./xen-setup $(IOEMU_CONFIGURE_CROSS)
keir@17991 108
keir@17991 109 subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find
keir@18030 110
keir@18030 111 subdir-clean-ioemu-dir:
keir@18512 112 set -e; if test -d ioemu-dir/.; then \
keir@18512 113 $(absolutify_xen_root); \
keir@19856 114 $(buildmakevars2shellvars); \
keir@18030 115 $(MAKE) -C ioemu-dir clean; \
keir@18030 116 fi
keir@19658 117
keir@19658 118 ocaml-xenstored:
keir@19658 119 set -ex; \
keir@19658 120 rm -rf ocaml-xenstored.tmp; \
keir@19658 121 hg clone $(OCAML_XENSTORED_REPO) ocaml-xenstored.tmp; \
keir@19658 122 if [ "$(OCAML_XENSTORED_TAG)" ]; then \
keir@19658 123 hg -R ocaml-xenstored.tmp update -r $(OCAML_XENSTORED_TAG) ;\
keir@19658 124 hg -R ocaml-xenstored.tmp branch mybranch ;\
keir@19658 125 fi; \
keir@19658 126 mv ocaml-xenstored.tmp ocaml-xenstored; \
keir@19658 127
keir@19658 128 subdir-all-ocaml-xenstored subdir-install-ocaml-xenstored: ocaml-xenstored
keir@19658 129 $(absolutify_xen_root); \
keir@19658 130 $(MAKE) -C ocaml-xenstored $(patsubst subdir-%-ocaml-xenstored,%,$@);
keir@19658 131
keir@19658 132 subdir-clean-ocaml-xenstored:
keir@19658 133 set -e; if test -d ocaml-xenstored; then \
keir@19658 134 $(MAKE) -C ocaml-xenstored clean; \
keir@19658 135 fi
keir@19658 136