]> git.dujemihanovic.xyz Git - u-boot.git/commit
fwu: Initialize global fwu library state during CI test
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 23 Aug 2023 00:16:52 +0000 (02:16 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 30 Aug 2023 21:56:21 +0000 (17:56 -0400)
commit95311f7a194aabc1a52d4f240fef36f21b3178fd
tree8045eadd0f9fd2afcce77283d9b76fc5b2f85438
parentfa03568e46c9f4535b79e16faed4841ff7bfbe5b
fwu: Initialize global fwu library state during CI test

The current CI test worked by sheer luck, the g_dev global pointer
in the fwu library was never initialized and the test equally well
failed on sandbox64. Trigger the main loop in sandbox tests too to
initialize that global state, and move the sandbox specific exit
from fwu_boottime_checks after g_dev is initialized.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Acked-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/fwu_updates/fwu.c
test/dm/fwu_mdata.c