]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commitdiff
build: Make XEN_ROOT an absolute path.
authorKeir Fraser <keir@xen.org>
Thu, 17 Mar 2011 10:36:25 +0000 (10:36 +0000)
committerKeir Fraser <keir@xen.org>
Thu, 17 Mar 2011 10:36:25 +0000 (10:36 +0000)
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>
Config.mk
Makefile
arch/ia64/Makefile
arch/x86/Makefile

index a1a2283ecc2be46e9a4a9decf72d10394690a5e2..806d4ff8fd955ae3ae7530de2fe15ae5360107d3 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -38,15 +38,15 @@ EXTRA_INC = $(ARCH_INC)
 # This must be before include minios.mk!
 include $(MINI-OS_ROOT)/$(TARGET_ARCH_DIR)/arch.mk
 
-extra_incl := $(foreach dir,$(EXTRA_INC),-isystem $(CURDIR)/$(MINI-OS_ROOT)/include/$(dir))
+extra_incl := $(foreach dir,$(EXTRA_INC),-isystem $(MINI-OS_ROOT)/include/$(dir))
 
-DEF_CPPFLAGS += -isystem $(CURDIR)/$(MINI-OS_ROOT)/include
+DEF_CPPFLAGS += -isystem $(MINI-OS_ROOT)/include
 DEF_CPPFLAGS += -D__MINIOS__
 
 ifeq ($(libc),y)
 DEF_CPPFLAGS += -DHAVE_LIBC
-DEF_CPPFLAGS += -isystem $(CURDIR)/$(MINI-OS_ROOT)/include/posix
-DEF_CPPFLAGS += -isystem $(CURDIR)/$(XEN_ROOT)/tools/xenstore
+DEF_CPPFLAGS += -isystem $(MINI-OS_ROOT)/include/posix
+DEF_CPPFLAGS += -isystem $(XEN_ROOT)/tools/xenstore
 endif
 
 ifneq ($(LWIPDIR),)
index 78e0c9d527ab20e2aa75c4ea48f64d1a31b9e645..c2ee06226665fb6c1b2dd0041d811c59970d3154 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
 # Makefile and a arch.mk.
 #
 
-export XEN_ROOT = ../..
+export XEN_ROOT = $(CURDIR)/../..
 include $(XEN_ROOT)/Config.mk
 OBJ_DIR ?= $(CURDIR)
 
index 405066215d282098069d84286626a6a40b8c7d1b..ca3120e10e72837e2366a3528008ad324bc35889 100644 (file)
@@ -2,7 +2,7 @@
 # Special makefile for ia64.
 #
 
-XEN_ROOT = ../../../..
+XEN_ROOT = $(CURDIR)/../../../..
 include $(XEN_ROOT)/Config.mk
 
 include ../../Config.mk
index 3c5fb6ae782132528d6e852e3b3850daf2e5eae8..1073e36267e5de00aff7872ac85f340f0a7625a9 100644 (file)
@@ -3,7 +3,7 @@
 # It's is used for x86_32, x86_32y and x86_64
 #
 
-XEN_ROOT = ../../../..
+XEN_ROOT = $(CURDIR)/../../../..
 include $(XEN_ROOT)/Config.mk
 include ../../Config.mk