WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] allow make O=/path/to/build/dir ARCH=XEN

To: Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] allow make O=/path/to/build/dir ARCH=XEN
From: Avi Kivity <avi.kivity@xxxxxxxxxxxx>
Date: Mon, 06 Jun 2005 17:17:23 +0300
Delivery-date: Mon, 06 Jun 2005 14:16:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
kbuild allows building outside the source tree. this is useful when
building multiple configs (such as privileged and unprivileged domains).
this patch unbreaks this feature for xen-linux.

Signed-off-by: Avi Kivity <avi.kivity@xxxxxxxxxxxx>

Index: xen-linux/arch/xen/Makefile
===================================================================
--- xen-linux/arch/xen/Makefile (revision 36)
+++ xen-linux/arch/xen/Makefile (working copy)
@@ -27,15 +27,17 @@
        @mv include/asm include/.asm-ignore
        @echo '  SYMLINK include/asm -> include/asm-$(XENARCH)'
        $(Q)if [ ! -d include ]; then mkdir -p include; fi;
-       @ln -fsn asm-$(XENARCH) include/asm
+       @ln -fsn $(srctree)/include/asm-$(XENARCH) include/asm
 
 include/asm-xen/asm:
        @echo '  SYMLINK $@ -> include/asm-xen/asm-$(XENARCH)'
-       @ln -fsn asm-$(XENARCH) $@
+       @mkdir -p include/asm-xen
+       @ln -fsn $(srctree)/include/asm-xen/asm-$(XENARCH) $@
 
 arch/xen/arch:
        @rm -f $@
-       @ln -fsn $(XENARCH) $@
+       @mkdir -p arch/xen
+       @ln -fsn $(srctree)/arch/xen/$(XENARCH) $@
 
 prepare: include/.asm-ignore include/asm-xen/asm \
        arch/xen/arch ;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>