ia64/xen-unstable

view linux-2.6-xen-sparse/arch/xen/x86_64/Makefile @ 6538:84ee014ebd41

Merge xen-vtx-unstable.hg
author adsharma@los-vmm.sc.intel.com
date Wed Aug 17 12:34:38 2005 -0800 (2005-08-17)
parents 23979fb12c49 60a8a5ca4291
children 99914b54f7bf
line source
1 #
2 # x86_64/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 # 20000913 Pavel Machek <pavel@suse.cz>
18 # Converted for x86_64 architecture
19 # 20010105 Andi Kleen, add IA32 compiler.
20 # ....and later removed it again....
21 # 20050205 Jun Nakajima <jun.nakajima@intel.com>
22 # Modified for Xen
23 #
24 # $Id: Makefile,v 1.31 2002/03/22 15:56:07 ak Exp $
26 #
27 # early bootup linking needs 32bit. You can either use real 32bit tools
28 # here or 64bit tools in 32bit mode.
29 #
30 XENARCH := $(subst ",,$(CONFIG_XENARCH))
32 IA32_CC := $(CC) $(CPPFLAGS) -m32 -O2 -fomit-frame-pointer
33 IA32_LD := $(LD) -m elf_i386
34 IA32_AS := $(CC) $(AFLAGS) -m32 -Wa,--32 -traditional -c
35 IA32_OBJCOPY := $(CROSS_COMPILE)objcopy
36 IA32_CPP := $(CROSS_COMPILE)gcc -m32 -E
37 export IA32_CC IA32_LD IA32_AS IA32_OBJCOPY IA32_CPP
40 LDFLAGS := -m elf_x86_64
41 #LDFLAGS_vmlinux := -e stext
43 CHECKFLAGS += -D__x86_64__ -m64
45 cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8)
46 cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona)
47 CFLAGS += $(cflags-y)
49 CFLAGS += -mno-red-zone
50 CFLAGS += -mcmodel=kernel
51 CFLAGS += -pipe
52 # this makes reading assembly source easier, but produces worse code
53 # actually it makes the kernel smaller too.
54 CFLAGS += -fno-reorder-blocks
55 CFLAGS += -Wno-sign-compare
56 ifneq ($(CONFIG_DEBUG_INFO),y)
57 CFLAGS += -fno-asynchronous-unwind-tables
58 # -fweb shrinks the kernel a bit, but the difference is very small
59 # it also messes up debugging, so don't use it for now.
60 #CFLAGS += $(call cc-option,-fweb)
61 endif
62 # -funit-at-a-time shrinks the kernel .text considerably
63 # unfortunately it makes reading oopses harder.
64 CFLAGS += $(call cc-option,-funit-at-a-time,)
66 head-y := arch/xen/x86_64/kernel/head.o arch/xen/x86_64/kernel/head64.o arch/xen/x86_64/kernel/init_task.o
68 libs-y += arch/x86_64/lib/
69 core-y += arch/xen/x86_64/kernel/ arch/xen/x86_64/mm/
70 core-$(CONFIG_IA32_EMULATION) += arch/xen/x86_64/ia32/
71 drivers-$(CONFIG_PCI) += arch/xen/x86_64/pci/
72 drivers-$(CONFIG_OPROFILE) += arch/x86_64/oprofile/
74 # for clean
75 obj- += kernel/ mm/ pci/
77 xenflags-y += -Iinclude/asm-xen/asm-x86_64/mach-xen
79 CFLAGS += $(xenflags-y)
80 AFLAGS += $(xenflags-y)
82 prepare: include/asm-$(XENARCH)/asm_offsets.h
83 CLEAN_FILES += include/asm-$(XENARCH)/asm_offsets.h
85 arch/$(XENARCH)/kernel/asm-offsets.s: include/asm include/.asm-ignore \
86 include/linux/version.h include/config/MARKER
88 include/asm-$(XENARCH)/offset.h: arch/$(XENARCH)/kernel/asm-offsets.s
89 $(call filechk,gen-asm-offsets)
91 include/asm-$(XENARCH)/asm_offsets.h: include/asm-$(XENARCH)/offset.h
92 ln -fsn offset.h include/asm-$(XENARCH)/asm_offsets.h
93 ln -fsn offset.h include/asm-$(XENARCH)/asm_offset.h