Reindent without mixing tabs and spaces.
No functional changes.
(cherry picked from commit 139041f332
)
This commit is contained in:
parent
935cd9cc4c
commit
e5405490f4
|
@ -73,19 +73,19 @@ sub process_components {
|
||||||
print STDERR "found modaliases entries for firmware package ", $array->{Package}, "\n"
|
print STDERR "found modaliases entries for firmware package ", $array->{Package}, "\n"
|
||||||
if $verbose;
|
if $verbose;
|
||||||
|
|
||||||
if ($pkgname eq "ALL" or $pkgname eq $array->{Package}) {
|
if ($pkgname eq "ALL" or $pkgname eq $array->{Package}) {
|
||||||
|
|
||||||
my $patterns_file = $output_dir . "/" . $array->{Package} . ".patterns";
|
my $patterns_file = $output_dir . "/" . $array->{Package} . ".patterns";
|
||||||
printf STDERR "writing %d entries to %s\n",
|
printf STDERR "writing %d entries to %s\n",
|
||||||
(scalar @{ $array->{Provides}->{modaliases} }),
|
(scalar @{ $array->{Provides}->{modaliases} }),
|
||||||
$patterns_file;
|
$patterns_file;
|
||||||
|
|
||||||
# For each alias, anchor the pattern on the left (^) and on
|
# For each alias, anchor the pattern on the left (^) and on
|
||||||
# the right ($), and replace each '*' with '.*':
|
# the right ($), and replace each '*' with '.*':
|
||||||
write_file($patterns_file,
|
write_file($patterns_file,
|
||||||
format_alias( @{ $array->{Provides}->{modaliases} } ));
|
format_alias( @{ $array->{Provides}->{modaliases} } ));
|
||||||
push @packages, $array->{Package};
|
push @packages, $array->{Package};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return @packages;
|
return @packages;
|
||||||
}
|
}
|
||||||
|
@ -123,52 +123,52 @@ if (! grep { $_ eq $SOF } @all_packages) {
|
||||||
|
|
||||||
if ($pkgname eq 'ALL' or $pkgname eq 'firmware-sof-signed') {
|
if ($pkgname eq 'ALL' or $pkgname eq 'firmware-sof-signed') {
|
||||||
|
|
||||||
# Extract on amd64, from the installed package, with the following
|
# Extract on amd64, from the installed package, with the following
|
||||||
# command. Note that descending under intel/ would lead to no
|
# command. Note that descending under intel/ would lead to no
|
||||||
# aliases, so stick to the top-level directory for sof:
|
# aliases, so stick to the top-level directory for sof:
|
||||||
#
|
#
|
||||||
# for x in $(dpkg -L linux-image-5.10.0-8-amd64 | grep kernel/sound/soc/sof/.*\.ko$); do /usr/sbin/modinfo $x | awk '/^alias:/ { print $2 }'; done | sort
|
# for x in $(dpkg -L linux-image-5.10.0-8-amd64 | grep kernel/sound/soc/sof/.*\.ko$); do /usr/sbin/modinfo $x | awk '/^alias:/ { print $2 }'; done | sort
|
||||||
#
|
#
|
||||||
# XXX: If that's not enough, there are other modules matching the
|
# XXX: If that's not enough, there are other modules matching the
|
||||||
# kernel/sound/soc/intel/boards/snd-soc-sof*.ko pattern.
|
# kernel/sound/soc/intel/boards/snd-soc-sof*.ko pattern.
|
||||||
|
|
||||||
my @sof_aliases = qw(
|
my @sof_aliases = qw(
|
||||||
pci:v00008086d000002C8sv*sd*bc*sc*i*
|
pci:v00008086d000002C8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d000006C8sv*sd*bc*sc*i*
|
pci:v00008086d000006C8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d0000119Asv*sd*bc*sc*i*
|
pci:v00008086d0000119Asv*sd*bc*sc*i*
|
||||||
pci:v00008086d00001A98sv*sd*bc*sc*i*
|
pci:v00008086d00001A98sv*sd*bc*sc*i*
|
||||||
pci:v00008086d00003198sv*sd*bc*sc*i*
|
pci:v00008086d00003198sv*sd*bc*sc*i*
|
||||||
pci:v00008086d000034C8sv*sd*bc*sc*i*
|
pci:v00008086d000034C8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d000038C8sv*sd*bc*sc*i*
|
pci:v00008086d000038C8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d00003DC8sv*sd*bc*sc*i*
|
pci:v00008086d00003DC8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d000043C8sv*sd*bc*sc*i*
|
pci:v00008086d000043C8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d00004B55sv*sd*bc*sc*i*
|
pci:v00008086d00004B55sv*sd*bc*sc*i*
|
||||||
pci:v00008086d00004B58sv*sd*bc*sc*i*
|
pci:v00008086d00004B58sv*sd*bc*sc*i*
|
||||||
pci:v00008086d00004DC8sv*sd*bc*sc*i*
|
pci:v00008086d00004DC8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d00005A98sv*sd*bc*sc*i*
|
pci:v00008086d00005A98sv*sd*bc*sc*i*
|
||||||
pci:v00008086d00009DC8sv*sd*bc*sc*i*
|
pci:v00008086d00009DC8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d0000A0C8sv*sd*bc*sc*i*
|
pci:v00008086d0000A0C8sv*sd*bc*sc*i*
|
||||||
pci:v00008086d0000A348sv*sd*bc*sc*i*
|
pci:v00008086d0000A348sv*sd*bc*sc*i*
|
||||||
pci:v00008086d0000A3F0sv*sd*bc*sc*i*
|
pci:v00008086d0000A3F0sv*sd*bc*sc*i*
|
||||||
platform:jsl_rt5682_max98360a
|
platform:jsl_rt5682_max98360a
|
||||||
platform:jsl_rt5682_rt1015
|
platform:jsl_rt5682_rt1015
|
||||||
platform:sof-audio
|
platform:sof-audio
|
||||||
platform:sof_rt5682
|
platform:sof_rt5682
|
||||||
platform:sof_sdw
|
platform:sof_sdw
|
||||||
platform:tgl_max98357a_rt5682
|
platform:tgl_max98357a_rt5682
|
||||||
platform:tgl_max98373_rt5682
|
platform:tgl_max98373_rt5682
|
||||||
);
|
);
|
||||||
|
|
||||||
print STDERR "deploying manual workaround for $SOF\n"
|
print STDERR "deploying manual workaround for $SOF\n"
|
||||||
if $verbose;
|
if $verbose;
|
||||||
|
|
||||||
my $sof_file = $output_dir . "/" . $SOF . ".patterns";
|
my $sof_file = $output_dir . "/" . $SOF . ".patterns";
|
||||||
printf STDERR "writing %d entries to %s\n",
|
printf STDERR "writing %d entries to %s\n",
|
||||||
(scalar @sof_aliases),
|
(scalar @sof_aliases),
|
||||||
$sof_file;
|
$sof_file;
|
||||||
|
|
||||||
write_file($sof_file,
|
write_file($sof_file,
|
||||||
format_alias(@sof_aliases));
|
format_alias(@sof_aliases));
|
||||||
push @all_packages, $SOF;
|
push @all_packages, $SOF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue