From 590e8d45581730a210eb32d58a87305ea6edb706 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 3 Dec 2013 09:40:39 +0100 Subject: [PATCH] qemu: fix GENERATE_ACPI_TABLES=n in fw_cfg.c Change-Id: Ib8dc069c9e503747c349e96a466feb42279afd08 Signed-off-by: Gerd Hoffmann Reviewed-on: http://review.coreboot.org/4305 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Ronald G. Minnich --- src/mainboard/emulation/qemu-i440fx/fw_cfg.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c index 085f2a9ad4..047f211db0 100644 --- a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c +++ b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c @@ -20,7 +20,9 @@ #include #include #include -#include +#if CONFIG_GENERATE_ACPI_TABLES +# include +#endif #include "fw_cfg.h" #include "fw_cfg_if.h" @@ -120,6 +122,9 @@ int fw_cfg_max_cpus(void) } /* ---------------------------------------------------------------------- */ + +#if CONFIG_GENERATE_ACPI_TABLES + /* * Starting with release 1.7 qemu provides acpi tables via fw_cfg. * Main advantage is that new (virtual) hardware which needs acpi @@ -309,6 +314,8 @@ err: return 0; } +#endif /* CONFIG_GENERATE_ACPI_TABLES */ + /* ---------------------------------------------------------------------- */ /* pick up smbios information from fw_cfg */