direct-io.hg

view Config.mk @ 13487:2056bc71fa55

[IA64] Let Xen handle identity mapping for xenolinux region 7

During kernel build in dom0, half of the resulting slow reflections
are alt DTLB misses. Since we know Linux identity maps region 7,
Xen can handle the miss itself. This reduces the system time component
of the kernel build by nearly 15%.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
author awilliam@xenbuild2.aw
date Wed Jan 17 19:48:02 2007 -0700 (2007-01-17)
parents 4a164bf1edfc
children 4f0a68df2585
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 SHELL ?= /bin/sh
16 # Tools to run on system hosting the build
17 HOSTCC = gcc
18 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
20 DISTDIR ?= $(XEN_ROOT)/dist
21 DESTDIR ?= /
23 include $(XEN_ROOT)/config/$(XEN_OS).mk
24 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
26 ifneq ($(EXTRA_PREFIX),)
27 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
28 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
29 endif
31 # cc-option
32 # Usage: cflags-y += $(call cc-option,$(CC),-march=winchip-c6,-march=i586)
33 cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
34 /dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
36 ifneq ($(debug),y)
37 CFLAGS += -DNDEBUG
38 else
39 CFLAGS += -g
40 endif
42 CFLAGS += -std=gnu99
44 CFLAGS += -Wall -Wstrict-prototypes
46 # -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
47 # result of any casted expression causes a warning.
48 CFLAGS += -Wno-unused-value
50 HOSTCFLAGS += $(call cc-option,$(HOSTCC),-Wdeclaration-after-statement,)
51 CFLAGS += $(call cc-option,$(CC),-Wdeclaration-after-statement,)
53 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
54 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
56 # If ACM_SECURITY = y, then the access control module is compiled
57 # into Xen and the policy type can be set by the boot policy file
58 # y - Build the Xen ACM framework
59 # n - Do not build the Xen ACM framework
60 ACM_SECURITY ?= n
62 # If ACM_SECURITY = y and no boot policy file is installed,
63 # then the ACM defaults to the security policy set by
64 # ACM_DEFAULT_SECURITY_POLICY
65 # Supported models are:
66 # ACM_NULL_POLICY
67 # ACM_CHINESE_WALL_POLICY
68 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
69 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
70 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
72 # Optional components
73 XENSTAT_XENTOP ?= y
74 VTPM_TOOLS ?= n
75 LIBXENAPI_BINDINGS ?= n
76 XENFB_TOOLS ?= n
78 -include $(XEN_ROOT)/.config