ia64/xen-unstable

view Config.mk @ 18986:d6889b3b6423

Download external tarballs from xenbits.xensource.com

I have copied the tarballs that the xen-unstable build downloads to
xenbits.xensource.com (which also hosts our hg and git). This patch
changes the download URLs to use that location.

That way the build will depend on only one external machine, under one
administration, rather than many. Also it means that the build won't
break if these sites become permanently unavailable or are rearranged
and we don't run a risk of having to panic and beg if a file should go
missing.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jan 05 11:19:16 2009 +0000 (2009-01-05)
parents 71d3d3ac23b8
children b9721b2766c1
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/i86pc/x86_32/ -e s/amd64/x86_64/)
8 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
9 XEN_OS ?= $(shell uname -s)
11 CONFIG_$(XEN_OS) := y
13 SHELL ?= /bin/sh
15 # Tools to run on system hosting the build
16 HOSTCC = gcc
17 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
18 HOSTCFLAGS += -fno-strict-aliasing
20 DISTDIR ?= $(XEN_ROOT)/dist
21 DESTDIR ?= /
22 DOCDIR ?= /usr/share/doc/xen
23 MANDIR ?= /usr/share/man
25 # Allow phony attribute to be listed as dependency rather than fake target
26 .PHONY: .phony
28 include $(XEN_ROOT)/config/$(XEN_OS).mk
29 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
31 ifneq ($(EXTRA_PREFIX),)
32 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
33 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBLEAFDIR)
34 endif
36 # cc-option: Check if compiler supports first option, else fall back to second.
37 # Usage: cflags-y += $(call cc-option,$(CC),-march=winchip-c6,-march=i586)
38 cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
39 /dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
41 # cc-ver: Check compiler is at least specified version. Return boolean 'y'/'n'.
42 # Usage: ifeq ($(call cc-ver,$(CC),0x030400),y)
43 cc-ver = $(shell if [ $$((`$(1) -dumpversion | awk -F. \
44 '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -ge $$(($(2))) ]; \
45 then echo y; else echo n; fi ;)
47 # cc-ver-check: Check compiler is at least specified version, else fail.
48 # Usage: $(call cc-ver-check,CC,0x030400,"Require at least gcc-3.4")
49 cc-ver-check = $(eval $(call cc-ver-check-closure,$(1),$(2),$(3)))
50 define cc-ver-check-closure
51 ifeq ($$(call cc-ver,$$($(1)),$(2)),n)
52 override $(1) = echo "*** FATAL BUILD ERROR: "$(3) >&2; exit 1;
53 cc-option := n
54 endif
55 endef
57 define absolutify_xen_root
58 case "$(XEN_ROOT)" in \
59 /*) XEN_ROOT=$(XEN_ROOT) ;; \
60 *) xen_root_lhs=`pwd`; \
61 xen_root_rhs=$(XEN_ROOT)/; \
62 while [ "x$${xen_root_rhs#../}" != "x$$xen_root_rhs" ]; do \
63 xen_root_rhs="$${xen_root_rhs#../}"; \
64 xen_root_rhs="$${xen_root_rhs#/}"; \
65 xen_root_rhs="$${xen_root_rhs#/}"; \
66 xen_root_lhs="$${xen_root_lhs%/*}"; \
67 done; \
68 XEN_ROOT="$$xen_root_lhs/$$xen_root_rhs" ;; \
69 esac; \
70 export XEN_ROOT
71 endef
73 ifeq ($(debug),y)
74 CFLAGS += -g
75 endif
77 CFLAGS += -fno-strict-aliasing
79 CFLAGS += -std=gnu99
81 CFLAGS += -Wall -Wstrict-prototypes
83 # -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the
84 # result of any casted expression causes a warning.
85 CFLAGS += -Wno-unused-value
87 HOSTCFLAGS += $(call cc-option,$(HOSTCC),-Wdeclaration-after-statement,)
88 CFLAGS += $(call cc-option,$(CC),-Wdeclaration-after-statement,)
90 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
91 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
93 # Enable XSM security module. Enabling XSM requires selection of an
94 # XSM security module (FLASK_ENABLE or ACM_SECURITY).
95 XSM_ENABLE ?= n
96 FLASK_ENABLE ?= n
97 ACM_SECURITY ?= n
99 XEN_EXTFILES_URL=http://xenbits.xensource.com/xen-extfiles
100 # All the files at that location were downloaded from elsewhere on
101 # the internet. The original download URL is preserved as a comment
102 # near the place in the Xen Makefiles where the file is used.
104 QEMU_REMOTE=http://xenbits.xensource.com/git-http/qemu-xen-unstable.git
106 # Specify which qemu-dm to use. This may be `ioemu' to use the old
107 # Mercurial in-tree version, or a local directory, or a git URL.
108 # CONFIG_QEMU ?= ../qemu-xen.git
109 CONFIG_QEMU ?= $(QEMU_REMOTE)
111 # Optional components
112 XENSTAT_XENTOP ?= y
113 VTPM_TOOLS ?= n
114 LIBXENAPI_BINDINGS ?= n
115 PYTHON_TOOLS ?= y
116 CONFIG_MINITERM ?= n
117 CONFIG_LOMOUNT ?= n
119 -include $(XEN_ROOT)/.config