projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier...
[firefly-linux-kernel-4.4.55.git]
/
scripts
/
headers_install.pl
diff --git
a/scripts/headers_install.pl
b/scripts/headers_install.pl
index 4ca3be3b2e50ef90c0a0e5e5e054aec081405b1b..efb3be10d428cb09b623b499cc5c03d728b57102 100644
(file)
--- a/
scripts/headers_install.pl
+++ b/
scripts/headers_install.pl
@@
-45,6
+45,13
@@
foreach my $file (@files) {
close $in;
system $unifdef . " $tmpfile > $installdir/$file";
close $in;
system $unifdef . " $tmpfile > $installdir/$file";
+ # unifdef will exit 0 on success, and will exit 1 when the
+ # file was processed successfully but no changes were made,
+ # so abort only when it's higher than that.
+ my $e = $? >> 8;
+ if ($e > 1) {
+ die "$tmpfile: $!\n";
+ }
unlink $tmpfile;
}
exit 0;
unlink $tmpfile;
}
exit 0;