[U-Boot-Users] [patch] mkconfig crates bad symlink

ito at mlb.co.jp ito at mlb.co.jp
Wed Apr 5 16:27:00 CEST 2006


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.

Signed-off-by: Hiroshi Ito <ito at mlb.co.jp>

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 --------------
diff -x .git -uNr u-boot.git.org/mkconfig u-boot.git/mkconfig
--- u-boot.git.org/mkconfig	2006-04-05 06:49:16.000000000 +0900
+++ u-boot.git/mkconfig	2006-04-04 07:18:43.000000000 +0900
@@ -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


More information about the U-Boot mailing list