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

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



ChangeSet 1.1904, 2005/06/18 00:05:16+01:00, iap10@xxxxxxxxxxxxxxxxxxx

        Subject: [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>
        Signed-off-by: ian@xxxxxxxxxxxxx



 Makefile |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/Makefile 
b/linux-2.6.11-xen-sparse/arch/xen/Makefile
--- a/linux-2.6.11-xen-sparse/arch/xen/Makefile 2005-06-17 21:05:14 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/Makefile 2005-06-17 21:05:14 -04:00
@@ -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) $@
 
 arch/$(XENARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
                                   include/config/MARKER

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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