+2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Don't try to detect cbfs on *-emu.
+
2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/gfxterm.c: USe right background color when scrolling.
return grub_errno;
}
-#if (defined (__i386__) || defined (__x86_64__)) && !defined (GRUB_UTIL)
+#if (defined (__i386__) || defined (__x86_64__)) && !defined (GRUB_UTIL) && !defined (GRUB_MACHINE_EMU)
static char *cbfsdisk_addr;
static grub_off_t cbfsdisk_size = 0;
GRUB_MOD_INIT (cbfs)
{
-#if (defined (__i386__) || defined (__x86_64__)) && !defined (GRUB_UTIL)
+#if (defined (__i386__) || defined (__x86_64__)) && !defined (GRUB_UTIL) && !defined (GRUB_MACHINE_EMU)
init_cbfsdisk ();
#endif
grub_fs_register (&grub_cbfs_fs);
GRUB_MOD_FINI (cbfs)
{
grub_fs_unregister (&grub_cbfs_fs);
-#if (defined (__i386__) || defined (__x86_64__)) && !defined (GRUB_UTIL)
+#if (defined (__i386__) || defined (__x86_64__)) && !defined (GRUB_UTIL) && !defined (GRUB_MACHINE_EMU)
fini_cbfsdisk ();
#endif
}