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-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Subject: [Xen-devel] [PATCH] allow make O=/path/to/build/dir ARCH=XEN
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 17 Jun 2005 23:05:16 +0000
Delivery-date: Tue, 21 Jun 2005 08:02:50 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1159.258.170, 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-21 04:03:58 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/Makefile 2005-06-21 04:03:58 -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

<Prev in Thread] Current Thread [Next in Thread>