ia64/xen-unstable

view xen/arch/x86/Rules.mk @ 9594:133ce326febd

Clean up HDRS Makefile variable.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Apr 05 15:46:01 2006 +0100 (2006-04-05)
parents 768936b2800a
children 3e75d9b1d556
line source
1 ########################################
2 # x86-specific definitions
4 HAS_ACPI := y
6 #
7 # If you change any of these configuration options then you must
8 # 'make clean' before rebuilding.
9 #
10 pae ?= n
11 supervisor_mode_kernel ?= n
13 CFLAGS += -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
14 CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
15 CFLAGS += -I$(BASEDIR)/include
16 CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
17 CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
19 # Prevent floating-point variables from creeping into Xen.
20 CFLAGS += -msoft-float
22 # Disable PIE/SSP if GCC supports them. They can break us.
23 CFLAGS += $(call test-gcc-flag,$(CC),-nopie)
24 CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector)
25 CFLAGS += $(call test-gcc-flag,$(CC),-fno-stack-protector-all)
27 ifeq ($(TARGET_SUBARCH)$(pae),x86_32y)
28 CFLAGS += -DCONFIG_X86_PAE=1
29 endif
31 ifeq ($(supervisor_mode_kernel),y)
32 CFLAGS += -DCONFIG_X86_SUPERVISOR_MODE_KERNEL=1
33 endif
35 ifeq ($(XEN_TARGET_ARCH),x86_32)
36 LDFLAGS += -m elf_i386
37 x86_32 := y
38 x86_64 := n
39 endif
41 ifeq ($(TARGET_SUBARCH),x86_64)
42 CFLAGS += -mno-red-zone -fpic -fno-reorder-blocks
43 CFLAGS += -fno-asynchronous-unwind-tables
44 LDFLAGS += -m elf_x86_64
45 x86_32 := n
46 x86_64 := y
47 endif
49 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/*.h)
50 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/svm/*.h)
51 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/vmx/*.h)
53 # Test for at least GCC v3.2.x.
54 gcc-ver = $(shell $(CC) -dumpversion | sed -e 's/^\(.\)\.\(.\)\.\(.\)/\$(1)/')
55 ifeq ($(call gcc-ver,1),1)
56 $(error gcc-1.x.x unsupported - upgrade to at least gcc-3.2.x)
57 endif
58 ifeq ($(call gcc-ver,1),2)
59 $(error gcc-2.x.x unsupported - upgrade to at least gcc-3.2.x)
60 endif
61 ifeq ($(call gcc-ver,1),3)
62 ifeq ($(call gcc-ver,2),0)
63 $(error gcc-3.0.x unsupported - upgrade to at least gcc-3.2.x)
64 endif
65 ifeq ($(call gcc-ver,2),1)
66 $(error gcc-3.1.x unsupported - upgrade to at least gcc-3.2.x)
67 endif
68 endif