Skip to content

Commit

Permalink
cmake: add a new "initlevels" taret to print the init sequence
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fabiobaltieri committed Sep 11, 2023
1 parent 431fffd commit 703e7b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,15 @@ if(CONFIG_CHECK_INIT_PRIORITIES)
)
endif()

add_custom_target(
initlevels
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/build/check_init_priorities.py
--elf-file=${ZEPHYR_BINARY_DIR}/${check_priorities_file}
--initlevels
DEPENDS ${logical_target_for_zephyr_elf}
USES_TERMINAL
)

# Generate and use MCUboot related artifacts as needed.
if(CONFIG_BOOTLOADER_MCUBOOT)
get_target_property(signing_script zephyr_property_target SIGNING_SCRIPT)
Expand Down

0 comments on commit 703e7b5

Please sign in to comment.