* conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.

* include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
	functions when compiling for kernel.
This commit is contained in:
Vladimir Serbinenko 2013-10-25 16:07:01 +02:00
parent ea899a5760
commit af81ed880d
13 changed files with 27 additions and 93 deletions

View file

@ -796,20 +796,12 @@ static struct grub_video_adapter grub_video_sm712_adapter =
.next = 0
};
#ifdef GRUB_MACHINE_MIPS_LOONGSON
void grub_video_sm712_init (void)
#else
GRUB_MOD_INIT(video_sm712)
#endif
{
grub_video_register (&grub_video_sm712_adapter);
}
#ifdef GRUB_MACHINE_MIPS_LOONGSON
void grub_video_sm712_fini (void)
#else
GRUB_MOD_FINI(video_sm712)
#endif
{
grub_video_unregister (&grub_video_sm712_adapter);
}