summaryrefslogtreecommitdiff
path: root/include/part.h
diff options
context:
space:
mode:
authorLuo Ji <ji.luo@nxp.com>2018-06-08 10:31:11 +0800
committerJi Luo <ji.luo@nxp.com>2018-08-20 21:31:28 +0800
commitdbcf1e3cc079d2f1b3df6c4c9ec3a34d0c05eb4c (patch)
tree65685970179ebf242d0a49e14fbd4108d85beda9 /include/part.h
parent4cfd7437ac44f7bf64650e1f95628624d7eb79b2 (diff)
[iot] Support dual bootloader in SPL
Move the A/B slot check to SPL, the A/B slot switch workflow is just like what we have in libavb_ab. Test: A/B select works fine on imx8m. Change-Id: Ie3d827a9be0298b491bf2bc8d48833597fd70e90 Signed-off-by: Luo Ji <ji.luo@nxp.com>
Diffstat (limited to 'include/part.h')
-rw-r--r--include/part.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/part.h b/include/part.h
index 5678dab3f5..b39800b1f3 100644
--- a/include/part.h
+++ b/include/part.h
@@ -250,7 +250,8 @@ static inline int blk_get_device_part_str(const char *ifname,
#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)
+ defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION) || \
+ defined(CONFIG_DUAL_BOOTLOADER)
# define part_get_info_ptr(x) x
# else
# define part_get_info_ptr(x) NULL