ia64/xen-unstable

view linux-2.6.7-xen-sparse/arch/xen/Makefile @ 1820:3d4f8eb89670

bitkeeper revision 1.1106.1.2 (40faa780dekT3E5arFwcbQDu1MbX6g)

Cleaned up Xen's instruction emulator.
author kaf24@scramble.cl.cam.ac.uk
date Sun Jul 18 16:38:24 2004 +0000 (2004-07-18)
parents d649c3c63b9c
children 8f45c4cafc5c f89ed70bba4e ba57d25bfe88
line source
1 #
2 # xen/Makefile
3 #
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies. Remember to do have actions
6 # for "archclean" cleaning up for this architecture.
7 #
8 # This file is subject to the terms and conditions of the GNU General Public
9 # License. See the file "COPYING" in the main directory of this archive
10 # for more details.
11 #
12 # Copyright (C) 2004 by Christian Limpach
13 #
15 override EXTRAVERSION:=$(subst linux-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL),,$(shell basename $(TOPDIR)))$(EXTRAVERSION)
17 XENARCH := $(subst ",,$(CONFIG_XENARCH))
19 # pick up headers from include/asm-xen/asm in preference over include/asm
20 NOSTDINC_FLAGS = -nostdinc -iwithprefix include/asm-xen -Iinclude/asm-xen -iwithprefix include
22 # make uname return the processor arch
23 UTS_MACHINE := $(XENARCH)
25 core-y += arch/xen/kernel/
27 drivers-y += drivers/xen/
29 include/.asm-ignore:
30 @rm -f include/.asm-ignore
31 @mv include/asm include/.asm-ignore
32 @echo ' SYMLINK include/asm -> include/asm-$(XENARCH)'
33 $(Q)if [ ! -d include ]; then mkdir -p include; fi;
34 @ln -fsn asm-$(XENARCH) include/asm
36 include/asm-xen/asm:
37 @echo ' SYMLINK $@ -> include/asm-xen/asm-$(XENARCH)'
38 @ln -fsn asm-$(XENARCH) $@
40 include/asm-xen/asm-$(XENARCH)/hypervisor-ifs:
41 @echo ' SYMLINK $@ -> include/asm-xen/hypervisor-ifs'
42 @ln -fsn ../hypervisor-ifs $@
44 arch/xen/arch:
45 @rm -f $@
46 @ln -fsn $(XENARCH) $@
48 prepare: include/.asm-ignore include/asm-xen/asm \
49 include/asm-xen/asm-$(XENARCH)/hypervisor-ifs \
50 arch/xen/arch ;
52 all: vmlinuz
54 vmlinuz: vmlinux
55 $(Q)$(MAKE) $(build)=arch/xen/boot vmlinuz
57 XINSTALL_NAME ?= $(KERNELRELEASE)
58 install: vmlinuz
59 mkdir -p $(INSTALL_PATH)/boot
60 install -m0644 vmlinuz $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
61 install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
62 install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
64 dist:
65 $(MAKE) INSTALL_PATH=../install install
67 archclean:
68 @if [ -e arch/xen/arch ]; then $(MAKE) $(clean)=arch/xen/arch; fi;
69 @rm -f arch/xen/arch include/.asm-ignore include/asm-xen/asm
71 define archhelp
72 echo '* vmlinuz - Compressed kernel image'
73 echo ' install - Install kernel image and config file'
74 endef
76 ifneq ($(XENARCH),)
77 include $(srctree)/arch/xen/$(XENARCH)/Makefile
78 endif