direct-io.hg

view Config.mk @ 11817:71e2a165aa7f

[HVM] Move RTC emulation into the hypervisor.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
author kfraser@localhost.localdomain
date Wed Oct 18 18:35:21 2006 +0100 (2006-10-18)
parents 21f8c507da29
children b2e71d574045
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_TARGET_X86_PAE ?= n
10 XEN_OS ?= $(shell uname -s)
12 CONFIG_$(XEN_OS) := y
14 # Tools to run on system hosting the build
15 HOSTCC = gcc
16 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
18 DISTDIR ?= $(XEN_ROOT)/dist
19 DESTDIR ?= /
21 include $(XEN_ROOT)/config/$(XEN_OS).mk
22 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
24 ifneq ($(EXTRA_PREFIX),)
25 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
26 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
27 endif
29 test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep " $(2) " >/dev/null 2>&1 && echo $(2))
31 ifneq ($(debug),y)
32 CFLAGS += -DNDEBUG
33 else
34 CFLAGS += -g
35 endif
37 CFLAGS += -std=gnu99
39 CFLAGS += -Wall -Wstrict-prototypes
41 # -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
42 # result of any casted expression causes a warning.
43 CFLAGS += -Wno-unused-value
45 HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
46 CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
48 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
49 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
51 # If ACM_SECURITY = y, then the access control module is compiled
52 # into Xen and the policy type can be set by the boot policy file
53 # y - Build the Xen ACM framework
54 # n - Do not build the Xen ACM framework
55 ACM_SECURITY ?= n
57 # If ACM_SECURITY = y and no boot policy file is installed,
58 # then the ACM defaults to the security policy set by
59 # ACM_DEFAULT_SECURITY_POLICY
60 # Supported models are:
61 # ACM_NULL_POLICY
62 # ACM_CHINESE_WALL_POLICY
63 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
64 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
65 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
67 # Optional components
68 XENSTAT_XENTOP ?= y
70 VTPM_TOOLS ?= n
72 -include $(XEN_ROOT)/.config