From bdcd54e4ca8274b237021967042004ebd187218f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 12 Sep 2024 09:29:58 +0200 Subject: [PATCH] modules: Kconfig: Provide default definitions for modules with blobs There are HCI drivers which reference the module-specific Kconfig symbols which are auto-generated when the modules are present. Provide default definitions for these symbols in case the modules are missing, so that compliance checking doesn't stumble over seemingly non-existent Kconfig options. Signed-off-by: Johan Hedberg --- modules/Kconfig.esp32 | 6 ++++++ modules/Kconfig.silabs | 6 ++++++ modules/Kconfig.stm32 | 6 ++++++ modules/hal_infineon/Kconfig | 3 +++ 4 files changed, 21 insertions(+) diff --git a/modules/Kconfig.esp32 b/modules/Kconfig.esp32 index eec39d1dbf7..24ab06dd9cc 100644 --- a/modules/Kconfig.esp32 +++ b/modules/Kconfig.esp32 @@ -1,6 +1,12 @@ # Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd. # SPDX-License-Identifier: Apache-2.0 +config ZEPHYR_HAL_ESPRESSIF_MODULE + bool + +config ZEPHYR_HAL_ESPRESSIF_MODULE_BLOBS + bool + config HAS_ESPRESSIF_HAL bool depends on SOC_FAMILY_ESPRESSIF_ESP32 diff --git a/modules/Kconfig.silabs b/modules/Kconfig.silabs index a0aab1bd483..b75796c432f 100644 --- a/modules/Kconfig.silabs +++ b/modules/Kconfig.silabs @@ -3,6 +3,12 @@ # Copyright (c) 2017, Christian Taedcke # SPDX-License-Identifier: Apache-2.0 +config ZEPHYR_HAL_SILABS_MODULE + bool + +config ZEPHYR_HAL_SILABS_MODULE_BLOBS + bool + config HAS_SILABS_GECKO bool select HAS_CMSIS_CORE diff --git a/modules/Kconfig.stm32 b/modules/Kconfig.stm32 index beab5491185..500e2328444 100644 --- a/modules/Kconfig.stm32 +++ b/modules/Kconfig.stm32 @@ -3,6 +3,12 @@ # Copyright (c) 2016 Linaro Limited. # SPDX-License-Identifier: Apache-2.0 +config ZEPHYR_HAL_STM32_MODULE + bool + +config ZEPHYR_HAL_STM32_MODULE_BLOBS + bool + config HAS_STM32LIB bool diff --git a/modules/hal_infineon/Kconfig b/modules/hal_infineon/Kconfig index bc5ee008968..7046c48a0fc 100644 --- a/modules/hal_infineon/Kconfig +++ b/modules/hal_infineon/Kconfig @@ -4,6 +4,9 @@ config ZEPHYR_HAL_INFINEON_MODULE bool +config ZEPHYR_HAL_INFINEON_MODULE_BLOBS + bool + if SOC_FAMILY_INFINEON_CAT1 || SOC_FAMILY_PSOC6_LEGACY config USE_INFINEON_ADC