From d692001fd576c68942a1eb7cad18974d07c8dc7a Mon Sep 17 00:00:00 2001 From: bernard Date: Tue, 31 Jan 2017 11:54:12 +0800 Subject: [tools] Add KConfig files. --- components/KConfig | 13 +++++++ components/dfs/KConfig | 77 +++++++++++++++++++++++++++++++++++++++ components/drivers/KConfig | 90 ++++++++++++++++++++++++++++++++++++++++++++++ components/finsh/KConfig | 43 ++++++++++++++++++++++ components/libc/KConfig | 11 ++++++ 5 files changed, 234 insertions(+) create mode 100644 components/KConfig create mode 100644 components/dfs/KConfig create mode 100644 components/drivers/KConfig create mode 100644 components/finsh/KConfig create mode 100644 components/libc/KConfig (limited to 'components') diff --git a/components/KConfig b/components/KConfig new file mode 100644 index 0000000000..5747befe3a --- /dev/null +++ b/components/KConfig @@ -0,0 +1,13 @@ +menu "RT-Thread Components" + +source "$RTT_DIR/components/finsh/KConfig" + +source "$RTT_DIR/components/dfs/KConfig" + +source "$RTT_DIR/components/drivers/KConfig" + +source "$RTT_DIR/components/libc/KConfig" + +source "$RTT_DIR/components/net/KConfig" + +endmenu diff --git a/components/dfs/KConfig b/components/dfs/KConfig new file mode 100644 index 0000000000..6de6d05ea8 --- /dev/null +++ b/components/dfs/KConfig @@ -0,0 +1,77 @@ +menu "Device virtual file system" + +config RT_USING_DFS + bool "Using device virtual file system" + default y + help + The device file system is a light weight virtual file system. + +if RT_USING_DFS + config DFS_USING_WORKDIR + bool "Using working directory" + default y + + config DFS_FILESYSTEMS_MAX + int "The maximal number of mounted file system" + default 2 + + config DFS_FD_MAX + int "The maximal number of opened files" + default 4 + + config RT_USING_DFS_ELMFAT + bool "Enable elm-chan fatfs" + default y + help + FatFs is a generic FAT/exFAT file system module for small embedded systems. + if RT_USING_DFS_ELMFAT + config RT_DFS_ELM_CODE_PAGE + int "OEM code page" + default 437 + + config RT_DFS_ELM_MAX_LFN + int "Maximal size of file name length" + default 256 + + config RT_DFS_ELM_DRIVES + int "Number of volumes (logical drives) to be used." + default 2 + + config RT_DFS_ELM_MAX_SECTOR_SIZE + int "Maximum sector size to be handled." + default 512 + help + if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096. + + config RT_DFS_ELM_USE_ERASE + bool "Enable sector erase feature" + default n + + config RT_DFS_ELM_REENTRANT + bool "Enable the reentrancy (thread safe) of the FatFs module" + default y + endif + + config RT_USING_DFS_DEVFS + bool "Using devfs for device objects" + default y + + config RT_USING_DFS_NET + bool "Enable BSD socket operated by file system API" + default n + help + Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs. + + config RT_USING_DFS_NFS + bool "Using NFS v3 client file system" + default n + + if RT_USING_DFS_NFS + config RT_NFS_HOST_EXPORT + string "NFSv3 host export" + default "192.168.1.5:/" + endif + +endif + +endmenu diff --git a/components/drivers/KConfig b/components/drivers/KConfig new file mode 100644 index 0000000000..b72d7d7162 --- /dev/null +++ b/components/drivers/KConfig @@ -0,0 +1,90 @@ +menu "Device Drivers" + +config RT_USING_SERIAL + bool "Using serial device drivers" + default y + +config RT_USING_CAN + bool "Using CAN device drivers" + default n + +config RT_USING_HWTIMER + bool "Using hardware timer device drivers" + default n + +config RT_USING_I2C + bool "Using I2C device drivers" + default n + +config RT_USING_PIN + bool "Using generic GPIO device drivers" + default y + +config RT_USING_MTD_NOR + bool "Using MTD Nor Flash device drivers" + default n + +config RT_USING_MTD_NAND + bool "Using MTD Nand Flash device drivers" + default n + +config RT_USING_RTC + bool "Using RTC device drivers" + default n + +config RT_USING_SDIO + bool "Using SD/MMC device drivers" + default n + +config RT_USING_SPI + bool "Using SPI Bus/Device device drivers" + default n + + if RT_USING_SPI + config RT_USING_W25QXX + bool "Using W25QXX SPI NorFlash" + default n + + config RT_USING_GD + bool "Using GD SPI NorFlash" + default n + + config RT_USING_ENC28J60 + bool "Using ENC28J60 SPI Ethernet network interface" + select RT_USING_LWIP + default n + + config RT_USING_SPI_WIFI + bool "Using RW009/007 SPI Wi-Fi wireless interface" + select RT_USING_LWIP + default n + endif + +config RT_USING_WDT + bool "Using Watch Dog device drivers" + default n + +config RT_USING_USB_HOST + bool "Using USB host" + default n + + if RT_USING_USB_HOST + config RT_USBH_ADK + bool "Enable connected with Android by ADK USB" + default n + endif + +config RT_USING_USB_DEVICE + bool "Using USB device" + default n + + if RT_USING_USB_DEVICE + config RT_USB_DEVICE_CDC + bool "Enable to use device as CDC device" + default n + + config RT_USB_DEVICE_MSTORAGE + bool "Enable to use device as Mass Storage device" + default n + endif +endmenu diff --git a/components/finsh/KConfig b/components/finsh/KConfig new file mode 100644 index 0000000000..e735517f4b --- /dev/null +++ b/components/finsh/KConfig @@ -0,0 +1,43 @@ +menu "Command shell" + +config RT_USING_FINSH + bool "finsh shell" + default y + +if RT_USING_FINSH + +config FINSH_USING_SYMTAB + bool "Using symbol table for commands" + default y + +config FINSH_USING_DESCRIPTION + bool "Keeping description in symbol table" + default y + +config FINSH_THREAD_STACK_SIZE + int "The stack size for finsh thread" + default 4096 + +config FINSH_USING_AUTH + bool "shell support authentication" + default n + +config FINSH_DEFAULT_PASSWORD + string "The default password for shell authentication" + default "rtthread" + +config FINSH_USING_MSH + bool "Using module shell" + default y + +config FINSH_USING_MSH_DEFAULT + bool "Using module shell in default" + default y + +config FINSH_USING_MSH_ONLY + bool "Only using module shell" + default n + +endif + +endmenu diff --git a/components/libc/KConfig b/components/libc/KConfig new file mode 100644 index 0000000000..155cb0d700 --- /dev/null +++ b/components/libc/KConfig @@ -0,0 +1,11 @@ +menu "libc" + +config RT_USING_LIBC + bool "Enable libc APIs from toolchain" + default y + +config RT_USING_PTHREADS + bool "Enable pthreads APIs" + default y + +endmenu -- cgit v1.3.1