25.08.2016 22:39, erwan daniel пишет:
> Hello,
> 
> 
> After a lot of search. I need to ask the question to specialist.
> I would create my own module for Grub (.mod loaded by insmod) the only web 
> page who talks about that is here 
> http://blog.fpmurphy.com/2010/06/grub2-modules.html
> 
> The instruction are not clear, i don't know where i can find the dl.h to get 
> all function available.
> 
> And the compilation is very strange..
> 
> 

GRUB does not have external module API. Your module must be part of GRUB
sources and go into grub-core subdirectory. You need to extend
grub-core/Makefile.core.def with definitions for your module. Then your
module will be built as part of normal GRUB build (note that building
single module is not reliable, sometimes dependency tracking is not
sufficient; rebuilding single module after changing source works).

After changing Makefie.core.def you need to follow INSTALL instructions
(in particular, you must run autogen.sh).

Get a look at this file, use some other module as example.

_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to