Skip to content

Commit df114dc

Browse files
committed
nshlib/dd: remove nsh dd cmd
using system/dd to instead nsh dd cmd remove related to config, file. Signed-off-by: dongjiuzhu1 <[email protected]>
1 parent ebd82c1 commit df114dc

File tree

7 files changed

+2
-527
lines changed

7 files changed

+2
-527
lines changed

nshlib/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ if(CONFIG_NSH_LIBRARY)
3434
nsh_system.c
3535
nsh_command.c
3636
nsh_fscmds.c
37-
nsh_ddcmd.c
3837
nsh_proccmds.c
3938
nsh_mmcmds.c
4039
nsh_timcmds.c

nshlib/Kconfig

-9
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,6 @@ config NSH_DISABLE_DATE
345345
bool "Disable date"
346346
default DEFAULT_SMALL || !RTC
347347

348-
config NSH_DISABLE_DD
349-
bool "Disable dd"
350-
default DEFAULT_SMALL
351-
352348
config NSH_DISABLE_DF
353349
bool "Disable df"
354350
default DEFAULT_SMALL
@@ -787,11 +783,6 @@ config NSH_VARS
787783
variables variables
788784
============== =========================== ===========================
789785

790-
config NSH_CMDOPT_DD_STATS
791-
bool "dd: Support transfer statistics"
792-
default n
793-
depends on !NSH_DISABLE_DD
794-
795786
config NSH_CODECS_BUFSIZE
796787
int "File buffer size used by CODEC commands"
797788
default 128

nshlib/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include $(APPDIR)/Make.defs
2525
# NSH Library
2626

2727
CSRCS = nsh_init.c nsh_parse.c nsh_console.c nsh_script.c nsh_system.c
28-
CSRCS += nsh_command.c nsh_fscmds.c nsh_ddcmd.c nsh_proccmds.c nsh_mmcmds.c
28+
CSRCS += nsh_command.c nsh_fscmds.c nsh_proccmds.c nsh_mmcmds.c
2929
CSRCS += nsh_timcmds.c nsh_envcmds.c nsh_syscmds.c nsh_dbgcmds.c nsh_prompt.c
3030

3131
CSRCS += nsh_session.c

nshlib/nsh.h

-3
Original file line numberDiff line numberDiff line change
@@ -975,9 +975,6 @@ int cmd_irqinfo(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
975975
#ifndef CONFIG_NSH_DISABLE_CMP
976976
int cmd_cmp(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
977977
#endif
978-
#ifndef CONFIG_NSH_DISABLE_DD
979-
int cmd_dd(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
980-
#endif
981978
#ifndef CONFIG_NSH_DISABLE_HEXDUMP
982979
int cmd_hexdump(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv);
983980
#endif

nshlib/nsh_command.c

-6
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,6 @@ static const struct cmdmap_s g_cmdmap[] =
185185
1, 4, "[-s \"MMM DD HH:MM:SS YYYY\"] [-u] [+format]"),
186186
#endif
187187

188-
#ifndef CONFIG_NSH_DISABLE_DD
189-
CMD_MAP("dd", cmd_dd, 1, 7,
190-
"if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] "
191-
"[skip=<sectors>] [seek=<sectors>] [verify] [conv=<nocreat,notrunc>]"),
192-
#endif
193-
194188
#if defined(CONFIG_NET) && defined(CONFIG_NET_ROUTE) && !defined(CONFIG_NSH_DISABLE_DELROUTE)
195189
CMD_MAP("delroute", cmd_delroute, 2, 3, "<target> [<netmask>]"),
196190
#endif

0 commit comments

Comments
 (0)