Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions targets/TARGET_Cypress/scripts/mbed_set_post_build_cypress.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

include(mbed_target_functions)

# Make sure we have the python packages we need
mbed_check_or_install_python_package(HAVE_PYTHON_CYSECURETOOLS cysecuretools "cysecuretools~=6.0")
if(NOT HAVE_PYTHON_CYSECURETOOLS)
message(FATAL_ERROR "Python package required for signing not found.")
endif()

#
# Merge Cortex-M4 HEX and a Cortex-M0 HEX.
#
Expand Down Expand Up @@ -68,6 +62,13 @@ macro(mbed_post_build_psoc6_sign_image
cortex_m0_hex
)
if("${cypress_psoc6_target}" STREQUAL "${MBED_TARGET}")

# Make sure we have the python packages we need
mbed_check_or_install_python_package(HAVE_PYTHON_CYSECURETOOLS cysecuretools "cysecuretools~=6.0")
if(NOT HAVE_PYTHON_CYSECURETOOLS)
message(FATAL_ERROR "Python package required for signing not found.")
endif()

function(mbed_post_build_function target)
set(post_build_command
${Python3_EXECUTABLE} ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/PSOC6.py
Expand Down