Skip to content

Commit db0ef18

Browse files
tejlmandrlubos
authored andcommitted
drivers: hw_cc310: Driver will default be deselected when using mcuboot
When building multi image including mcuboot then mcuboot is compiled with hard float, however the flags CONFIG_FLOAT and CONFIG_FP_HARDABI are not set which causes wrong linking. Therefore hw cc310 will default to yes in mcuboot until this has been corrected. This is possible, as cc310 is currently not required in mcuboot. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 967c058 commit db0ef18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/hw_cc310/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
66
#
77

8+
# Defining MCUBOOT symbol here to avoid an issue discovered when building
9+
# multi image zephyr/mcuboot.
10+
config MCUBOOT
11+
bool
12+
813
config HW_CC310_FORCE_ALT
914
bool
1015
depends on SOC_COMPATIBLE_NRF
@@ -18,6 +23,7 @@ menuconfig HW_CC310
1823
bool "Arm CC310 hw driver for Nordic devices"
1924
depends on SOC_NRF52840 || (SOC_NRF9160 && !SPM) || (SOC_NRF9160 && TRUSTED_EXECUTION_SECURE)
2025
select NRF_CC310_PLATFORM
26+
default n if MCUBOOT
2127
default y if SOC_NRF52840 || (SOC_NRF9160 && !SPM) || (SOC_NRF9160 && TRUSTED_EXECUTION_SECURE)
2228
help
2329
This option enables the Arm CC310 hw devices in nRF52840 and nRF9160 devices.

0 commit comments

Comments
 (0)