diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bb_config.h | 151 | ||||
-rw-r--r-- | include/libbb.h | 2 |
2 files changed, 1 insertions, 152 deletions
diff --git a/include/bb_config.h b/include/bb_config.h deleted file mode 100644 index 152eb13e6..000000000 --- a/include/bb_config.h +++ /dev/null | |||
@@ -1,151 +0,0 @@ | |||
1 | /* Hack. kbuild will not define needed macros for config symbols | ||
2 | * which depend on other symbols, which themself are off. | ||
3 | * Provide them here by hand. Need a better idea. */ | ||
4 | |||
5 | /* This is especially bad because it forces rebuild of | ||
6 | * everything whenever any of these options change */ | ||
7 | |||
8 | #ifndef ENABLE_FEATURE_GUNZIP_UNCOMPRESS | ||
9 | #define ENABLE_FEATURE_GUNZIP_UNCOMPRESS 0 | ||
10 | #define USE_FEATURE_GUNZIP_UNCOMPRESS(...) | ||
11 | #define SKIP_FEATURE_GUNZIP_UNCOMPRESS(...) __VA_ARGS__ | ||
12 | #endif | ||
13 | |||
14 | #ifndef ENABLE_KILLALL5 | ||
15 | #define ENABLE_KILLALL5 0 | ||
16 | #define USE_KILLALL5(...) | ||
17 | #define SKIP_KILLALL5(...) __VA_ARGS__ | ||
18 | #endif | ||
19 | |||
20 | #ifndef ENABLE_FEATURE_QUERY_MODULE_INTERFACE | ||
21 | #define ENABLE_FEATURE_QUERY_MODULE_INTERFACE 0 | ||
22 | #define USE_FEATURE_QUERY_MODULE_INTERFACE(...) | ||
23 | #define SKIP_FEATURE_QUERY_MODULE_INTERFACE(...) __VA_ARGS__ | ||
24 | #endif | ||
25 | |||
26 | #ifndef ENABLE_FEATURE_CLEAN_UP | ||
27 | #define ENABLE_FEATURE_CLEAN_UP 0 | ||
28 | #define USE_FEATURE_CLEAN_UP(...) | ||
29 | #define SKIP_FEATURE_CLEAN_UP(...) __VA_ARGS__ | ||
30 | #endif | ||
31 | |||
32 | #ifndef ENABLE_FEATURE_SH_STANDALONE_SHELL | ||
33 | #define ENABLE_FEATURE_SH_STANDALONE_SHELL 0 | ||
34 | #define USE_FEATURE_SH_STANDALONE_SHELL(...) | ||
35 | #define SKIP_FEATURE_SH_STANDALONE_SHELL(...) __VA_ARGS__ | ||
36 | #endif | ||
37 | |||
38 | #ifndef ENABLE_FEATURE_MTAB_SUPPORT | ||
39 | #define ENABLE_FEATURE_MTAB_SUPPORT 0 | ||
40 | #define USE_FEATURE_MTAB_SUPPORT(...) | ||
41 | #define SKIP_FEATURE_MTAB_SUPPORT(...) __VA_ARGS__ | ||
42 | #endif | ||
43 | |||
44 | #ifndef ENABLE_FEATURE_PRESERVE_HARDLINKS | ||
45 | #define ENABLE_FEATURE_PRESERVE_HARDLINKS 0 | ||
46 | #define USE_FEATURE_PRESERVE_HARDLINKS(...) | ||
47 | #define SKIP_FEATURE_PRESERVE_HARDLINKS(...) __VA_ARGS__ | ||
48 | #endif | ||
49 | |||
50 | #ifndef ENABLE_FEATURE_AUTOWIDTH | ||
51 | #define ENABLE_FEATURE_AUTOWIDTH 0 | ||
52 | #define USE_FEATURE_AUTOWIDTH(...) | ||
53 | #define SKIP_FEATURE_AUTOWIDTH(...) __VA_ARGS__ | ||
54 | #endif | ||
55 | |||
56 | #ifndef ENABLE_FEATURE_SUID_CONFIG | ||
57 | #define ENABLE_FEATURE_SUID_CONFIG 0 | ||
58 | #define USE_FEATURE_SUID_CONFIG(...) | ||
59 | #define SKIP_FEATURE_SUID_CONFIG(...) __VA_ARGS__ | ||
60 | #endif | ||
61 | |||
62 | #ifndef ENABLE_APP_DUMPLEASES | ||
63 | #define ENABLE_APP_DUMPLEASES 0 | ||
64 | #define USE_APP_DUMPLEASES(...) | ||
65 | #define SKIP_APP_DUMPLEASES(...) __VA_ARGS__ | ||
66 | #endif | ||
67 | |||
68 | #ifndef ENABLE_E2LABEL | ||
69 | #define ENABLE_E2LABEL 0 | ||
70 | #define USE_E2LABEL(...) | ||
71 | #define SKIP_E2LABEL(...) __VA_ARGS__ | ||
72 | #endif | ||
73 | |||
74 | #ifndef ENABLE_FEATURE_GREP_EGREP_ALIAS | ||
75 | #define ENABLE_FEATURE_GREP_EGREP_ALIAS 0 | ||
76 | #define USE_FEATURE_GREP_EGREP_ALIAS(...) | ||
77 | #define SKIP_FEATURE_GREP_EGREP_ALIAS(...) __VA_ARGS__ | ||
78 | #endif | ||
79 | |||
80 | #ifndef ENABLE_FEATURE_GREP_FGREP_ALIAS | ||
81 | #define ENABLE_FEATURE_GREP_FGREP_ALIAS 0 | ||
82 | #define USE_FEATURE_GREP_FGREP_ALIAS(...) | ||
83 | #define SKIP_FEATURE_GREP_FGREP_ALIAS(...) __VA_ARGS__ | ||
84 | #endif | ||
85 | |||
86 | #ifndef ENABLE_FINDFS | ||
87 | #define ENABLE_FINDFS 0 | ||
88 | #define USE_FINDFS(...) | ||
89 | #define SKIP_FINDFS(...) __VA_ARGS__ | ||
90 | #endif | ||
91 | |||
92 | #ifndef ENABLE_IPADDR | ||
93 | #define ENABLE_IPADDR 0 | ||
94 | #define USE_IPADDR(...) | ||
95 | #define SKIP_IPADDR(...) __VA_ARGS__ | ||
96 | #endif | ||
97 | |||
98 | #ifndef ENABLE_IPLINK | ||
99 | #define ENABLE_IPLINK 0 | ||
100 | #define USE_IPLINK(...) | ||
101 | #define SKIP_IPLINK(...) __VA_ARGS__ | ||
102 | #endif | ||
103 | |||
104 | #ifndef ENABLE_IPROUTE | ||
105 | |||
106 | #define ENABLE_IPROUTE 0 | ||
107 | #define USE_IPROUTE(...) | ||
108 | #define SKIP_IPROUTE(...) __VA_ARGS__ | ||
109 | #endif | ||
110 | |||
111 | #ifndef ENABLE_IPTUNNEL | ||
112 | #define ENABLE_IPTUNNEL 0 | ||
113 | #define USE_IPTUNNEL(...) | ||
114 | #define SKIP_IPTUNNEL(...) __VA_ARGS__ | ||
115 | #endif | ||
116 | |||
117 | #ifndef ENABLE_KILLALL | ||
118 | #define ENABLE_KILLALL 0 | ||
119 | #define USE_KILLALL(...) | ||
120 | #define SKIP_KILLALL(...) __VA_ARGS__ | ||
121 | #endif | ||
122 | |||
123 | #ifndef ENABLE_KLOGD | ||
124 | #define ENABLE_KLOGD 0 | ||
125 | #define USE_KLOGD(...) | ||
126 | #define SKIP_KLOGD(...) __VA_ARGS__ | ||
127 | #endif | ||
128 | |||
129 | #ifndef ENABLE_FEATURE_INITRD | ||
130 | #define ENABLE_FEATURE_INITRD 0 | ||
131 | #define USE_FEATURE_INITRD(...) | ||
132 | #define SKIP_FEATURE_INITRD(...) __VA_ARGS__ | ||
133 | #endif | ||
134 | |||
135 | #ifndef ENABLE_LOGREAD | ||
136 | #define ENABLE_LOGREAD 0 | ||
137 | #define USE_LOGREAD(...) | ||
138 | #define SKIP_LOGREAD(...) __VA_ARGS__ | ||
139 | #endif | ||
140 | |||
141 | #ifndef ENABLE_PING6 | ||
142 | #define ENABLE_PING6 0 | ||
143 | #define USE_PING6(...) | ||
144 | #define SKIP_PING6(...) __VA_ARGS__ | ||
145 | #endif | ||
146 | |||
147 | #ifndef ENABLE_UNIX2DOS | ||
148 | #define ENABLE_UNIX2DOS 0 | ||
149 | #define USE_UNIX2DOS(...) | ||
150 | #define SKIP_UNIX2DOS(...) __VA_ARGS__ | ||
151 | #endif | ||
diff --git a/include/libbb.h b/include/libbb.h index 901c7e669..b1ddbb0c0 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -10,7 +10,7 @@ | |||
10 | #ifndef __LIBBUSYBOX_H__ | 10 | #ifndef __LIBBUSYBOX_H__ |
11 | #define __LIBBUSYBOX_H__ 1 | 11 | #define __LIBBUSYBOX_H__ 1 |
12 | 12 | ||
13 | #include "bb_config.h" | 13 | //Ok to remove? #include "bb_config.h" |
14 | #include "platform.h" | 14 | #include "platform.h" |
15 | 15 | ||
16 | #include <ctype.h> | 16 | #include <ctype.h> |