From a837303268063f0eb7625a9602d6c591c24dd237 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Thu, 15 Feb 2024 21:57:03 +0100 Subject: [PATCH] soc: stm32: Protect Kconfig symbols by SOC_FAMILY_STM32 Should avoid polluting other socs. Signed-off-by: Erwan Gouriou --- soc/st/stm32/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/st/stm32/Kconfig b/soc/st/stm32/Kconfig index 666278ee154..27f4e7edcaf 100644 --- a/soc/st/stm32/Kconfig +++ b/soc/st/stm32/Kconfig @@ -6,6 +6,8 @@ config SOC_FAMILY_STM32 select STM32_ENABLE_DEBUG_SLEEP_STOP if DEBUG || ZTEST select BUILD_OUTPUT_HEX +if SOC_FAMILY_STM32 + rsource "*/Kconfig" # STM32 wide symbols definitions @@ -36,3 +38,5 @@ config STM32_ENABLE_DEBUG_SLEEP_STOP debuggers from attaching w/o resetting the target. This effectivly destroys the use-case of `west attach`. Also SEGGER RTT and similar technologies need this. + +endif # SOC_FAMILY_STM32