ia64/xen-unstable

view linux-2.6.9-xen-sparse/arch/xen/Makefile @ 2903:aceecd894728

bitkeeper revision 1.1159.1.384 (418b521fUdYMy9Ii-25K5W7r2tlovg)

Small dependency tweak for parallel builds.
author cl349@freefall.cl.cam.ac.uk
date Fri Nov 05 10:12:47 2004 +0000 (2004-11-05)
parents 5f61f7a86799
children
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 XENARCH := $(subst ",,$(CONFIG_XENARCH))
17 # pick up headers from include/asm-xen/asm in preference over include/asm
18 NOSTDINC_FLAGS = -nostdinc -iwithprefix include/asm-xen -Iinclude/asm-xen -iwithprefix include
20 # make uname return the processor arch
21 UTS_MACHINE := $(XENARCH)
23 core-y += arch/xen/kernel/
25 include/.asm-ignore: include/asm
26 @rm -f include/.asm-ignore
27 @mv include/asm include/.asm-ignore
28 @echo ' SYMLINK include/asm -> include/asm-$(XENARCH)'
29 $(Q)if [ ! -d include ]; then mkdir -p include; fi;
30 @ln -fsn asm-$(XENARCH) include/asm
32 include/asm-xen/asm:
33 @echo ' SYMLINK $@ -> include/asm-xen/asm-$(XENARCH)'
34 @ln -fsn asm-$(XENARCH) $@
36 arch/xen/arch:
37 @rm -f $@
38 @ln -fsn $(XENARCH) $@
40 prepare: include/.asm-ignore include/asm-xen/asm \
41 arch/xen/arch ;
43 all: vmlinuz
45 vmlinuz: vmlinux
46 $(Q)$(MAKE) $(build)=arch/xen/boot vmlinuz
48 XINSTALL_NAME ?= $(KERNELRELEASE)
49 install: vmlinuz
50 mkdir -p $(INSTALL_PATH)/boot
51 install -m0644 vmlinuz $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
52 install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
53 install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
54 install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
55 mkdir -p $(INSTALL_PATH)/usr/include/xen/linux
56 install -m0644 include/asm-xen/linux-public/*.h $(INSTALL_PATH)/usr/include/xen/linux
57 dist:
58 $(MAKE) INSTALL_PATH=../dist/install install
60 archclean:
61 @if [ -e arch/xen/arch ]; then $(MAKE) $(clean)=arch/xen/arch; fi;
62 @rm -f arch/xen/arch include/.asm-ignore include/asm-xen/asm
63 @rm -f vmlinux-stripped vmlinuz
65 define archhelp
66 echo '* vmlinuz - Compressed kernel image'
67 echo ' install - Install kernel image and config file'
68 endef
70 ifneq ($(XENARCH),)
71 include $(srctree)/arch/xen/$(XENARCH)/Makefile
72 endif