Age | Commit message (Collapse) | Author |
|
Bug: 36678371
Test: mmm system/libufdt, and success build
Change-Id: I73059f5beca2242f8883fca86cb49d53d0f543b8
(cherry picked from commit 6ad4caae73191bdc2403185b6482969c17604c95)
|
|
The dtc adds a new function fdt_overlay_apply() to support DTO.
The original libufdt test cases used /include/ trick to compare
the test case result. Change to compare with the result of
fdt_overlay_apply().
Bug: 35495792
Test: run test scripts (see libufdt/tests/README)
Change-Id: Ied68c09c479ab09025574eb97c5ef3adf58253c4
|
|
Add two shell scripts to verify DTO (device tree overlay).
verify_dto_inc.sh uses syntax /include/ to simulate DTO.
verify_dto_ovl.sh uses dtc to compile dts to dtb,
and uses ufdt_overlay_test_app which implemented with libufdt to
apply DTO.
Also modified test code and test cases to use these shell scripts.
Bug: 33954716
Test: run test scripts (see libufdt/tests/README)
Change-Id: Iaa16d6d2b9a6cb767ed0cf25180b0e6ee290415d
|
|
With new version dtc, running test cases in libufdt will get
some warning messages when compiling overlay DT, such as:
Warning (unit_address_vs_reg): Node /fragment@0 has a unit name,
but no reg property
Avoid to noise the result of testing, add parameter -qq to disable
these warning messages in unit testing.
Bug: 33908117
Test: run test scripts (see libufdt/tests/README)
Change-Id: I874562cc00e1cb49c3417ea83f09925c77939207
|
|
The original version of libdtoverlay is slow in searching for
particular nodes and adding subnodes/properties due to the operations
on flattened device tree (FDT).
`libufdt` builds a real tree structure (named ufdt -- unflattned
device tree) from FDT. In the real tree, we can perform certain
operations (e.g., merge 2 subtrees, search for a node by path) in
almost optimal time complexity with acceptable additional memory usage.
With libufdt, we improve the merging of two dtb files from O(N^2) to
O(N), where N is the number of nodes in the tree.
Bug: 30800619
Test: run test scripts (see libufdt/tests/README)
Test: manually ported libufdt into a bootloader,
checked it can merge a base dtb and a dtbo to generate a final dtb
to boot the device
Change-Id: I1ff886bb8a62bad1451edcd7c4fe5cb48b7a034a
|
|
This reverts commit 3084ce7cbdff84093286459758f99c15082e6556.
Change-Id: I36f8252ea77c75301711009180c1908bb18e231c
|
|
The original version of libdtoverlay is slow in searching for
particular nodes and adding subnodes/properties due to the operations
on flattened device tree (FDT).
`libufdt` builds a real tree structure (named ufdt -- unflattned
device tree) from FDT. In the real tree, we can perform certain
operations (e.g., merge 2 subtrees, search for a node by path) in
almost optimal time complexity with acceptable additional memory usage.
With libufdt, we improve the merging of two dtb files from O(N^2) to
O(N), where N is the number of nodes in the tree.
Bug: 30800619
Test: run test scripts (see libufdt/tests/README)
Test: manually ported libufdt into a bootloader,
checked it can merge a base dtb and a dtbo to generate a final dtb
to boot the device
Change-Id: I6a282cc99129d5280ecbf40852723f83735fa523
|