[PATCH 0/2] scripts: dt_to_config: Fix nul-separated compatible values

From: Geert Uytterhoeven
Date: Thu Oct 26 2023 - 09:55:47 EST


Hi all,

Due to a not-so-recent change in dtc, the dt_to_config script no longer
works well when used on a DTB instead of on a DTS file. The first patch
fixes that, the second patch fixes the rather odd spacing in that
script.

To not hamper backporting the fix, I put the reformatting patch last.

Thanks for your comments!

P.S. Apparently I had fixed the similar issue in my own out-of-tree
linux-config-from-dt script in a slightly different way.
https://github.com/geertu/linux-scripts/commit/56ade26c032c45e9353334384643d190d34b89fb

Geert Uytterhoeven (2):
scripts: dt_to_config: Fix nul-separated compatible values
scripts: dt_to_config: Fix odd formatting

scripts/dtc/dt_to_config | 1765 +++++++++++++++++++-------------------
1 file changed, 879 insertions(+), 886 deletions(-)

--
2.34.1

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds