From 7d799fdff055baf7fdd112f650ead8af4daa149e Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 20 Jul 2022 07:37:09 -0400 Subject: [PATCH] kconfig: guard MPU logging macros MPU logging Kconfigs should only appear when MPU is enabled. Signed-off-by: Anas Nashif --- arch/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 67b0c407c08..eba0960d683 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -155,10 +155,6 @@ module = ARCH module-str = arch source "subsys/logging/Kconfig.template.log_config" -module = MPU -module-str = mpu -source "subsys/logging/Kconfig.template.log_config" - config BIG_ENDIAN bool help @@ -664,6 +660,10 @@ menuconfig MPU is enabled. if MPU +module = MPU +module-str = mpu +source "subsys/logging/Kconfig.template.log_config" + config MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT bool help