(Unless anything has changed dramatically in the last year:) Dependencies are calculated automatically on the basis of symbols that you use in your module. If you look at genmoddep.awk and work out from there you can get a handle on the process. If you only use symbols provided by the ‘kernel’, then you won’t have any dependencies.
If you are writing a new module, make sure it’s specified in Makefile.core.def and you’ve regenerated the necessary files. (From memory I used to need a full bootstrap to get changes to percolate through.) Kind regards, Daniel > On 4 Oct 2023, at 8:31 pm, Oliver Steffen <ostef...@redhat.com> wrote: > > Hi, > > Is there a way to specify dependencies for a module? As in a list of > other modules that need to be loaded before? > > I found a macro named GRUB_MOD_DEP in dh.h, but when I use it in the > module's .c file I get errors about a missing .moddeps section. It also > does not seem to be in use anywhere. > > How are dependencies handled? I looked at moddep.lst and it does not > show anything listed for the module I am working on, while other modules > have a list of dependencies. What am I missing here? > > Thanks a lot, > > Oliver > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel