Skip to contentSkip to conversation

allow make O=/path/to/build/dir ARCH=XEN

PATCH New Avi Kivity 1 participant 1 message Jun 6, 2005

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

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.

arch/xen/Makefile +5 -3
Index: xen-linux/arch/xen/Makefile
===================================================================
@@ -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