mkconfig crates bad symlink
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.
Signed-off-by Hiroshi Ito <[email protected]>
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
@@ -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