From: ito at mlb.co.jp Date: Wed, 05 Apr 2006 23:27:00 +0900 (JST) Subject: [U-Boot-Users] [patch] mkconfig crates bad symlink Message-ID: <20060405.232700.48804054.ito@mlb.co.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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