diff --git a/ChangeLog b/ChangeLog index 110119ca0d..56647921f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -547,3 +547,7 @@ This is the size of stack used with the user_start() thread is created. The two stacks no longer have to be the same. * Add a loop device that converts a file into a block device. + * Each NSH command can not be disabled through a configuration setting. All of these + settings make the configuration of NSH potentially complex but also allow it to squeeze + into very small memory footprints. + diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index f292c26cd4..a46f8fedaf 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -1590,6 +1590,13 @@ nsh> Configuration settings specific to NSH as discussed at the bottom of this document.
++ Note that in addition to general NuttX configuation settings, each NSH command can be + individually disabled via the settings in the rightmost column. + All of these settings make the configuration of NSH potentially complex but also allow it to + squeeze into very small memory footprints. +
+@@ -1603,134 +1610,175 @@ nsh> | ||
Command | Depends on Configuration | +Can Be Disabled with |
---|---|---|
[ |
!CONFIG_EXAMPLES_NSH_DISABLESCRIPT |
+ CONFIG_EXAMPLES_NSH_DISABLE_TEST |
cat |
CONFIG_NFILE_DESCRIPTORS > 0 |
+ CONFIG_EXAMPLES_NSH_DISABLE_CAT |
cd |
!CONFIG_DISABLE_ENVIRON && CONFIG_NFILE_DESCRIPTORS > 0 |
+ CONFIG_EXAMPLES_NSH_DISABLE_CD |
cp |
CONFIG_NFILE_DESCRIPTORS > 0 |
+ CONFIG_EXAMPLES_NSH_DISABLE_CP |
echo |
CONFIG_EXAMPLES_NSH_DISABLE_ECHO |
|
exec |
CONFIG_EXAMPLES_NSH_DISABLE_EXEC |
|
exit |
CONFIG_EXAMPLES_NSH_DISABLE_EXIT |
|
get |
CONFIG_NET && CONFIG_NET_UDP &&
CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NET_BUFSIZE >= 5581 |
+ CONFIG_EXAMPLES_NSH_DISABLE_GET |
help |
CONFIG_EXAMPLES_NSH_DISABLE_HELP |
|
ifconfig |
CONFIG_NET |
+ CONFIG_EXAMPLES_NSH_DISABLE_IFCONFIG |
ls |
CONFIG_NFILE_DESCRIPTORS > 0 |
+ CONFIG_EXAMPLES_NSH_DISABLE_LS |
mb,mh,mw |
+ CONFIG_EXAMPLES_NSH_DISABLE_MB ,+ CONFIG_EXAMPLES_NSH_DISABLE_MH ,+ CONFIG_EXAMPLES_NSH_DISABLE_MW
+ |
|
mem |
CONFIG_EXAMPLES_NSH_DISABLE_MEM |
|
mkdir |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE 4 |
+ CONFIG_EXAMPLES_NSH_DISABLE_MKDIR |
mkfatfs |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_FAT |
+ CONFIG_EXAMPLES_NSH_DISABLE_MKFATFS |
mkfifo |
CONFIG_NFILE_DESCRIPTORS > 0 |
+ CONFIG_EXAMPLES_NSH_DISABLE_MKFIFO |
mkrd |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE 4 |
+ CONFIG_EXAMPLES_NSH_DISABLE_MKRD |
mount |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_READABLE 3 |
+ CONFIG_EXAMPLES_NSH_DISABLE_MOUNT |
ping |
CONFIG_NET && CONFIG_NET_ICMP &&
CONFIG_NET_ICMP_PING && !CONFIG_DISABLE_CLOCK &&
!CONFIG_DISABLE_SIGNALS |
+ CONFIG_EXAMPLES_NSH_DISABLE_PING |
ps |
CONFIG_EXAMPLES_NSH_DISABLE_PS |
|
put |
CONFIG_NET && CONFIG_NET_UDP &&
CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NET_BUFSIZE >= 5581,2 |
+ CONFIG_EXAMPLES_NSH_DISABLE_PUT |
pwd |
!CONFIG_DISABLE_ENVIRON && CONFIG_NFILE_DESCRIPTORS > 0 |
+ CONFIG_EXAMPLES_NSH_DISABLE_PWD |
rm |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE 4 |
+ CONFIG_EXAMPLES_NSH_DISABLE_RM |
rmdir |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE 4 |
+ CONFIG_EXAMPLES_NSH_DISABLE_RMDIR |
set |
!CONFIG_DISABLE_ENVIRON |
+ CONFIG_EXAMPLES_NSH_DISABLE_SET |
sh |
CONFIG_NFILE_DESCRIPTORS > 0 && |
+ CONFIG_EXAMPLES_NSH_DISABLE_SH |
sleep |
!CONFIG_DISABLE_SIGNALS |
+ CONFIG_EXAMPLES_NSH_DISABLE_SLEEP |
test |
!CONFIG_EXAMPLES_NSH_DISABLESCRIPT |
+ CONFIG_EXAMPLES_NSH_DISABLE_TEST |
umount |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_READABLE 3 |
+ CONFIG_EXAMPLES_NSH_DISABLE_UMOUNT |
unset |
!CONFIG_DISABLE_ENVIRON |
+ CONFIG_EXAMPLES_NSH_DISABLE_UNSET |
usleep |
!CONFIG_DISABLE_SIGNALS |
+ CONFIG_EXAMPLES_NSH_DISABLE_USLEEP |
+
xd |
+ CONFIG_EXAMPLES_NSH_DISABLE_XD |
Last Updated: November 13, 2008
+Last Updated: November 15, 2008
by
Gregory Nutt
-Last Update: November 5, 2008
+Last Update: November 14, 2008