diff options
author | Pascal Bellard <pascal.bellard@ads-lu.com> | 2010-10-18 00:51:16 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-18 00:51:16 +0200 |
commit | cadf90184c2c74e2c37161efe55cd05fb04e0c59 (patch) | |
tree | 68bbe5d086cc149334f405bc9446de53a68dbe1d | |
parent | 122a4b30f48d4e643148683ddd0ce74186259ca6 (diff) | |
download | busybox-w32-cadf90184c2c74e2c37161efe55cd05fb04e0c59.tar.gz busybox-w32-cadf90184c2c74e2c37161efe55cd05fb04e0c59.tar.bz2 busybox-w32-cadf90184c2c74e2c37161efe55cd05fb04e0c59.zip |
depmod: accept and ignore -u, -q, -C FILE
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | modutils/depmod.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modutils/depmod.c b/modutils/depmod.c index fec649882..85b64a229 100644 --- a/modutils/depmod.c +++ b/modutils/depmod.c | |||
@@ -151,6 +151,8 @@ static void xfreopen_write(const char *file, FILE *f) | |||
151 | * Print to stdout all the symbols each module depends on | 151 | * Print to stdout all the symbols each module depends on |
152 | * and the module's file name which provides that symbol. | 152 | * and the module's file name which provides that symbol. |
153 | * -r No-op | 153 | * -r No-op |
154 | * -u No-op | ||
155 | * -q No-op | ||
154 | * | 156 | * |
155 | * So far we only support: [-rn] [-b BASE] [VERSION] [MODFILES]... | 157 | * So far we only support: [-rn] [-b BASE] [VERSION] [MODFILES]... |
156 | * -aAeF are accepted but ignored. -vC are not accepted. | 158 | * -aAeF are accepted but ignored. -vC are not accepted. |
@@ -162,7 +164,10 @@ enum { | |||
162 | //OPT_e = (1 << 3), /* with -F, print unresolved symbols */ | 164 | //OPT_e = (1 << 3), /* with -F, print unresolved symbols */ |
163 | //OPT_F = (1 << 4), /* System.map that contains the symbols */ | 165 | //OPT_F = (1 << 4), /* System.map that contains the symbols */ |
164 | OPT_n = (1 << 5), /* dry-run, print to stdout only */ | 166 | OPT_n = (1 << 5), /* dry-run, print to stdout only */ |
165 | OPT_r = (1 << 6) /* Compat dummy. Linux Makefile uses it */ | 167 | OPT_r = (1 << 6), /* Compat dummy. Linux Makefile uses it */ |
168 | OPT_u = (1 << 7), /* -u,--unresolved-error: ignored */ | ||
169 | OPT_q = (1 << 8), /* -q,--quiet: ignored */ | ||
170 | OPT_C = (1 << 9), /* -C,--config etc_modules_conf: ignored */ | ||
166 | }; | 171 | }; |
167 | 172 | ||
168 | int depmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 173 | int depmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
@@ -174,7 +179,7 @@ int depmod_main(int argc UNUSED_PARAM, char **argv) | |||
174 | struct utsname uts; | 179 | struct utsname uts; |
175 | int tmp; | 180 | int tmp; |
176 | 181 | ||
177 | getopt32(argv, "aAb:eF:nr", &moddir_base, NULL); | 182 | getopt32(argv, "aAb:eF:nruqC:", &moddir_base, NULL, NULL); |
178 | argv += optind; | 183 | argv += optind; |
179 | 184 | ||
180 | /* goto modules location */ | 185 | /* goto modules location */ |