Browse Source

dont generate asm-generic if it already exists

Mike Frysinger 18 years ago
parent
commit
355c2405c2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      extra/scripts/fix_includes.sh

+ 2 - 0
extra/scripts/fix_includes.sh

@@ -160,9 +160,11 @@ fi;
 
 
 # Annoyingly, 2.6.x kernel headers also need an include/asm-generic/ directory
+if [ ! -e include/asm-generic ] ; then
 if [ $VERSION -eq 2 ] && [ $PATCHLEVEL -ge 6 ] ; then
     ln -fs $KERNEL_SOURCE/include/asm-generic include/asm-generic
 fi;
+fi
 
 
 # Create the include/linux symlink.