direct-io.hg

view Makefile @ 5617:22d7dda0e38d

bitkeeper revision 1.1782 (42c3a8e76Lioy1FVEJFTaTkbYVBy7Q)

[PATCH] Use copy_from_user when accessing guest_pt[]

Use copy_from_user when accessing guest_pt[]

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author arun.sharma@intel.com[kaf24]
date Thu Jun 30 08:10:15 2005 +0000 (2005-06-30)
parents d44caae57112
children 0f2fa1235851 5aaebfc580a6 1bfa723fe264
line source
1 #
2 # Grand Unified Makefile for Xen.
3 #
5 # Default is to install to local 'dist' directory.
6 DISTDIR ?= $(CURDIR)/dist
7 DESTDIR ?= $(DISTDIR)/install
9 INSTALL := install
10 INSTALL_DIR := $(INSTALL) -d -m0755
11 INSTALL_DATA := $(INSTALL) -m0644
12 INSTALL_PROG := $(INSTALL) -m0755
14 KERNELS ?= linux-2.6-xen0 linux-2.6-xenU
15 # linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU
16 # You may use wildcards in the above e.g. KERNELS=*2.4*
18 XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) )
20 export DESTDIR
22 # Export target architecture overrides to Xen and Linux sub-trees.
23 ifneq ($(XEN_TARGET_ARCH),)
24 SUBARCH := $(subst x86_32,i386,$(XEN_TARGET_ARCH))
25 export XEN_TARGET_ARCH SUBARCH
26 endif
28 # Default target must appear before any include lines
29 all: dist
31 include Config.mk
32 include buildconfigs/Rules.mk
34 .PHONY: all dist install xen tools kernels docs world clean mkpatches mrproper
35 .PHONY: kbuild kdelete kclean
37 # build and install everything into the standard system directories
38 install: install-xen install-tools install-kernels install-docs
40 build: kernels
41 $(MAKE) -C xen build
42 $(MAKE) -C tools build
43 $(MAKE) -C docs build
45 # build and install everything into local dist directory
46 dist: xen tools kernels docs
47 $(INSTALL_DIR) $(DISTDIR)/check
48 $(INSTALL_DATA) ./COPYING $(DISTDIR)
49 $(INSTALL_DATA) ./README $(DISTDIR)
50 $(INSTALL_PROG) ./install.sh $(DISTDIR)
51 $(INSTALL_PROG) tools/check/chk tools/check/check_* $(DISTDIR)/check
53 xen:
54 $(MAKE) -C xen install
56 tools:
57 $(MAKE) -C tools install
59 kernels:
60 for i in $(XKERNELS) ; do $(MAKE) $$i-build || exit 1; done
62 docs:
63 sh ./docs/check_pkgs && $(MAKE) -C docs install || true
65 # Build all the various kernels and modules
66 kbuild: kernels
68 # Delete the kernel build trees entirely
69 kdelete:
70 for i in $(XKERNELS) ; do $(MAKE) $$i-delete ; done
72 # Clean the kernel build trees
73 kclean:
74 for i in $(XKERNELS) ; do $(MAKE) $$i-clean ; done
76 # Make patches from kernel sparse trees
77 mkpatches:
78 for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-xen.patch; done
80 # build xen, the tools, and a domain 0 plus unprivileged linux-xen images,
81 # and place them in the install directory. 'make install' should then
82 # copy them to the normal system directories
83 world:
84 $(MAKE) clean
85 $(MAKE) kdelete
86 $(MAKE) dist
88 # clean doesn't do a kclean
89 clean::
90 $(MAKE) -C xen clean
91 $(MAKE) -C tools clean
92 $(MAKE) -C docs clean
94 # clean, but blow away kernel build tree plus tar balls
95 mrproper: clean
96 rm -rf dist patches/tmp
97 for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done
98 for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-mrproper ; done
100 install-twisted:
101 wget http://www.twistedmatrix.com/products/get-current.epy
102 tar -zxf Twisted-*.tar.gz
103 cd Twisted-* && python setup.py install
105 install-logging: LOGGING=logging-0.4.9.2
106 install-logging:
107 [ -f $(LOGGING).tar.gz ] || wget http://www.red-dove.com/$(LOGGING).tar.gz
108 tar -zxf $(LOGGING).tar.gz
109 cd $(LOGGING) && python setup.py install
111 # handy target to upgrade iptables (use rpm or apt-get in preference)
112 install-iptables:
113 wget http://www.netfilter.org/files/iptables-1.2.11.tar.bz2
114 tar -jxf iptables-1.2.11.tar.bz2
115 $(MAKE) -C iptables-1.2.11 PREFIX= KERNEL_DIR=../linux-$(LINUX_VER)-xen0 install
117 install-%: DESTDIR=
118 install-%: %
119 @: # do nothing
121 help:
122 @echo 'Installation targets:'
123 @echo ' install - build and install everything'
124 @echo ' install-xen - build and install the Xen hypervisor'
125 @echo ' install-tools - build and install the control tools'
126 @echo ' install-kernels - build and install guest kernels'
127 @echo ' install-docs - build and install documentation'
128 @echo ''
129 @echo 'Building targets:'
130 @echo ' dist - build and install everything into local dist directory'
131 @echo ' world - clean everything, delete guest kernel build'
132 @echo ' trees then make dist'
133 @echo ' xen - build and install Xen hypervisor'
134 @echo ' tools - build and install tools'
135 @echo ' kernels - build and install guest kernels'
136 @echo ' kbuild - synonym for make kernels'
137 @echo ' docs - build and install docs'
138 @echo ''
139 @echo 'Cleaning targets:'
140 @echo ' clean - clean the Xen, tools and docs (but not'
141 @echo ' guest kernel) trees'
142 @echo ' mrproper - clean plus delete kernel tarballs and kernel'
143 @echo ' build trees'
144 @echo ' kdelete - delete guest kernel build trees'
145 @echo ' kclean - clean guest kernel build trees'
146 @echo ''
147 @echo 'Dependency installation targets:'
148 @echo ' install-twisted - install the Twisted Matrix Framework'
149 @echo ' install-logging - install the Python Logging package'
150 @echo ' install-iptables - install iptables tools'
151 @echo ''
152 @echo 'Miscellaneous targets:'
153 @echo ' mkpatches - make patches against vanilla kernels from'
154 @echo ' sparse trees'
155 @echo ' uninstall - attempt to remove installed Xen tools (use'
156 @echo ' with extreme care!)'
158 # Use this target with extreme care!
159 uninstall: DESTDIR=
160 uninstall: D=$(DESTDIR)
161 uninstall:
162 [ -d $(D)/etc/xen ] && mv -f $(D)/etc/xen $(D)/etc/xen.old-$(date +%s)
163 rm -rf $(D)/etc/init.d/xend*
164 rm -rf $(D)/usr/$(LIBDIR)/libxc* $(D)/usr/$(LIBDIR)/libxutil*
165 rm -rf $(D)/usr/$(LIBDIR)/python/xen $(D)/usr/include/xen
166 rm -rf $(D)/usr/$(LIBDIR)/share/xen $(D)/usr/$(LIBDIR)/libxenstore*
167 rm -rf $(D)/var/run/xen* $(D)/var/lib/xen*
168 rm -rf $(D)/usr/include/xcs_proto.h $(D)/usr/include/xc.h
169 rm -rf $(D)/usr/include/xs_lib.h $(D)/usr/include/xs.h
170 rm -rf $(D)/usr/sbin/xcs $(D)/usr/sbin/xcsdump $(D)/usr/sbin/xen*
171 rm -rf $(D)/usr/sbin/netfix
172 rm -rf $(D)/usr/sbin/xfrd $(D)/usr/sbin/xm
173 rm -rf $(D)/usr/share/doc/xen $(D)/usr/man/man*/xentrace*
174 rm -rf $(D)/usr/bin/xen* $(D)/usr/bin/miniterm
175 rm -rf $(D)/boot/*xen*
176 rm -rf $(D)/lib/modules/*xen*
178 # Legacy targets for compatibility
179 linux24:
180 $(MAKE) linux-2.4-xen0-build
181 $(MAKE) linux-2.4-xenU-build
183 linux26:
184 $(MAKE) linux-2.6-xen0-build
185 $(MAKE) linux-2.6-xenU-build
187 netbsd20:
188 $(MAKE) netbsd-2.0-xenU-build