* 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:
parent
ea899a5760
commit
af81ed880d
13 changed files with 27 additions and 93 deletions
|
@ -437,20 +437,12 @@ static struct grub_video_adapter grub_video_sis315pro_adapter =
|
|||
.next = 0
|
||||
};
|
||||
|
||||
#ifdef GRUB_MACHINE_MIPS_LOONGSON
|
||||
void grub_video_sis315pro_init (void)
|
||||
#else
|
||||
GRUB_MOD_INIT(video_sis315pro)
|
||||
#endif
|
||||
{
|
||||
grub_video_register (&grub_video_sis315pro_adapter);
|
||||
}
|
||||
|
||||
#ifdef GRUB_MACHINE_MIPS_LOONGSON
|
||||
void grub_video_sis315pro_fini (void)
|
||||
#else
|
||||
GRUB_MOD_FINI(video_sis315pro)
|
||||
#endif
|
||||
{
|
||||
grub_video_unregister (&grub_video_sis315pro_adapter);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue