ia64/xen-unstable

view xen/arch/x86/Rules.mk @ 18806:ed8524f4a044

x86: Re-initialise HPET on resume from S3

Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Nov 18 15:55:14 2008 +0000 (2008-11-18)
parents 8bd776540ab3
children 275abe1c5d24
line source
1 ########################################
2 # x86-specific definitions
4 HAS_ACPI := y
5 HAS_VGA := y
6 xenoprof := y
8 #
9 # If you change any of these configuration options then you must
10 # 'make clean' before rebuilding.
11 #
12 supervisor_mode_kernel ?= n
14 # Solaris grabs stdarg.h and friends from the system include directory.
15 ifneq ($(XEN_OS),SunOS)
16 CFLAGS += -nostdinc
17 endif
19 CFLAGS += -fno-builtin -fno-common
20 CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
21 CFLAGS += -I$(BASEDIR)/include
22 CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
23 CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
25 # Prevent floating-point variables from creeping into Xen.
26 CFLAGS += -msoft-float
28 # Disable PIE/SSP if GCC supports them. They can break us.
29 CFLAGS += $(call cc-option,$(CC),-nopie,)
30 CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
31 CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
33 ifeq ($(supervisor_mode_kernel),y)
34 CFLAGS += -DCONFIG_X86_SUPERVISOR_MODE_KERNEL=1
35 endif
37 x86 := y
39 ifeq ($(TARGET_SUBARCH),x86_32)
40 x86_32 := y
41 x86_64 := n
42 endif
44 ifeq ($(TARGET_SUBARCH),x86_64)
45 CFLAGS += -mno-red-zone -fpic -fno-reorder-blocks
46 CFLAGS += -fno-asynchronous-unwind-tables
47 # -fvisibility=hidden reduces -fpic cost, if it's available
48 CFLAGS += $(call cc-option,$(CC),-fvisibility=hidden,)
49 CFLAGS := $(subst -fvisibility=hidden,-DGCC_HAS_VISIBILITY_ATTRIBUTE,$(CFLAGS))
50 x86_32 := n
51 x86_64 := y
52 endif
54 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/*.h)
55 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/svm/*.h)
56 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/vmx/*.h)
57 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/mach-*/*.h)
59 # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
60 $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")