Skip to content

Commit 71a596c

Browse files
committed
kdtc: Auto-compile non-overlays
Run with just an input file (no output file), kdtc will create "<name>.dtbo" if the input is "<name>-overlay.dts". Add a similar rule for the non-overlay case, so "<name>.dts" is compiled to "<name>.dtb". Signed-off-by: Phil Elwell <[email protected]>
1 parent 657359c commit 71a596c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kdtc/kdtc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ if (!$out_file)
9191
{
9292
$out_file = $ARGV[1];
9393
$out_file = "$1.dtbo" if (!$out_file && $in_file =~ /^(.+)-overlay.dts$/);
94+
$out_file = "$1.dtb" if (!$out_file && $in_file =~ /^(.+).dts$/);
9495
push @args, '-o', $out_file if ($out_file);
9596
}
9697

0 commit comments

Comments
 (0)