ia64/xen-unstable

view Config.mk @ 14472:4e380c769774

coredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Mon Mar 19 16:55:21 2007 +0000 (2007-03-19)
parents 0e0fdba35503
children 7c2e8bbe9ef8
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
23 DISTDIR ?= $(XEN_ROOT)/dist
24 DESTDIR ?= /
26 include $(XEN_ROOT)/config/$(XEN_OS).mk
27 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
29 ifneq ($(EXTRA_PREFIX),)
30 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
31 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
32 endif
34 # cc-option
35 # Usage: cflags-y += $(call cc-option,$(CC),-march=winchip-c6,-march=i586)
36 cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
37 /dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
39 # cc-ver
40 # Usage: ifeq ($(call cc-ver,$(CC),0x030400),y)
41 cc-ver = $(shell if [ $$((`$(1) -dumpversion | awk -F. \
42 '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -ge $$(($(2))) ]; \
43 then echo y; else echo n; fi ;)
45 ifneq ($(debug),y)
46 CFLAGS += -DNDEBUG
47 else
48 CFLAGS += -g
49 endif
51 CFLAGS += -std=gnu99
53 CFLAGS += -Wall -Wstrict-prototypes
55 # -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
56 # result of any casted expression causes a warning.
57 CFLAGS += -Wno-unused-value
59 HOSTCFLAGS += $(call cc-option,$(HOSTCC),-Wdeclaration-after-statement,)
60 CFLAGS += $(call cc-option,$(CC),-Wdeclaration-after-statement,)
62 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
63 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
65 # If ACM_SECURITY = y, then the access control module is compiled
66 # into Xen and the policy type can be set by the boot policy file
67 # y - Build the Xen ACM framework
68 # n - Do not build the Xen ACM framework
69 ACM_SECURITY ?= n
71 # If ACM_SECURITY = y and no boot policy file is installed,
72 # then the ACM defaults to the security policy set by
73 # ACM_DEFAULT_SECURITY_POLICY
74 # Supported models are:
75 # ACM_NULL_POLICY
76 # ACM_CHINESE_WALL_POLICY
77 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
78 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
79 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
81 # Optional components
82 XENSTAT_XENTOP ?= y
83 VTPM_TOOLS ?= n
84 LIBXENAPI_BINDINGS ?= n
85 XENFB_TOOLS ?= n
86 PYTHON_TOOLS ?= y
88 -include $(XEN_ROOT)/.config