[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 5/6] stubs: Add missing ACPI symbols
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH v2 5/6] stubs: Add missing ACPI symbols |
Date: |
Sun, 28 Apr 2019 08:47:30 +0200 |
When building with ACPI disabled, we get:
/usr/bin/ld: hw/i386/pc.o: in function `bochs_bios_init':
/source/qemu/hw/i386/pc.c:1017: undefined reference to `acpi_tables_len'
/usr/bin/ld: /source/qemu/hw/i386/pc.c:1017: undefined reference to
`acpi_tables'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:204: qemu-system-x86_64] Error 1
These symbols are indeed declared as extern in "hw/acpi/acpi.h".
Add them as stub to satisfy the linker.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
stubs/acpi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/stubs/acpi.c b/stubs/acpi.c
index 4c9d081ed48..cd0119f9fb1 100644
--- a/stubs/acpi.c
+++ b/stubs/acpi.c
@@ -23,6 +23,10 @@
#include "qapi/qmp/qerror.h"
#include "hw/acpi/acpi.h"
+size_t acpi_tables_len;
+
+char unsigned *acpi_tables;
+
void acpi_table_add(const QemuOpts *opts, Error **errp)
{
error_setg(errp, QERR_UNSUPPORTED);
--
2.20.1
- [Qemu-devel] [PATCH v2 0/6] hw/acpi: Improve build modularity (targeting MIPS/PPC), Philippe Mathieu-Daudé, 2019/04/28
- [Qemu-devel] [PATCH v2 1/6] hw/acpi: Move the IPMI stub to the stubs/ directory, Philippe Mathieu-Daudé, 2019/04/28
- [Qemu-devel] [PATCH v2 2/6] hw/acpi: Move the ACPI stub to the stubs/ directory, Philippe Mathieu-Daudé, 2019/04/28
- [Qemu-devel] [PATCH v2 3/6] hw/acpi: Simplify the Makefile logic, Philippe Mathieu-Daudé, 2019/04/28
- [Qemu-devel] [PATCH v2 4/6] hw/acpi: Always build the 'core' ACPI functions, Philippe Mathieu-Daudé, 2019/04/28
- [Qemu-devel] [PATCH v2 5/6] stubs: Add missing ACPI symbols,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v2 6/6] vl: Do not set acpi_enabled when ACPI is disabled at build time, Philippe Mathieu-Daudé, 2019/04/28