|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] [PATCH] allow make O=/path/to/build/dir ARCH=XEN 
| 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> |  | 
[Xen-devel] [PATCH] allow make O=/path/to/build/dir ARCH=XEN,
Avi Kivity <=
 |  |  | 
  
    |  |  |