ia64/xen-unstable

view Config.mk @ 7238:971e7c7411b3

Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Thu Oct 06 10:13:11 2005 +0100 (2005-10-06)
parents 8f8e42887f09
children cc1d77bba4b0
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 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
42 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
44 # Choose the best mirror to download linux kernel
45 KERNEL_REPO = http://www.kernel.org
47 # ACM_USE_SECURITY_POLICY is set to security policy of Xen
48 # Supported models are:
49 # ACM_NULL_POLICY (ACM will not be built with this policy)
50 # ACM_CHINESE_WALL_POLICY
51 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
52 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
53 ACM_USE_SECURITY_POLICY ?= ACM_NULL_POLICY
55 # Optional components
56 XENSTAT_XENTOP ?= y
58 VTPM_TOOLS ?= n
60 -include $(XEN_ROOT)/.config