Skip to contentSkip to conversation

mkconfig crates bad symlink

PATCH New ito at mlb.co.jp 1 participant 1 message Apr 5, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkconfig crates bad symlink

Hello

mkconfig creates include/asm-*/arch.
but some board this symbolic link is broken and not necessary. with this patch, mkconfig wil create a sym-link when there is a directory to link.

CHANGELOG:

* mkconfig will not create broken symlink.
Patch by Hiroshi Ito, 5 Apr 2006

--------
Hiroshi Ito
Media Lab. Inc.,
URL http://www.mlb.co.jp ( Sorry, Japanese only. ) TEL +81-3-5294-7255 FAX +81-3-5294-7256 -------------- next part --------------

mkconfig +3 -1
diff -x .git -uNr u-boot.git.org/mkconfig u-boot.git/mkconfig
@@ -33,7 +33,9 @@
 rm -f asm-$2/arch
 
 if [ -z "$6" -o "$6" = "NULL" ] ; then
-	ln -s arch-$3 asm-$2/arch
+	if [ -d arch-$3 ]; then
+		ln -s arch-$3 asm-$2/arch
+	fi
 else
 	ln -s arch-$6 asm-$2/arch
 fi