scripts: logging/dictionary: can specify output format
This changes the script to allow output format to be specified. Currently, only JSON is support. This will allow supporting other formats in the future. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
caca548cf9
commit
1c9e89cd5e
2 changed files with 19 additions and 7 deletions
|
@ -1697,7 +1697,7 @@ list(APPEND
|
|||
)
|
||||
|
||||
if(CONFIG_LOG_DICTIONARY_SUPPORT)
|
||||
set(LOG_DICT_DB_NAME ${PROJECT_BINARY_DIR}/log_dictionary.json)
|
||||
set(log_dict_db_output --json=${PROJECT_BINARY_DIR}/log_dictionary.json)
|
||||
|
||||
list(APPEND
|
||||
post_build_commands
|
||||
|
@ -1705,13 +1705,15 @@ if(CONFIG_LOG_DICTIONARY_SUPPORT)
|
|||
${PYTHON_EXECUTABLE}
|
||||
${ZEPHYR_BASE}/scripts/logging/dictionary/database_gen.py
|
||||
${KERNEL_ELF_NAME}
|
||||
${LOG_DICT_DB_NAME}
|
||||
${log_dict_db_output}
|
||||
--build-header ${PROJECT_BINARY_DIR}/include/generated/version.h
|
||||
)
|
||||
list(APPEND
|
||||
post_build_byproducts
|
||||
${LOG_DICT_DB_NAME}
|
||||
)
|
||||
|
||||
unset(log_dict_db_output)
|
||||
endif()
|
||||
|
||||
# Add post_build_commands to post-process the final .elf file produced by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue