[PATCH v3 2/3] bli: Add explicit dependency on the part_gpt module

2023-11-16 Thread Oliver Steffen
The bli module has a "hidden" dependency on the part_gpt module, which is not picked up automatically by the build system. One purpose of the bli module is to communicate the GPT UUID of the partition GRUB was launched from to Linux user-space (systemd-gpt-auto-generator). Without the part_gpt modu

[PATCH v3 1/3] Allow explicit module dependencies

2023-11-16 Thread Oliver Steffen
The build system deduces inter-module dependencies from the symbols required and exported by the modules. This works well, except for some rare cases where the dependency is indirect or hidden. A module might not make use of any function of some other module, but still expect its functionality to b

[PATCH v3 0/3] Bli: fix hidden module dependency

2023-11-16 Thread Oliver Steffen
The bli module has a hidden/implicit dependency on the part_gpt module. The part_gpt module has to be loaded before the bli module. This dependency is not picked up automatically by the build system because the bli module does not use any function of part_gpt. It just expects GRUB to be able to par

[PATCH v3 3/3] bli: Improve documentation

2023-11-16 Thread Oliver Steffen
Improve the documentation of the bli module, explain in more detail what it does. Make clear that GPT formatted drives are expected and other partition formats are ignored. Also reorder and reword this section a bit. Signed-off-by: Oliver Steffen --- docs/grub.texi | 17 + 1 file

Re: [PATCH v2 0/3] Bli: fix hidden module dependency

2023-11-16 Thread Daniel Kiper
Adding a few folks who can be interested in this patch set... On Wed, Nov 15, 2023 at 09:07:59PM +0100, Oliver Steffen wrote: > The bli module has a hidden/implicit dependency on the part_gpt module. > The part_gpt module has to be loaded before the bli module. > This dependency is not picked up a