nshlib: remove NSH_HAVE_WRITABLE_MOUNTPOINT to enable mkrd again

This commit is contained in:
spiriou 2020-08-23 19:25:25 +02:00 committed by Xiang Xiao
parent aa717d59fd
commit 06c7f06b1d
2 changed files with 1 additions and 5 deletions

View File

@ -323,11 +323,9 @@ static const struct cmdmap_s g_cmdmap[] =
# endif # endif
#endif #endif
#ifdef NSH_HAVE_WRITABLE_MOUNTPOINT #ifndef CONFIG_NSH_DISABLE_MKRD
# ifndef CONFIG_NSH_DISABLE_MKRD
{ "mkrd", cmd_mkrd, 2, 6, { "mkrd", cmd_mkrd, 2, 6,
"[-m <minor>] [-s <sector-size>] <nsectors>" }, "[-m <minor>] [-s <sector-size>] <nsectors>" },
# endif
#endif #endif
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_SMARTFS) && \ #if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_SMARTFS) && \

View File

@ -1360,7 +1360,6 @@ int cmd_mkfifo(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
* Name: cmd_mkrd * Name: cmd_mkrd
****************************************************************************/ ****************************************************************************/
#ifdef NSH_HAVE_WRITABLE_MOUNTPOINT
#ifndef CONFIG_NSH_DISABLE_MKRD #ifndef CONFIG_NSH_DISABLE_MKRD
int cmd_mkrd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) int cmd_mkrd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
{ {
@ -1458,7 +1457,6 @@ errout_with_fmt:
return ERROR; return ERROR;
} }
#endif #endif
#endif
/**************************************************************************** /****************************************************************************
* Name: cmd_mksmartfs * Name: cmd_mksmartfs