History log of /system/libufdt/ufdt_prop_dict.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4f00eda9fa05364edd719b05b88e4445682eeee5 06-Apr-2017 SzuWei Lin <szuweilin@google.com> Add Apache2 module license

Bug: 36678371
Test: mmm system/libufdt, and success build
Change-Id: I73059f5beca2242f8883fca86cb49d53d0f543b8
(cherry picked from commit 6ad4caae73191bdc2403185b6482969c17604c95)
/system/libufdt/ufdt_prop_dict.c
435687606727710e91e827daa8e9227d760b4a1c 30-Mar-2017 SzuWei Lin <szuweilin@google.com> Avoid to re-generate string table from ufdt to fdt

String table contains the strings of all property name in a fdt.

The ufdt_apply_overlay() converts two dtbs from fdt to ufdt,
overlays, and converts merged ufdt to fdt. These operations
shouldn't create new peroperty names, so we can just re-use the
string tables in original dtbs, and just copy them into merged
fdt. This solution can enhance a lot of performance for device
tree overlaying.

To avoid the error that some users could use string offset in
string table, the solution also give a same string offset for
the name properties by ufdt_prop_dict;

Futher, the patch also removed unused header files after
changing algorithm.

Bug: 35255584
Test: ./tests/run_tests.sh
Change-Id: Id422730115531bd20d21117285291bdd860915ff
(cherry picked from commit 1be68ae53e645de1b2ec26140b302fbfcbbb919f)
/system/libufdt/ufdt_prop_dict.c