direct-io.hg

annotate Config.mk @ 15456:eb2b7ce05f97

hvm vlapic: Fix one_shot argument passed to create_periodic_time().
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
author kfraser@localhost.localdomain
date Tue Jul 03 11:47:08 2007 +0100 (2007-07-03)
parents d5d6d2a8d10c
children 8528da5be577
rev   line source
kaf24@4252 1 # -*- mode: Makefile; -*-
cl349@4443 2
kaf24@9189 3 # A debug build of Xen and tools?
kaf24@9189 4 debug ?= n
kaf24@9189 5
kaf24@10683 6 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
kfraser@11767 7 -e s/ppc/powerpc/ -e s/i86pc/x86_32/)
kaf24@4252 8 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
kfraser@11767 9 XEN_OS ?= $(shell uname -s)
kaf24@4252 10
kfraser@13493 11 ifeq ($(XEN_TARGET_ARCH),x86_32)
kfraser@13493 12 XEN_TARGET_X86_PAE ?= y
kfraser@13493 13 endif
kfraser@13493 14
kfraser@11774 15 CONFIG_$(XEN_OS) := y
kfraser@11774 16
ack@13255 17 SHELL ?= /bin/sh
ack@13255 18
kaf24@4444 19 # Tools to run on system hosting the build
kaf24@4252 20 HOSTCC = gcc
kaf24@6041 21 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
kaf24@4252 22
kaf24@7216 23 DISTDIR ?= $(XEN_ROOT)/dist
kaf24@9599 24 DESTDIR ?= /
kaf24@7207 25
kfraser@11767 26 include $(XEN_ROOT)/config/$(XEN_OS).mk
kfraser@10197 27 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
katzj@4544 28
kaf24@4252 29 ifneq ($(EXTRA_PREFIX),)
kaf24@4252 30 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
katzj@4544 31 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
kaf24@4252 32 endif
kaf24@4252 33
kfraser@14581 34 # cc-option: Check if compiler supports first option, else fall back to second.
kfraser@11820 35 # Usage: cflags-y += $(call cc-option,$(CC),-march=winchip-c6,-march=i586)
kfraser@11820 36 cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
kfraser@11820 37 /dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
kaf24@7975 38
kfraser@14581 39 # cc-ver: Check compiler is at least specified version. Return boolean 'y'/'n'.
keir@14420 40 # Usage: ifeq ($(call cc-ver,$(CC),0x030400),y)
keir@14420 41 cc-ver = $(shell if [ $$((`$(1) -dumpversion | awk -F. \
keir@14420 42 '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -ge $$(($(2))) ]; \
keir@14420 43 then echo y; else echo n; fi ;)
keir@14420 44
kfraser@14581 45 # cc-ver-check: Check compiler is at least specified version, else fail.
kfraser@14581 46 # Usage: $(call cc-ver-check,CC,0x030400,"Require at least gcc-3.4")
kfraser@14581 47 cc-ver-check = $(eval $(call cc-ver-check-closure,$(1),$(2),$(3)))
kfraser@14581 48 define cc-ver-check-closure
kfraser@14581 49 ifeq ($$(call cc-ver,$$($(1)),$(2)),n)
kfraser@14581 50 override $(1) = echo "*** FATAL BUILD ERROR: "$(3) >&2; exit 1;
kfraser@14581 51 cc-option := n
kfraser@14581 52 endif
kfraser@14581 53 endef
kfraser@14581 54
kfraser@11767 55 ifneq ($(debug),y)
kfraser@11767 56 CFLAGS += -DNDEBUG
kfraser@11767 57 else
kfraser@11767 58 CFLAGS += -g
kfraser@11767 59 endif
kfraser@11767 60
kfraser@11799 61 CFLAGS += -std=gnu99
kfraser@11799 62
kaf24@9200 63 CFLAGS += -Wall -Wstrict-prototypes
kaf24@9188 64
kfraser@11762 65 # -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
kfraser@11762 66 # result of any casted expression causes a warning.
kfraser@11762 67 CFLAGS += -Wno-unused-value
kfraser@11762 68
kfraser@11820 69 HOSTCFLAGS += $(call cc-option,$(HOSTCC),-Wdeclaration-after-statement,)
kfraser@11820 70 CFLAGS += $(call cc-option,$(CC),-Wdeclaration-after-statement,)
kaf24@7973 71
kaf24@4252 72 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
kaf24@4252 73 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
iap10@5507 74
kaf24@7900 75 # If ACM_SECURITY = y, then the access control module is compiled
kaf24@7900 76 # into Xen and the policy type can be set by the boot policy file
kaf24@7900 77 # y - Build the Xen ACM framework
kaf24@7900 78 # n - Do not build the Xen ACM framework
kaf24@7900 79 ACM_SECURITY ?= n
kaf24@7900 80
kaf24@7900 81 # If ACM_SECURITY = y and no boot policy file is installed,
kaf24@7900 82 # then the ACM defaults to the security policy set by
kaf24@7900 83 # ACM_DEFAULT_SECURITY_POLICY
kaf24@6254 84 # Supported models are:
kaf24@7900 85 # ACM_NULL_POLICY
kaf24@6254 86 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
kaf24@7900 87 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
cl349@6324 88
josht@6320 89 # Optional components
kfraser@14271 90 XENSTAT_XENTOP ?= y
kfraser@14271 91 VTPM_TOOLS ?= n
jfehlig@12596 92 LIBXENAPI_BINDINGS ?= n
kfraser@14271 93 XENFB_TOOLS ?= n
kfraser@14271 94 PYTHON_TOOLS ?= y
kaf24@7207 95
kaf24@7207 96 -include $(XEN_ROOT)/.config