File tree Expand file tree Collapse file tree 5 files changed +24
-11
lines changed
component_compatibility_check Expand file tree Collapse file tree 5 files changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ target_link_libraries(suit_mci INTERFACE suit_platform_err)
1111target_link_libraries (suit_mci INTERFACE suit_metadata)
1212
1313zephyr_library()
14- zephyr_library_sources_ifdef(CONFIG_SUIT_MCI_IMPL_NRF54H20_SDFW src/suit_mci_nrf54h20.c)
14+ if (CONFIG_SUIT_MCI_IMPL_SDFW)
15+ zephyr_library_sources(src/suit_mci_${CONFIG_SOC} .c)
16+ endif ()
1517zephyr_library_sources(src/suit_generic_ids.c)
1618
1719zephyr_library_link_libraries(suit_mci)
Original file line number Diff line number Diff line change @@ -11,14 +11,19 @@ menuconfig SUIT_MCI
1111
1212if SUIT_MCI
1313
14+ config SUPPORT_SUIT_MCI_IMPL_SDFW
15+ bool
16+ default y if SOC_SERIES_NRF54HX
17+
1418choice SUIT_MCI_IMPL
1519 prompt "MCI implementation"
16- default SUIT_MCI_IMPL_NRF54H20_SDFW if SOC_SERIES_NRF54HX
17- default SUIT_MCI_IMPL_CUSTOM if !SOC_SERIES_NRF54HX
20+ default SUIT_MCI_IMPL_SDFW if SUPPORT_SUIT_MCI_IMPL_SDFW
21+ default SUIT_MCI_IMPL_CUSTOM
1822
19- config SUIT_MCI_IMPL_NRF54H20_SDFW
20- bool "nRF54H20: Secure domain"
23+ config SUIT_MCI_IMPL_SDFW
24+ bool "Secure domain"
2125 depends on SUIT_PLATFORM_VARIANT_SDFW
26+ depends on SUPPORT_SUIT_MCI_IMPL_SDFW
2227
2328config SUIT_MCI_IMPL_CUSTOM
2429 bool "custom"
Original file line number Diff line number Diff line change @@ -23,5 +23,7 @@ if (CONFIG_64BIT)
2323 set (bit_arg -b 64)
2424endif ()
2525
26+ set (SUIT_SUBSYS_DIR ${ZEPHYR_NRF_MODULE_DIR} /subsys/suit)
27+
2628add_subdirectory ("${CMAKE_CURRENT_LIST_DIR} /../common" "${PROJECT_BINARY_DIR} /test_common" )
2729add_subdirectory ("${CMAKE_CURRENT_LIST_DIR} /../mocks" "${PROJECT_BINARY_DIR} /test_mocks" )
Original file line number Diff line number Diff line change @@ -11,8 +11,17 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1111project (integration_suit_component_compatibility_check)
1212include (../cmake/test_template.cmake)
1313
14+ target_include_directories (app PRIVATE
15+ ${SUIT_SUBSYS_DIR} /mci//include
16+ )
17+
18+ target_sources (app PRIVATE
19+ # Use nRF54H20-specific MCI implementation.
20+ ${SUIT_SUBSYS_DIR} /mci/src/suit_mci_nrf54h20.c
21+ ${SUIT_SUBSYS_DIR} /platform/sdfw/src/suit_plat_component_compatibility.c
22+ )
23+
1424# Link with the CMake target, that includes SUIT platform internal APIs header
1525zephyr_library_link_libraries(suit_utils)
16- zephyr_library_link_libraries(suit_mci)
1726zephyr_library_link_libraries(suit_storage_interface)
1827zephyr_library_link_libraries(suit_platform_interface)
Original file line number Diff line number Diff line change @@ -14,18 +14,13 @@ CONFIG_SUIT_MEMPTR_STORAGE=y
1414# Enable component-compatibility checks
1515CONFIG_SUIT_PLATFORM=y
1616CONFIG_SUIT_PLATFORM_VARIANT_SDFW=y
17- CONFIG_SUIT_PLAT_CHECK_COMPONENT_COMPATIBILITY=y
1817
1918# Force SUIT storage memory layout to match nRF54H20-specific implementation.
2019CONFIG_SUIT_STORAGE=y
2120CONFIG_SUIT_STORAGE_LAYOUT_NRF54H20=y
2221CONFIG_SUIT_METADATA=y
2322# nRF54H20 storage uses SHA-256 to protect MPI and NVVs:
2423CONFIG_SUIT_CRYPTO=y
25-
26- # Use nRF54H20-specific MCI implementation.
27- CONFIG_SUIT_MCI=y
28- CONFIG_SUIT_MCI_IMPL_NRF54H20_SDFW=y
2924CONFIG_SUIT_EXECUTION_MODE=y
3025
3126CONFIG_ZCBOR=y
You can’t perform that action at this time.
0 commit comments