APP_Framework/lib/:add embeded database (flashdb) configuration file

This commit is contained in:
chunyexixiaoyu 2022-03-04 15:44:22 +08:00
parent 1f041ac321
commit 6909bb2947
6 changed files with 57 additions and 0 deletions

View File

@ -1,4 +1,5 @@
config IMAGE_PROCESSING_TJPGDEC_APP
bool "image processing apps/TJpgDec(example)"
select USING_IMAGE_PROCESSING
select IMAGE_PROCESSING_USING_TJPGD
default n

View File

@ -12,4 +12,5 @@ menu "lib"
source "$APP_DIR/lib/cJSON/Kconfig"
source "$APP_DIR/lib/queue/Kconfig"
source "$APP_DIR/lib/lvgl/Kconfig"
source "$APP_DIR/lib/embedded_database/Kconfig"
endmenu

View File

@ -0,0 +1,6 @@
menuconfig USING_EMBEDDED_DATABASE
bool "embedded database"
default n
if USING_EMBEDDED_DATABASE
source "$APP_DIR/lib/embedded_database/flashdb/Kconfig"
endif

View File

@ -0,0 +1,14 @@
import os
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(path, 'SConscript'))
Return('objs')

View File

@ -0,0 +1,25 @@
menuconfig USING_EMBEDDED_DATABASE_FLASHDB
bool "flashdb an ultra-lightweight embedded database "
default n
if USING_EMBEDDED_DATABASE_FLASHDB
comment " fal io is not supported so far"
choice
prompt "select io mode"
default FDB_USING_FILE_POSIX_MODE
help
Select io mode
config FDB_USING_FILE_POSIX_MODE
bool "file posix io "
config FDB_USING_FILE_LIBC_MODE
bool "file libc io "
config FDB_USING_FAL_MODE
bool "flash fal io "
endchoice
config FDB_USING_KVDB
bool "Use key value database"
default n
config FDB_USING_TSDB
bool "Use time series database"
default n
endif

View File

@ -0,0 +1,10 @@
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
group = DefineGroup('embedded database', src, depend = ['USING_EMBEDDED_DATABASE_FLASHDB'], CPPPATH = [cwd])
Return('group')