disk: part: support get part info in spl

Change-Id: I79be3609f0a4f9a24cb82c5cb8090bde0eafaf85
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2019-07-18 20:32:58 +08:00 committed by Kever Yang
parent 6e54cbfe00
commit 83ea92e1b2
1 changed files with 5 additions and 11 deletions

View File

@ -231,22 +231,16 @@ static inline int blk_get_device_part_str(const char *ifname,
#endif
/*
* We don't support printing partition information in SPL and only support
* getting partition information in a few cases.
* We don't support printing partition information in SPL.
*/
#ifdef CONFIG_SPL_BUILD
# define part_print_ptr(x) NULL
# if defined(CONFIG_SPL_EXT_SUPPORT) || defined(CONFIG_SPL_FAT_SUPPORT) || \
defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION)
# define part_get_info_ptr(x) x
# else
# define part_get_info_ptr(x) NULL
# endif
#define part_print_ptr(x) NULL
#else
#define part_print_ptr(x) x
#define part_get_info_ptr(x) x
#endif
#define part_get_info_ptr(x) x
struct part_driver {
const char *name;