summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2022-10-21 15:46:05 +0300
committerTom Rini <trini@konsulko.com>2022-10-31 21:47:33 +0300
commit873cf8ac70b620a0c1417d804bd4fb4246c34ebc (patch)
tree5381872ddd9dd0f56887cbd4d96e036f84651c7e /lib
parente68c03be46ce9bf409a2a9ad761a247d8640c89a (diff)
downloadu-boot-873cf8ac70b620a0c1417d804bd4fb4246c34ebc.tar.xz
test: dm: Add test cases for FWU Metadata uclass
Add test cases for accessing the FWU Metadata on the sandbox platform. The sandbox platform also uses the metadata access driver for GPT partitioned block devices. The FWU feature will be tested on the sandbox64 variant with a raw capsule. Remove the FIT capsule testing from sandbox64 defconfig -- the FIT capsule test will be run on the sandbox_flattree variant. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/fwu_updates/fwu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/fwu_updates/fwu.c b/lib/fwu_updates/fwu.c
index 6e159c050c..5313d07302 100644
--- a/lib/fwu_updates/fwu.c
+++ b/lib/fwu_updates/fwu.c
@@ -659,6 +659,12 @@ static int fwu_boottime_checks(void *ctx, struct event *event)
struct udevice *dev;
struct fwu_mdata mdata = { 0 };
+ /* Don't have boot time checks on sandbox */
+ if (IS_ENABLED(CONFIG_SANDBOX)) {
+ boottime_check = 1;
+ return 0;
+ }
+
ret = fwu_check_mdata_validity();
if (ret)
return 0;