cmake: add a new "initlevels" target to print the init sequence
Add a new "initlevels" target that can be used to print a human readable version of the init sequence by running: west build -t initlevels. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
5212a4c619
commit
79ed6da8fd
1 changed files with 9 additions and 0 deletions
|
@ -1816,6 +1816,15 @@ if(CONFIG_CHECK_INIT_PRIORITIES)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
initlevels
|
||||||
|
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/build/check_init_priorities.py
|
||||||
|
--elf-file=${ZEPHYR_BINARY_DIR}/${KERNEL_ELF_NAME}
|
||||||
|
--initlevels
|
||||||
|
DEPENDS ${logical_target_for_zephyr_elf}
|
||||||
|
USES_TERMINAL
|
||||||
|
)
|
||||||
|
|
||||||
# Generate and use MCUboot related artifacts as needed.
|
# Generate and use MCUboot related artifacts as needed.
|
||||||
if(CONFIG_BOOTLOADER_MCUBOOT)
|
if(CONFIG_BOOTLOADER_MCUBOOT)
|
||||||
get_target_property(signing_script zephyr_property_target SIGNING_SCRIPT)
|
get_target_property(signing_script zephyr_property_target SIGNING_SCRIPT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue