Skip to content

Commit 8fc892d

Browse files
committed
overlaycheck: Ignore stale broadcom subdirectory
Building multiple kernel branches in the same workspace can result in a broadcom dts subdirectory that contains no .dts files, only stale build artifacts. Make the use of the subdirectory dependent on the presence of "Makefile".
1 parent 756b5c5 commit 8fc892d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overlaycheck/overlaycheck

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fatal_error("This isn't a Linux repository") if (!-d "$kerndir/kernel");
8585

8686
my $dtsdir = $kerndir."/arch/arm/boot/dts";
8787
my $dtssubdir = $dtsdir;
88-
$dtssubdir .= "/broadcom" if (-d $dtsdir."/broadcom");
88+
$dtssubdir .= "/broadcom" if (-f $dtsdir."/broadcom/Makefile");
8989
chdir($dtssubdir);
9090

9191
my @cpp_cmd = ('arm-linux-gnueabihf-cpp',

0 commit comments

Comments
 (0)