direct-io.hg

view xen/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 4ed21996131d
children 0962f5989d2a ef2adae89e4d 5aaebfc580a6
line source
1 # Default is to install to local 'dist' directory.
2 DISTDIR ?= ../dist
3 DESTDIR ?= $(DISTDIR)/install
5 INSTALL = install
6 INSTALL_DATA = $(INSTALL) -m0644
7 INSTALL_DIR = $(INSTALL) -d -m0755
9 # This is the correct place to edit the build version.
10 # All other places this is stored (eg. compile.h) should be autogenerated.
11 export XEN_VERSION = 3
12 export XEN_SUBVERSION = 0
13 export XEN_EXTRAVERSION = -devel
14 export XEN_FULLVERSION = $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION)
16 export BASEDIR := $(CURDIR)
18 include Rules.mk
20 default: build
21 $(TARGET).gz: $(TARGET)
22 gzip -f -9 < $< > $@.new
23 mv $@.new $@
25 debug:
26 objdump -D -S $(TARGET)-syms > $(TARGET).s
28 dist: install
30 build: $(TARGET).gz
32 install: $(TARGET).gz
33 [ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
34 $(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION).gz
35 ln -f -s $(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz
36 ln -f -s $(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz
37 ln -f -s $(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz
38 $(INSTALL_DATA) $(TARGET)-syms $(DESTDIR)/boot/$(notdir $(TARGET))-syms-$(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION)
39 [ -d $(DESTDIR)/usr/include/xen/io ] || \
40 $(INSTALL_DIR) $(DESTDIR)/usr/include/xen/io
41 $(INSTALL_DATA) include/public/*.h $(DESTDIR)/usr/include/xen
42 $(INSTALL_DATA) include/public/io/*.h $(DESTDIR)/usr/include/xen/io
43 $(INSTALL_DATA) include/public/COPYING $(DESTDIR)/usr/include/xen
45 clean: delete-unfresh-files
46 $(MAKE) -C tools clean
47 $(MAKE) -C common clean
48 $(MAKE) -C drivers clean
49 $(MAKE) -C acm clean
50 $(MAKE) -C arch/$(TARGET_ARCH) clean
51 rm -f include/asm *.o $(TARGET)* *~ core
52 rm -f include/asm-*/asm-offsets.h
53 rm -f tools/figlet/*.o tools/figlet/figlet
54 rm -f include/xen/acm_policy.h
56 $(TARGET): delete-unfresh-files
57 $(MAKE) include/xen/compile.h
58 $(MAKE) include/xen/acm_policy.h
59 [ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm
60 $(MAKE) -C arch/$(TARGET_ARCH) asm-offsets.s
61 $(MAKE) include/asm-$(TARGET_ARCH)/asm-offsets.h
62 $(MAKE) -C common
63 $(MAKE) -C drivers
64 ifneq ($(ACM_USE_SECURITY_POLICY),ACM_NULL_POLICY)
65 $(MAKE) -C acm
66 endif
67 $(MAKE) -C arch/$(TARGET_ARCH)
69 # drivers/char/console.o contains static banner/compile info. Blow it away.
70 delete-unfresh-files:
71 rm -f include/xen/banner.h include/xen/compile.h drivers/char/console.o
72 $(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files
74 # acm_policy.h contains security policy for Xen
75 include/xen/acm_policy.h:
76 @(set -e; \
77 echo "/*"; \
78 echo " * DO NOT MODIFY."; \
79 echo " *"; \
80 echo " * This file was auto-generated by xen/Makefile $<"; \
81 echo " *"; \
82 echo " */"; \
83 echo ""; \
84 echo "#ifndef ACM_USE_SECURITY_POLICY"; \
85 echo "#define ACM_USE_SECURITY_POLICY $(ACM_USE_SECURITY_POLICY)"; \
86 echo "#endif") >$@
88 # compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
89 include/xen/compile.h: LANG=C
90 include/xen/compile.h: include/xen/compile.h.in include/xen/banner.h
91 @sed -e 's/@@date@@/$(shell date)/g' \
92 -e 's/@@time@@/$(shell date +%T)/g' \
93 -e 's/@@whoami@@/$(shell whoami)/g' \
94 -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \
95 -e 's/@@hostname@@/$(shell hostname)/g' \
96 -e 's/@@compiler@@/$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -1)/g' \
97 -e 's/@@version@@/$(XEN_VERSION)/g' \
98 -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
99 -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
100 -e 's!@@changeset@@!$(shell bk changes -nd':D: :T: :REV: :MD5KEY:' -r+ 2>/dev/null || echo information unavailable)!g' \
101 < include/xen/compile.h.in > $@.new
102 @cat include/xen/banner.h >> $@.new
103 @mv -f $@.new $@
105 tools/figlet/figlet: tools/figlet/figlet.o
106 $(HOSTCC) -o $@ $<
107 tools/figlet/figlet.o: tools/figlet/figlet.c
108 $(HOSTCC) -o $@ -c $<
110 include/xen/banner.h: tools/figlet/figlet tools/figlet/xen.flf
111 tools/figlet/figlet -d tools/figlet Xen $(XEN_FULLVERSION) > $@.new
112 @mv -f $@.new $@
114 include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s
115 @(set -e; \
116 echo "/*"; \
117 echo " * DO NOT MODIFY."; \
118 echo " *"; \
119 echo " * This file was auto-generated from $<"; \
120 echo " *"; \
121 echo " */"; \
122 echo ""; \
123 echo "#ifndef __ASM_OFFSETS_H__"; \
124 echo "#define __ASM_OFFSETS_H__"; \
125 echo ""; \
126 sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \
127 echo ""; \
128 echo "#endif") <$< >$@
130 .PHONY: default debug install dist clean delete-unfresh-files TAGS tags
132 SUBDIRS = acm arch/$(TARGET_ARCH) common drivers
133 define all_sources
134 ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; \
135 find include -type d -name SCCS -prune -o \( -name "asm-*" -o \
136 -name config \) -prune -o -name '*.h' -print; \
137 find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print )
138 endef
139 TAGS:
140 $(all_sources) | etags -
141 tags:
142 $(all_sources) | xargs ctags
143 cscope:
144 $(all_sources) > cscope.files
145 cscope -k -b -q
146 MAP:
147 nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map