diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-09-12 13:15:36 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-09-12 13:15:36 +0100 |
commit | 30c988711cbbd177c8f865347948565583de56db (patch) | |
tree | 392b26c5b250b349ec45cf564da78ee453895cce /Config.mk | |
parent | 8d701af28f2e5777a5cee19346a60859841459c6 (diff) | |
download | xen-30c988711cbbd177c8f865347948565583de56db.tar.gz xen-30c988711cbbd177c8f865347948565583de56db.tar.bz2 xen-30c988711cbbd177c8f865347948565583de56db.zip |
$(XEN_ROOT) absolutification fixes for ioemu-remote (incl stubdom)
* Move code for generating an absolute version of XEN_ROOT
into a common make variable set in Config.mk
* Use this common code when invoking make -C ioemu-dir clean
from tools/, which avoids a problem where `make clean' fails
because qemu's (ioemu-remote's) build system wants to run
`make clean' in `tests' but XEN_ROOT is a confection involving
../'s.
* Use this common code in stubdom/Makefile, instead of $(abspath...)
as the latter is a relatively new feature in GNU make and is not
available in all the places that we want to be able to build
(cf c/s 17997:3f23e01d31985899dbd1660b166f229f1ee74292)
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'Config.mk')
-rw-r--r-- | Config.mk | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -54,6 +54,22 @@ 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 + ifeq ($(debug),y) CFLAGS += -g endif |