Cope with different issues found in testing the code for ABI udebs
Deal with various edge cases
This commit is contained in:
parent
692a5012f1
commit
b60845a775
|
@ -144,10 +144,14 @@ foreach my $arch (@ARCHES) {
|
|||
}
|
||||
}
|
||||
close PZ;
|
||||
$output .= "/* First, generic udebs */\n";
|
||||
$output .= "/* Udebs found in $pz: */\n";
|
||||
if (scalar (@output_udebs) > 0) {
|
||||
$output .= "/* Non-kernel udebs */\n";
|
||||
foreach my $udeb (@output_udebs) {
|
||||
$output .= "$udeb\n";
|
||||
}
|
||||
}
|
||||
if ($highest_kernel_ver != 0) {
|
||||
my $num_this_abi = scalar (@{ $driver_udebs{$highest_kernel_ver}});
|
||||
$output .= "/* Next: $num_this_abi udebs for kernel/ABI version ";
|
||||
$output .= number_to_di_ker_abi($highest_kernel_ver);
|
||||
|
@ -164,6 +168,7 @@ foreach my $arch (@ARCHES) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
next unless $output;
|
||||
print OUT "#ifdef ARCH_$cpparch\n";
|
||||
|
|
Loading…
Reference in New Issue