diff options
author | Ruslan Trofymenko <ruslan.trofymenko@linaro.org> | 2019-07-05 15:37:33 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-07-24 13:16:29 -0400 |
commit | 17030c7c4c99c09f439641628734dfc5840da3ff (patch) | |
tree | 6ed313808c2ba2312fa304cbea4828a73c505ba1 /cmd/Makefile | |
parent | d65e8da92ee7d594226aeee04eb0bef5d60f8bda (diff) | |
download | u-boot-17030c7c4c99c09f439641628734dfc5840da3ff.tar.gz u-boot-17030c7c4c99c09f439641628734dfc5840da3ff.tar.bz2 u-boot-17030c7c4c99c09f439641628734dfc5840da3ff.zip |
cmd: Add 'ab_select' command
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/2
Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org>
Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Reviewed-by: Alistair Strachan <astrachan@google.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/Makefile')
-rw-r--r-- | cmd/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Makefile b/cmd/Makefile index 0aa3741453..43a6b0ee21 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -12,6 +12,7 @@ obj-y += version.o # command obj-$(CONFIG_CMD_AES) += aes.o +obj-$(CONFIG_CMD_AB_SELECT) += ab_select.o obj-$(CONFIG_CMD_ADC) += adc.o obj-$(CONFIG_CMD_ARMFLASH) += armflash.o obj-y += blk_common.o |