Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EmbeddedPkg/libfdt: Add strncmp macro to use AsciiStrnCmp
For the implementation which utilizes libfdt provided in EmbeddedPkg however it uses strncmp function in the libfdt helper library, libfdt_env.h should provide the macro implied with edk2 strncmp implementation. The example is RISC-V OpenSBI library. edk2 RISC-V port uses OpenSBI library and incorporate with edk2 libfdt. edk2 libfdt_env.h provides the necessary macros to build OpenSBI which uses fdt functions in edk2 environment. However, OpenSBI also has libfdt helper library that uses strncmp function which is not defined in edk2 libfdt_env.h. This commit addresses the build issue caused by missing strncmp macro in libfdt_env.h. Check below three commits for the corresponding changes on OpenSBI, riscv-software-src/opensbi@8e47649 riscv-software-src/opensbi@2845d2d riscv-software-src/opensbi@2cfd2fc Signed-off-by: Abner Chang <[email protected]> Cc: Leif Lindholm <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Daniel Schaefer <[email protected]> Message-Id: <[email protected]> Reviewed-by: Leif Lindholm <[email protected]> [[email protected]: remove stray newline between S-o-b and first Cc]
- Loading branch information