
On Mon, 18 Feb 2019 at 09:22, Igor Opaniuk igor.opaniuk@linaro.org wrote:
From: Ruslan Trofymenko ruslan.trofymenko@linaro.org
For A/B system update support the Android boot process requires to send 'androidboot.slot_suffix' parameter as a command line argument. This patch implementes 'ab_select' command which allows us to obtain current slot by processing the A/B metadata.
The patch was extracted from commit [1] with one modification: the separator for specifying the name of metadata partition was changed from ';' to '#', because ';' is used for commands separation.
[1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/...
Signed-off-by: Ruslan Trofymenko ruslan.trofymenko@linaro.org Signed-off-by: Igor Opaniuk igor.opaniuk@linaro.org Reviewed-by: Alistair Strachan astrachan@google.com Reviewed-by: Sam Protsenko semen.protsenko@linaro.org
Changes in v3: None Changes in v2:
- 'android_ab_select' command is renamed to 'ab_select' command
- command is moved to the separate 'Android support commands' menu
cmd/Kconfig | 15 +++++++++++++++ cmd/Makefile | 1 + cmd/ab_select.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 cmd/ab_select.c
Reviewed-by: Simon Glass sjg@chromium.org