forked from xuos/xiuos
APP_Framework/lib/:add embeded database (flashdb) configuration file
This commit is contained in:
parent
1f041ac321
commit
6909bb2947
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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')
|
|
@ -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
|
|
@ -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')
|
Loading…
Reference in New Issue