scripts: nrf_common: Move MPI to sysbuild Kconfig
Use sysbuild to build and configure SUIT Manifest Provisioning Information. Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
This commit is contained in:
parent
811ff1f209
commit
866e690dda
1 changed files with 27 additions and 24 deletions
|
@ -342,12 +342,13 @@ class NrfBinaryRunner(ZephyrBinaryRunner):
|
||||||
mpi_hex_dir = Path(os.path.join(self.cfg.build_dir, 'zephyr'))
|
mpi_hex_dir = Path(os.path.join(self.cfg.build_dir, 'zephyr'))
|
||||||
|
|
||||||
# Handle Manifest Provisioning Information
|
# Handle Manifest Provisioning Information
|
||||||
if self.build_conf.getboolean('CONFIG_SUIT_MPI_GENERATE'):
|
if self.sysbuild_conf.getboolean('SB_CONFIG_SUIT_MPI_GENERATE'):
|
||||||
app_mpi_hex_file = os.fspath(
|
app_mpi_hex_file = os.fspath(
|
||||||
mpi_hex_dir / self.build_conf.get('CONFIG_SUIT_MPI_APP_AREA_PATH'))
|
mpi_hex_dir / self.sysbuild_conf.get('SB_CONFIG_SUIT_MPI_APP_AREA_PATH'))
|
||||||
rad_mpi_hex_file = os.fspath(
|
rad_mpi_hex_file = os.fspath(
|
||||||
mpi_hex_dir / self.build_conf.get('CONFIG_SUIT_MPI_RAD_AREA_PATH')
|
mpi_hex_dir / self.sysbuild_conf.get('SB_CONFIG_SUIT_MPI_RAD_AREA_PATH')
|
||||||
)
|
)
|
||||||
|
if os.path.exists(app_mpi_hex_file):
|
||||||
self.op_program(
|
self.op_program(
|
||||||
app_mpi_hex_file,
|
app_mpi_hex_file,
|
||||||
'ERASE_NONE',
|
'ERASE_NONE',
|
||||||
|
@ -355,6 +356,7 @@ class NrfBinaryRunner(ZephyrBinaryRunner):
|
||||||
defer=True,
|
defer=True,
|
||||||
core='NRFDL_DEVICE_CORE_APPLICATION',
|
core='NRFDL_DEVICE_CORE_APPLICATION',
|
||||||
)
|
)
|
||||||
|
if os.path.exists(rad_mpi_hex_file):
|
||||||
self.op_program(
|
self.op_program(
|
||||||
rad_mpi_hex_file,
|
rad_mpi_hex_file,
|
||||||
'ERASE_NONE',
|
'ERASE_NONE',
|
||||||
|
@ -370,6 +372,7 @@ class NrfBinaryRunner(ZephyrBinaryRunner):
|
||||||
app_root_envelope_hex_file = os.fspath(
|
app_root_envelope_hex_file = os.fspath(
|
||||||
mpi_hex_dir / 'suit_installed_envelopes_application_merged.hex'
|
mpi_hex_dir / 'suit_installed_envelopes_application_merged.hex'
|
||||||
)
|
)
|
||||||
|
if os.path.exists(app_root_envelope_hex_file):
|
||||||
self.op_program(
|
self.op_program(
|
||||||
app_root_envelope_hex_file,
|
app_root_envelope_hex_file,
|
||||||
'ERASE_NONE',
|
'ERASE_NONE',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue