ia64/xen-unstable

annotate Config.mk @ 6767:d22091179975

Check the return value of chdir(2) and write(2).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Sep 12 20:24:58 2005 +0000 (2005-09-12)
parents dd668f7527cb
children b2f4823b6ff0 b35215021b32 9af349b055e5 3233e7ecfa9f
rev   line source
kaf24@4252 1 # -*- mode: Makefile; -*-
cl349@4443 2
kaf24@4252 3 # Currently supported architectures: x86_32, x86_64
kaf24@4252 4 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
kaf24@4252 5 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
smh22@6004 6 XEN_TARGET_X86_PAE ?= n
kaf24@4252 7
kaf24@4444 8 # Tools to run on system hosting the build
kaf24@4252 9 HOSTCC = gcc
kaf24@6056 10 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
kaf24@4252 11
kaf24@4252 12 AS = $(CROSS_COMPILE)as
kaf24@4252 13 LD = $(CROSS_COMPILE)ld
kaf24@4252 14 CC = $(CROSS_COMPILE)gcc
kaf24@4252 15 CPP = $(CROSS_COMPILE)gcc -E
kaf24@4252 16 AR = $(CROSS_COMPILE)ar
josht@6337 17 RANLIB = $(CROSS_COMPILE)ranlib
kaf24@4252 18 NM = $(CROSS_COMPILE)nm
kaf24@4252 19 STRIP = $(CROSS_COMPILE)strip
kaf24@4252 20 OBJCOPY = $(CROSS_COMPILE)objcopy
kaf24@4252 21 OBJDUMP = $(CROSS_COMPILE)objdump
kaf24@4252 22
katzj@4544 23 ifeq ($(XEN_TARGET_ARCH),x86_64)
katzj@4544 24 LIBDIR = lib64
katzj@4544 25 else
katzj@4544 26 LIBDIR = lib
katzj@4544 27 endif
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
kaf24@4252 34 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
kaf24@4252 35 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
iap10@5507 36
iap10@5507 37 # Choose the best mirror to download linux kernel
iap10@5507 38 KERNEL_REPO = http://www.kernel.org
josht@6335 39
kaf24@6269 40 # ACM_USE_SECURITY_POLICY is set to security policy of Xen
kaf24@6269 41 # Supported models are:
kaf24@6269 42 # ACM_NULL_POLICY (ACM will not be built with this policy)
kaf24@6269 43 # ACM_CHINESE_WALL_POLICY
kaf24@6269 44 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
kaf24@6269 45 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
kaf24@6269 46 ACM_USE_SECURITY_POLICY ?= ACM_NULL_POLICY
cl349@6339 47
josht@6335 48 # Optional components
josht@6337 49 XENSTAT_XENTOP ?= y
cl349@6339 50
kaf24@6579 51 VTPM_TOOLS ?= n