public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] fs: Allow to compile CMD_UBIFS when SPL is enabled
@ 2022-04-05 13:49 Pali Rohár
  2022-04-15 12:08 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2022-04-05 13:49 UTC (permalink / raw)
  To: Simon Glass, Heinrich Schuchardt, Sean Anderson; +Cc: u-boot

Currently there is no UBIFS support in SPL. But macro CONFIG_CMD_UBIFS is
defined also when building SPL. when both CMD_UBIFS and SPL are enabled
then build process throw compile error.

Fix check for ubifs code in fstypes[] to allow compiling CMD_UBIFS only in
proper U-Boot.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 fs/fs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/fs.c b/fs/fs.c
index 5c3b1ac09e53..7bf8c440886a 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -246,6 +246,7 @@ static struct fstype_info fstypes[] = {
 		.ln = fs_ln_unsupported,
 	},
 #endif
+#ifndef CONFIG_SPL_BUILD
 #ifdef CONFIG_CMD_UBIFS
 	{
 		.fstype = FS_TYPE_UBIFS,
@@ -265,6 +266,7 @@ static struct fstype_info fstypes[] = {
 		.ln = fs_ln_unsupported,
 	},
 #endif
+#endif
 #ifdef CONFIG_FS_BTRFS
 	{
 		.fstype = FS_TYPE_BTRFS,
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-15 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-05 13:49 [PATCH] fs: Allow to compile CMD_UBIFS when SPL is enabled Pali Rohár
2022-04-15 12:08 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox