ukify: Support building UKIs with .dtbauto and .hwids sections (#34158)
authorLuca Boccassi <bluca@debian.org>
Thu, 14 Nov 2024 16:26:01 +0000 (16:26 +0000)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 16:26:01 +0000 (16:26 +0000)
commit32a14422ece7f720736b03604a2890a61ab2868a
treeb6c42c4dd3d4a6bc8a0ce0bedc499e9b3d873f66
parent3ea89c64c804fbf1677bc26ba3a2f59b3b84a040
parent0333b9d5892983efc690d444fb8783624a1ef476
ukify: Support building UKIs with .dtbauto and .hwids sections (#34158)

Stub behavior will be as following:
1. If there are no `.dtbauto` sections then is used `.dtb` if present
2. If there are `.dtbauto` sections and there is at least one matching
(either with the firmware-provided DT or via `.hwids`) then it'll be
used instead of the `.dtb`.

Based on #28959 and [dtbloader](https://github.com/TravMurav/dtbloader)

Closes #28959
Fixes #31946