ia64/xen-unstable

view linux-2.4.29-xen-sparse/arch/xen/Makefile @ 4146:f2d61710e4d9

bitkeeper revision 1.1236.25.24 (42366e9aQ71LQ8uCB-Y1IwVNqx5eqA)

Merge djm@kirby.fc.hp.com://home/djm/src/xen/xeno-unstable-ia64.bk
into sportsman.spdomain:/home/djm/xeno-unstable-ia64.bk
author djm@sportsman.spdomain
date Tue Mar 15 05:11:54 2005 +0000 (2005-03-15)
parents 0a4b76b6b5a0
children 0651c17c1f17
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" and "archdep" for cleaning up and making dependencies for
7 # this architecture
8 #
9 # This file is subject to the terms and conditions of the GNU General Public
10 # License. See the file "COPYING" in the main directory of this archive
11 # for more details.
12 #
13 # Copyright (C) 1994 by Linus Torvalds
14 #
15 # 19990713 Artur Skawina <skawina@geocities.com>
16 # Added '-march' and '-mpreferred-stack-boundary' support
17 #
19 # If no .config file exists then use the appropriate defconfig-* file
20 ifneq (.config,$(wildcard .config))
21 DUMMYX:=$(shell cp $(TOPDIR)/arch/xen/defconfig$(EXTRAVERSION) $(TOPDIR)/.config)
22 -include $(TOPDIR)/.config
23 endif
25 LD=$(CROSS_COMPILE)ld -m elf_i386
26 OBJCOPY=$(CROSS_COMPILE)objcopy -R .note -R .comment -S
27 LDFLAGS=-e stext
28 LINKFLAGS =-T $(TOPDIR)/arch/xen/vmlinux.lds $(LDFLAGS)
30 CFLAGS += -pipe
32 check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi)
34 # prevent gcc from keeping the stack 16 byte aligned
35 CFLAGS += $(call check_gcc,-mpreferred-stack-boundary=2,)
37 ifdef CONFIG_M686
38 CFLAGS += -march=i686
39 endif
41 ifdef CONFIG_MPENTIUMIII
42 CFLAGS += -march=i686
43 endif
45 ifdef CONFIG_MPENTIUM4
46 CFLAGS += -march=i686
47 endif
49 ifdef CONFIG_MK7
50 CFLAGS += $(call check_gcc,-march=athlon,-march=i686 -malign-functions=4)
51 endif
53 # Disable unit-at-a-time mode, it makes gcc use a lot more stack
54 # due to the lack of sharing of stacklots.
55 CFLAGS += $(call check_gcc,-fno-unit-at-a-time,)
57 HEAD := arch/xen/kernel/head.o arch/xen/kernel/init_task.o
59 SUBDIRS += arch/xen/kernel arch/xen/mm arch/xen/lib
60 SUBDIRS += arch/xen/drivers/console
61 SUBDIRS += arch/xen/drivers/evtchn
62 SUBDIRS += arch/xen/drivers/blkif
63 SUBDIRS += arch/xen/drivers/netif
64 SUBDIRS += arch/xen/drivers/usbif
65 SUBDIRS += arch/xen/drivers/balloon
66 ifdef CONFIG_XEN_PRIVILEGED_GUEST
67 SUBDIRS += arch/xen/drivers/dom0
68 endif
70 CORE_FILES += arch/xen/kernel/kernel.o arch/xen/mm/mm.o
71 CORE_FILES += arch/xen/drivers/evtchn/drv.o
72 CORE_FILES += arch/xen/drivers/console/drv.o
73 DRIVERS += arch/xen/drivers/blkif/drv.o
74 DRIVERS += arch/xen/drivers/netif/drv.o
75 DRIVERS += arch/xen/drivers/usbif/drv.o
76 ifdef CONFIG_XEN_PRIVILEGED_GUEST
77 CORE_FILES += arch/xen/drivers/dom0/drv.o
78 endif
79 CORE_FILES += arch/xen/drivers/balloon/drv.o
80 LIBS := $(TOPDIR)/arch/xen/lib/lib.a $(LIBS) $(TOPDIR)/arch/xen/lib/lib.a
82 arch/xen/kernel: dummy
83 $(MAKE) linuxsubdirs SUBDIRS=arch/xen/kernel
85 arch/xen/mm: dummy
86 $(MAKE) linuxsubdirs SUBDIRS=arch/xen/mm
88 arch/xen/drivers/console: dummy
89 $(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/console
91 arch/xen/drivers/network: dummy
92 $(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/network
94 arch/xen/drivers/block: dummy
95 $(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/block
97 arch/xen/drivers/dom0: dummy
98 $(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/dom0
100 arch/xen/drivers/balloon: dummy
101 $(MAKE) linuxsubdirs SUBDIRS=arch/xen/drivers/balloon
103 MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
105 vmlinux: arch/xen/vmlinux.lds
107 FORCE: ;
109 .PHONY: bzImage compressed clean archclean archmrproper archdep
112 bzImage: vmlinux
113 @$(MAKEBOOT) bzImage
115 INSTALL_NAME ?= $(KERNELRELEASE)
116 install: bzImage
117 mkdir -p $(INSTALL_PATH)/boot
118 install -m0644 arch/$(ARCH)/boot/bzImage $(INSTALL_PATH)/boot/vmlinuz-$(INSTALL_NAME)$(INSTALL_SUFFIX)
119 install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(INSTALL_NAME)$(INSTALL_SUFFIX)
120 install -m0664 .config $(INSTALL_PATH)/boot/config-$(INSTALL_NAME)$(INSTALL_SUFFIX)
121 install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(INSTALL_NAME)$(INSTALL_SUFFIX)
123 %_config: arch/xen/defconfig-%
124 rm -f .config arch/xen/defconfig
125 cp -f arch/xen/defconfig-$(@:_config=) arch/xen/defconfig
126 cp -f arch/xen/defconfig-$(@:_config=) .config
129 archclean:
130 @$(MAKEBOOT) clean
132 archmrproper:
133 rm -f include/asm-xen/xen-public/arch
135 archdep:
136 @$(MAKEBOOT) dep