2010-05-06 06:08:35 +00:00
|
|
|
#include <config.h>
|
|
|
|
#include <grub/emu/misc.h>
|
|
|
|
|
|
|
|
#ifndef GRUB_MACHINE_EMU
|
|
|
|
#error "This source is only meant for grub-emu platform"
|
|
|
|
#endif
|
|
|
|
|
2010-06-02 08:21:05 +00:00
|
|
|
#if defined(__i386__)
|
2010-05-06 06:08:35 +00:00
|
|
|
#include "../i386/dl.c"
|
2010-06-02 08:21:05 +00:00
|
|
|
#elif defined(__x86_64__)
|
2010-05-06 06:08:35 +00:00
|
|
|
#include "../x86_64/dl.c"
|
2010-06-02 08:21:05 +00:00
|
|
|
#elif defined(__sparc__)
|
2010-05-06 06:08:35 +00:00
|
|
|
#include "../sparc64/dl.c"
|
2010-06-02 08:21:05 +00:00
|
|
|
#elif defined(__mips__)
|
2010-05-06 06:08:35 +00:00
|
|
|
#include "../mips/dl.c"
|
2010-06-02 08:21:05 +00:00
|
|
|
#elif defined(__powerpc__)
|
2010-05-06 06:08:35 +00:00
|
|
|
#include "../powerpc/dl.c"
|
2011-01-02 13:09:58 +00:00
|
|
|
#elif defined(__ia64__)
|
2013-12-08 17:14:32 +00:00
|
|
|
#include "../ia64/dl_helper.c"
|
2011-01-02 13:09:58 +00:00
|
|
|
#include "../ia64/dl.c"
|
2013-12-08 01:59:21 +00:00
|
|
|
#elif defined(__arm__)
|
|
|
|
#include "../arm/dl_helper.c"
|
|
|
|
#include "../arm/dl.c"
|
|
|
|
#elif defined(__aarch64__)
|
|
|
|
#include "../arm64/dl_helper.c"
|
|
|
|
#include "../arm64/dl.c"
|
2019-02-12 10:31:07 +00:00
|
|
|
#elif defined(__riscv)
|
|
|
|
#include "../riscv/dl.c"
|
2010-05-06 06:08:35 +00:00
|
|
|
#else
|
|
|
|
#error "No target cpu type is defined"
|
|
|
|
#endif
|
|
|
|
|
2013-04-27 00:00:16 +00:00
|
|
|
const int grub_no_modules = 0;
|
|
|
|
|
2010-05-06 06:08:35 +00:00
|
|
|
/* grub-emu-lite supports dynamic module loading, so it won't have any
|
|
|
|
embedded modules. */
|
|
|
|
void
|
|
|
|
grub_init_all (void)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
grub_fini_all (void)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|