diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-07 16:00:25 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-07 16:00:25 +0200 |
commit | 798b94518e61ced3f7be7766727705df4859878c (patch) | |
tree | af26ec7b4cb178933e6a76decb9561739933288d /miscutils/flash_eraseall.c | |
parent | b34eb4a591fa4dbbc091524a1c1159e2743134c8 (diff) | |
download | busybox-w32-798b94518e61ced3f7be7766727705df4859878c.tar.gz busybox-w32-798b94518e61ced3f7be7766727705df4859878c.tar.bz2 busybox-w32-798b94518e61ced3f7be7766727705df4859878c.zip |
ubi tools: ubiupdatevol supports "-" input and actually respects -s SIZE
Decided to not make any flash applets NOEXEC.
Minor robustifications here and there. Better error messages. Save on strings:
function old new delta
ubi_tools_main 1235 1288 +53
ubi_get_volid_by_name 125 133 +8
ubirename_main 198 204 +6
get_num_from_file 90 94 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 71/0) Total: 71 bytes
text data bss dec hex filename
915696 485 6880 923061 e15b5 busybox_old
915670 485 6880 923035 e159b busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/flash_eraseall.c')
-rw-r--r-- | miscutils/flash_eraseall.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c index af9ebea24..3ddd9dd99 100644 --- a/miscutils/flash_eraseall.c +++ b/miscutils/flash_eraseall.c | |||
@@ -17,6 +17,7 @@ | |||
17 | //config: This utility is used to erase the whole MTD device. | 17 | //config: This utility is used to erase the whole MTD device. |
18 | 18 | ||
19 | //applet:IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 19 | //applet:IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
20 | /* not NOEXEC: if flash operation stalls, use less memory in "hung" process */ | ||
20 | 21 | ||
21 | //kbuild:lib-$(CONFIG_FLASH_ERASEALL) += flash_eraseall.o | 22 | //kbuild:lib-$(CONFIG_FLASH_ERASEALL) += flash_eraseall.o |
22 | 23 | ||