Add a little more configuration logic

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4587 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-04-10 23:49:13 +00:00
parent 77dda92fc9
commit 46e11c55c1
6 changed files with 70 additions and 24 deletions
+10 -1
View File
@@ -9,6 +9,10 @@ config SRCARCH
string string
option env="SRCARCH" option env="SRCARCH"
config APPSDIR
string
option env="APPSDIR"
menu "General setup" menu "General setup"
config EXPERIMENTAL config EXPERIMENTAL
bool "Prompt for development and/or incomplete code/drivers" bool "Prompt for development and/or incomplete code/drivers"
@@ -35,6 +39,7 @@ config DEBUG
default n default n
---help--- ---help---
enables built-in debug options enables built-in debug options
if DEBUG if DEBUG
config DEBUG_VERBOSE config DEBUG_VERBOSE
bool "enable debug verbose" bool "enable debug verbose"
@@ -110,7 +115,7 @@ config DEBUG_GRAPHICS
---help--- ---help---
enable NX graphics debug output enable NX graphics debug output
(disabled by default) (disabled by default)
endif endif
endmenu endmenu
menu "System Type" menu "System Type"
@@ -140,3 +145,7 @@ menu "Library routines"
source lib/Kconfig source lib/Kconfig
source libxx/Kconfig source libxx/Kconfig
endmenu endmenu
menu "Application configuration"
source "$APPSDIR/Kconfig"
endmenu
+1 -1
View File
@@ -606,5 +606,5 @@ endif
ARCH ?=sim ARCH ?=sim
menuconfig: menuconfig:
SRCARCH=${ARCH} mconf Kconfig SRCARCH=${ARCH} APPSDIR=${CONFIG_APPS_DIR} mconf Kconfig
+3 -5
View File
@@ -9,21 +9,20 @@ comment "FAT file system configuration"
config FS_FAT config FS_FAT
bool "FAT file system" bool "FAT file system"
default n default n
# depends on CONFIG_NFILE_DESCRIPTORS > 0 && !CONFIG_DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
---help--- ---help---
Enable FAT filesystem support Enable FAT filesystem support
if FS_FAT
config FAT_SECTORSIZE config FAT_SECTORSIZE
int "FAT sector size" int "FAT sector size"
default 512 default 512
depends on FS_FAT
---help--- ---help---
Max supported sector size Max supported sector size
config FAT_LCNAMES config FAT_LCNAMES
bool "FAT upper/lower names" bool "FAT upper/lower names"
default n default n
depends on FS_FAT
---help--- ---help---
Enable use of the NT-style upper/lower case 8.3 Enable use of the NT-style upper/lower case 8.3
file name support. file name support.
@@ -31,7 +30,6 @@ config FAT_LCNAMES
config FAT_LFN config FAT_LFN
bool "FAT long file names" bool "FAT long file names"
default n default n
depends on FS_FAT
---help--- ---help---
Enable FAT long file names. NOTE: Microsoft claims Enable FAT long file names. NOTE: Microsoft claims
patents on FAT long file name technology. Please read the patents on FAT long file name technology. Please read the
@@ -54,10 +52,10 @@ config FAT_MAXFNAME
config FS_FATTIME config FS_FATTIME
bool "FAT timestamps" bool "FAT timestamps"
default n default n
depends on FS_FAT
---help--- ---help---
Support FAT date and time. NOTE: There is not Support FAT date and time. NOTE: There is not
much sense in supporting FAT date and time unless you have a much sense in supporting FAT date and time unless you have a
hardware RTC or other way to get the time and date. hardware RTC or other way to get the time and date.
endif
endmenu endmenu
+3 -4
View File
@@ -9,13 +9,14 @@ comment "NXFFS file system configuration"
config FS_NXFFS config FS_NXFFS
bool "NXFFS file system" bool "NXFFS file system"
default n default n
depends on !DISABLE_MOUNTPOINT
---help--- ---help---
Enable NuttX FLASH file system (NXFF) support. Enable NuttX FLASH file system (NXFF) support.
if FS_NXFFS
config NXFFS_ERASEDSTATE config NXFFS_ERASEDSTATE
bool "FLASH erased state" bool "FLASH erased state"
default n default n
depends on FS_NXFFS
---help--- ---help---
The erased state of FLASH. The erased state of FLASH.
This must have one of the values of 0xff or 0x00. This must have one of the values of 0xff or 0x00.
@@ -24,7 +25,6 @@ config NXFFS_ERASEDSTATE
config NXFFS_PACKTHRESHOLD config NXFFS_PACKTHRESHOLD
bool "Re-packing threshold" bool "Re-packing threshold"
default n default n
depends on FS_NXFFS
---help--- ---help---
When packing flash file data, When packing flash file data,
don't both with file chunks smaller than this number of data bytes. don't both with file chunks smaller than this number of data bytes.
@@ -33,7 +33,6 @@ config NXFFS_PACKTHRESHOLD
config NXFFS_MAXNAMLEN config NXFFS_MAXNAMLEN
bool "Maximum file name length" bool "Maximum file name length"
default n default n
depends on FS_NXFFS
---help--- ---help---
The maximum size of an NXFFS file name. The maximum size of an NXFFS file name.
Default: 255. Default: 255.
@@ -41,7 +40,6 @@ config NXFFS_MAXNAMLEN
config NXFFS_TAILTHRESHOLD config NXFFS_TAILTHRESHOLD
bool "Tail threshold" bool "Tail threshold"
default n default n
depends on FS_NXFFS
---help--- ---help---
clean-up can either mean clean-up can either mean
packing files together toward the end of the file or, if file are packing files together toward the end of the file or, if file are
@@ -53,4 +51,5 @@ config NXFFS_TAILTHRESHOLD
and making it available for re-use (and possible over-wear). and making it available for re-use (and possible over-wear).
Default: 8192. Default: 8192.
endif
endmenu endmenu
+37 -5
View File
@@ -2,32 +2,57 @@
# For a description of the syntax of this configuration file, # For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
config STDIO_BUFFER_SIZE
int "C STDIO buffer size"
default 64
---help---
Size of buffers using within the C buffered I/O interfaces.
(printf, putchar, fwrite, etc.).
config STDIO_LINEBUFFER
bool "STDIO line buffering"
default y
---help---
Flush buffer I/O whenever a newline character is found in
the output data stream.
config CONFIG_LIB_HOMEDIR
string "Home directory"
default "/"
depends on !DISABLE_ENVIRON
---help---
The home directory to use with operations like such as 'cd ~'
config HAVE_LIBM config HAVE_LIBM
bool "supports libm.a" bool "Architecture-specific libm.a"
default n default n
---help---
Architecture specific logic provides an implementation of libm.a
and a math.h header file that can be found at include/arch/math.h.
config NOPRINTF_FIELDWIDTH config NOPRINTF_FIELDWIDTH
bool "disable sprintf support fieldwidth" bool "Disable sprintf support fieldwidth"
default n default n
---help--- ---help---
sprintf-related logic is a sprintf-related logic is a
little smaller if we do not support fieldwidthes little smaller if we do not support fieldwidthes
config LIBC_FLOATINGPOINT config LIBC_FLOATINGPOINT
bool "enable float point in printf" bool "Enable floating point in printf"
default n default n
---help--- ---help---
By default, floating point By default, floating point
support in printf, sscanf, etc. is disabled. support in printf, sscanf, etc. is disabled.
config ARCH_LOWPUTC config ARCH_LOWPUTC
bool "low-level console output" bool "Low-level console output"
default "y" default "y"
---help--- ---help---
architecture supports low-level, boot time console output architecture supports low-level, boot time console output
config ENABLE_ARCH_OPTIMIZED_FUN config ENABLE_ARCH_OPTIMIZED_FUN
bool "enable arch optimized function" bool "Enable arch optimized functions"
default n default n
---help--- ---help---
Allow for architecture optimized implementations Allow for architecture optimized implementations
@@ -51,24 +76,31 @@ config ARCH_MEMCMP
config ARCH_MEMMOVE config ARCH_MEMMOVE
bool "memmove" bool "memmove"
default n default n
config ARCH_MEMSET config ARCH_MEMSET
bool "memset" bool "memset"
default n default n
config ARCH_STRCMP config ARCH_STRCMP
bool "strcmp" bool "strcmp"
default n default n
config ARCH_STRCPY config ARCH_STRCPY
bool "strcpy" bool "strcpy"
default n default n
config ARCH_STRNCPY config ARCH_STRNCPY
bool "strncpy" bool "strncpy"
default n default n
config ARCH_STRLEN config ARCH_STRLEN
bool "strlen" bool "strlen"
default n default n
config ARCH_STRNLEN config ARCH_STRNLEN
bool "strlen" bool "strlen"
default n default n
config ARCH_BZERO config ARCH_BZERO
bool "bzero" bool "bzero"
default n default n
+16 -8
View File
@@ -2,18 +2,26 @@
# For a description of the syntax of this configuration file, # For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
config HAVE_CXX config HAVE_CXX
bool "have cxx" bool "Have C++ compiler"
default n default n
---help--- ---help---
toolchain supports C++ and CXX, CXXFLAGS, and Toolchain supports C++ and CXX, CXXFLAGS, and COMPILEXX have been
COMPILEXX have been defined in the configurations Make.defs defined in the configurations Make.defs file.
file.
config HAVE_CXXINITIALIZE config HAVE_CXXINITIALIZE
bool "have cxx initialize" bool "Have C++ initialization"
default n default n
---help--- ---help---
The platform-specific logic includes support The platform-specific logic includes support for initialization
for initialization of static C++ instances for this architecture of static C++ instances for this architecture and for the selected
and for the selected toolchain (via up_cxxinitialize()). toolchain (via up_cxxinitialize()).
config CXX_NEWLONG
bool "size_t is type long"
default n
---help---
size_t may be type long or type int. This matters for some
C++ library routines because the NuttX size_t might not have
the same underlying type as your toolchain's size_t.