EmbeddedPkg/FdtLib: incorporate missing overlay support
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Feb 2018 10:30:33 +0000 (10:30 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 21 Feb 2018 10:53:08 +0000 (10:53 +0000)
commit44e6186eeadf8738d72a6e34b1ce75d1265d86fd
tree0cc8f09ff8fc32549e16266935b88d747cb5978b
parent6461344c318cd43a5494c0302e142a0cbe386d52
EmbeddedPkg/FdtLib: incorporate missing overlay support

Commit a099239015eb ("EmbeddedPkg/FdtLib: Update FdtLib to v1.4.5")
updated our FdtLib implementation to a more recent upstream version,
but omitted fdt_overlay.c due to its ambiguous licensing situation.
This has been resolved now, so take the latest upstream version of
the file (which received no other modifications in the mean time)
and add it to FdtLib.

Note that fdt_overlay.c has a dependency on strtoul() which EDK does
not provide natively, so add a private implementation that wraps the
BaseLib routines that do roughly the same.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Include/libfdt.h
EmbeddedPkg/Library/FdtLib/FdtLib.inf
EmbeddedPkg/Library/FdtLib/fdt_overlay.c [new file with mode: 0644]
EmbeddedPkg/Library/FdtLib/fdt_strtoul.c [new file with mode: 0644]