allow make O=/path/to/build/dir ARCH=XEN
PATCH 1/1 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 <[email protected]>
arch/xen/Makefile +5 -3
@@ -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
[email protected]
http://lists.xensource.com/xen-devel