summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevarsh Thakkar <devarsht@ti.com>2024-03-11 18:53:24 +0530
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2024-03-21 14:26:33 +0000
commit479d61a566e602aa7792777156126da85e874821 (patch)
treee988c89f022df720d1f3899425d6605befff8f97
parentbf0f27854257e72a2ba0bc891210e16923fa1afe (diff)
HACK: common: splash_source: Don't compile NAND util functions for SPL
The NAND flash utility functions under CONFIG_CMD_NAND should not be compiled at SPL stage as the underlying functions are under separate Kconfigs viz. CONFIG_ENV_IS_IN_NAND and hence are not supported at SPL stage right now for splash screen. Long term, the NAND flash utility functions and their dependencies need to be tied with splash screen specific Kconfigs too as splash logo file can be present in NAND storage before bootup. Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
-rw-r--r--common/splash_source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/splash_source.c b/common/splash_source.c
index a17a797fbd..64337b106f 100644
--- a/common/splash_source.c
+++ b/common/splash_source.c
@@ -48,7 +48,7 @@ static int splash_sf_read_raw(u32 bmp_load_addr, int offset, size_t read_size)
}
#endif
-#ifdef CONFIG_CMD_NAND
+#if defined(CONFIG_CMD_NAND) && !defined(CONFIG_SPL_BUILD)
static int splash_nand_read_raw(u32 bmp_load_addr, int offset, size_t read_size)
{
struct mtd_info *mtd = get_nand_dev_by_index(nand_curr_device);