瀏覽代碼

dont generate asm-generic if it already exists

Mike Frysinger 19 年之前
父節點
當前提交
355c2405c2
共有 1 個文件被更改,包括 2 次插入0 次删除
  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.