MdePkg: Support FDT library.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4392 Add FDT support in EDK2 by submodule 3rd party libfdt (https://github.com/devicetree-org/pylibfdt/tree/main/libfdt) and refer to LibcLib implementation by Pedro. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Benny Lin <benny.lin@intel.com> Acked-by: Pedro Falcato <pedro.falcato@gmail.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
62
MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
Normal file
62
MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
Normal file
@@ -0,0 +1,62 @@
|
||||
## @file
|
||||
# Flattened Device Tree Library.
|
||||
#
|
||||
# Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x0001001B
|
||||
BASE_NAME = BaseFdtLib
|
||||
MODULE_UNI_FILE = BaseFdtLib.uni
|
||||
FILE_GUID = C64DCB01-B037-4FF6-9CF3-E8CEC206DE04
|
||||
MODULE_TYPE = BASE
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = FdtLib
|
||||
|
||||
DEFINE FDT_LIB_PATH = libfdt/libfdt
|
||||
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64
|
||||
#
|
||||
|
||||
[Sources]
|
||||
FdtLib.c
|
||||
LibFdtWrapper.c
|
||||
# header Wrapper files
|
||||
limits.h
|
||||
stdbool.h
|
||||
stddef.h
|
||||
stdint.h
|
||||
stdlib.h
|
||||
string.h
|
||||
|
||||
$(FDT_LIB_PATH)/fdt.c
|
||||
$(FDT_LIB_PATH)/fdt.h
|
||||
$(FDT_LIB_PATH)/fdt_addresses.c
|
||||
$(FDT_LIB_PATH)/fdt_check.c
|
||||
$(FDT_LIB_PATH)/fdt_empty_tree.c
|
||||
$(FDT_LIB_PATH)/fdt_overlay.c
|
||||
$(FDT_LIB_PATH)/fdt_ro.c
|
||||
$(FDT_LIB_PATH)/fdt_rw.c
|
||||
$(FDT_LIB_PATH)/fdt_strerror.c
|
||||
$(FDT_LIB_PATH)/fdt_sw.c
|
||||
$(FDT_LIB_PATH)/fdt_wip.c
|
||||
$(FDT_LIB_PATH)/libfdt.h
|
||||
$(FDT_LIB_PATH)/libfdt_env.h
|
||||
$(FDT_LIB_PATH)/libfdt_internal.h
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
BaseMemoryLib
|
||||
|
||||
[BuildOptions]
|
||||
MSFT:*_*_IA32_CC_FLAGS = /wd4146 /wd4245
|
||||
MSFT:*_*_X64_CC_FLAGS = /wd4146 /wd4244 /wd4245 /wd4267
|
||||
|
Reference in New Issue
Block a user