debuggers.hg

annotate xen/arch/x86/Rules.mk @ 3659:bf2c38625b39

bitkeeper revision 1.1159.212.72 (42011b79Y7C9nEKFZ5pdQXwp8jC9hw)

More x86/64. Now boot secondary CPUs, but I seem to have problems
executing IRET, so interrupts are fatal.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@scramble.cl.cam.ac.uk
date Wed Feb 02 18:27:05 2005 +0000 (2005-02-02)
parents c384de5ff937
children bbe8541361dd
rev   line source
kaf24@1490 1 ########################################
kaf24@1490 2 # x86-specific definitions
kaf24@1490 3
kaf24@1490 4 CC := gcc
kaf24@1490 5 LD := ld
kaf24@1490 6
mafetter@2807 7 CFLAGS := -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
kaf24@3659 8 CFLAGS += -iwithprefix include -Wall -Werror -Wno-format -pipe
kaf24@1628 9 CFLAGS += -I$(BASEDIR)/include -Wno-pointer-arith -Wredundant-decls
kaf24@1490 10
mafetter@2807 11 ifeq ($(optimize),y)
mafetter@2807 12 CFLAGS += -O3 -fomit-frame-pointer
mafetter@2807 13 else
mafetter@2807 14 x86_32/usercopy.o: CFLAGS += -O1
mafetter@2807 15 endif
mafetter@2807 16
kaf24@2218 17 # Prevent floating-point variables from creeping into Xen.
kaf24@2218 18 CFLAGS += -msoft-float
kaf24@2218 19
kaf24@3013 20 # Disable PIE/SSP if GCC supports them. They can break us.
kaf24@3013 21 CFLAGS += $(call test-gcc-flag,-nopie)
kaf24@3013 22 CFLAGS += $(call test-gcc-flag,-fno-stack-protector)
kaf24@3013 23 CFLAGS += $(call test-gcc-flag,-fno-stack-protector-all)
kaf24@3013 24
kaf24@1490 25 ifeq ($(TARGET_SUBARCH),x86_32)
kaf24@1750 26 CFLAGS += -m32 -march=i686
kaf24@3548 27 LDFLAGS := -m elf_i386
kaf24@1490 28 endif
kaf24@1490 29
kaf24@1490 30 ifeq ($(TARGET_SUBARCH),x86_64)
kaf24@1750 31 CFLAGS += -m64 -mno-red-zone -fpic -fno-reorder-blocks
kaf24@1750 32 CFLAGS += -fno-asynchronous-unwind-tables
kaf24@3548 33 LDFLAGS := -m elf_x86_64
kaf24@1490 34 endif
kaf24@3353 35
kaf24@3353 36 # Test for at least GCC v3.2.x.
kaf24@3353 37 gcc-ver = $(shell $(CC) -dumpversion | sed -e 's/^\(.\)\.\(.\)\.\(.\)/\$(1)/')
kaf24@3353 38 ifeq ($(call gcc-ver,1),1)
kaf24@3353 39 $(error gcc-1.x.x unsupported - upgrade to at least gcc-3.2.x)
kaf24@3353 40 endif
kaf24@3353 41 ifeq ($(call gcc-ver,1),2)
kaf24@3353 42 $(error gcc-2.x.x unsupported - upgrade to at least gcc-3.2.x)
kaf24@3353 43 endif
kaf24@3353 44 ifeq ($(call gcc-ver,1),3)
kaf24@3353 45 ifeq ($(call gcc-ver,2),0)
kaf24@3353 46 $(error gcc-3.0.x unsupported - upgrade to at least gcc-3.2.x)
kaf24@3353 47 endif
kaf24@3353 48 ifeq ($(call gcc-ver,2),1)
kaf24@3353 49 $(error gcc-3.1.x unsupported - upgrade to at least gcc-3.2.x)
kaf24@3353 50 endif
kaf24@3353 51 endif