diff options
-rw-r--r-- | apps/ChangeLog.txt | 3 | ||||
-rw-r--r-- | apps/nshlib/Kconfig | 107 | ||||
-rw-r--r-- | nuttx/ChangeLog | 6 | ||||
-rw-r--r-- | nuttx/Kconfig | 13 | ||||
-rw-r--r-- | nuttx/fs/Kconfig | 5 | ||||
-rw-r--r-- | nuttx/sched/Kconfig | 8 |
6 files changed, 102 insertions, 40 deletions
diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt index be52ac6b4..36a7fbc5c 100644 --- a/apps/ChangeLog.txt +++ b/apps/ChangeLog.txt @@ -840,3 +840,6 @@ * CONFIG_DISABLE_PSEUDOFS_OPERATIONS: This new configuration setting basically backs out the recent changes to mv, rm, mkdir, and rmdir (2014-2-20). + * nshlib/Kconfig: Use CONFIG_DEFAULT_SMALL in selecting default + settings (2014-2-20). + diff --git a/apps/nshlib/Kconfig b/apps/nshlib/Kconfig index 4167b9e4d..74d25a59e 100644 --- a/apps/nshlib/Kconfig +++ b/apps/nshlib/Kconfig @@ -14,7 +14,8 @@ if NSH_LIBRARY choice prompt "Command Line Editor" - default NSH_READLINE + default NSH_READLINE if DEFAULT_SMALL + default NSH_CLE if !DEFAULT_SMALL config NSH_READLINE bool "Minimal readline()" @@ -60,16 +61,19 @@ menu "Disable Individual commands" config NSH_DISABLE_ADDROUTE bool "Disable addroute" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_BASE64DEC bool "Disable base64dec" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL depends on NETUTILS_CODECS && CODECS_BASE64 config NSH_DISABLE_BASE64ENC bool "Disable base64enc" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL depends on NETUTILS_CODECS && CODECS_BASE64 config NSH_DISABLE_CAT @@ -86,15 +90,18 @@ config NSH_DISABLE_CP config NSH_DISABLE_CMP bool "Disable cmp" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_DD bool "Disable dd" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_DELROUTE bool "Disable delroute" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_ECHO bool "Disable echo" @@ -102,11 +109,13 @@ config NSH_DISABLE_ECHO config NSH_DISABLE_EXEC bool "Disable exec" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_EXIT bool "Disable exit" - default n + default y if DEFAULT_SMALL && !NSH_TELNET + default n if !DEFAULT_SMALL || NSH_TELNET config NSH_DISABLE_FREE bool "Disable free" @@ -114,7 +123,8 @@ config NSH_DISABLE_FREE config NSH_DISABLE_GET bool "Disable get" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_HELP bool "Disable help" @@ -122,7 +132,8 @@ config NSH_DISABLE_HELP config NSH_DISABLE_HEXDUMP bool "Disable hexdump" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_IFCONFIG bool "Disable ifconfig" @@ -134,7 +145,8 @@ config NSH_DISABLE_KILL config NSH_DISABLE_LOSETUP bool "Disable losetup" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_LS bool "Disable ls" @@ -146,7 +158,8 @@ config NSH_DISABLE_MB config NSH_DISABLE_MD5 bool "Disable md5" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL depends on NETUTILS_CODECS && CODECS_HASH_MD5 config NSH_DISABLE_MKDIR @@ -155,15 +168,19 @@ config NSH_DISABLE_MKDIR config NSH_DISABLE_MKFATFS bool "Disable mkfatfs" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL + depends on FS_FAT config NSH_DISABLE_MKFIFO bool "Disable mkfifo" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_MKRD bool "Disable mkrd" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_MH bool "Disable mh" @@ -180,18 +197,22 @@ config NSH_DISABLE_MW config NSH_DISABLE_NSFMOUNT bool "Disable nfsmount" default n + depends on NFS config NSH_DISABLE_PS bool "Disable ps" default n + depends on !NUTTX_KERNEL config NSH_DISABLE_PING bool "Disable ping" default n + depends on NET_ICMP config NSH_DISABLE_PUT bool "Disable put" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_PWD bool "Disable pwd" @@ -231,12 +252,14 @@ config NSH_DISABLE_UNSET config NSH_DISABLE_URLDECODE bool "Disable urldecode" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL depends on NETUTILS_CODECS && CODECS_URLCODE config NSH_DISABLE_URLENCODE bool "Disable urlencode" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL depends on NETUTILS_CODECS && CODECS_URLCODE config NSH_DISABLE_USLEEP @@ -245,11 +268,13 @@ config NSH_DISABLE_USLEEP config NSH_DISABLE_WGET bool "Disable wget" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config NSH_DISABLE_XD bool "Disable xd" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL endmenu @@ -257,7 +282,8 @@ menu "Configure Command Options" config NSH_CMDOPT_DF_H bool "df: Enable [-h] man-readable format" - default n + default n if DEFAULT_SMALL + default y if !DEFAULT_SMALL config NSH_CODECS_BUFSIZE int "File buffer size used by CODEC commands" @@ -265,16 +291,18 @@ config NSH_CODECS_BUFSIZE config NSH_CMDOPT_HEXDUMP bool "hexdump: Enable 'skip' and 'count' parameters" - default n + default n if DEFAULT_SMALL + default y if !DEFAULT_SMALL endmenu config NSH_FILEIOSIZE int "NSH I/O buffer size" - default 1024 + default 512 if DEFAULT_SMALL + default 1024 if !DEFAULT_SMALL ---help--- Size of a static I/O buffer used for file access (ignored if - there is no filesystem). Default is 1024. + there is no filesystem). Default is 512/1024. config NSH_STRERROR bool "Use strerror()" @@ -288,14 +316,16 @@ config NSH_STRERROR config NSH_LINELEN int "Max command line length" - default 80 + default 64 if DEFAULT_SMALL + default 80 if !DEFAULT_SMALL ---help--- The maximum length of one command line and of one output line. - Default: 80 + Default: 64/80 config NSH_DISABLE_SEMICOLON bool "Disable multiple commands per line" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL ---help--- By default, you can enter multiple NSH commands on a line with each command separated by a semicolon. You can disable this feature to @@ -303,7 +333,8 @@ config NSH_DISABLE_SEMICOLON config NSH_CMDPARMS bool "Enable commands as parameters" - default n + default n if DEFAULT_SMALL + default y if !DEFAULT_SMALL depends on !DISABLE_MOUNTPOINT ---help--- If selected, then the output from commands, from file applications, and @@ -340,7 +371,8 @@ config NSH_MAXARGUMENTS config NSH_ARGCAT bool "Concatenation of argument strings" - default n + default n if DEFAULT_SMALL + default y if !DEFAULT_SMALL ---help--- Support concatenation of strings with environment variables or command output. For example: @@ -363,7 +395,8 @@ config NSH_NESTDEPTH config NSH_DISABLESCRIPT bool "Disable script support" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL ---help--- This can be set to 'y' to suppress support for scripting. This setting disables the 'sh', 'test', and '[' commands and the @@ -374,7 +407,8 @@ if !NSH_DISABLESCRIPT config NSH_DISABLE_ITEF bool "Disable if-then-else-fi" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL ---help--- This can be set to 'y' to suppress support for if-then-else-fi sequences in scripts. This would only be set on systems where @@ -382,7 +416,8 @@ config NSH_DISABLE_ITEF config NSH_DISABLE_LOOPS bool "Disable loops" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL ---help--- This can be set to 'y' to suppress support for while-do-done and until-do-done sequences in scripts. This would only be set on @@ -393,7 +428,8 @@ endif # !NSH_DISABLESCRIPT config NSH_DISABLEBG bool "Disable background commands" - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL ---help--- This can be set to 'y' to suppress support for background commands. This setting disables the 'nice' command prefix and @@ -658,7 +694,8 @@ config NSH_ARCHINIT config NSH_TELNET bool "Use Telnet console" - default n + default n if DEFAULT_SMALL + default y if !DEFAULT_SMALL depends on NETUTILS_TELNETD ---help--- If NSH_TELNET is set to 'y', then a TELENET diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index ab2b470c7..45c4e2a56 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -6635,4 +6635,10 @@ CONFIG_DISABLE_PSEUDOFS_OPERATIONS that effectively can be set back out these recent changes in rmdir, mkdir, unlink, and rename for operations on the pseudo-filesystem (2014-2-20). + * Kconfig: Add an option to select default values for configuration + variables based upon whether you want a smaller footprint or more + features. CONFIG_DEFAULT_SMALL is used in sched/Kconfig and + fs/Kconfig and in apps/. It turns out this this is not very useful + if you are modifying existing configurations because then the + defaults do not apply (2014-2-20). diff --git a/nuttx/Kconfig b/nuttx/Kconfig index 1bf91e2a5..e4667d045 100644 --- a/nuttx/Kconfig +++ b/nuttx/Kconfig @@ -21,6 +21,19 @@ menu "Build Setup" config EXPERIMENTAL bool "Prompt for development and/or incomplete code/drivers" +config DEFAULT_SMALL + bool "Default to smallest size" + default n + ---help--- + When options are present, the default value for certain options will + be the one the results in the smallest size (at a loss of featurs). + The default is a fuller feature set at a larger size. + + NOTE: This option does not prevent you from overriding the default + to select another alternative. Nor does it affect the settings that + have already been selected in your configuration file. This applies + only to new settings that require a default value. + choice prompt "Build Host Platform" default HOST_LINUX diff --git a/nuttx/fs/Kconfig b/nuttx/fs/Kconfig index defeba011..b175276fa 100644 --- a/nuttx/fs/Kconfig +++ b/nuttx/fs/Kconfig @@ -10,8 +10,9 @@ config DISABLE_MOUNTPOINT default n config DISABLE_PSEUDOFS_OPERATIONS - bool "Disable pseudo-filesytem operations" - default n + bool "Disable pseudo-filesystem operations" + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL ---help--- Disable certain operations on pseudo-file systems include mkdir, rmdir, unlink, and rename. These are necessary for the logical diff --git a/nuttx/sched/Kconfig b/nuttx/sched/Kconfig index f559246f1..8aeda33ea 100644 --- a/nuttx/sched/Kconfig +++ b/nuttx/sched/Kconfig @@ -181,7 +181,7 @@ config JULIAN_TIME config START_YEAR int "Start year" - default 2013 + default 2014 config START_MONTH int "Start month" @@ -353,7 +353,8 @@ config DISABLE_CLOCK config DISABLE_POSIX_TIMERS bool "Disable POSIX timers" depends on DISABLE_OS_API - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL config DISABLE_PTHREAD bool "Disable pthread support" @@ -373,7 +374,8 @@ config DISABLE_MQUEUE config DISABLE_ENVIRON bool "Disable environment variable support" depends on DISABLE_OS_API - default n + default y if DEFAULT_SMALL + default n if !DEFAULT_SMALL if !DISABLE_SIGNALS comment "Signal Numbers" |