Build system support for grub-emu modules

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2010-02-07 15:17:26 +01:00
1 parent c3e6233987
commit f38873b80b
9 files changed
+114 -33

No files matched your search

+9
View File
@@ -146,6 +146,9 @@ usage (int status)
}
void grub_hostfs_init (void);
void grub_hostfs_fini (void);
int
main (int argc, char *argv[])
{
@@ -204,11 +207,14 @@ main (int argc, char *argv[])
signal (SIGINT, SIG_IGN);
grub_console_init ();
grub_hostfs_init ();
/* XXX: This is a bit unportable. */
grub_util_biosdisk_init (dev_map);
#if GRUB_NO_MODULES
grub_init_all ();
#endif
/* Make sure that there is a root device. */
if (! root_dev)
@@ -235,7 +241,10 @@ main (int argc, char *argv[])
if (setjmp (main_env) == 0)
grub_main ();
#if GRUB_NO_MODULES
grub_fini_all ();
#endif
grub_hostfs_fini ();
grub_machine_fini ();