diff options
author | Keir Fraser <keir@xen.org> | 2011-10-06 19:47:14 +0100 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-10-06 19:47:14 +0100 |
commit | 7297daddfa6a2aeb72b08e544836895f2a33aaa7 (patch) | |
tree | 92ed841b86a6beebd68cdf11509d05d0a0808809 /Config.mk | |
parent | c57e5e842d1e1210777a4e0b1a16b9b710e7dbe1 (diff) | |
download | xen-7297daddfa6a2aeb72b08e544836895f2a33aaa7.tar.gz xen-7297daddfa6a2aeb72b08e544836895f2a33aaa7.tar.bz2 xen-7297daddfa6a2aeb72b08e544836895f2a33aaa7.zip |
build: Make XEN_ROOT an absolute path.
Otherwise make can search the path relative to certain standard paths
such as /usr/include (e.g., the line '-include $(XEN_ROOT)/.config' in
Config.mk suffers from this).
Signed-off-by: Keir Fraser <keir@xen.org>
xen-unstable changeset: 23049:ff3b7749008b
Backport-requested-by: Allen M Kay <allen.m.kay@intel.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'Config.mk')
-rw-r--r-- | Config.mk | 23 |
1 files changed, 3 insertions, 20 deletions
@@ -103,27 +103,10 @@ define cc-ver-check-closure endif endef -define absolutify_xen_root - case "$(XEN_ROOT)" in \ - /*) XEN_ROOT=$(XEN_ROOT) ;; \ - *) xen_root_lhs=`pwd`; \ - xen_root_rhs=$(XEN_ROOT)/; \ - while [ "x$${xen_root_rhs#../}" != "x$$xen_root_rhs" ]; do \ - xen_root_rhs="$${xen_root_rhs#../}"; \ - xen_root_rhs="$${xen_root_rhs#/}"; \ - xen_root_rhs="$${xen_root_rhs#/}"; \ - xen_root_lhs="$${xen_root_lhs%/*}"; \ - done; \ - XEN_ROOT="$$xen_root_lhs/$$xen_root_rhs" ;; \ - esac; \ - export XEN_ROOT -endef - define buildmakevars2shellvars - PREFIX="$(PREFIX)"; \ - XEN_SCRIPT_DIR="$(XEN_SCRIPT_DIR)"; \ - export PREFIX; \ - export XEN_SCRIPT_DIR + export PREFIX="$(PREFIX)"; \ + export XEN_SCRIPT_DIR="$(XEN_SCRIPT_DIR)"; \ + export XEN_ROOT="$(XEN_ROOT)" endef buildmakevars2file = $(eval $(call buildmakevars2file-closure,$(1))) |