]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: keep time offset when resetting
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 30 Dec 2020 17:07:48 +0000 (18:07 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:42 +0000 (14:25 -0700)
commit43db07507abdb54b6575345300c171b0486e46be
tree7c6ba06d302c3cc443b6f7cf73bd8ff7b4ea69f7
parent5e6c9029cdeae72eeeb4e05caa4ce3d48e2e86fb
sandbox: keep time offset when resetting

The UEFI Self Certification Test (SCT) checks the SetTime() service with
the following steps:

* set date
* reset
* check date matches

To be compliant the sandbox should keep the offset to the host RTC during
resets. The implementation uses the environment variable
UBOOT_SB_TIME_OFFSET to persist the offset.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
doc/arch/sandbox.rst
drivers/rtc/i2c_rtc_emul.c
include/os.h