From: "Jan Beulich" Subject: [PATCH] allow external, absolute LINUX_ROOT Date: Tue, 24 Jan 2006 11:49:35 +0100 Message-ID: <43D6144F.76F0.0078.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartD4F64C2F.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartD4F64C2F.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --=__PartD4F64C2F.0__= Content-Type: text/plain; name="xen-LINUX_ROOT.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="xen-LINUX_ROOT.patch" --- /home/jbeulich/src/xen/2006-01-20/tools/Rules.mk 2006-01-18 19:31:33.000000000 +0100 +++ 2006-01-20/tools/Rules.mk 2006-01-24 11:21:25.000000000 +0100 @@ -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 .) --- /home/jbeulich/src/xen/2006-01-20/tools/guest-headers/Makefile 2006-01-18 19:31:33.000000000 +0100 +++ 2006-01-20/tools/guest-headers/Makefile 2006-01-24 11:29:38.000000000 +0100 @@ -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: --=__PartD4F64C2F.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartD4F64C2F.0__=--