diff options
author | Ron Yorston <rmy@pobox.com> | 2018-11-21 10:11:01 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-11-27 10:38:10 +0100 |
commit | 7b42f8fc76d78fe9c6b0cbe15e1425f2fd9fb5e8 (patch) | |
tree | c18d535a6a1821a683f2bebf0370c1d77c4d86a1 /include | |
parent | dffc8ff6a638a4ae865821eb2d0852124c096c11 (diff) | |
download | busybox-w32-7b42f8fc76d78fe9c6b0cbe15e1425f2fd9fb5e8.tar.gz busybox-w32-7b42f8fc76d78fe9c6b0cbe15e1425f2fd9fb5e8.tar.bz2 busybox-w32-7b42f8fc76d78fe9c6b0cbe15e1425f2fd9fb5e8.zip |
Tweaks to build process for embedded scripts
- Force a rebuild if a script in applets_sh is changed.
- Move the dummy usage messages for custom applets to usage.h and
change the name from 'dummy' to 'scripted'.
- Hide an error from gen_build_files.sh if an embed directory exists
but is empty.
- Tidy up embedded_scripts script.
v2: Remove a couple of unnecessary tests in embedded_scripts, as
pointed out by Xabier Oneca.
Drop the stripping of comments.
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.src.h | 6 | ||||
-rw-r--r-- | include/usage.src.h | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/applets.src.h b/include/applets.src.h index a9db5d160..60968cec7 100644 --- a/include/applets.src.h +++ b/include/applets.src.h | |||
@@ -22,12 +22,6 @@ s - suid type: | |||
22 | BB_SUID_REQUIRE or BB_SUID_MAYBE applet. | 22 | BB_SUID_REQUIRE or BB_SUID_MAYBE applet. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #define NOUSAGE_STR "\b" | ||
26 | |||
27 | #define dummy_trivial_usage NOUSAGE_STR \ | ||
28 | |||
29 | #define dummy_full_usage "" \ | ||
30 | |||
31 | #if defined(PROTOTYPES) | 25 | #if defined(PROTOTYPES) |
32 | # define APPLET(name,l,s) int name##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 26 | # define APPLET(name,l,s) int name##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
33 | # define APPLET_ODDNAME(name,main,l,s,help) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 27 | # define APPLET_ODDNAME(name,main,l,s,help) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
diff --git a/include/usage.src.h b/include/usage.src.h index 00369dfb3..d22efd3ba 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
@@ -14,6 +14,9 @@ | |||
14 | 14 | ||
15 | #define NOUSAGE_STR "\b" | 15 | #define NOUSAGE_STR "\b" |
16 | 16 | ||
17 | #define scripted_trivial_usage NOUSAGE_STR | ||
18 | #define scripted_full_usage "" | ||
19 | |||
17 | #if !ENABLE_USE_BB_CRYPT || ENABLE_USE_BB_CRYPT_SHA | 20 | #if !ENABLE_USE_BB_CRYPT || ENABLE_USE_BB_CRYPT_SHA |
18 | # define CRYPT_METHODS_HELP_STR "des,md5,sha256/512" \ | 21 | # define CRYPT_METHODS_HELP_STR "des,md5,sha256/512" \ |
19 | " (default "CONFIG_FEATURE_DEFAULT_PASSWD_ALGO")" | 22 | " (default "CONFIG_FEATURE_DEFAULT_PASSWD_ALGO")" |