Skip to content

dtc: simplify command line invocation

Andre Przywara devicetree-compiler 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v13 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2guess input file format based on file content or file namedtc.c+50 -10 replies
2/2guess output file formatdtc.c+10 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] dtc: simplify command line invocation

Hi,

as promised the revised version of my mini-series. Compared to the first drop I do not bother anymore to do file name based guessing in case of an error opening or accessing the input file. Also the .dts heuristic (first character is a '/') is now gone. I omitted the third patch ("allow a second parameter to be the output file name") entirely.

Hope that fits better, if not, let me know!

Cheers,
Andre.

-------------

Most of time I find myself converting .dts to .dtb files and vice versa, but having to explicitly specify -I and -O every time seems to be unnecessary. The file names usually have proper extensions, also a DTB file is easily recognized by its magic.
This series aims to make life easier, by trying to auto-detect the file types if no explicit -I or -O parameters have been given. The behaviour with explicit file types specified via these parameters is not changed.
For details see the respective commit messages.

Andre Przywara (2):
guess input file format based on file content or file name guess output file format

 dtc.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 60 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.4