From 3c15e0065bdf470788390d4af59bf94aea9dedf5 Mon Sep 17 00:00:00 2001 From: zhang sanshan Date: Sun, 29 Oct 2017 17:02:08 +0800 Subject: MA-10552-7 [Android] enable A/B system in android add macro which support A/B boot and AVB. change CONFIG_ANDROID_THINGS_SUPPORT to CONFIG_ANDROID_AB_SUPPORT Change-Id: I08688e7b19ec7b8d71c7adcd298ae2ccc1e309c3 Signed-off-by: zhang sanshan --- include/configs/imx8mq_evk_android.h | 10 ++++++++++ include/configs/imx8qm_arm2_android.h | 10 ++++++++++ include/configs/imx8qxp_arm2_android.h | 10 ++++++++++ include/configs/imx8qxp_mek_android.h | 10 ++++++++++ include/fsl_fastboot.h | 2 +- 5 files changed, 41 insertions(+), 1 deletion(-) diff --git a/include/configs/imx8mq_evk_android.h b/include/configs/imx8mq_evk_android.h index fbe26f453d..bb9131c378 100644 --- a/include/configs/imx8mq_evk_android.h +++ b/include/configs/imx8mq_evk_android.h @@ -11,6 +11,16 @@ #define CONFIG_BCB_SUPPORT #define CONFIG_CMD_READ +#define CONFIG_ANDROID_AB_SUPPORT +#define CONFIG_AVB_SUPPORT +#define CONFIG_SUPPORT_EMMC_RPMB +#define CONFIG_SYSTEM_RAMDISK_SUPPORT +#define CONFIG_AVB_FUSE_BANK_SIZEW 0 +#define CONFIG_AVB_FUSE_BANK_START 0 +#define CONFIG_AVB_FUSE_BANK_END 0 +#define CONFIG_FASTBOOT_LOCK +#define FSL_FASTBOOT_FB_DEV "mmc" + #define CONFIG_USB_FUNCTION_FASTBOOT #define CONFIG_CMD_FASTBOOT #define CONFIG_ANDROID_BOOT_IMAGE diff --git a/include/configs/imx8qm_arm2_android.h b/include/configs/imx8qm_arm2_android.h index c84042c1e7..0198273db6 100644 --- a/include/configs/imx8qm_arm2_android.h +++ b/include/configs/imx8qm_arm2_android.h @@ -15,6 +15,16 @@ #define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_USB_GADGET_VBUS_DRAW 2 +#define CONFIG_ANDROID_AB_SUPPORT +#define CONFIG_AVB_SUPPORT +#define CONFIG_SUPPORT_EMMC_RPMB +#define CONFIG_SYSTEM_RAMDISK_SUPPORT +#define CONFIG_AVB_FUSE_BANK_SIZEW 0 +#define CONFIG_AVB_FUSE_BANK_START 0 +#define CONFIG_AVB_FUSE_BANK_END 0 +#define CONFIG_FASTBOOT_LOCK +#define FSL_FASTBOOT_FB_DEV "mmc" + #define CONFIG_USB_FUNCTION_FASTBOOT #define CONFIG_CMD_FASTBOOT #define CONFIG_ANDROID_BOOT_IMAGE diff --git a/include/configs/imx8qxp_arm2_android.h b/include/configs/imx8qxp_arm2_android.h index 5e324758c4..a7c4374837 100644 --- a/include/configs/imx8qxp_arm2_android.h +++ b/include/configs/imx8qxp_arm2_android.h @@ -20,6 +20,16 @@ #define CONFIG_ANDROID_BOOT_IMAGE #define CONFIG_FASTBOOT_FLASH +#define CONFIG_ANDROID_AB_SUPPORT +#define CONFIG_AVB_SUPPORT +#define CONFIG_SUPPORT_EMMC_RPMB +#define CONFIG_SYSTEM_RAMDISK_SUPPORT +#define CONFIG_AVB_FUSE_BANK_SIZEW 0 +#define CONFIG_AVB_FUSE_BANK_START 0 +#define CONFIG_AVB_FUSE_BANK_END 0 +#define CONFIG_FASTBOOT_LOCK +#define FSL_FASTBOOT_FB_DEV "mmc" + #define CONFIG_FSL_FASTBOOT #define CONFIG_ANDROID_RECOVERY diff --git a/include/configs/imx8qxp_mek_android.h b/include/configs/imx8qxp_mek_android.h index a324c9003f..3b69980c8d 100644 --- a/include/configs/imx8qxp_mek_android.h +++ b/include/configs/imx8qxp_mek_android.h @@ -15,6 +15,16 @@ #define CONFIG_USB_FUNCTION_MASS_STORAGE #define CONFIG_USB_GADGET_VBUS_DRAW 2 +#define CONFIG_ANDROID_AB_SUPPORT +#define CONFIG_AVB_SUPPORT +#define CONFIG_SUPPORT_EMMC_RPMB +#define CONFIG_SYSTEM_RAMDISK_SUPPORT +#define CONFIG_AVB_FUSE_BANK_SIZEW 0 +#define CONFIG_AVB_FUSE_BANK_START 0 +#define CONFIG_AVB_FUSE_BANK_END 0 +#define CONFIG_FASTBOOT_LOCK +#define FSL_FASTBOOT_FB_DEV "mmc" + #define CONFIG_USB_FUNCTION_FASTBOOT /*#define CONFIG_CMD_FASTBOOT*/ diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h index d4fae83365..43f27bb234 100644 --- a/include/fsl_fastboot.h +++ b/include/fsl_fastboot.h @@ -38,7 +38,7 @@ #define FASTBOOT_MMC_USER_PARTITION_ID 0 #define FASTBOOT_MMC_NONE_PARTITION_ID -1 -#ifdef CONFIG_ANDROID_THINGS_SUPPORT +#ifdef CONFIG_ANDROID_AB_SUPPORT #define FASTBOOT_PARTITION_BOOT_A "boot_a" #define FASTBOOT_PARTITION_RECOVERY "recovery" #define FASTBOOT_PARTITION_SYSTEM_A "system_a" -- cgit v1.2.3