diff options
Diffstat (limited to 'extra/scripts')
| -rwxr-xr-x | extra/scripts/fix_includes.sh | 14 | ||||
| -rwxr-xr-x | extra/scripts/gen_bits_syscall_h.sh | 7 | ||||
| -rwxr-xr-x | extra/scripts/getent | 5 |
3 files changed, 16 insertions, 10 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. diff --git a/extra/scripts/gen_bits_syscall_h.sh b/extra/scripts/gen_bits_syscall_h.sh index 78c54a935..718253e90 100755 --- a/extra/scripts/gen_bits_syscall_h.sh +++ b/extra/scripts/gen_bits_syscall_h.sh @@ -17,8 +17,13 @@ UNISTD_H_PATH=$top_builddir/include/asm/unistd.h INCLUDE_OPTS="-I$top_builddir/include" +case $CC in +*icc*) CC_SYSNUM_ARGS="-dM" ;; +*) CC_SYSNUM_ARGS="-dN" ;; +esac + ( echo "#include \"$UNISTD_H_PATH\"" ; - $CC -E -dN $INCLUDE_OPTS $UNISTD_H_PATH | # needed to strip out any kernel-internal defines + $CC -E $CC_SYSNUM_ARGS $INCLUDE_OPTS $UNISTD_H_PATH | # needed to strip out any kernel-internal defines sed -ne 's/^[ ]*#define[ ]*__NR_\([A-Za-z0-9_]*\).*/UCLIBC_\1 __NR_\1/gp' ) | $CC -E $INCLUDE_OPTS - | diff --git a/extra/scripts/getent b/extra/scripts/getent index 9ffffa171..03b5f28a9 100755 --- a/extra/scripts/getent +++ b/extra/scripts/getent @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org> +# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> # # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # @@ -65,8 +65,7 @@ case $1 in esac if [ -z "$2" ] ; then - cat $file - retval=$? + exec cat $file else search_entry "$file" "$2" fi |
