allow external, absolute LINUX_ROOT
PATCH 1/1 allow external, absolute LINUX_ROOT
For those of us who don't build Linux with the Xen tree (and perhaps even remove the sparse tree from the sources), attached patch allows specifying LINUX_ROOT on the command line, overriding sparse tree assumptions. Jan
tools/Rules.mk renamed from home/jbeulich/src/xen/2006-01-20/tools/Rules.mk +1 -1
@@ -41,4 +41,4 @@ mk-symlinks: ( cd xen/io && ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) mkdir -p xen/linux ( cd xen/linux && \ - ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . ) + ln -sf $(if $(patsubst /%,,$(LINUX_ROOT)),../../)$(LINUX_ROOT)/include/asm-xen/linux-public/*.h .)
tools/guest-headers/Makefile renamed from home/jbeulich/src/xen/2006-01-20/tools/guest-headers/Makefile +2 -2
@@ -1,6 +1,6 @@ XEN_ROOT=../.. -linuxsparsetree = $(XEN_ROOT)/linux-2.6-xen-sparse +LINUX_ROOT = $(XEN_ROOT)/linux-2.6-xen-sparse all:
@@ -8,6 +8,6 @@ check: install: mkdir -p $(DESTDIR)/usr/include/xen/linux - install -m0644 $(linuxsparsetree)/include/asm-xen/linux-public/*.h $(DESTDIR)/usr/include/xen/linux + install -m0644 $(LINUX_ROOT)/include/asm-xen/linux-public/*.h $(DESTDIR)/usr/include/xen/linux clean:
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel