debuggers.hg

annotate linux-2.6.10-xen-sparse/arch/xen/i386/Makefile @ 3629:96a5638d65e5

bitkeeper revision 1.1159.212.58 (41fb7bc3vOj1TsfbXqfUKqcc2wjisA)

Merge viper.(none):/home/kaf24/xen-2.0-testing.bk
into viper.(none):/home/kaf24/xen-unstable.bk
author kaf24@viper.(none)
date Sat Jan 29 12:04:19 2005 +0000 (2005-01-29)
parents 39a7a74fd6f9 48cc820f2cff
children bbe8541361dd
rev   line source
cl349@3368 1 #
cl349@3368 2 # i386/Makefile
cl349@3368 3 #
cl349@3368 4 # This file is included by the global makefile so that you can add your own
cl349@3368 5 # architecture-specific flags and dependencies. Remember to do have actions
cl349@3368 6 # for "archclean" cleaning up for this architecture.
cl349@3368 7 #
cl349@3368 8 # This file is subject to the terms and conditions of the GNU General Public
cl349@3368 9 # License. See the file "COPYING" in the main directory of this archive
cl349@3368 10 # for more details.
cl349@3368 11 #
cl349@3368 12 # Copyright (C) 1994 by Linus Torvalds
cl349@3368 13 #
cl349@3368 14 # 19990713 Artur Skawina <skawina@geocities.com>
cl349@3368 15 # Added '-march' and '-mpreferred-stack-boundary' support
cl349@3368 16 #
cl349@3368 17
cl349@3368 18 XENARCH := $(subst ",,$(CONFIG_XENARCH))
cl349@3368 19
cl349@3368 20 LDFLAGS := -m elf_i386
cl349@3368 21 LDFLAGS_vmlinux :=
cl349@3368 22 CHECK := $(CHECK) -D__i386__=1
cl349@3368 23
kaf24@3628 24 CFLAGS += -m32
kaf24@3628 25 AFLAGS += -m32
kaf24@3628 26
cl349@3368 27 CFLAGS += -pipe -msoft-float
cl349@3368 28
cl349@3368 29 # prevent gcc from keeping the stack 16 byte aligned
cl349@3368 30 CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,)
cl349@3368 31
cl349@3368 32 align := $(cc-option-align)
cl349@3368 33 cflags-$(CONFIG_M386) += -march=i386
cl349@3368 34 cflags-$(CONFIG_M486) += -march=i486
cl349@3368 35 cflags-$(CONFIG_M586) += -march=i586
cl349@3368 36 cflags-$(CONFIG_M586TSC) += -march=i586
cl349@3368 37 cflags-$(CONFIG_M586MMX) += $(call cc-option,-march=pentium-mmx,-march=i586)
cl349@3368 38 cflags-$(CONFIG_M686) += -march=i686
cl349@3368 39 cflags-$(CONFIG_MPENTIUMII) += -march=i686 $(call cc-option,-mtune=pentium2)
cl349@3368 40 cflags-$(CONFIG_MPENTIUMIII) += -march=i686 $(call cc-option,-mtune=pentium3)
cl349@3368 41 cflags-$(CONFIG_MPENTIUMM) += -march=i686 $(call cc-option,-mtune=pentium3)
cl349@3368 42 cflags-$(CONFIG_MPENTIUM4) += -march=i686 $(call cc-option,-mtune=pentium4)
cl349@3368 43 cflags-$(CONFIG_MK6) += -march=k6
cl349@3368 44 # Please note, that patches that add -march=athlon-xp and friends are pointless.
cl349@3368 45 # They make zero difference whatsosever to performance at this time.
cl349@3368 46 cflags-$(CONFIG_MK7) += $(call cc-option,-march=athlon,-march=i686 $(align)-functions=4)
cl349@3368 47 cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8,$(call cc-option,-march=athlon,-march=i686 $(align)-functions=4))
cl349@3368 48 cflags-$(CONFIG_MCRUSOE) += -march=i686 $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
cl349@3368 49 cflags-$(CONFIG_MEFFICEON) += -march=i686 $(call cc-option,-mtune=pentium3) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
cl349@3368 50 cflags-$(CONFIG_MWINCHIPC6) += $(call cc-option,-march=winchip-c6,-march=i586)
cl349@3368 51 cflags-$(CONFIG_MWINCHIP2) += $(call cc-option,-march=winchip2,-march=i586)
cl349@3368 52 cflags-$(CONFIG_MWINCHIP3D) += $(call cc-option,-march=winchip2,-march=i586)
cl349@3368 53 cflags-$(CONFIG_MCYRIXIII) += $(call cc-option,-march=c3,-march=i486) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
cl349@3368 54 cflags-$(CONFIG_MVIAC3_2) += $(call cc-option,-march=c3-2,-march=i686)
cl349@3368 55
cl349@3368 56 # AMD Elan support
cl349@3368 57 cflags-$(CONFIG_X86_ELAN) += -march=i486
cl349@3368 58
cl349@3368 59 # -mregparm=3 works ok on gcc-3.0 and later
cl349@3368 60 #
cl349@3368 61 GCC_VERSION := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
cl349@3368 62 cflags-$(CONFIG_REGPARM) += $(shell if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;)
cl349@3368 63
cl349@3368 64 # Disable unit-at-a-time mode, it makes gcc use a lot more stack
cl349@3368 65 # due to the lack of sharing of stacklots.
cl349@3368 66 CFLAGS += $(call cc-option,-fno-unit-at-a-time,)
cl349@3368 67
cl349@3368 68 CFLAGS += $(cflags-y)
cl349@3368 69
cl349@3368 70 head-y := arch/xen/i386/kernel/head.o arch/xen/i386/kernel/init_task.o
cl349@3368 71
cl349@3368 72 libs-y += arch/i386/lib/
cl349@3368 73 core-y += arch/xen/i386/kernel/ \
cl349@3368 74 arch/xen/i386/mm/ \
cl349@3368 75 arch/i386/crypto/
cl349@3368 76 # \
cl349@3368 77 # arch/xen/$(mcore-y)/
cl349@3368 78 drivers-$(CONFIG_MATH_EMULATION) += arch/i386/math-emu/
cl349@3368 79 drivers-$(CONFIG_PCI) += arch/xen/i386/pci/
cl349@3368 80 # must be linked after kernel/
cl349@3368 81 drivers-$(CONFIG_OPROFILE) += arch/i386/oprofile/
cl349@3368 82 drivers-$(CONFIG_PM) += arch/i386/power/
cl349@3368 83
cl349@3368 84 # for clean
cl349@3368 85 obj- += kernel/ mm/ pci/
cl349@3368 86 #obj- += ../../i386/lib/ ../../i386/mm/
cl349@3368 87 #../../i386/$(mcore-y)/
cl349@3368 88 #obj- += ../../i386/pci/ ../../i386/oprofile/ ../../i386/power/
cl349@3368 89
cl349@3368 90 xenflags-y += -Iinclude/asm-xen/asm-i386/mach-xen \
cl349@3368 91 -Iinclude/asm-i386/mach-default
cl349@3368 92 CFLAGS += $(xenflags-y)
cl349@3368 93 AFLAGS += $(xenflags-y)
cl349@3368 94
cl349@3368 95 prepare: include/asm-$(XENARCH)/asm_offsets.h
cl349@3368 96 CLEAN_FILES += include/asm-$(XENARCH)/asm_offsets.h
cl349@3368 97
cl349@3368 98 arch/$(XENARCH)/kernel/asm-offsets.s: include/asm include/.asm-ignore \
cl349@3368 99 include/linux/version.h include/config/MARKER
cl349@3368 100
cl349@3368 101 include/asm-$(XENARCH)/asm_offsets.h: arch/$(XENARCH)/kernel/asm-offsets.s
cl349@3368 102 $(call filechk,gen-asm-offsets)