Skip to content

Commit

Permalink
处理RT_USING_POSIX和RT_USING_DFS
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Jan 8, 2022
1 parent f7680fb commit a0dee69
Show file tree
Hide file tree
Showing 44 changed files with 125 additions and 87 deletions.
10 changes: 6 additions & 4 deletions ai/libann/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ if PKG_USING_LIBANN
default n

config LIBANN_USING_IRIS_TRAIN_AND_PREDICT
select RT_USING_DFS
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
bool "Iris train model and predict example"
help
Load Iris dataset, train, predict, and save model.
default n

config LIBANN_USING_IRIS_LOAD_AND_PREDICT
select RT_USING_DFS
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
bool "Iris load model and predict example"
help
Load Iris dataset, load model, predict, and save model.
Expand Down
2 changes: 1 addition & 1 deletion iot/agile_ftp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ menuconfig PKG_USING_AGILE_FTP
default n
select RT_USING_SAL
select SAL_USING_POSIX
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100

if PKG_USING_AGILE_FTP

Expand Down
2 changes: 1 addition & 1 deletion iot/agile_telnet/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ menuconfig PKG_USING_AGILE_TELNET
default n
select RT_USING_SAL
select SAL_USING_POSIX
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100

if PKG_USING_AGILE_TELNET

Expand Down
5 changes: 3 additions & 2 deletions iot/btstack/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

# Kconfig file for package BTSTACK
menuconfig PKG_USING_BTSTACK
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_PTHREADS
select RT_USING_POSIX
select RT_USING_POSIX_TERMIOS
bool "BTSTACK: embedded btstack"
default n
Expand Down
8 changes: 5 additions & 3 deletions iot/capnp/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

# Kconfig file for package capnp
menuconfig PKG_USING_CAPNP
select RT_USING_DFS
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
bool "capnp: Cap'n Proto serialization/RPC system which is faster than protobuf."
default n

Expand All @@ -26,7 +27,8 @@ if PKG_USING_CAPNP
default n

config CAPNP_USING_ENCODE_DECODE_FILE_EXAMPLE
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
bool "capnp example: encode to file and decode from file"
help
capnp example: encode to file and decode from file
Expand Down
5 changes: 3 additions & 2 deletions iot/libcurl2rtt/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
menuconfig PKG_USING_LIBCURL2RTT
bool "libcurl2rtt: The curl library ported on the RT-Thread platform"
select RT_USING_SAL
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_TERMIOS
select PKG_USING_MBEDTLS
default n
Expand Down
7 changes: 4 additions & 3 deletions iot/libmodbus/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
menuconfig PKG_USING_LIBMODBUS
bool "libmodbus: A Modbus library for RT-Thread"
default n
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS
select RT_USING_POSIX
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

if PKG_USING_LIBMODBUS

Expand Down
5 changes: 3 additions & 2 deletions iot/librws/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Kconfig file for package librws
menuconfig PKG_USING_LIBRWS
bool "librws: Tiny, cross platform websocket client C library"
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_PTHREADS
select RT_USING_POSIX
default n
help
No additional dependecies
Expand Down
3 changes: 2 additions & 1 deletion iot/mongoose/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ if PKG_USING_MONGOOSE
bool
prompt "Enable filesystem for file serves, file uploader and other file features"
default y
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

config PKG_MONGOOSE_ENABLE_HTTP_STREAMING_MULTIPART
bool
Expand Down
2 changes: 1 addition & 1 deletion iot/net_server/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ menuconfig PKG_USING_NET_SERVER
bool "net_server:TCP/TLS server,support wolfssl"
select RT_USING_SAL
select SAL_USING_POSIX
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
default n

if PKG_USING_NET_SERVER
Expand Down
3 changes: 2 additions & 1 deletion iot/netutils/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ if PKG_USING_NETUTILS
bool "Enable tcpdump tool"
depends on RT_USING_LWIP
select PKG_USING_OPTPARSE
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
help
Select the tcpdump tool

Expand Down
3 changes: 2 additions & 1 deletion iot/protobuf-c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ if PKG_USING_PROTOBUF_C
default n

config PROTOBUF_C_USING_ENCODE_DECODE_FILE_EXAMPLE
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
bool "protobuf-c example: encode to file and decode from file"
help
protobuf-c example: encode to file and decode from file
Expand Down
2 changes: 1 addition & 1 deletion iot/smtp_client/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ menuconfig PKG_USING_SMTP_CLIENT
default n
select RT_USING_SAL
select SAL_USING_POSIX
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100

if PKG_USING_SMTP_CLIENT

Expand Down
3 changes: 2 additions & 1 deletion iot/webclient/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ if PKG_USING_WEBCLIENT
config WEBCLIENT_USING_FILE_DOWMLOAD
bool "Enable file download feature support"
default n
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

endif

Expand Down
2 changes: 1 addition & 1 deletion iot/webnet/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ menuconfig PKG_USING_WEBNET
default n
select RT_USING_SAL
select SAL_USING_POSIX
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100

if PKG_USING_WEBNET

Expand Down
5 changes: 3 additions & 2 deletions language/Lua/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
menuconfig PKG_USING_LUA
bool "Lua: A lightweight, embeddable scripting language."
default n
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

if PKG_USING_LUA

Expand Down
5 changes: 3 additions & 2 deletions language/jerryscript/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

menuconfig PKG_USING_JERRYSCRIPT
bool "JerryScript: Ultra-lightweight JavaScript engine for the Internet of Things."
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
default n

if PKG_USING_JERRYSCRIPT
Expand Down
3 changes: 2 additions & 1 deletion language/micropython/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ if PKG_USING_MICROPYTHON
menu "System Module"
config MICROPYTHON_USING_UOS
bool "uos: basic 'operating system' services"
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
default n

if MICROPYTHON_USING_UOS
Expand Down
10 changes: 5 additions & 5 deletions misc/entertainment/c2048/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Kconfig file for package 2048
menuconfig PKG_USING_2048
bool "2048: An indie puzzle video game run on RT-Thread console"
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_POLL if RT_VER_NUM >= 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_POLL if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_TERMIOS
default n

Expand Down
8 changes: 4 additions & 4 deletions misc/entertainment/threes/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Kconfig file for package threes
menuconfig PKG_USING_THREES
bool "threes: An indie puzzle video game run on RT-Thread console"
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_TERMIOS
default n

Expand Down
3 changes: 2 additions & 1 deletion misc/fastlz/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ if PKG_USING_FASTLZ
config FASTLZ_USING_SAMPLE
bool "Enable using fastlz sample"
default n
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

if FASTLZ_USING_SAMPLE

Expand Down
12 changes: 6 additions & 6 deletions misc/ki/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Kconfig file for package ki
menuconfig PKG_USING_KI
bool "ki: A small text editor in less than 1K lines of code"
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_GETLINE if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select PKG_USING_POSIX_GETLINE if RT_VER_NUM >= 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_GETLINE if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select PKG_USING_POSIX_GETLINE if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_TERMIOS
select PKG_USING_MEM_SANDBOX
default n
Expand Down
5 changes: 3 additions & 2 deletions misc/libcsv/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Kconfig file for package libcsv
menuconfig PKG_USING_LIBCSV
bool "libcsv: a small, simple and fast CSV library written in pure ANSI C89 that can read and write CSV data."
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

if PKG_USING_LIBCSV

Expand Down
3 changes: 2 additions & 1 deletion misc/lzma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ if PKG_USING_LZMA
config LZMA_USING_SAMPLE
bool "Enable using lzma sample"
default n
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

choice
prompt "Version"
Expand Down
3 changes: 2 additions & 1 deletion misc/miniLZO/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ if PKG_USING_MINILZO
config MINILZO_USING_SAMPLE
bool "Enable using miniLZO sample"
default n
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

choice
prompt "version"
Expand Down
7 changes: 4 additions & 3 deletions misc/minizip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
menuconfig PKG_USING_MINIZIP
bool "minizip: zip manipulation library"
select PKG_USING_ZLIB
select RT_USING_DFS
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
default n

if PKG_USING_MINIZIP
Expand Down
3 changes: 2 additions & 1 deletion misc/quicklz/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ if PKG_USING_QUICKLZ
config QLZ_USING_SAMPLE
bool "Enable using quicklz sample"
default n
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

config QLZ_COMPRESSION_LEVEL
help
Expand Down
3 changes: 2 additions & 1 deletion misc/samples/filesystem_samples/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
menuconfig PKG_USING_FILESYSTEM_SAMPLES
bool "a filesystem_samples package for rt-thread"
default n
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100

if PKG_USING_FILESYSTEM_SAMPLES

Expand Down
10 changes: 5 additions & 5 deletions misc/vi/Kconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
menuconfig PKG_USING_VI
bool "vi: A screen-oriented text editor"
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX if RT_VER_NUM < 0x40100
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_STDIO if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_POLL if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_POLL if RT_VER_NUM >= 0x40100
select PKG_USING_OPTPARSE
select PKG_USING_MEM_SANDBOX
default n
Expand Down
3 changes: 2 additions & 1 deletion misc/zlib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ if PKG_USING_ZLIB

config ZLIB_USING_SAMPLE
bool "Enable using zlib sample"
depends on RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
default n

choice
Expand Down
5 changes: 3 additions & 2 deletions multimedia/PDFGen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# Kconfig file for package PDFGen
menuconfig PKG_USING_PDFGEN
bool "PDFGen: Simple C PDF Writer/Generation library"
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS
select RT_USING_LIBC if RT_VER_NUM < 0x40100
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
default n

if PKG_USING_PDFGEN
Expand Down
3 changes: 2 additions & 1 deletion peripherals/mfoc/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

# Kconfig file for package mfoc
menuconfig PKG_USING_MFOC
select RT_USING_DFS
select RT_USING_DFS if RT_VER_NUM < 0x40100
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select PKG_USING_LIBNFC
bool "mfoc: Mifare Classic Offline Cracker."
default n
Expand Down
Loading

0 comments on commit a0dee69

Please sign in to comment.