grub-devel
[Top][All Lists]
Advanced

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

Re: Error when building module with efi's "grub_efi_get_variable" functi


From: Mat Troi
Subject: Re: Error when building module with efi's "grub_efi_get_variable" function
Date: Fri, 31 Oct 2014 11:05:42 -0700

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 <address@hidden> wrote:
В Tue, 28 Oct 2014 18:43:52 -0700
Mat Troi <address@hidden> пишет:

> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel



reply via email to

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