debuggers.hg

view xen/arch/x86/Rules.mk @ 22906:700ac6445812

Now add KDB to the non-kdb tree
author Mukesh Rathor
date Thu Feb 03 15:42:41 2011 -0800 (2011-02-03)
parents 1b6cc8c6d1c7
children
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 -Wredundant-decls
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 $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
30 ifeq ($(supervisor_mode_kernel),y)
31 CFLAGS += -DCONFIG_X86_SUPERVISOR_MODE_KERNEL=1
32 endif
34 x86 := y
36 ifeq ($(TARGET_SUBARCH),x86_32)
37 x86_32 := y
38 x86_64 := n
39 endif
41 ifeq ($(TARGET_SUBARCH),x86_64)
42 CFLAGS += -mno-red-zone -fpic
43 CFLAGS += -fno-asynchronous-unwind-tables
44 # -fvisibility=hidden reduces -fpic cost, if it's available
45 ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n)
46 CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
47 endif
48 x86_32 := n
49 x86_64 := y
50 endif
52 # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
53 $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")