* Error when building module with efi's "grub_efi_get_variable" function
@ 2014-10-29 1:43 Mat Troi
2014-10-29 18:30 ` Andrei Borzenkov
0 siblings, 1 reply; 3+ messages in thread
From: Mat Troi @ 2014-10-29 1:43 UTC (permalink / raw)
To: The development of GNU GRUB
Hi,
This is my Makefile.core.def:
...
...
module = {
name = mymod;
common = net/mymod.c;
};
...
...
When I tried to build I get:
mv syminfo.lst.new syminfo.lst
cat syminfo.lst | sort | gawk -f
/build/boot_project/src/grub/grub2/grub-core/genmoddep.awk >
moddep.lst || (rm -f moddep.lst; exit 1)
grub_efi_get_variable in mymod is not defined
make[5]: *** [moddep.lst] Error 1
mymod.c has "#include <grub/efi/efi.h>" and tries to use
"grub_efi_get_variable" function. I see that in syminfo.lst
> more syminfo.lst
...
undefined mymod grub_efi_get_variable
...
Can someone shed a light on the error and how to fix?
Thanks,
Matt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error when building module with efi's "grub_efi_get_variable" function
2014-10-29 1:43 Error when building module with efi's "grub_efi_get_variable" function Mat Troi
@ 2014-10-29 18:30 ` Andrei Borzenkov
2014-10-31 18:05 ` Mat Troi
0 siblings, 1 reply; 3+ messages in thread
From: Andrei Borzenkov @ 2014-10-29 18:30 UTC (permalink / raw)
To: Mat Troi; +Cc: The development of GNU GRUB
В Tue, 28 Oct 2014 18:43:52 -0700
Mat Troi <mattroisang@gmail.com> пишет:
> Hi,
>
> This is my Makefile.core.def:
> ...
> ...
> module = {
> name = mymod;
> common = net/mymod.c;
> };
> ...
> ...
>
> When I tried to build I get:
> mv syminfo.lst.new syminfo.lst
> cat syminfo.lst | sort | gawk -f
> /build/boot_project/src/grub/grub2/grub-core/genmoddep.awk >
> moddep.lst || (rm -f moddep.lst; exit 1)
> grub_efi_get_variable in mymod is not defined
> make[5]: *** [moddep.lst] Error 1
>
> mymod.c has "#include <grub/efi/efi.h>" and tries to use
> "grub_efi_get_variable" function. I see that in syminfo.lst
> > more syminfo.lst
> ...
> undefined mymod grub_efi_get_variable
> ...
>
> Can someone shed a light on the error and how to fix?
>
Do you build for EFI platform?
> Thanks,
> Matt
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error when building module with efi's "grub_efi_get_variable" function
2014-10-29 18:30 ` Andrei Borzenkov
@ 2014-10-31 18:05 ` Mat Troi
0 siblings, 0 replies; 3+ messages in thread
From: Mat Troi @ 2014-10-31 18:05 UTC (permalink / raw)
To: Andrei Borzenkov; +Cc: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 1333 bytes --]
Yes. It works now by adding 'enable=efi' to Makefile.core.def and rerun
autogen.sh
module = {
name = mymod;
common = net/mymod.c;
enable = efi;
};
On Wed, Oct 29, 2014 at 11:30 AM, Andrei Borzenkov <arvidjaar@gmail.com>
wrote:
> В Tue, 28 Oct 2014 18:43:52 -0700
> Mat Troi <mattroisang@gmail.com> пишет:
>
> > Hi,
> >
> > This is my Makefile.core.def:
> > ...
> > ...
> > module = {
> > name = mymod;
> > common = net/mymod.c;
> > };
> > ...
> > ...
> >
> > When I tried to build I get:
> > mv syminfo.lst.new syminfo.lst
> > cat syminfo.lst | sort | gawk -f
> > /build/boot_project/src/grub/grub2/grub-core/genmoddep.awk >
> > moddep.lst || (rm -f moddep.lst; exit 1)
> > grub_efi_get_variable in mymod is not defined
> > make[5]: *** [moddep.lst] Error 1
> >
> > mymod.c has "#include <grub/efi/efi.h>" and tries to use
> > "grub_efi_get_variable" function. I see that in syminfo.lst
> > > more syminfo.lst
> > ...
> > undefined mymod grub_efi_get_variable
> > ...
> >
> > Can someone shed a light on the error and how to fix?
> >
>
> Do you build for EFI platform?
>
> > Thanks,
> > Matt
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
[-- Attachment #2: Type: text/html, Size: 2110 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-31 18:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 1:43 Error when building module with efi's "grub_efi_get_variable" function Mat Troi
2014-10-29 18:30 ` Andrei Borzenkov
2014-10-31 18:05 ` Mat Troi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.