mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix Unix target build
Fix build failure: LINK openbios-unix libopenbios.a(load.o)(.text+0xe0): In function `load': ../libopenbios/load.c:58: undefined reference to `elf_boot_notes' libopenbios.a(load.o)(.text+0xe8):../libopenbios/load.c:58: undefined reference to `elf_boot_notes' Move elf_boot_notes variable to load.c to make it also available on Unix build. Also fix a spurious sys_info variable definition. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@829 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -39,10 +39,6 @@
|
||||
#define ELF_DPRINTF(fmt, args...) SUBSYS_DPRINTF("ELF", fmt, ##args)
|
||||
#define NEWWORLD_DPRINTF(fmt, args...) SUBSYS_DPRINTF("NEWWORLD", fmt, ##args)
|
||||
|
||||
struct sys_info sys_info;
|
||||
void *elf_boot_notes = NULL;
|
||||
|
||||
|
||||
static char *
|
||||
get_device( const char *path )
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@ uint32_t kernel_size;
|
||||
uint32_t qemu_cmdline;
|
||||
uint32_t cmdline_size;
|
||||
char boot_device;
|
||||
void *elf_boot_notes = NULL;
|
||||
const void *romvec;
|
||||
|
||||
void go(void)
|
||||
|
||||
@@ -15,7 +15,7 @@ uint64_t kernel_size;
|
||||
uint64_t qemu_cmdline;
|
||||
uint64_t cmdline_size;
|
||||
char boot_device;
|
||||
void *elf_boot_notes = NULL;
|
||||
|
||||
extern int sparc64_of_client_interface( int *params );
|
||||
|
||||
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
#include "libopenbios/sys_info.h"
|
||||
#include "boot.h"
|
||||
|
||||
void *elf_boot_notes = NULL;
|
||||
|
||||
void go(void)
|
||||
{
|
||||
ucell address, type, size;
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
|
||||
|
||||
struct sys_info sys_info;
|
||||
void *elf_boot_notes = NULL;
|
||||
|
||||
void load(ihandle_t dev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user