diff options
author | Devarsh Thakkar <devarsht@ti.com> | 2024-03-11 18:53:24 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2024-03-11 14:39:53 -0500 |
commit | b27c44375c13f8f22c159eee378578bb0e62f600 (patch) | |
tree | 62d80e24359d8b1284855cc45191bb09de76d11e /common | |
parent | b84cf0957282951802b4c20df9ab316e17f16685 (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>
Diffstat (limited to 'common')
-rw-r--r-- | common/splash_source.c | 2 |
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); |