Skip to content

kconfig: Add hide options Kconfig #23060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ jobs:
# debug
ls -la
git log --pretty=oneline | head -n 10
# For now we run KconfigBasic, but we should transition to Kconfig
$ZEPHYR_BASE/scripts/ci/check_compliance.py --annotate -e Kconfig \
$ZEPHYR_BASE/scripts/ci/check_compliance.py --annotate \
-e KconfigBasicNoModules -e ClangFormat -e Ruff \
-e SysbuildKconfig -e SysbuildKconfigBasic -e SysbuildKconfigBasicNoModules \
-e SysbuildKconfigBasicNoModules \
-c origin/${BASE_REF}..

- name: upload-results
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Enable MPU
CONFIG_ARM_MPU=y

# Enable PINCTRL
CONFIG_PINCTRL=y

# enable GPIO
# Enable GPIO
CONFIG_GPIO=y
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Enable MPU
CONFIG_ARM_MPU=y

# Enable PINCTRL:
CONFIG_PINCTRL=y

# enable GPIO
# Enable GPIO
CONFIG_GPIO=y
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# Enable MPU
CONFIG_ARM_MPU=y

CONFIG_PINCTRL=y
2 changes: 0 additions & 2 deletions boards/nordic/nrf52dmouse/nrf52dmouse_nrf52832_defconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# Enable MPU
CONFIG_ARM_MPU=y

CONFIG_PINCTRL=y
2 changes: 0 additions & 2 deletions boards/nordic/nrf52kbd/nrf52kbd_nrf52832_defconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# Enable MPU
CONFIG_ARM_MPU=y

CONFIG_PINCTRL=y
5 changes: 1 addition & 4 deletions boards/nordic/thingy91/thingy91_nrf52840_defconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Enable MPU
CONFIG_ARM_MPU=y

# Enable PINCTRL
CONFIG_PINCTRL=y

# enable uart driver
# Enable UART driver
CONFIG_SERIAL=y

# Enable console
Expand Down
3 changes: 0 additions & 3 deletions boards/nordic/thingy91/thingy91_nrf9160_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ CONFIG_ARM_MPU=y
# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y

# Enable PINCTRL
CONFIG_PINCTRL=y

# Enable GPIO
CONFIG_GPIO=y

Expand Down
3 changes: 0 additions & 3 deletions boards/nordic/thingy91/thingy91_nrf9160_ns_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ CONFIG_ARM_TRUSTZONE_M=y
# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# Enable PINCTRL
CONFIG_PINCTRL=y

# Enable GPIO
CONFIG_GPIO=y

Expand Down
8 changes: 3 additions & 5 deletions boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ CONFIG_HW_STACK_PROTECTION=y
# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y

# enable GPIO
# Enable GPIO
CONFIG_GPIO=y

# Enable uart driver
# Enable UART driver
CONFIG_SERIAL=y

# enable console
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

CONFIG_PINCTRL=y

CONFIG_RETENTION=y
CONFIG_RETAINED_MEM=y
CONFIG_RETAINED_MEM_ZEPHYR_RAM=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@ CONFIG_ARM_TRUSTZONE_M=y
# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# enable GPIO
# Enable GPIO
CONFIG_GPIO=y

# Enable uart driver
# Enable UART driver
CONFIG_SERIAL=y

# enable console
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

CONFIG_PINCTRL=y

CONFIG_RETENTION=y
CONFIG_RETAINED_MEM=y
CONFIG_RETAINED_MEM_ZEPHYR_RAM=y
Expand Down
8 changes: 3 additions & 5 deletions boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ CONFIG_ARM_MPU=y
# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y

# enable GPIO
# Enable GPIO
CONFIG_GPIO=y

# Enable uart driver
# Enable UART driver
CONFIG_SERIAL=y

# enable console
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

CONFIG_PINCTRL=y
3 changes: 0 additions & 3 deletions boards/nordic/thingy91x/thingy91x_nrf9151_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ CONFIG_ARM_MPU=y
# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y

# Enable PINCTRL
CONFIG_PINCTRL=y

# Enable GPIO
CONFIG_GPIO=y

Expand Down
3 changes: 0 additions & 3 deletions boards/nordic/thingy91x/thingy91x_nrf9151_ns_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ CONFIG_ARM_TRUSTZONE_M=y
# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# Enable PINCTRL
CONFIG_PINCTRL=y

# Enable GPIO
CONFIG_GPIO=y

Expand Down
2 changes: 1 addition & 1 deletion doc/nrf/templates/application_README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Additional configuration*

.. note::
* Add this section to describe and link to any library configuration options that might be important to run this application.
You can link to options with ``:kconfig:option:`CONFIG_XXX```.
You can link to options with ``:kconfig:option:`CONFIG_FOO```.
* You need not list all possible configuration options, but only the ones that are relevant.

Check and configure the following library options that are used by the application:
Expand Down
2 changes: 1 addition & 1 deletion drivers/flash/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ config FLASH_RPC_SYS_INIT_PRIORITY
Device driver initialization priority.

config FLASH_RPC_SYS_INIT
bool "Enable at sys init"
bool "sys init"
help
SYS_INIT nrf_rpc

Expand Down
2 changes: 1 addition & 1 deletion drivers/mpsl/flash_sync/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if SOC_FLASH_NRF || SOC_FLASH_NRF_RRAM || SOC_NRF54H20

config SOC_FLASH_NRF_RADIO_SYNC_RPC
bool "Enable flash driver synchronization with radio protocols through RPC"
bool "Flash driver synchronization with radio protocols through RPC"
help
Enable the flash synchronization between the application core and the radio core.
This Kconfig option is set based on the value of the SB_CONFIG_SOC_FLASH_NRF_RADIO_SYNC_RPC
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/Kconfig.nrf_sw_lpuart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ config NRF_SW_LPUART_DEFAULT_TX_TIMEOUT
driven API is enabled).

config NRF_SW_LPUART_INT_DRIVEN
bool "Enable interrupt driven API"
bool "Interrupt driven API"
select UART_INTERRUPT_DRIVEN
help
If enabled, then asynchronous API cannot be used
Expand Down
4 changes: 2 additions & 2 deletions lib/bin/lwm2m_carrier/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ menuconfig LWM2M_CARRIER

if LWM2M_CARRIER

menu "Enabled Carriers"
menu "Carriers"

config LWM2M_CARRIER_GENERIC
bool "Generic"
Expand Down Expand Up @@ -235,7 +235,7 @@ config LWM2M_CARRIER_PDN_TYPE
PDN type for custom APN.

config LWM2M_CARRIER_QUEUE_MODE
bool "Enable queue mode"
bool "Queue mode"
default y
help
Configure whether the LwM2M device is to inform the LwM2M server that
Expand Down
2 changes: 1 addition & 1 deletion lib/dk_buttons_and_leds/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ config DK_LIBRARY_BUTTON_SCAN_INTERVAL
default 10

config DK_LIBRARY_DYNAMIC_BUTTON_HANDLERS
bool "Enable the runtime assignable button handler API"
bool "Runtime assignable button handler API"
default y

module = DK_LIBRARY
Expand Down
4 changes: 2 additions & 2 deletions lib/edge_impulse/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

menuconfig EDGE_IMPULSE
bool "Enable Edge Impulse"
bool "Edge Impulse"
depends on CPP
depends on STD_CPP11
depends on !FP16
Expand Down Expand Up @@ -51,7 +51,7 @@ config EDGE_IMPULSE_URI
endif # EDGE_IMPULSE

menuconfig EI_WRAPPER
bool "Enable Edge Impulse wrapper"
bool "Edge Impulse wrapper"
depends on EDGE_IMPULSE
default y
help
Expand Down
2 changes: 1 addition & 1 deletion lib/fprotect/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ config FPROTECT_BLOCK_SIZE
default $(dt_node_int_prop_hex,$(DT_CHOSEN_ZEPHYR_FLASH),erase-block-size)

menuconfig FPROTECT
bool "Enable FPROTECT"
bool "FPROTECT"
depends on SOC_FAMILY_NORDIC_NRF
depends on !(SOC_SERIES_NRF54LX && IS_SECURE_BOOTLOADER)
depends on !SOC_SERIES_NRF54HX
Expand Down
2 changes: 1 addition & 1 deletion lib/hw_unique_key/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ config HW_UNIQUE_KEY_WRITE_ON_CRYPTO_INIT
still requires the device to reboot and the bootloader to load the HUK

config HW_UNIQUE_KEY_RANDOM
bool "Enable writing random HW Unique Keys"
bool "Support writing random HW Unique Keys"
depends on MAIN_STACK_SIZE >= 2048 || BUILD_WITH_TFM
default y if BUILD_WITH_TFM
help
Expand Down
2 changes: 1 addition & 1 deletion lib/identity_key/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ menuconfig IDENTITY_KEY
if IDENTITY_KEY

config IDENTITY_KEY_RANDOM
bool "Enable writing random Identity Keys"
bool "Support writing random Identity Keys"
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT
select PSA_WANT_ECC_SECP_R1_256
Expand Down
12 changes: 6 additions & 6 deletions lib/lte_link_control/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ endif # LTE_LC_DNS_FALLBACK_MODULE
# End of modules Kconfig options

config LTE_SHELL
bool "Enable LTE shell commands"
bool "LTE shell commands"
default y
depends on SHELL

config LTE_LOCK_BANDS
bool "Enable LTE band lock"
bool "LTE band lock"
help
Enable LTE band lock. Bands not enabled in LTE_LOCK_BAND_MASK
are not used when this setting is enabled.
Expand All @@ -95,7 +95,7 @@ config LTE_PLMN_SELECTION_OPTIMIZATION
Refer to the AT%FEACONF command in the AT command manual for more details.

config LTE_LOCK_PLMN
bool "Enable LTE PLMN lock"
bool "LTE PLMN lock"
help
Enable PLMN lock for network selection.

Expand All @@ -117,7 +117,7 @@ config LTE_UNLOCK_PLMN
if LTE_LC_PSM_MODULE

config LTE_PSM_REQ
bool "Enable PSM request"
bool "PSM request"
help
Enable request for use of PSM using AT+CPSMS.
If this option is set the library will automatically request PSM when
Expand Down Expand Up @@ -175,7 +175,7 @@ config LTE_PSM_REQ_RAT_SECONDS
non-negative value can be given.

config LTE_PROPRIETARY_PSM_REQ
bool "Enable use of proprietary PSM"
bool "Proprietary PSM"
help
Enable use of proprietary PSM using AT%FEACONF. To use this feature, also PSM request
must be enabled using CONFIG_LTE_PSM_REQ or lte_lc_psm_req().
Expand All @@ -186,7 +186,7 @@ endif # LTE_LC_PSM_MODULE
if LTE_LC_EDRX_MODULE

config LTE_EDRX_REQ
bool "Enable eDRX request"
bool "eDRX request"
help
Enable request for use of eDRX using AT+CEDRXS.
For reference, see 3GPP 27.007 Ch. 7.40.
Expand Down
2 changes: 1 addition & 1 deletion lib/modem_attest_token/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ menuconfig MODEM_ATTEST_TOKEN
if MODEM_ATTEST_TOKEN

config MODEM_ATTEST_TOKEN_PARSING
bool "Enable parsing of the attestation token"
bool "Parsing of the attestation token"
select ZCBOR
select BASE64
default y
Expand Down
4 changes: 2 additions & 2 deletions lib/ram_pwrdn/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

menuconfig RAM_POWER_DOWN_LIBRARY
bool "Enable API for turning off unused RAM segments"
bool "API for turning off unused RAM segments"
depends on SOC_NRF52840 || SOC_NRF52833 || SOC_NRF5340_CPUAPP || SOC_SERIES_NRF54LX
# Powering down RAM blocks can only be done from the secure domain
# for security reasons. If necessary, this limitation could be
Expand Down Expand Up @@ -33,7 +33,7 @@ config RAM_POWER_ADJUST_ON_HEAP_RESIZE
configuration will be adjusted when the libc heap (which uses the memory
area following the application image) is increased or trimmed.

module = RAM_POWERDOWN
module = RAM_POWERDOWN
module-str = RAM power-down library
source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config"

Expand Down
2 changes: 1 addition & 1 deletion lib/wave_gen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

menuconfig WAVE_GEN_LIB
bool "Enable wave signal generating library"
bool "Wave signal generating library"
select REQUIRES_FULL_LIBC
help
The library can be used to generate a value of a wave signal for given time.
Expand Down
2 changes: 2 additions & 0 deletions modules/modules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ set(ZEPHYR_AZURE_SDK_FOR_C_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR}/azure-sdk-for-c)
set(ZEPHYR_OPENTHREAD_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR}/openthread)
set(ZEPHYR_OPENTHREAD_KCONFIG ${CMAKE_CURRENT_LIST_DIR}/openthread/Kconfig)
set(ZEPHYR_HAL_NORDIC_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR}/hal_nordic)
set(ZEPHYR_NRF_KCONFIG ${CMAKE_CURRENT_LIST_DIR}/../Kconfig.nrf)
set(SYSBUILD_NRF_KCONFIG ${CMAKE_CURRENT_LIST_DIR}/../sysbuild/Kconfig.sysbuild)

# Those are modules with Kconfig tree's inside the module repo but where
# nRF Connect SDK extend those trees.
Expand Down
3 changes: 1 addition & 2 deletions samples/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
#

config NCS_SAMPLES_DEFAULTS
bool "Enable NCS sample default settings"
default n
bool "NCS sample default settings"
imply LOG
imply LOG_DEFAULT_MINIMAL
imply ASSERT
Expand Down
2 changes: 1 addition & 1 deletion samples/nrf5340/extxip_smp_svr/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ For more information about MCUmgr and SMP, see :ref:`device_mgmt`.

The sample enables the splitting by:

* Enabling the split XIP image feature through the :kconfig:option:`SB_CONFIG_XIP_SPLIT_IMAGE` sysbuild Kconfig option.
* Enabling the split XIP image feature through the :kconfig:option:`SB_CONFIG_QSPI_XIP_SPLIT_IMAGE` sysbuild Kconfig option.
This Kconfig option sets a build-system level support for image division and adapts the image-signing support for MCUboot.
* Using the project's CMake file which describes relocation of certain libraries or objects to an external XIP area.
* Using a linker script that describes the external QSPI area.
Expand Down
Loading
Loading