help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make it's own grub module


From: Andrei Borzenkov
Subject: Re: Make it's own grub module
Date: Wed, 14 Sep 2016 10:58:59 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]