ia64/xen-unstable

view linux-2.6-xen-sparse/arch/xen/Makefile @ 7274:a4df9003c54d

Add a bzImage target for xen kernels for consistency with
native architectures.

Signed-off-by: Rik van Riel <riel@redhat.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Oct 08 09:51:43 2005 +0100 (2005-10-08)
parents 06d84bf87159
children d92a68e6faa9
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
19 ifneq ($(KBUILD_SRC),)
20 NOSTDINC_FLAGS += -I$(srctree)/include/asm-xen
21 endif
23 # make uname return the processor arch
24 UTS_MACHINE := $(XENARCH)
26 core-y += arch/xen/kernel/
28 .PHONY: include2/asm
29 include2/asm:
30 ifneq ($(KBUILD_SRC),)
31 @echo ' SYMLINK ../include/asm-$(XENARCH) -> include2/asm'
32 $(Q)ln -fsn ../include/asm-$(XENARCH) include2/asm
33 endif
35 include/.asm-ignore: include/asm
36 @rm -f include/.asm-ignore
37 @mv include/asm include/.asm-ignore
38 @echo ' SYMLINK include/asm -> include/asm-$(XENARCH)'
39 $(Q)if [ ! -d include ]; then mkdir -p include; fi;
40 @ln -fsn $(srctree)/include/asm-$(XENARCH) include/asm
42 include/asm-xen/asm:
43 @echo ' SYMLINK $@ -> include/asm-xen/asm-$(XENARCH)'
44 @mkdir -p include/asm-xen
45 @ln -fsn $(srctree)/include/asm-xen/asm-$(XENARCH) $@
47 arch/xen/arch:
48 @rm -f $@
49 @mkdir -p arch/xen
50 @ln -fsn $(srctree)/arch/xen/$(XENARCH) $@
52 arch/$(XENARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
53 include/config/MARKER
55 include/asm-$(ARCH)/asm_offsets.h: arch/$(XENARCH)/kernel/asm-offsets.s
56 $(call filechk,gen-asm-offsets)
58 prepare: include/.asm-ignore include/asm-xen/asm \
59 arch/xen/arch include/asm-$(ARCH)/asm_offsets.h include2/asm ;
61 all: vmlinuz
63 vmlinuz: vmlinux
64 $(Q)$(MAKE) $(build)=arch/xen/boot vmlinuz
66 bzImage: vmlinuz
67 $(Q)$(MAKE) $(build)=arch/xen/boot bzImage
69 XINSTALL_NAME ?= $(KERNELRELEASE)
70 install: vmlinuz
71 install kernel_install:
72 mkdir -p $(INSTALL_PATH)/boot
73 ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(XENGUEST)$(INSTALL_SUFFIX)
74 rm -f $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
75 install -m0644 vmlinuz $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
76 install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
77 install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
78 install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
79 ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL)$(XENGUEST)$(INSTALL_SUFFIX)
80 mkdir -p $(INSTALL_PATH)/usr/include/xen/linux
81 install -m0644 $(srctree)/include/asm-xen/linux-public/*.h $(INSTALL_PATH)/usr/include/xen/linux
83 archclean:
84 @if [ -e arch/xen/arch ]; then $(MAKE) $(clean)=arch/xen/arch; fi;
85 @rm -f arch/xen/arch include/.asm-ignore include/asm-xen/asm
86 @rm -f vmlinux-stripped vmlinuz
88 define archhelp
89 echo '* vmlinuz - Compressed kernel image'
90 echo ' install - Install kernel image and config file'
91 endef
93 ifneq ($(XENARCH),)
94 include $(srctree)/arch/xen/$(XENARCH)/Makefile
95 endif