ia64/xen-unstable

view xen/Makefile @ 9586:806d04252761

Fix checksum-offload problems introduced in c/s 9514, due to
data_validated flag not being properly specified on the
device channel.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Apr 05 10:37:37 2006 +0100 (2006-04-05)
parents ae212c225e2a
children 68ef2efa929b
line source
1 INSTALL = install
2 INSTALL_DATA = $(INSTALL) -m0644
3 INSTALL_DIR = $(INSTALL) -d -m0755
5 # This is the correct place to edit the build version.
6 # All other places this is stored (eg. compile.h) should be autogenerated.
7 export XEN_VERSION = 3
8 export XEN_SUBVERSION = 0
9 export XEN_EXTRAVERSION = -unstable
10 export XEN_FULLVERSION = $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION)
12 export BASEDIR := $(CURDIR)
14 include Rules.mk
16 default: build
17 $(TARGET).gz: $(TARGET)
18 gzip -f -9 < $< > $@.new
19 mv $@.new $@
21 debug:
22 objdump -D -S $(TARGET)-syms > $(TARGET).s
24 dist: install
26 build: $(TARGET).gz
28 install: $(TARGET).gz
29 [ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
30 $(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz
31 ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz
32 ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz
33 ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz
34 $(INSTALL_DATA) $(TARGET)-syms $(DESTDIR)/boot/$(notdir $(TARGET))-syms-$(XEN_FULLVERSION)
35 [ -d $(DESTDIR)/usr/include/xen/io ] || \
36 $(INSTALL_DIR) $(DESTDIR)/usr/include/xen/io
37 $(INSTALL_DATA) include/public/*.h $(DESTDIR)/usr/include/xen
38 $(INSTALL_DATA) include/public/io/*.h $(DESTDIR)/usr/include/xen/io
39 $(INSTALL_DATA) include/public/COPYING $(DESTDIR)/usr/include/xen
41 clean: delete-unfresh-files
42 $(MAKE) -C tools clean
43 $(MAKE) -C common clean
44 $(MAKE) -C drivers clean
45 $(MAKE) -C acm clean
46 $(MAKE) -C arch/$(TARGET_ARCH) clean
47 rm -f include/asm *.o $(TARGET)* *~ core
48 rm -f include/asm-*/asm-offsets.h
49 rm -f include/xen/acm_policy.h
51 $(TARGET): delete-unfresh-files
52 $(MAKE) -C tools
53 $(MAKE) include/xen/compile.h
54 $(MAKE) include/xen/acm_policy.h
55 [ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm
56 $(MAKE) -C arch/$(TARGET_ARCH) asm-offsets.s
57 $(MAKE) include/asm-$(TARGET_ARCH)/asm-offsets.h
58 $(MAKE) -C arch/$(TARGET_ARCH) $(TARGET)
60 # drivers/char/console.o contains static banner/compile info. Blow it away.
61 # Don't refresh these files during e.g., 'sudo make install'
62 delete-unfresh-files:
63 @if [ ! -r include/xen/compile.h -o -O include/xen/compile.h ]; then \
64 rm -f include/xen/{banner,compile}.h; \
65 fi
67 # acm_policy.h contains security policy for Xen
68 include/xen/acm_policy.h:
69 @(set -e; \
70 echo "/*"; \
71 echo " * DO NOT MODIFY."; \
72 echo " *"; \
73 echo " * This file was auto-generated by xen/Makefile $<"; \
74 echo " *"; \
75 echo " */"; \
76 echo ""; \
77 echo "#ifndef ACM_DEFAULT_SECURITY_POLICY"; \
78 echo "#define ACM_DEFAULT_SECURITY_POLICY $(ACM_DEFAULT_SECURITY_POLICY)"; \
79 echo "#endif") >$@
81 # compile.h contains dynamic build info. Rebuilt on every 'make' invocation.
82 include/xen/compile.h: LANG=C
83 include/xen/compile.h: include/xen/compile.h.in include/xen/banner.h
84 @sed -e 's/@@date@@/$(shell date)/g' \
85 -e 's/@@time@@/$(shell date +%T)/g' \
86 -e 's/@@whoami@@/$(shell whoami)/g' \
87 -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \
88 -e 's/@@hostname@@/$(shell hostname)/g' \
89 -e 's|@@compiler@@|$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1 | sed -e "s;|;/;")|g' \
90 -e 's/@@version@@/$(XEN_VERSION)/g' \
91 -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
92 -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
93 -e 's!@@changeset@@!$(shell ((hg parents || head -n 7 ../ChangeLog || echo date: unavailable) | awk '{FS="changeset:[ ]+"}/^changeset/{CS=$$2};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null)!g' \
94 < include/xen/compile.h.in > $@.new
95 @cat include/xen/banner.h >> $@.new
96 @mv -f $@.new $@
98 include/xen/banner.h:
99 tools/figlet/figlet -d tools/figlet Xen $(XEN_FULLVERSION) > $@.new
100 @mv -f $@.new $@
102 include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s
103 @(set -e; \
104 echo "/*"; \
105 echo " * DO NOT MODIFY."; \
106 echo " *"; \
107 echo " * This file was auto-generated from $<"; \
108 echo " *"; \
109 echo " */"; \
110 echo ""; \
111 echo "#ifndef __ASM_OFFSETS_H__"; \
112 echo "#define __ASM_OFFSETS_H__"; \
113 echo ""; \
114 sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \
115 echo ""; \
116 echo "#endif") <$< >$@
118 .PHONY: default debug install dist clean delete-unfresh-files TAGS tags
120 SUBDIRS = acm arch/$(TARGET_ARCH) common drivers
121 define all_sources
122 ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; \
123 find include -type d -name SCCS -prune -o \( -name "asm-*" -o \
124 -name config \) -prune -o -name '*.h' -print; \
125 find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print )
126 endef
127 TAGS:
128 $(all_sources) | etags -
129 tags:
130 $(all_sources) | xargs ctags
131 cscope:
132 $(all_sources) > cscope.files
133 cscope -k -b -q
134 MAP:
135 $(NM) $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map