direct-io.hg

view Config.mk @ 8343:1dc393b65019

Change the way domain configuration is handled in xm-test.
This will simplify the way we differentiate between HV and PV domains,
as well as make it easier to run normal tests in either HV or PV mode.

This patch has been modified by Ewan Mellor, to match his recent changes to
remove the nics= configuration option.

Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
author emellor@leeni.uk.xensource.com
date Tue Dec 13 16:26:24 2005 +0000 (2005-12-13)
parents b6ebabe4658a
children d48b19263e46 5fc47ed682d6
line source
1 # -*- mode: Makefile; -*-
3 # Currently supported architectures: x86_32, x86_64
4 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
5 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
6 XEN_TARGET_X86_PAE ?= n
8 # Tools to run on system hosting the build
9 HOSTCC = gcc
10 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
12 AS = $(CROSS_COMPILE)as
13 LD = $(CROSS_COMPILE)ld
14 CC = $(CROSS_COMPILE)gcc
15 CPP = $(CROSS_COMPILE)gcc -E
16 AR = $(CROSS_COMPILE)ar
17 RANLIB = $(CROSS_COMPILE)ranlib
18 NM = $(CROSS_COMPILE)nm
19 STRIP = $(CROSS_COMPILE)strip
20 OBJCOPY = $(CROSS_COMPILE)objcopy
21 OBJDUMP = $(CROSS_COMPILE)objdump
23 DISTDIR ?= $(XEN_ROOT)/dist
25 INSTALL = install
26 INSTALL_DIR = $(INSTALL) -d -m0755
27 INSTALL_DATA = $(INSTALL) -m0644
28 INSTALL_PROG = $(INSTALL) -m0755
30 ifeq ($(XEN_TARGET_ARCH),x86_64)
31 LIBDIR = lib64
32 else
33 LIBDIR = lib
34 endif
36 ifneq ($(EXTRA_PREFIX),)
37 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
38 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
39 endif
41 test-gcc-flag = $(shell $(CC) -v --help 2>&1 | grep -q " $(1) " && echo $(1))
43 HOSTCFLAGS += $(call test-gcc-flag,-Wdeclaration-after-statement)
44 CFLAGS += $(call test-gcc-flag,-Wdeclaration-after-statement)
46 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
47 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
49 # Choose the best mirror to download linux kernel
50 KERNEL_REPO = http://www.kernel.org
52 # If ACM_SECURITY = y, then the access control module is compiled
53 # into Xen and the policy type can be set by the boot policy file
54 # y - Build the Xen ACM framework
55 # n - Do not build the Xen ACM framework
56 ACM_SECURITY ?= n
58 # If ACM_SECURITY = y and no boot policy file is installed,
59 # then the ACM defaults to the security policy set by
60 # ACM_DEFAULT_SECURITY_POLICY
61 # Supported models are:
62 # ACM_NULL_POLICY
63 # ACM_CHINESE_WALL_POLICY
64 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
65 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
66 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
68 # Optional components
69 XENSTAT_XENTOP ?= y
71 VTPM_TOOLS ?= n
73 -include $(XEN_ROOT)/.config