PV-on-HVM: Use ln -nsf in mkbuildtree to avoid creating a symlink loop
authorIan Campbell <ian.campbell@xensource.com>
Thu, 2 Nov 2006 11:56:26 +0000 (11:56 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Thu, 2 Nov 2006 11:56:26 +0000 (11:56 +0000)
if include/xen/interfaces already exists.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
unmodified_drivers/linux-2.6/mkbuildtree

index 5b6b8643ee460a01043278b518a598b24ca3ac95..ddcc13c75e82d63bee933030ae7c00065753af37 100755 (executable)
@@ -31,7 +31,7 @@ mkdir -p include/asm
 mkdir -p include/asm/xen
 
 lndir -silent ${XL}/include/xen include/xen
-ln -sf ${XEN}/include/public include/xen/interface
+ln -nsf ${XEN}/include/public include/xen/interface
 
 # Need to be quite careful here: we don't want the files we link in to
 # risk overriding the native Linux ones (in particular, system.h must