Skip to content

Commit

Permalink
feat: define SUIT_ENVELOPE_NORDIC_TOP_DIRECTORY only in NCS context
Browse files Browse the repository at this point in the history
Backward compatibility with the sdk-nrf-next repository.

Ref: NCSDK-26629

Signed-off-by: Robert Stypa <[email protected]>
  • Loading branch information
robertstypa committed Apr 2, 2024
1 parent 45b7960 commit 2d1d105
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions ncs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ config HW_REVISION_SOC1
config INCLUDE_SYSCTRL
bool

menuconfig SUIT_ENVELOPE_GENERATION
bool "SUIT envelope generation config"
default y if SOC_SERIES_NRF54HX

config SUIT_ENVELOPE_TEMPLATE
string "Path to the envelope template"
default "${ZEPHYR_SUIT_GENERATOR_MODULE_DIR}/ncs/app_envelope.yaml.jinja2" if SOC_NRF54H20_ENGA_CPUAPP
default "${ZEPHYR_SUIT_GENERATOR_MODULE_DIR}/ncs/rad_envelope.yaml.jinja2" if SOC_NRF54H20_ENGA_CPURAD

config SUIT_ENVELOPE_TARGET
string "Target name inside the envelope templates"
default "app" if SOC_NRF54H20_ENGA_CPUAPP
default "rad" if SOC_NRF54H20_ENGA_CPURAD

menuconfig SUIT_ENVELOPE
bool "Create SUIT envelope"
help
Expand Down Expand Up @@ -102,7 +116,7 @@ config SUIT_ENVELOPE_802154_RPMSG_SUBIMAGE_TEMPLATE

config SUIT_ENVELOPE_EDITABLE_TEMPLATES_LOCATION
string "Path to the folder with envelope templates"
default "../../"
default "../"
help
Path to the folder containing editable templates used to create binary envelopes.
Input templates are created by the build system during first build from the SUIT_ENVELOPE_DEFAULT_TEMPLATE.
Expand Down Expand Up @@ -204,7 +218,7 @@ config SUIT_ENVELOPE_ROOT_TARGET

config SUIT_ENVELOPE_NORDIC_TOP_DIRECTORY
string "Path to the folder with nordic top artifacts"
default "./"
default "./" if SOC_NRF54H20_ENGA_CPUAPP
help
Path to the folder containing nordic-top.suit envelope.

Expand Down

0 comments on commit 2d1d105

Please sign in to comment.