]> git.baikalelectronics.ru Git - uboot.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)
commit39f57ced3c3f4d99d76dda7c07fd9add2920eba4
tree7c6ba06d302c3cc443b6f7cf73bd8ff7b4ea69f7
parent10ef7ffc62814010a029827dfc156647033097aa
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