diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
commit | 67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch) | |
tree | a4a1db7f54c16d12fabe2626b8f1e235cd694e9e /scripts | |
parent | 811c449748d5bd0505f8510e5582892f94ac0cda (diff) | |
parent | b83c9704128dd106071184e4b00335a3b8486857 (diff) | |
download | busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2 busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip |
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/basic/docproc.c | 2 | ||||
-rw-r--r-- | scripts/defconfig.tig | 4 | ||||
-rwxr-xr-x | scripts/gen_build_files.sh | 12 | ||||
-rw-r--r-- | scripts/kconfig/conf.c | 2 | ||||
-rw-r--r-- | scripts/kconfig/mconf.c | 3 | ||||
-rwxr-xr-x | scripts/mkconfigs | 2 |
6 files changed, 18 insertions, 7 deletions
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c index db30019d8..0984e7d4b 100644 --- a/scripts/basic/docproc.c +++ b/scripts/basic/docproc.c | |||
@@ -212,7 +212,7 @@ void find_export_symbols(char * filename) | |||
212 | * Document all external or internal functions in a file. | 212 | * Document all external or internal functions in a file. |
213 | * Call kernel-doc with following parameters: | 213 | * Call kernel-doc with following parameters: |
214 | * kernel-doc -docbook -nofunction function_name1 filename | 214 | * kernel-doc -docbook -nofunction function_name1 filename |
215 | * function names are obtained from all the the src files | 215 | * function names are obtained from all the src files |
216 | * by find_export_symbols. | 216 | * by find_export_symbols. |
217 | * intfunc uses -nofunction | 217 | * intfunc uses -nofunction |
218 | * extfunc uses -function | 218 | * extfunc uses -function |
diff --git a/scripts/defconfig.tig b/scripts/defconfig.tig index 3dd02983f..ab9dc4728 100644 --- a/scripts/defconfig.tig +++ b/scripts/defconfig.tig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Busybox version: 1.19.0.git | 3 | # Busybox version: 1.19.0.git |
4 | # Thu Mar 22 13:52:53 2012 | 4 | # Thu Mar 22 14:00:24 2012 |
5 | # | 5 | # |
6 | CONFIG_HAVE_DOT_CONFIG=y | 6 | CONFIG_HAVE_DOT_CONFIG=y |
7 | # CONFIG_PLATFORM_POSIX is not set | 7 | # CONFIG_PLATFORM_POSIX is not set |
@@ -971,6 +971,7 @@ CONFIG_SH_MATH_SUPPORT_64=y | |||
971 | CONFIG_FEATURE_SH_EXTRA_QUIET=y | 971 | CONFIG_FEATURE_SH_EXTRA_QUIET=y |
972 | CONFIG_FEATURE_SH_STANDALONE=y | 972 | CONFIG_FEATURE_SH_STANDALONE=y |
973 | CONFIG_FEATURE_SH_NOFORK=y | 973 | CONFIG_FEATURE_SH_NOFORK=y |
974 | # CONFIG_FEATURE_SH_HISTFILESIZE is not set | ||
974 | 975 | ||
975 | # | 976 | # |
976 | # System Logging Utilities | 977 | # System Logging Utilities |
@@ -979,6 +980,7 @@ CONFIG_FEATURE_SH_NOFORK=y | |||
979 | # CONFIG_FEATURE_ROTATE_LOGFILE is not set | 980 | # CONFIG_FEATURE_ROTATE_LOGFILE is not set |
980 | # CONFIG_FEATURE_REMOTE_LOG is not set | 981 | # CONFIG_FEATURE_REMOTE_LOG is not set |
981 | # CONFIG_FEATURE_SYSLOGD_DUP is not set | 982 | # CONFIG_FEATURE_SYSLOGD_DUP is not set |
983 | # CONFIG_FEATURE_SYSLOGD_CFG is not set | ||
982 | CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=0 | 984 | CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=0 |
983 | # CONFIG_FEATURE_IPC_SYSLOG is not set | 985 | # CONFIG_FEATURE_IPC_SYSLOG is not set |
984 | CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=0 | 986 | CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=0 |
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh index 03831f501..e518a9008 100755 --- a/scripts/gen_build_files.sh +++ b/scripts/gen_build_files.sh | |||
@@ -1,5 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # Note: was using sed OPTS CMD -- FILES | ||
4 | # but users complain that many sed implementations | ||
5 | # are misinterpreting --. | ||
6 | |||
3 | test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } | 7 | test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } |
4 | 8 | ||
5 | # cd to objtree | 9 | # cd to objtree |
@@ -43,7 +47,7 @@ generate() | |||
43 | } | 47 | } |
44 | 48 | ||
45 | # (Re)generate include/applets.h | 49 | # (Re)generate include/applets.h |
46 | s=`sed -n 's@^//applet:@@p' -- "$srctree"/*/*.c "$srctree"/*/*/*.c` | 50 | s=`sed -n 's@^//applet:@@p' "$srctree"/*/*.c "$srctree"/*/*/*.c` |
47 | generate \ | 51 | generate \ |
48 | "$srctree/include/applets.src.h" \ | 52 | "$srctree/include/applets.src.h" \ |
49 | "include/applets.h" \ | 53 | "include/applets.h" \ |
@@ -55,7 +59,7 @@ generate \ | |||
55 | # and insert empty line before each line which doesn't start | 59 | # and insert empty line before each line which doesn't start |
56 | # with space or tab | 60 | # with space or tab |
57 | # (note: we need to use \\\\ because of ``) | 61 | # (note: we need to use \\\\ because of ``) |
58 | s=`sed -n -e 's@^//usage:\([ \t].*\)$@\1 \\\\@p' -e 's@^//usage:\([^ \t].*\)$@\n\1 \\\\@p' -- "$srctree"/*/*.c "$srctree"/*/*/*.c` | 62 | s=`sed -n -e 's@^//usage:\([ \t].*\)$@\1 \\\\@p' -e 's@^//usage:\([^ \t].*\)$@\n\1 \\\\@p' "$srctree"/*/*.c "$srctree"/*/*/*.c` |
59 | generate \ | 63 | generate \ |
60 | "$srctree/include/usage.src.h" \ | 64 | "$srctree/include/usage.src.h" \ |
61 | "include/usage.h" \ | 65 | "include/usage.h" \ |
@@ -71,7 +75,7 @@ generate \ | |||
71 | if test -f "$src"; then | 75 | if test -f "$src"; then |
72 | mkdir -p -- "$d" 2>/dev/null | 76 | mkdir -p -- "$d" 2>/dev/null |
73 | 77 | ||
74 | s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c` | 78 | s=`sed -n 's@^//kbuild:@@p' "$srctree/$d"/*.c` |
75 | generate \ | 79 | generate \ |
76 | "${src}" "${dst}" \ | 80 | "${src}" "${dst}" \ |
77 | "# DO NOT EDIT. This file is generated from Kbuild.src" \ | 81 | "# DO NOT EDIT. This file is generated from Kbuild.src" \ |
@@ -83,7 +87,7 @@ generate \ | |||
83 | if test -f "$src"; then | 87 | if test -f "$src"; then |
84 | mkdir -p -- "$d" 2>/dev/null | 88 | mkdir -p -- "$d" 2>/dev/null |
85 | 89 | ||
86 | s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c` | 90 | s=`sed -n 's@^//config:@@p' "$srctree/$d"/*.c` |
87 | generate \ | 91 | generate \ |
88 | "${src}" "${dst}" \ | 92 | "${src}" "${dst}" \ |
89 | "# DO NOT EDIT. This file is generated from Config.src" \ | 93 | "# DO NOT EDIT. This file is generated from Config.src" \ |
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 9befa2b54..6e097889f 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c | |||
@@ -3,6 +3,8 @@ | |||
3 | * Released under the terms of the GNU GPL v2.0. | 3 | * Released under the terms of the GNU GPL v2.0. |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #define _XOPEN_SOURCE 700 | ||
7 | |||
6 | #include <ctype.h> | 8 | #include <ctype.h> |
7 | #include <stdlib.h> | 9 | #include <stdlib.h> |
8 | #include <stdio.h> | 10 | #include <stdio.h> |
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index d292b46cc..d3f69f8f5 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -8,6 +8,8 @@ | |||
8 | * i18n, 2005, Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 8 | * i18n, 2005, Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #define _XOPEN_SOURCE 700 | ||
12 | |||
11 | #include <sys/ioctl.h> | 13 | #include <sys/ioctl.h> |
12 | #include <sys/wait.h> | 14 | #include <sys/wait.h> |
13 | #include <ctype.h> | 15 | #include <ctype.h> |
@@ -18,6 +20,7 @@ | |||
18 | #include <stdarg.h> | 20 | #include <stdarg.h> |
19 | #include <stdlib.h> | 21 | #include <stdlib.h> |
20 | #include <string.h> | 22 | #include <string.h> |
23 | #include <strings.h> /* for strcasecmp */ | ||
21 | #include <termios.h> | 24 | #include <termios.h> |
22 | #include <unistd.h> | 25 | #include <unistd.h> |
23 | #include <locale.h> | 26 | #include <locale.h> |
diff --git a/scripts/mkconfigs b/scripts/mkconfigs index 7488d294e..db94fcc44 100755 --- a/scripts/mkconfigs +++ b/scripts/mkconfigs | |||
@@ -63,7 +63,7 @@ echo "\ | |||
63 | */ | 63 | */ |
64 | static const char bbconfig_config_bz2[] ALIGN1 = {" | 64 | static const char bbconfig_config_bz2[] ALIGN1 = {" |
65 | 65 | ||
66 | grep '^#\? \?CONFIG_' "$config" \ | 66 | grep -e '^# CONFIG_' -e '^CONFIG_' "$config" \ |
67 | | bzip2 -1 | dd bs=2 skip=1 2>/dev/null \ | 67 | | bzip2 -1 | dd bs=2 skip=1 2>/dev/null \ |
68 | | od -v -t x1 \ | 68 | | od -v -t x1 \ |
69 | | sed -e 's/^[^ ]*//' \ | 69 | | sed -e 's/^[^ ]*//' \ |