summaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorRuslan Trofymenko <ruslan.trofymenko@linaro.org>2019-07-05 15:37:32 +0300
committerTom Rini <trini@konsulko.com>2019-07-24 20:16:29 +0300
commitd65e8da92ee7d594226aeee04eb0bef5d60f8bda (patch)
treea7899ca444e95aa08980a6ccc01dd676ef7dd43a /common/Kconfig
parent6eccd1f740601f39796bace54c40cd785408e74e (diff)
downloadu-boot-d65e8da92ee7d594226aeee04eb0bef5d60f8bda.tar.xz
common: Implement A/B metadata
This patch determines the A/B-specific bootloader message structure that is the basis for implementation of recovery and A/B update functions. A/B metadata is stored in this structure and used to decide which slot should we use to boot the device. Also some basic functions for A/B metadata manipulation are implemented (like slot selection). The patch was extracted from commits [1], [2] with some coding style fixes. [1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729878/2 [2] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2 Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 4865a4dfc8..b556b59e9f 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -821,6 +821,16 @@ config UPDATE_TFTP_MSEC_MAX
default 100
depends on UPDATE_TFTP
+config ANDROID_AB
+ bool "Android A/B updates"
+ default n
+ help
+ If enabled, adds support for the new Android A/B update model. This
+ allows the bootloader to select which slot to boot from based on the
+ information provided by userspace via the Android boot_ctrl HAL. This
+ allows a bootloader to try a new version of the system but roll back
+ to previous version if the new one didn't boot all the way.
+
endmenu
menu "Blob list"