ia64/xen-unstable

view Config.mk @ 10710:800261a88275

[XEND] Prevent uuid double use.

A check_uuid() in this patch checks on uuid of the
VM configuration definition. If specified uuid is
already used with the others VM, the xm create command
does not create the VM. The xm create command error occurs.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Mon Jul 10 15:10:00 2006 +0100 (2006-07-10)
parents 414dabe82a31
children 35a29c8f0bab
line source
1 # -*- mode: Makefile; -*-
3 # A debug build of Xen and tools?
4 debug ?= n
6 # Currently supported architectures: x86_32, x86_64
7 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
8 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
9 XEN_TARGET_X86_PAE ?= n
11 # Tools to run on system hosting the build
12 HOSTCC = gcc
13 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
15 AS = $(CROSS_COMPILE)as
16 LD = $(CROSS_COMPILE)ld
17 CC = $(CROSS_COMPILE)gcc
18 CPP = $(CROSS_COMPILE)gcc -E
19 AR = $(CROSS_COMPILE)ar
20 RANLIB = $(CROSS_COMPILE)ranlib
21 NM = $(CROSS_COMPILE)nm
22 STRIP = $(CROSS_COMPILE)strip
23 OBJCOPY = $(CROSS_COMPILE)objcopy
24 OBJDUMP = $(CROSS_COMPILE)objdump
26 DISTDIR ?= $(XEN_ROOT)/dist
27 DESTDIR ?= /
29 INSTALL = install
30 INSTALL_DIR = $(INSTALL) -d -m0755
31 INSTALL_DATA = $(INSTALL) -m0644
32 INSTALL_PROG = $(INSTALL) -m0755
34 ifneq ($(debug),y)
35 # Optimisation flags are overridable
36 CFLAGS ?= -O2 -fomit-frame-pointer
37 CFLAGS += -DNDEBUG
38 else
39 CFLAGS += -g
40 endif
42 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
44 ifneq ($(EXTRA_PREFIX),)
45 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
46 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
47 endif
49 test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
51 CFLAGS += -Wall -Wstrict-prototypes
53 HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
54 CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
56 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
57 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
59 # Choose the best mirror to download linux kernel
60 KERNEL_REPO = http://www.kernel.org
62 # If ACM_SECURITY = y, then the access control module is compiled
63 # into Xen and the policy type can be set by the boot policy file
64 # y - Build the Xen ACM framework
65 # n - Do not build the Xen ACM framework
66 ACM_SECURITY ?= n
68 # If ACM_SECURITY = y and no boot policy file is installed,
69 # then the ACM defaults to the security policy set by
70 # ACM_DEFAULT_SECURITY_POLICY
71 # Supported models are:
72 # ACM_NULL_POLICY
73 # ACM_CHINESE_WALL_POLICY
74 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
75 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
76 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
78 # Optional components
79 XENSTAT_XENTOP ?= y
81 VTPM_TOOLS ?= n
83 -include $(XEN_ROOT)/.config