Skip to content
Commit bbb8a818 authored by Pete Batard's avatar Pete Batard Committed by mergify[bot]
Browse files

EmbeddedPkg/TimeBaseLib: Add macros to get build year/month/day



These can be used, for instance, to automate the population of an SMBIOS
Type 0 BIOS Release Date when building a UEFI firmware (which is how we
plan to use these macros for the Raspberry Pi platform).

These macros should work for any compiler that follows ISO/IEC 9899, but
we add a check for the compiler we have tested to be on the safe side.

Note that we decided against adding a #error or #warn for compilers that
haven't been validated, as we don't want to introduce breakage for people
who may already be using the header with something else than gcc, MSVC or
Clang. Instead, we expect those to send a patch that adds their compiler
to the list, once they have tested the macros there.

Signed-off-by: default avatarPete Batard <pete@akeo.ie>
Reviewed-by: default avatarLeif Lindholm <leif@nuviainc.com>
parent e557442e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment