]> git.dujemihanovic.xyz Git - u-boot.git/commit
dtoc: Tidy up implementation of AddStringList()
authorSimon Glass <sjg@chromium.org>
Sun, 6 Mar 2022 03:18:56 +0000 (20:18 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 19 Mar 2022 01:24:25 +0000 (19:24 -0600)
commit0ded4d434dc38031a256eab4428d5e339967dd6b
treee12d94745e1f34c272cf88f6227efe20680c5781
parentb13114cd216703769ef56a4d1129934380902996
dtoc: Tidy up implementation of AddStringList()

Refactor this to avoid a loop. Also add a test for an empty string.

Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
tools/dtoc/fdt.py
tools/dtoc/fdt_util.py
tools/dtoc/test_fdt.py