|
|
5593c8 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
5593c8 |
From: Javier Martinez Canillas <javierm@redhat.com>
|
|
|
5593c8 |
Date: Wed, 1 May 2019 00:36:19 +0200
|
|
|
5593c8 |
Subject: [PATCH] Fix undefined references for fdt when building with platform
|
|
|
5593c8 |
emu
|
|
|
5593c8 |
|
|
|
5593c8 |
The fdt module isn't build for this platform, so adding the declarations
|
|
|
5593c8 |
with platform emu will lead to the following undefined reference errors:
|
|
|
5593c8 |
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x500): undefined reference to `grub_fdt_add_subnode'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x518): undefined reference to `grub_fdt_check_header'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x530): undefined reference to `grub_fdt_check_header_nosize'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x548): undefined reference to `grub_fdt_create_empty_tree'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x560): undefined reference to `grub_fdt_find_subnode'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x578): undefined reference to `grub_fdt_first_node'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x590): undefined reference to `grub_fdt_get_nodename'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x5a8): undefined reference to `grub_fdt_get_prop'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x5c0): undefined reference to `grub_fdt_next_node'
|
|
|
5593c8 |
BUILDSTDERR: /usr/bin/ld: grub_emu_lite-symlist.o:(.data+0x5d8): undefined reference to `grub_fdt_set_prop'
|
|
|
5593c8 |
BUILDSTDERR: collect2: error: ld returned 1 exit status
|
|
|
5593c8 |
BUILDSTDERR: make[1]: *** [Makefile:27093: grub-emu-lite] Error 1
|
|
|
5593c8 |
BUILDSTDERR: make[1]: *** Waiting for unfinished jobs....
|
|
|
5593c8 |
|
|
|
5593c8 |
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
|
|
5593c8 |
---
|
|
|
5593c8 |
include/grub/fdt.h | 2 +-
|
|
|
5593c8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
5593c8 |
|
|
|
5593c8 |
diff --git a/include/grub/fdt.h b/include/grub/fdt.h
|
|
|
d3c3ab |
index 22b7c5463fc..2041341fd68 100644
|
|
|
5593c8 |
--- a/include/grub/fdt.h
|
|
|
5593c8 |
+++ b/include/grub/fdt.h
|
|
|
5593c8 |
@@ -19,7 +19,7 @@
|
|
|
5593c8 |
#ifndef GRUB_FDT_HEADER
|
|
|
5593c8 |
#define GRUB_FDT_HEADER 1
|
|
|
5593c8 |
|
|
|
5593c8 |
-#if defined(__arm__) || defined(__aarch64__)
|
|
|
5593c8 |
+#if !defined(GRUB_MACHINE_EMU) && (defined(__arm__) || defined(__aarch64__))
|
|
|
5593c8 |
|
|
|
5593c8 |
#include <grub/types.h>
|
|
|
5593c8 |
#include <grub/symbol.h>
|