Commit Graph

26 Commits

Author SHA1 Message Date
Cyril Brulebois 957ee269b4 make_disc_trees.pl: create /firmware/dep11/README.txt and count it
Move the README.txt creation from generate_firmware_patterns to its
caller, so that it's done just once, and so that added blocks are
counted properly.
2023-01-25 01:38:34 +01:00
Cyril Brulebois b56af4dbcc generate_firmware_patterns: rewrite to match caller's expectations
Initially it was interesting to pass “--package ALL” to create *.patterns
files for all packages found in the specified Components-* file(s), but
make_disc_trees.pl uses a call per package, so drop support for looping.

Remember whether modalias information was found for the requested package,
and only apply the firmware-sof-signed workaround when that's indeed the
requested package and when modalias information wasn't found (in case that
gets added to DEP-11 metadata at some point in the future). When using the
workaround, include a reminder in the logs.
2023-01-25 01:38:33 +01:00
Cyril Brulebois 9d95f65bd9 generate_firmware_patterns: stop creating the output directory
The output directory's presence is the caller's responsibility; while
it might have been useful during development, actual builds require
make_disc_trees.pl to keep track of blocks getting added, so let it
take care of fulfilling prerequisites.
2023-01-25 01:38:33 +01:00
Cyril Brulebois 8c497447f9 generate_firmware_patterns: make sure dep11 metadata files are present
Otherwise we might be failing to generate firmware patterns for some
firmware packages. Being cautious about this lets us submit patches
against dak: https://salsa.debian.org/ftp-team/dak/-/merge_requests/267
2023-01-21 16:35:30 +01:00
Cyril Brulebois 81baccabbf Refresh references in comments. 2023-01-18 22:07:26 +01:00
Cyril Brulebois 51bf02a44c Avoid duplicates. 2023-01-18 21:59:31 +01:00
Cyril Brulebois 80d19dcb42 Refresh @sof_aliases for unstable.
Bump to the current linux-image ABI in unstable, and look at
snd-soc-*-sof modules in addition to the snd-soc-sof ones.
2023-01-18 21:46:54 +01:00
Cyril Brulebois fb2eac45eb Refresh @sof_aliases for bullseye.
Update comments:
 - Bump linux-image package to the latest found in bullseye.
 - Include snd-soc-sof.*\.ko in the lookup.
 - Delete the TODO: the list was built using snd-soc-sof*.ko already,
   since a80f013b57.
2023-01-18 21:45:41 +01:00
Cyril Brulebois 139041f332 Reindent without mixing tabs and spaces.
No functional changes.
2023-01-18 21:25:50 +01:00
Cyril Brulebois 723fdc9ee8 Delete TODO.
It was addressed in 897bf4754d.
2023-01-18 21:17:44 +01:00
Cyril Brulebois 897bf4754d generate_firmware_patterns: Drop support for the temporary --test option. 2021-08-22 16:17:41 +02:00
Cyril Brulebois a80f013b57 Include more modules, under kernel/sound/soc/intel/boards
As suggested by Ben Hutchings in:
  https://salsa.debian.org/kernel-team/firmware-nonfree/-/merge_requests/19

[ Best viewed with -b due to initial indentation inconsistency before
reimporting the updated list of aliases. ]
2021-07-25 23:06:47 +02:00
Steve McIntyre f7e973a181 Add a --package option to limit output to one specified package name 2021-07-25 18:26:11 +01:00
Cyril Brulebois 235ffb75c9 Add a note regarding other intel sof modules. 2021-07-25 08:46:32 +02:00
Cyril Brulebois 8e4fa300d8 Add a reminder about firmware-sof-signed (if --verbose was passed). 2021-07-25 08:40:49 +02:00
Cyril Brulebois 27f8524d0a Hardcode aliases from firmware-sof-signed.
The source code doesn't use the MODULE_FIRMWARE() macro so the machinery
implemented in src:firmware-nonfree wouldn't help. Extract alias info
manually once, and make note to keep an eye on further updates (e.g. via
a crontab on d-i.debian.org).
2021-07-25 08:40:43 +02:00
Cyril Brulebois c980454172 Extract alias formatting for later reuse. 2021-07-25 08:36:28 +02:00
Cyril Brulebois 91508a24c9 Keep track of all firmware packages found. 2021-07-25 08:16:44 +02:00
Cyril Brulebois c9f7df2963 Move main part to the bottom, it's getting extended. 2021-07-25 08:11:58 +02:00
Cyril Brulebois dae7be7662 Add small README.txt alongside .patterns files. 2021-07-25 07:32:30 +02:00
Cyril Brulebois a726d0df83 Update comments. 2021-07-25 07:20:53 +02:00
Cyril Brulebois 76fc95f307 Generate .patterns (plural) files. 2021-07-25 07:20:53 +02:00
Cyril Brulebois 9d570ad032 Implement support for --test option.
At the moment, there's no package with Type == firmware in the archive,
so --test lets us toy without that filter, finding a bunch of packages.
2021-07-25 07:20:53 +02:00
Cyril Brulebois 18e27f6e08 Implement support for --output-dir 2021-07-25 07:20:53 +02:00
Cyril Brulebois 21509942d1 Prepare support for command line options.
Implement --verbose directly.
2021-07-25 07:20:53 +02:00
Cyril Brulebois ff8ef160ea Add generate_firmware_patterns script and dependencies (see: #989863). 2021-07-25 07:20:30 +02:00