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.
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
12 # Copyright (C) 2004 by Christian Limpach
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
33 @echo ' SYMLINK $@ -> include/asm-xen/asm-$(XENARCH)'
34 @ln -fsn asm-$(XENARCH) $@
38 @ln -fsn $(XENARCH) $@
40 prepare: include/.asm-ignore include/asm-xen/asm \
46 $(Q)$(MAKE) $(build)=arch/xen/boot vmlinuz
49 $(Q)$(MAKE) $(build)=arch/xen/boot bzImage
51 XINSTALL_NAME ?= $(KERNELRELEASE)
53 mkdir -p $(INSTALL_PATH)/boot
54 install -m0644 vmlinuz $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
55 install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
56 install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
57 install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(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
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
68 echo '* vmlinuz - Compressed kernel image'
69 echo ' install - Install kernel image and config file'
73 include $(srctree)/arch/xen/$(XENARCH)/Makefile