ia64/xen-unstable

view linux-2.6.11-xen-sparse/arch/xen/Makefile @ 4913:5a28c8cd39a3

bitkeeper revision 1.1159.258.123 (42852fd48Nr7wIoriw8GV3ZAjVOw8Q)

Many files:
Create vmlinuz-$(VERSION).$(PATCHLEVEL)-$(XENGUEST) and
vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(XENGUEST) symlinks in
dist/install/boot from kernel build target.
install.sh:
No need to create vmlinuz symlinks in dist/install/boot from install.sh
anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri May 13 22:53:08 2005 +0000 (2005-05-13)
parents cff0d3baf599
children 0651c17c1f17 b3e15fadc1c1
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 ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(XENGUEST)$(INSTALL_SUFFIX)
52 rm -f $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
53 install -m0644 vmlinuz $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
54 install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
55 install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
56 install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
57 ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL)-$(XENGUEST)$(INSTALL_SUFFIX)
58 mkdir -p $(INSTALL_PATH)/usr/include/xen/linux
59 install -m0644 include/asm-xen/linux-public/*.h $(INSTALL_PATH)/usr/include/xen/linux
61 archclean:
62 @if [ -e arch/xen/arch ]; then $(MAKE) $(clean)=arch/xen/arch; fi;
63 @rm -f arch/xen/arch include/.asm-ignore include/asm-xen/asm
64 @rm -f vmlinux-stripped vmlinuz
66 define archhelp
67 echo '* vmlinuz - Compressed kernel image'
68 echo ' install - Install kernel image and config file'
69 endef
71 ifneq ($(XENARCH),)
72 include $(srctree)/arch/xen/$(XENARCH)/Makefile
73 endif