Config.mk: error out on non-absolute $(XEN_ROOT)
authorIan Campbell <ian.campbell@citrix.com>
Fri, 7 Oct 2011 08:35:31 +0000 (09:35 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 7 Oct 2011 08:35:31 +0000 (09:35 +0100)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
Config.mk

index e346c57a24816bd407084ca7c021df32c29d5f44..bc28b9eede0b0819b60779f39d2e28c48c61697c 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -1,5 +1,9 @@
 # -*- mode: Makefile; -*-
 
+ifeq ($(filter /%,$(XEN_ROOT)),)
+$(error XEN_ROOT must be absolute)
+endif
+
 -include $(XEN_ROOT)/.config
 
 # A debug build of Xen and tools?