[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/5] make: add use of $(realpath ) in top and main Rules.mk files



Date: Sat, 17 Oct 2026 12:25:36 -0700

Without this "/.." tend to accumulate in $(XEN_ROOT) and eventually
things start breaking.  Address this before something subtlely breaks.

Signed-off-by: Elliott Mitchell <ehem+xen@xxxxxxx>
---
 Makefile       | 2 +-
 tools/Rules.mk | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index ea432e21b02..f063ce56819 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ TARGS_BUILD=$(patsubst %, build-%, $(SUBSYSTEMS))
 TARGS_CLEAN=$(patsubst %, clean-%, $(SUBSYSTEMS))
 TARGS_DISTCLEAN=$(patsubst %, distclean-%, $(SUBSYSTEMS))
 
-export XEN_ROOT=$(CURDIR)
+export XEN_ROOT:=$(realpath $(CURDIR))
 include Config.mk
 
 .PHONY: mini-os-dir
diff --git a/tools/Rules.mk b/tools/Rules.mk
index d9b9c740e96..97fb3e9bc09 100644
--- a/tools/Rules.mk
+++ b/tools/Rules.mk
@@ -1,5 +1,7 @@
 #  -*- mode: Makefile; -*-
 
+override XEN_ROOT:=$(realpath $(XEN_ROOT))
+
 # `all' is the default target
 all:
 
-- 
2.47.3




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.