summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDevarsh Thakkar <devarsht@ti.com>2024-01-24 20:33:43 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2024-02-05 15:17:53 -0600
commit7b99bf9139e5622eff835a4f6e4baf96f3a3fccf (patch)
treefc42bdaf6b46e41e4f14a60f3a724d653944924d /common
parent8bc0f4b92b66ef0b76319d36c2ce0e50870534fe (diff)
common: splash_source: Don't compile ubifs splash cmd for SPL build
Don't compile ubifs splash mount command for SPL build as this command is not supported (and also not enabled) during SPL stage. This fixes below compilation error, when CONFIG_CMD_UBIFS is enabled in defconfig along with splash screen enabled at SPL stage: "aarch64-none-linux-gnu-ld.bfd: common/cli.o: in function `run_command': u-boot-next/u-boot/common/cli.c:51: undefined reference to `parse_string_outer' u-boot-next/u-boot/common/cli.c:51:(.text.run_command+0x10): relocation truncated to fit: R_AARCH64_JUMP26 against undefined symbol `parse_string_outer' make[2]: *** [u-boot-next/u-boot/scripts/Makefile.spl:527: spl/u-boot-spl] Error 1 make[1]: *** [u-boot-next/u-boot/Makefile:2053: spl/u-boot-spl] Error 2 make[1]: Leaving directory 'u-boot-next/u-boot/out/a53' make: *** [Makefile:177: sub-make] Error 2" Fixes: eb9217dc03 ("common: Enable splash functions at SPL") Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Diffstat (limited to 'common')
-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 7fb28d7713..a17a797fbd 100644
--- a/common/splash_source.c
+++ b/common/splash_source.c
@@ -216,7 +216,7 @@ static int splash_init_virtio(void)
}
}
-#ifdef CONFIG_CMD_UBIFS
+#if defined(CONFIG_CMD_UBIFS) && !defined(CONFIG_SPL_BUILD)
static int splash_mount_ubifs(struct splash_location *location)
{
int res;