]> git.proxmox.com Git - mirror_edk2.git/commit
EmbeddedPkg/Library: Add VirtualRealTimeClockLib
authorPete Batard <pete@akeo.ie>
Mon, 4 Feb 2019 12:47:36 +0000 (12:47 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 15 Feb 2019 10:07:08 +0000 (11:07 +0100)
commit64a17fadcb79e2ce40524abb88a6863f47cbc0c7
treeedc9eea555b8f24087179c982fbe4d96ff3ca021
parent1b261a705f947a4abb9024eca307a7c52cc5e6d5
EmbeddedPkg/Library: Add VirtualRealTimeClockLib

This is designed to be used on platforms where a a real RTC is not
available and relies on an RtcEpochSeconds variable having been set or,
if that is not the case, falls back to using the epoch embedded at
compilation time.

Note that, in order to keep things simple for the setting of the
compilation time variable, only GCC environments with UNIX-like shells
and where a 'date' command is available are meant to be supported for
now.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
EmbeddedPkg/EmbeddedPkg.dsc
EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.c [new file with mode: 0644]
EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf [new file with mode: 0644]