From 479d61a566e602aa7792777156126da85e874821 Mon Sep 17 00:00:00 2001 From: Devarsh Thakkar Date: Mon, 11 Mar 2024 18:53:24 +0530 Subject: 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 --- common/splash_source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3