diff options
author | Winter Wang <wente.wang@nxp.com> | 2016-11-17 17:29:58 +0800 |
---|---|---|
committer | Winter Wang <wente.wang@nxp.com> | 2016-11-18 12:52:35 +0800 |
commit | 64cb24c2497a9ba28e41979e0c3d5deb387767f9 (patch) | |
tree | b8578d18fccc26e4b147ed7f9ee89c233679338b | |
parent | 9eeacefe0d235c0d8c9c48fc27e60ae17ac92c75 (diff) | |
download | u-boot-imx-64cb24c2497a9ba28e41979e0c3d5deb387767f9.zip u-boot-imx-64cb24c2497a9ba28e41979e0c3d5deb387767f9.tar.gz u-boot-imx-64cb24c2497a9ba28e41979e0c3d5deb387767f9.tar.bz2 |
MA-9027 libavb: fsl: bootctl: add var 'slot-count'
return 2 for getvar 'slog-count' as there are 2
slots
Change-Id: I273d8d24fccef09ab24a21cae2f4c9028255b118
Signed-off-by: Winter Wang <wente.wang@nxp.com>
-rw-r--r-- | lib/libavb/fsl/fsl_bootctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libavb/fsl/fsl_bootctl.c b/lib/libavb/fsl/fsl_bootctl.c index c112248..43cbe8d 100644 --- a/lib/libavb/fsl/fsl_bootctl.c +++ b/lib/libavb/fsl/fsl_bootctl.c @@ -44,6 +44,7 @@ bool is_slotvar_avb(char *cmd) { assert(cmd != NULL); if (!strcmp_l1("has-slot:", cmd) || !strcmp_l1("slot-successful:", cmd) || + !strcmp_l1("slot-count", cmd) || !strcmp_l1("slot-suffixes", cmd) || !strcmp_l1("current-slot", cmd) || !strcmp_l1("slot-unbootable:", cmd) || @@ -87,6 +88,10 @@ void get_slotvar_avb(AvbOps *ops, char *cmd, char *response, size_t chars_left) } else if (!strcmp_l1("slot-suffixes", cmd)) { strncat(response, "_a,_b", chars_left); return; + + } else if (!strcmp_l1("slot-count", cmd)) { + strncat(response, "2", chars_left); + return; } /* load ab meta */ |