forked from tianocore/tianocore.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
EmbeddedPkg Fdt
Laurie0131 edited this page Jun 29, 2017
·
1 revision
Device Tree (DT) is a format used to describe the hardware resources of a specific platform. Lbfdt library (dual license - BSD/GPL) is often used to read or modify the information of the FDT (Flat Device Tree).
The current version of EDK2 used libdft from Wednesday 16th January 2014.
Tag Version 1.4.0 Signed-off-by: Jon Loeliger <[email protected]>
- Here are the instructions to update the version of libfdt:
cd $(EDK2_ROOT)/EmbeddedPkg/Library git clone git://git.jdl.com/software/dtc.git
2. Copy the content of 'libfdt' into EmbeddedPkg/Library/FdtLib/
cd dtc cp -a libfdt/* ../FdtLib/
3. Copy the libfdt headers:
mv ../FdtLib/libfdt.h ../../Include/ mv ../FdtLib/fdt.h ../../Include/ rm ../FdtLib/libfdt_env.h
- To add libfdt support to your EDK2 firmware, add the following line to your platform DSC file (required by BdsLib):
FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf