diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-06-19 18:15:33 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-06-19 18:15:33 +0200 |
| commit | 015db5800ca7c6dd2d201eacb2951e72e6782b30 (patch) | |
| tree | 0fe9b90c782f2ac831f30793e384b07bd690b3b3 /scripts | |
| parent | ce824aecf216536beed00d7817a614ffb8572239 (diff) | |
| download | busybox-w32-015db5800ca7c6dd2d201eacb2951e72e6782b30.tar.gz busybox-w32-015db5800ca7c6dd2d201eacb2951e72e6782b30.tar.bz2 busybox-w32-015db5800ca7c6dd2d201eacb2951e72e6782b30.zip | |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/zconf.hash.c_shipped | 14 | ||||
| -rwxr-xr-x | scripts/randomtest | 20 |
2 files changed, 22 insertions, 12 deletions
diff --git a/scripts/kconfig/zconf.hash.c_shipped b/scripts/kconfig/zconf.hash.c_shipped index d39cf189a..29d9cf6cc 100644 --- a/scripts/kconfig/zconf.hash.c_shipped +++ b/scripts/kconfig/zconf.hash.c_shipped | |||
| @@ -32,14 +32,7 @@ | |||
| 32 | struct kconf_id; | 32 | struct kconf_id; |
| 33 | /* maximum key range = 45, duplicates = 0 */ | 33 | /* maximum key range = 45, duplicates = 0 */ |
| 34 | 34 | ||
| 35 | #ifdef __GNUC__ | 35 | unsigned int |
| 36 | __inline | ||
| 37 | #else | ||
| 38 | #ifdef __cplusplus | ||
| 39 | inline | ||
| 40 | #endif | ||
| 41 | #endif | ||
| 42 | static unsigned int | ||
| 43 | kconf_id_hash (register const char *str, register unsigned int len) | 36 | kconf_id_hash (register const char *str, register unsigned int len) |
| 44 | { | 37 | { |
| 45 | static unsigned char asso_values[] = | 38 | static unsigned char asso_values[] = |
| @@ -119,7 +112,7 @@ struct kconf_id_strings_t | |||
| 119 | char kconf_id_strings_str41[sizeof("choice")]; | 112 | char kconf_id_strings_str41[sizeof("choice")]; |
| 120 | char kconf_id_strings_str46[sizeof("prompt")]; | 113 | char kconf_id_strings_str46[sizeof("prompt")]; |
| 121 | }; | 114 | }; |
| 122 | static struct kconf_id_strings_t kconf_id_strings_contents = | 115 | struct kconf_id_strings_t kconf_id_strings_contents = |
| 123 | { | 116 | { |
| 124 | "if", | 117 | "if", |
| 125 | "int", | 118 | "int", |
| @@ -153,9 +146,6 @@ static struct kconf_id_strings_t kconf_id_strings_contents = | |||
| 153 | "prompt" | 146 | "prompt" |
| 154 | }; | 147 | }; |
| 155 | #define kconf_id_strings ((const char *) &kconf_id_strings_contents) | 148 | #define kconf_id_strings ((const char *) &kconf_id_strings_contents) |
| 156 | #ifdef __GNUC__ | ||
| 157 | __inline | ||
| 158 | #endif | ||
| 159 | struct kconf_id * | 149 | struct kconf_id * |
| 160 | kconf_id_lookup (register const char *str, register unsigned int len) | 150 | kconf_id_lookup (register const char *str, register unsigned int len) |
| 161 | { | 151 | { |
diff --git a/scripts/randomtest b/scripts/randomtest index e2513d058..41f252ad7 100755 --- a/scripts/randomtest +++ b/scripts/randomtest | |||
| @@ -52,9 +52,18 @@ echo '# CONFIG_RFKILL is not set' >>.config | |||
| 52 | if test x"$LIBC" = x"glibc"; then | 52 | if test x"$LIBC" = x"glibc"; then |
| 53 | cat .config \ | 53 | cat .config \ |
| 54 | | grep -v CONFIG_STATIC \ | 54 | | grep -v CONFIG_STATIC \ |
| 55 | \ | ||
| 56 | | grep -v CONFIG_FEATURE_2_4_MODULES \ | ||
| 57 | | grep -v CONFIG_FEATURE_USE_BSS_TAIL \ | ||
| 58 | | grep -v CONFIG_DEBUG_SANITIZE \ | ||
| 55 | >.config.new | 59 | >.config.new |
| 56 | mv .config.new .config | 60 | mv .config.new .config |
| 57 | echo '# CONFIG_STATIC is not set' >>.config | 61 | echo '# CONFIG_STATIC is not set' >>.config |
| 62 | # newer glibc (at least 2.23) no longer supply query_module() ABI. | ||
| 63 | # People who target 2.4 kernels would likely use older glibc (and older bbox). | ||
| 64 | echo '# CONFIG_FEATURE_2_4_MODULES is not set' >>.config | ||
| 65 | echo '# CONFIG_FEATURE_USE_BSS_TAIL is not set' >>.config | ||
| 66 | echo '# CONFIG_DEBUG_SANITIZE is not set' >>.config | ||
| 58 | fi | 67 | fi |
| 59 | 68 | ||
| 60 | # If uclibc, build static, and remove some things | 69 | # If uclibc, build static, and remove some things |
| @@ -68,6 +77,11 @@ if test x"$LIBC" = x"uclibc"; then | |||
| 68 | | grep -v CONFIG_FEATURE_2_4_MODULES \ | 77 | | grep -v CONFIG_FEATURE_2_4_MODULES \ |
| 69 | | grep -v CONFIG_FEATURE_SYNC_FANCY \ | 78 | | grep -v CONFIG_FEATURE_SYNC_FANCY \ |
| 70 | | grep -v CONFIG_FEATURE_TOUCH_NODEREF \ | 79 | | grep -v CONFIG_FEATURE_TOUCH_NODEREF \ |
| 80 | | grep -v CONFIG_NANDWRITE \ | ||
| 81 | | grep -v CONFIG_NANDDUMP \ | ||
| 82 | | grep -v CONFIG_BLKDISCARD \ | ||
| 83 | | grep -v CONFIG_NSENTER \ | ||
| 84 | | grep -v CONFIG_UNSHARE \ | ||
| 71 | >.config.new | 85 | >.config.new |
| 72 | mv .config.new .config | 86 | mv .config.new .config |
| 73 | echo 'CONFIG_STATIC=y' >>.config | 87 | echo 'CONFIG_STATIC=y' >>.config |
| @@ -76,6 +90,12 @@ if test x"$LIBC" = x"uclibc"; then | |||
| 76 | echo '# CONFIG_FEATURE_2_4_MODULES is not set' >>.config | 90 | echo '# CONFIG_FEATURE_2_4_MODULES is not set' >>.config |
| 77 | echo '# CONFIG_FEATURE_SYNC_FANCY is not set' >>.config | 91 | echo '# CONFIG_FEATURE_SYNC_FANCY is not set' >>.config |
| 78 | echo '# CONFIG_FEATURE_TOUCH_NODEREF is not set' >>.config | 92 | echo '# CONFIG_FEATURE_TOUCH_NODEREF is not set' >>.config |
| 93 | # My uclibc installation does not support some needed APIs... | ||
| 94 | echo '# CONFIG_NANDWRITE is not set' >>.config | ||
| 95 | echo '# CONFIG_NANDDUMP is not set' >>.config | ||
| 96 | echo '# CONFIG_BLKDISCARD is not set' >>.config | ||
| 97 | echo '# CONFIG_NSENTER is not set' >>.config | ||
| 98 | echo '# CONFIG_UNSHARE is not set' >>.config | ||
| 79 | fi | 99 | fi |
| 80 | 100 | ||
| 81 | # If STATIC, remove some things. | 101 | # If STATIC, remove some things. |
