Browse Source
All Nordic boards were enabling CONFIG_HW_STACK_PROTECTION unconditionally, which is usually not a problem except if the particular application happens to want to disable the MPU (or equivalent hardware for RISC-V). In that case, the following warning is shown: warning: HW_STACK_PROTECTION (defined at arch/Kconfig) was assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies: ARCH_HAS_STACK_PROTECTION (=n). In order to avoid this warning, conditionally enable the hardware stack protection only when the architecture supports it. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>pull/92715/head
63 changed files with 73 additions and 126 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
# nRF52 DK board configuration |
||||
|
||||
# Copyright (c) 2025 Nordic Semiconductor ASA |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if BOARD_NRF52DK |
||||
|
||||
config HW_STACK_PROTECTION |
||||
default ARCH_HAS_STACK_PROTECTION |
||||
|
||||
endif # BOARD_NRF52DK |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
# nRF7002 DK board configuration |
||||
|
||||
# Copyright (c) 2025 Nordic Semiconductor ASA |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if BOARD_NRF7002DK |
||||
|
||||
config HW_STACK_PROTECTION |
||||
default ARCH_HAS_STACK_PROTECTION |
||||
|
||||
endif # BOARD_NRF7002DK |
Loading…
Reference in new issue