Эх сурвалжийг харах

make the fallback case smarter

Mike Frysinger 19 жил өмнө
parent
commit
64b2dfee96

+ 3 - 4
extra/scripts/fix_includes.sh

@@ -153,10 +153,9 @@ if [ ! -d "$KERNEL_SOURCE/include/asm" ]; then
     fi;
     fi;
 else
 else
 # No guessing required.....
 # No guessing required.....
-ln -fs $KERNEL_SOURCE/include/asm include/asm
+for x in $KERNEL_SOURCE/include/asm* ; do
-if [ -e $KERNEL_SOURCE/include/asm-$TARGET_ARCH ] ; then
+	ln -fs ${x} include/
-ln -fs $KERNEL_SOURCE/include/asm-$TARGET_ARCH include/asm-$TARGET_ARCH
+done
-fi
 fi;
 fi;