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:
parent
6e54cbfe00
commit
83ea92e1b2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue