[PATCH] ddr: imx: hide config prompt unless COMPILE_TEST
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Apr 22 23:00:46 PDT 2024
The DDR drivers are called into by low-level code for DRAM init.
The Kconfig options for them are selected by the SOC symbols, e.g.
ARCH_IMX8M and there's no point in asking for user decision: either
it's required and already selected or it will be unused and subject
to linker garbage collection. Therefore, hide the prompts by default.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/ddr/imx/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ddr/imx/Kconfig b/drivers/ddr/imx/Kconfig
index 71d4144e856e..ec6c097ec9f6 100644
--- a/drivers/ddr/imx/Kconfig
+++ b/drivers/ddr/imx/Kconfig
@@ -7,10 +7,10 @@ config IMX_DRAM
config IMX8M_DRAM
select IMX_DRAM
- bool "imx8m dram controller support"
+ bool "imx8m dram controller support" if COMPILE_TEST
config IMX9_DRAM
select IMX_DRAM
- bool "imx9 dram controller support"
+ bool "imx9 dram controller support" if COMPILE_TEST
endmenu
--
2.39.2
More information about the barebox
mailing list