Skip to contentSkip to conversation

um: include/asm/arch link creation change

PATCH In review Jiri Olsa 2 participants 2 messages Nov 22, 2007 User-mode Linux (UML)

lore
Share & tools
lore

Jiri Olsa

author
#0 lore raw

PATCH 1/1 um: include/asm/arch link creation change

Hi,

current um code does not create a proper include/asm/arch link. when I bisected it I can see this was introduced by following patch:

commit fcbaa088fc8625381bd1096bc2eedc4f58a1572c

Author: Jeff Dike <[email protected]>
Date:   Wed Nov 14 16:58:42 2007 -0800

uml: fix symlink loops

symlinks to directories in the non-O= case were lacking -n, which meant that, when the link already existed, a new link pointing at itself was created in the target directory.

arch/um/Makefile +1 -1
index 768a5d1..31999bc 100644
@@ -168,7 +168,7 @@ ifneq ($(KBUILD_SRC),)
        $(Q)mkdir -p $(objtree)/include/asm-um
        $(Q)ln -fsn $(srctree)/include/asm-$(HEADER_ARCH) include/asm-um/arch
 else
-       $(Q)cd $(TOPDIR)/include/asm-um && ln -sf ../asm-$(HEADER_ARCH) arch
+       $(Q)cd $(TOPDIR)/include/asm-um && ln -fsn ../asm-$(SUBARCH) arch
 endif
 

snip

it works for me to use the HEADER_ARCH instead of the SUBARCH

---
 arch/um/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/um/Makefile +1 -1
index 31999bc..ba6813a 100644
@@ -168,7 +168,7 @@ ifneq ($(KBUILD_SRC),)
 	$(Q)mkdir -p $(objtree)/include/asm-um
 	$(Q)ln -fsn $(srctree)/include/asm-$(HEADER_ARCH) include/asm-um/arch
 else
-	$(Q)cd $(TOPDIR)/include/asm-um && ln -fsn ../asm-$(SUBARCH) arch
+	$(Q)cd $(TOPDIR)/include/asm-um && ln -fsn ../asm-$(HEADER_ARCH) arch
 endif
 
 $(objtree)/$(ARCH_DIR)/include:

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 1 line · Jiri Olsa

it works for me to use the HEADER_ARCH instead of the SUBARCH

Thanks - this is already in -mm, it just needs to get to mainline.

Jeff

Signature · 10 lines
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel