[U-Boot] [PATCH] CONFIG_EFI_PARTITION: Added support for EFI partition in cmd_ext2fs.c

richardretanubun richardretanubun at ruggedcom.com
Mon Oct 6 22:10:53 CEST 2008


Added support for CONFIG_EFI_PARTITION to ext2 commands.
Signed-off-by: Richard Retanubun <RichardRetanubun at RugggedCom.com>
---
Hi Wolfgang,

This patch should be applied on top of the patch that adds EFI partition support.

A workaround without this patch is to #define CONFIG_DOS_PARTITION 
and #define CONFIG_EFI_PARTITION when using #define CONFIG_CMD_EXT2 
in the include/config/<board-name.h>

Regards,

Richard

 common/cmd_ext2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c
index f569406..cfd4f64 100644
--- a/common/cmd_ext2.c
+++ b/common/cmd_ext2.c
@@ -44,8 +44,8 @@
 #include <usb.h>
 #endif
 
-#ifndef CONFIG_DOS_PARTITION
-#error DOS partition support must be selected
+#if !defined(CONFIG_DOS_PARTITION) && !defined(CONFIG_EFI_PARTITION)
+#error DOS or EFI partition support must be selected
 #endif
 
 /* #define	EXT2_DEBUG */
-- 
1.5.5.GIT











More information about the U-Boot mailing list