diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-25 04:03:33 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-25 04:03:33 +0000 |
commit | cb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8 (patch) | |
tree | 520f8e8d113184cfa7954ebd274564b8c255fa9a /extra/scripts/fix_includes.sh | |
parent | e4461be66e2655058aef358b00050bc70ac72861 (diff) | |
download | uClibc-alpine-cb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8.tar.bz2 uClibc-alpine-cb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8.tar.xz |
Merge from trunk. Going pretty good so far. Kind of. Okay, not really.
Diffstat (limited to 'extra/scripts/fix_includes.sh')
-rwxr-xr-x | extra/scripts/fix_includes.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/extra/scripts/fix_includes.sh b/extra/scripts/fix_includes.sh index 34058a966..465d567bf 100755 --- a/extra/scripts/fix_includes.sh +++ b/extra/scripts/fix_includes.sh @@ -89,11 +89,12 @@ then fi if [ "$MAKE_IS_SILENT" != "y" ]; then +echo "" echo "Current kernel version is $VERSION.$PATCHLEVEL.$SUBLEVEL${EXTRAVERSION}" -echo -e "\n" +echo "" echo "Using kernel headers from $VERSION.$PATCHLEVEL.$SUBLEVEL${EXTRAVERSION} for architecture '$TARGET_ARCH'" echo -e "\tprovided in directory $KERNEL_SOURCE" -echo -e "\n" +echo "" fi # Create a symlink to include/asm @@ -152,17 +153,18 @@ if [ ! -d "$KERNEL_SOURCE/include/asm" ]; then fi; else # No guessing required..... -ln -fs $KERNEL_SOURCE/include/asm include/asm -if [ -e $KERNEL_SOURCE/include/asm-$TARGET_ARCH ] ; then -ln -fs $KERNEL_SOURCE/include/asm-$TARGET_ARCH include/asm-$TARGET_ARCH -fi +for x in $KERNEL_SOURCE/include/asm* ; do + ln -fs ${x} include/ +done 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. |