forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig.nrf
117 lines (95 loc) · 3.67 KB
/
Kconfig.nrf
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
#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
# Usually BOARD_DIR is an absolute path and sourced through '<ZEPHYR_ROOT>/boards/Kconfig'.
# But for compliance and doc generation it's a glob and this line ensures that
# boards in sdk-nrf are sourced properly in those occasions.
orsource "./$(BOARD_DIR)/Kconfig.board"
orsource "./$(BOARD_DIR)/Kconfig"
rsource "subsys/net/openthread/Kconfig.defconfig"
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
#
# Provide a new choice to override the mbedtls_external library completely
# and not have to provide a "dummy" path for the implementation
#
choice MBEDTLS_IMPLEMENTATION
prompt "Select implementation"
default MBEDTLS_LIBRARY_NRF_SECURITY
config MBEDTLS_LIBRARY_NRF_SECURITY
bool "Use mbed TLS library from Nordic provided security backend"
depends on NORDIC_SECURITY_BACKEND || NRF_SECURITY
help
Use external, out-of-tree prebuilt mbedTLS library. For advanced
users only.
endchoice
# 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
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
config MAIN_STACK_SIZE
default 2048 if ZTEST
default 2048 if ENTROPY_CC3XX && !BUILD_WITH_TFM
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_BUF_SIZE
default 2475 if MCUMGR_SMP_REASSEMBLY_BT
default 1024 if UPDATEABLE_IMAGE_NUMBER > 1
# When using HCI on the nRF5340 we need a larger command buffer.
config BT_BUF_CMD_TX_COUNT
default 10 if SOC_NRF5340_CPUAPP || SOC_NRF5340_CPUNET
# Set ENTROPY_GENERATOR to true for TF-M builds with enabled
# RNG provided from secure services.
config ENTROPY_GENERATOR
default y if BUILD_WITH_TFM
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.
rsource "samples/Kconfig"
rsource "subsys/Kconfig"
rsource "modules/Kconfig"
rsource "lib/Kconfig"
rsource "drivers/Kconfig"
rsource "ext/Kconfig"
rsource "tests/Kconfig"
endmenu