forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKconfig.nrf
More file actions
156 lines (131 loc) · 5.51 KB
/
Kconfig.nrf
File metadata and controls
156 lines (131 loc) · 5.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#
# Copyright (c) 2018-2023 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
orsource "./cmake/toolchain/$(ZEPHYR_TOOLCHAIN_VARIANT)/Kconfig.defconfig"
rsource "subsys/net/openthread/Kconfig.defconfig"
if !TFM_PROFILE_TYPE_MINIMAL
rsource "modules/trusted-firmware-m/Kconfig.mbedtls.defconfig"
endif # ! TFM_PROFILE_TYPE_MINIMAL
if TFM_PROFILE_TYPE_MINIMAL
rsource "modules/trusted-firmware-m/Kconfig.mbedtls_minimal.defconfig"
rsource "modules/trusted-firmware-m/Kconfig.tfm_minimal.defconfig"
endif # TFM_PROFILE_TYPE_MINIMAL
if BUILD_WITH_TFM
rsource "modules/trusted-firmware-m/Kconfig.psa.defconfig"
endif # BUILD_WITH_TFM
menu "Nordic nRF Connect"
# Override configuration from zephyr which sets this to 0x200 if MCUboot is
# enabled (CONFIG_BOOTLOADER_MCUBOOT), since NCS use partition_manager to
# get this offset intsead.
config ROM_START_OFFSET
default 0 if PARTITION_MANAGER_ENABLED
# nRF Connect SDK default experimental warnings to on.
config WARN_EXPERIMENTAL
default y
# Zephyr default is newlib and not newlib-nano for consistency between architectures.
# To reduce FLASH footprint, newlib-nano is preferred default in NCS when newlib is selected.
config NEWLIB_LIBC_NANO
default y if SOC_FAMILY_NORDIC_NRF
depends on NEWLIB_LIBC && HAS_NEWLIB_LIBC_NANO
# This is a temporary solution to whitelist
# BOARD_THINGY91_NRF9160_NS in compliance
config BOARD_THINGY91_NRF9160_NS
bool
# memfault depends on the now removed NET_SOCKETS_OFFLOAD_TLS symbol.
# Until an updated memfault sdk is released, we define this as a promptless
# symbol here.
config NET_SOCKETS_OFFLOAD_TLS
bool
# nRF Connect SDK needs a larger default stacks in certain configurations
# - For running tests.
# - For CC3XX RNG
# - For Cracen RNG
# - For bt_enable() when using the SoftDevice Controller
config MAIN_STACK_SIZE
default 4096 if PSA_NEED_CRACEN_CTR_DRBG_DRIVER && !BUILD_WITH_TFM && TRUSTED_STORAGE
default 3584 if PSA_NEED_CRACEN_CTR_DRBG_DRIVER && !BUILD_WITH_TFM
default 3584 if (SOC_NRF54H20_CPUAPP || SOC_NRF54H20_CPURAD)
default 2048 if PSA_NEED_OBERON_CTR_DRBG_DRIVER && !BUILD_WITH_TFM
default 2048 if ZTEST
default 2048 if ENTROPY_CC3XX && !BUILD_WITH_TFM
default 1128 if BT_LL_SOFTDEVICE
config ZTEST_STACK_SIZE
default 2048 if ZTEST
config PRIVILEGED_STACK_SIZE
default 2048 if ZTEST
# nRF Connect SDK needs larger mcumgr buffers when supporting multi-image DFU
# or when the Bluetooth Reassembly feature is enabled.
config MCUMGR_TRANSPORT_NETBUF_SIZE
default 2475 if MCUMGR_TRANSPORT_BT_REASSEMBLY
default 1024 if UPDATEABLE_IMAGE_NUMBER > 1
config INIT_ARCH_HW_AT_BOOT
default y
help
The image will be booted directly by an unknown image which might not
leave the system in a clean state, so it is necessary to perform
architecture specific hardware initialization.
DT_COMPAT_NORDIC_QSPI_NOR := nordic,qspi-nor
config NORDIC_QSPI_NOR
default y if $(dt_compat_on_bus,$(DT_COMPAT_NORDIC_QSPI_NOR),qspi) && PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY && !SPI_NOR
DT_ZEPHYR_FLASH := zephyr,flash
DT_CHOSEN_ZEPHYR_FLASH := $(dt_chosen_path,$(DT_ZEPHYR_FLASH))
config NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE
default $(dt_node_int_prop_int,$(DT_CHOSEN_ZEPHYR_FLASH),erase-block-size)
help
Set the flash layout page size equal to the erase block size of the
chosen Zephyr flash devicetree node to ensure that swapping can be
performed.
# Temporary hack to be able to build samples and tests on the nRF51L15/nRF54L09 Eng A/nRF54LM20A Eng A/nRF7120 FLPR core
config FLASH_BASE_ADDRESS
hex
depends on PARTITION_MANAGER_ENABLED
depends on SOC_NRF54L15_CPUFLPR || SOC_NRF54LM20A_CPUFLPR || SOC_NRF54LV10A_CPUFLPR|| SOC_NRF7120_ENGA_CPUFLPR
default 0x0 if SOC_NRF54L15_CPUFLPR || SOC_NRF54LM20A_CPUFLPR || SOC_NRF54LV10A_CPUFLPR
default 0x2C0000 if SOC_NRF7120_ENGA_CPUFLPR
config FLASH_SIZE
int
depends on PARTITION_MANAGER_ENABLED
depends on SOC_NRF54L15_CPUFLPR || SOC_NRF54LM20A_CPUFLPR || SOC_NRF54LV10A_CPUFLPR || SOC_NRF7120_ENGA_CPUFLPR
default 1012 if SOC_NRF54LV10A_CPUFLPR
default 1524 if SOC_NRF54L15_CPUFLPR
default 2036 if SOC_NRF54LM20A_CPUFLPR
default 128 if SOC_NRF7120_ENGA_CPUFLPR
config NRF_SECURITY_ENABLER
def_bool y
imply NRF_SECURITY if BT_CRYPTO || BT_HOST_CRYPTO || BT_MESH_CRYPTO_LIB || BT_FAST_PAIR_CRYPTO_PSA
imply ENTROPY_GENERATOR if BOARD_NATIVE_SIM || BT_HOST_CRYPTO_PRNG || BT_ECC || BT_GATT_CACHING
imply PSA_WANT_GENERATE_RANDOM if BT_HOST_CRYPTO_PRNG || BT_ECC || BT_GATT_CACHING || BT_MESH_CRYPTO_LIB
imply MBEDTLS_ENABLE_HEAP if BT_HOST_CRYPTO_PRNG || BT_ECC || BT_GATT_CACHING || BT_CRYPTO || BT_MESH_CRYPTO_LIB
depends on !SOC_NRF5340_CPUNET
# Bluetooth TX processor thread stack Thread Analyzer measurements
# Apply SoC-specific defaults here to avoid touching upstream Zephyr files.
# Applications can still override via prj.conf.
configdefault BT_TX_PROCESSOR_STACK_SIZE
# nRF52 variants
default 768 if SOC_NRF52840
default 696 if SOC_NRF52832
default 969 if SOC_NRF52833
# nRF53 (application core)
default 688 if SOC_NRF5340_CPUAPP
# nRF54H20 (application core)
default 624 if SOC_NRF54H20_CPUAPP
# nRF54L15 (application core)
default 900 if SOC_NRF54L15_CPUAPP
# nRF54L V10A / LM20A (currently application core EngA variants are used)
default 900 if SOC_NRF54LV10A_CPUAPP
default 900 if SOC_NRF54LM20A_CPUAPP
if SOC_SERIES_BSIM_NRFXX && ENTROPY_GENERATOR
config MBEDTLS_HEAP_SIZE
int
default 2048
endif
rsource "samples/Kconfig"
rsource "subsys/Kconfig"
rsource "modules/Kconfig"
rsource "lib/Kconfig"
rsource "drivers/Kconfig"
rsource "ext/Kconfig"
rsource "tests/Kconfig"
endmenu