debuggers.hg

view linux-2.6.10-xen-sparse/arch/xen/i386/Makefile @ 3369:39a7a74fd6f9

bitkeeper revision 1.1159.1.505 (41cfdff23HZ-hiPuiX8jOHYDydBmgA)

sync w/ head.
author cl349@arcadians.cl.cam.ac.uk
date Mon Dec 27 10:12:02 2004 +0000 (2004-12-27)
parents 56a5e9ed0e89
children 96a5638d65e5 bbe8541361dd
line source
1 #
2 # i386/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) 1994 by Linus Torvalds
13 #
14 # 19990713 Artur Skawina <skawina@geocities.com>
15 # Added '-march' and '-mpreferred-stack-boundary' support
16 #
18 XENARCH := $(subst ",,$(CONFIG_XENARCH))
20 LDFLAGS := -m elf_i386
21 LDFLAGS_vmlinux :=
22 CHECK := $(CHECK) -D__i386__=1
24 CFLAGS += -pipe -msoft-float
26 # prevent gcc from keeping the stack 16 byte aligned
27 CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,)
29 align := $(cc-option-align)
30 cflags-$(CONFIG_M386) += -march=i386
31 cflags-$(CONFIG_M486) += -march=i486
32 cflags-$(CONFIG_M586) += -march=i586
33 cflags-$(CONFIG_M586TSC) += -march=i586
34 cflags-$(CONFIG_M586MMX) += $(call cc-option,-march=pentium-mmx,-march=i586)
35 cflags-$(CONFIG_M686) += -march=i686
36 cflags-$(CONFIG_MPENTIUMII) += -march=i686 $(call cc-option,-mtune=pentium2)
37 cflags-$(CONFIG_MPENTIUMIII) += -march=i686 $(call cc-option,-mtune=pentium3)
38 cflags-$(CONFIG_MPENTIUMM) += -march=i686 $(call cc-option,-mtune=pentium3)
39 cflags-$(CONFIG_MPENTIUM4) += -march=i686 $(call cc-option,-mtune=pentium4)
40 cflags-$(CONFIG_MK6) += -march=k6
41 # Please note, that patches that add -march=athlon-xp and friends are pointless.
42 # They make zero difference whatsosever to performance at this time.
43 cflags-$(CONFIG_MK7) += $(call cc-option,-march=athlon,-march=i686 $(align)-functions=4)
44 cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8,$(call cc-option,-march=athlon,-march=i686 $(align)-functions=4))
45 cflags-$(CONFIG_MCRUSOE) += -march=i686 $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
46 cflags-$(CONFIG_MEFFICEON) += -march=i686 $(call cc-option,-mtune=pentium3) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
47 cflags-$(CONFIG_MWINCHIPC6) += $(call cc-option,-march=winchip-c6,-march=i586)
48 cflags-$(CONFIG_MWINCHIP2) += $(call cc-option,-march=winchip2,-march=i586)
49 cflags-$(CONFIG_MWINCHIP3D) += $(call cc-option,-march=winchip2,-march=i586)
50 cflags-$(CONFIG_MCYRIXIII) += $(call cc-option,-march=c3,-march=i486) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
51 cflags-$(CONFIG_MVIAC3_2) += $(call cc-option,-march=c3-2,-march=i686)
53 # AMD Elan support
54 cflags-$(CONFIG_X86_ELAN) += -march=i486
56 # -mregparm=3 works ok on gcc-3.0 and later
57 #
58 GCC_VERSION := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
59 cflags-$(CONFIG_REGPARM) += $(shell if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;)
61 # Disable unit-at-a-time mode, it makes gcc use a lot more stack
62 # due to the lack of sharing of stacklots.
63 CFLAGS += $(call cc-option,-fno-unit-at-a-time,)
65 CFLAGS += $(cflags-y)
67 head-y := arch/xen/i386/kernel/head.o arch/xen/i386/kernel/init_task.o
69 libs-y += arch/i386/lib/
70 core-y += arch/xen/i386/kernel/ \
71 arch/xen/i386/mm/ \
72 arch/i386/crypto/
73 # \
74 # arch/xen/$(mcore-y)/
75 drivers-$(CONFIG_MATH_EMULATION) += arch/i386/math-emu/
76 drivers-$(CONFIG_PCI) += arch/xen/i386/pci/
77 # must be linked after kernel/
78 drivers-$(CONFIG_OPROFILE) += arch/i386/oprofile/
79 drivers-$(CONFIG_PM) += arch/i386/power/
81 # for clean
82 obj- += kernel/ mm/ pci/
83 #obj- += ../../i386/lib/ ../../i386/mm/
84 #../../i386/$(mcore-y)/
85 #obj- += ../../i386/pci/ ../../i386/oprofile/ ../../i386/power/
87 xenflags-y += -Iinclude/asm-xen/asm-i386/mach-xen \
88 -Iinclude/asm-i386/mach-default
89 CFLAGS += $(xenflags-y)
90 AFLAGS += $(xenflags-y)
92 prepare: include/asm-$(XENARCH)/asm_offsets.h
93 CLEAN_FILES += include/asm-$(XENARCH)/asm_offsets.h
95 arch/$(XENARCH)/kernel/asm-offsets.s: include/asm include/.asm-ignore \
96 include/linux/version.h include/config/MARKER
98 include/asm-$(XENARCH)/asm_offsets.h: arch/$(XENARCH)/kernel/asm-offsets.s
99 $(call filechk,gen-asm-offsets)