public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/1] EmbeddedPkg/Library: Add VirtualRealTimeClockLib
@ 2019-02-04 12:47 Pete Batard
  2019-02-04 12:47 ` [PATCH 1/1] " Pete Batard
  0 siblings, 1 reply; 14+ messages in thread
From: Pete Batard @ 2019-02-04 12:47 UTC (permalink / raw)
  To: edk2-devel

This is work, which was requested as part of the Raspberry Pi 3 platform
integration, is designed to remove the need to provide various custom RTC
implementations for platforms that don't have a real RTC.

The library, which is arch-agnostic (through usage of the perf counter) is
designed to emulate as much as it can as of a hardware backed RTC, including
time zones, daylight savings and nanosecond precision.

Note that, since it relies on automatically setting of the epoch value at
compilation-time, it is currently only meant to support gcc based build
environments and relies on UNIX-like shells that provide a 'date' command.
For other environments, the compilation is designed to break in a manner that
will direct the builder to contact the edk2 mailing list, so that we can look
at adding support for their setup.

Regards,

/Pete

Pete Batard (1):
  EmbeddedPkg/Library: Add VirtualRealTimeClockLib

 .../VirtualRealTimeClockLib.c                 | 400 ++++++++++++++++++
 .../VirtualRealTimeClockLib.inf               |  43 ++
 2 files changed, 443 insertions(+)
 create mode 100644 EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.c
 create mode 100644 EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf

-- 
2.17.0.windows.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-05-14 13:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-04 12:47 [PATCH 0/1] EmbeddedPkg/Library: Add VirtualRealTimeClockLib Pete Batard
2019-02-04 12:47 ` [PATCH 1/1] " Pete Batard
2019-02-05 19:57   ` Philippe Mathieu-Daudé
2019-02-15  0:09     ` Pete Batard
2019-02-12 18:14   ` Leif Lindholm
2019-02-15  0:12     ` Pete Batard
2019-02-15  9:57       ` Leif Lindholm
2019-02-15 10:07     ` Ard Biesheuvel
2019-02-15 13:39       ` Ard Biesheuvel
2019-02-15 14:57         ` Pete Batard
2019-02-15 15:09           ` Ard Biesheuvel
2019-02-20  7:42           ` Ard Biesheuvel
2020-05-14  7:45   ` [edk2] " Philippe Mathieu-Daudé
2020-05-14 13:14     ` Pete Batard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox