Skip to content

Commit 2f6c6fc

Browse files
jaz1-nordicmasz-nordic
authored andcommitted
cmake: sysbuild: hpf: Add apply snippet Kconfig
Add a Kconfig option to choose whether to include the HPF snippet in the build. This allows you to use the HPF framework without having to apply a specific snippet. This increases the flexibility of configuring the target system without having to change the NCS files. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent 363445b commit 2f6c6fc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

cmake/sysbuild/hpf.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ if(SB_CONFIG_HPF)
3333
set_config_bool(hpf CONFIG_HPF_DEVELOPER_MODE y)
3434
endif()
3535

36-
hpf_apply_snippets(${snippet_name})
36+
if(SB_CONFIG_HPF_APPLY_SNIPPET)
37+
hpf_apply_snippets(${snippet_name})
38+
endif()
3739
set(snippet_name)
3840
endif()

sysbuild/Kconfig.hpf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ config HPF_IMAGE_PATH
3030
help
3131
Source directory of HPF image.
3232

33+
config HPF_APPLY_SNIPPET
34+
bool "Apply HPF overlay snippet"
35+
default y
36+
help
37+
Apply HPF overlay snippet to the build.
38+
3339
if HPF_GPIO
3440

3541
choice HPF_GPIO_BACKEND

0 commit comments

Comments
 (0)