diff --git a/APP_Framework/Applications/knowing_app/image_processing/TJpgDec_APP/Kconfig b/APP_Framework/Applications/knowing_app/image_processing/TJpgDec_APP/Kconfig index d39c44c42..49c1a850a 100644 --- a/APP_Framework/Applications/knowing_app/image_processing/TJpgDec_APP/Kconfig +++ b/APP_Framework/Applications/knowing_app/image_processing/TJpgDec_APP/Kconfig @@ -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 diff --git a/APP_Framework/lib/Kconfig b/APP_Framework/lib/Kconfig index cc9317522..b3497fca5 100755 --- a/APP_Framework/lib/Kconfig +++ b/APP_Framework/lib/Kconfig @@ -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 diff --git a/APP_Framework/lib/embedded_database/Kconfig b/APP_Framework/lib/embedded_database/Kconfig new file mode 100644 index 000000000..83f2c675e --- /dev/null +++ b/APP_Framework/lib/embedded_database/Kconfig @@ -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 diff --git a/APP_Framework/lib/embedded_database/SConscript b/APP_Framework/lib/embedded_database/SConscript new file mode 100644 index 000000000..1d6ca7a10 --- /dev/null +++ b/APP_Framework/lib/embedded_database/SConscript @@ -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') \ No newline at end of file diff --git a/APP_Framework/lib/embedded_database/flashdb/Kconfig b/APP_Framework/lib/embedded_database/flashdb/Kconfig new file mode 100644 index 000000000..f8f3ca90c --- /dev/null +++ b/APP_Framework/lib/embedded_database/flashdb/Kconfig @@ -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 diff --git a/APP_Framework/lib/embedded_database/flashdb/SConscript b/APP_Framework/lib/embedded_database/flashdb/SConscript new file mode 100644 index 000000000..ef3414fd8 --- /dev/null +++ b/APP_Framework/lib/embedded_database/flashdb/SConscript @@ -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')