In order to compile NAND_SUPPORT files we need non-zero values for
various parts of the NAND chip that would be expected. Rather than start
to dummy this up in Kconfig, make these options depend on !COMPILE_TEST
to start with.

Signed-off-by: Tom Rini <[email protected]>
---
 common/spl/Kconfig     | 1 +
 common/spl/Kconfig.tpl | 1 +
 2 files changed, 2 insertions(+)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index cb7b4179384b..defc8bd6a8ed 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -977,6 +977,7 @@ config SPL_MUSB_NEW
 
 config SPL_NAND_SUPPORT
        bool "Support NAND flash"
+       depends on !COMPILE_TEST
        select SPL_LOAD_BLOCK
        help
          Enable support for NAND (Negative AND) flash in SPL. NAND flash
diff --git a/common/spl/Kconfig.tpl b/common/spl/Kconfig.tpl
index a535b61ecd35..19ce3d92e65b 100644
--- a/common/spl/Kconfig.tpl
+++ b/common/spl/Kconfig.tpl
@@ -236,6 +236,7 @@ config TPL_MMC
 
 config TPL_NAND_SUPPORT
        bool "Support NAND flash"
+       depends on !COMPILE_TEST
        help
          Enable support for NAND in TPL. See SPL_NAND_SUPPORT for details.
 
-- 
2.43.0

Reply via email to