ia64/xen-unstable

view Config.mk @ 16130:415beae13d06

PV guests don't require order-non-zero pages for shadowing, hence lift
the requirement on such being available for allocation when enabling
shadow mode, removing the potential for live migration to fail due to
fragmented memory.

Has seen little testing only so far.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Mon Oct 15 09:28:14 2007 +0100 (2007-10-15)
parents 7e7e0ea6a0bb
children 08295dc13166
line source
1 # -*- mode: Makefile; -*-
3 # A debug build of Xen and tools?
4 debug ?= n
6 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
7 -e s/ppc/powerpc/ -e s/i86pc/x86_32/)
8 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
9 XEN_OS ?= $(shell uname -s)
11 ifeq ($(XEN_TARGET_ARCH),x86_32)
12 XEN_TARGET_X86_PAE ?= y
13 endif
15 CONFIG_$(XEN_OS) := y
17 SHELL ?= /bin/sh
19 # Tools to run on system hosting the build
20 HOSTCC = gcc
21 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
22 HOSTCFLAGS += -fno-strict-aliasing
23 HOSTCFLAGS_x86_32 = -m32
24 HOSTCFLAGS_x86_64 = -m64
25 HOSTCFLAGS += $(HOSTCFLAGS_$(XEN_COMPILE_ARCH))
27 DISTDIR ?= $(XEN_ROOT)/dist
28 DESTDIR ?= /
30 include $(XEN_ROOT)/config/$(XEN_OS).mk
31 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
33 ifneq ($(EXTRA_PREFIX),)
34 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
35 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
36 endif
38 # cc-option: Check if compiler supports first option, else fall back to second.
39 # Usage: cflags-y += $(call cc-option,$(CC),-march=winchip-c6,-march=i586)
40 cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
41 /dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
43 # cc-ver: Check compiler is at least specified version. Return boolean 'y'/'n'.
44 # Usage: ifeq ($(call cc-ver,$(CC),0x030400),y)
45 cc-ver = $(shell if [ $$((`$(1) -dumpversion | awk -F. \
46 '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -ge $$(($(2))) ]; \
47 then echo y; else echo n; fi ;)
49 # cc-ver-check: Check compiler is at least specified version, else fail.
50 # Usage: $(call cc-ver-check,CC,0x030400,"Require at least gcc-3.4")
51 cc-ver-check = $(eval $(call cc-ver-check-closure,$(1),$(2),$(3)))
52 define cc-ver-check-closure
53 ifeq ($$(call cc-ver,$$($(1)),$(2)),n)
54 override $(1) = echo "*** FATAL BUILD ERROR: "$(3) >&2; exit 1;
55 cc-option := n
56 endif
57 endef
59 ifneq ($(debug),y)
60 CFLAGS += -DNDEBUG
61 else
62 CFLAGS += -g
63 endif
65 CFLAGS += -fno-strict-aliasing
67 CFLAGS += -std=gnu99
69 CFLAGS += -Wall -Wstrict-prototypes
71 # -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
72 # result of any casted expression causes a warning.
73 CFLAGS += -Wno-unused-value
75 HOSTCFLAGS += $(call cc-option,$(HOSTCC),-Wdeclaration-after-statement,)
76 CFLAGS += $(call cc-option,$(CC),-Wdeclaration-after-statement,)
78 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
79 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
81 # Enable XSM security module. Enabling XSM requires selection of an
82 # XSM security module (FLASK_ENABLE or ACM_SECURITY).
83 XSM_ENABLE ?= n
84 FLASK_ENABLE ?= n
85 ACM_SECURITY ?= n
87 # Optional components
88 XENSTAT_XENTOP ?= y
89 VTPM_TOOLS ?= n
90 LIBXENAPI_BINDINGS ?= n
91 XENFB_TOOLS ?= n
92 PYTHON_TOOLS ?= y
94 -include $(XEN_ROOT)/.config