]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/dtc: dtx_diff: remove broken example from help text
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Thu, 13 Jan 2022 08:19:18 +0000 (09:19 +0100)
committerRob Herring <robh@kernel.org>
Mon, 17 Jan 2022 22:26:44 +0000 (16:26 -0600)
commit5ff90c838e7229eb6928d228cf4233029084ad7b
tree67954f460a5a1f8dfcbc136255b3a9728e9d817b
parent6adabadeadd8ce8f3cdb0832a51d077181b6796f
scripts/dtc: dtx_diff: remove broken example from help text

dtx_diff suggests to use <(...) syntax to pipe two inputs into it, but
this has never worked: The /proc/self/fds/... paths passed by the shell
will fail the `[ -f "${dtx}" ] && [ -r "${dtx}" ]` check in compile_to_dts,
but even with this check removed, the function cannot work: hexdump will
eat up the DTB magic, making the subsequent dtc call fail, as a pipe
cannot be rewound.

Simply remove this broken example, as there is already an alternative one
that works fine.

Fixes: 791df4c13a8c ("dtc: create tool to diff device trees")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220113081918.10387-1-matthias.schiffer@ew.tq-group.com
scripts/dtc/dtx_diff