[coreboot-gerrit] Patch set updated for coreboot: 3bfe67c qemu: fix GENERATE_ACPI_TABLES=n in fw_cfg.c

Gerd Hoffmann (kraxel@redhat.com) gerrit at coreboot.org
Tue Dec 3 13:07:25 CET 2013


Gerd Hoffmann (kraxel at redhat.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4305

-gerrit

commit 3bfe67c078c853ba888f3e5f544186abd6f91022
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Dec 3 09:40:39 2013 +0100

    qemu: fix GENERATE_ACPI_TABLES=n in fw_cfg.c
    
    Change-Id: Ib8dc069c9e503747c349e96a466feb42279afd08
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 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 085f2a9..047f211 100644
--- a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c
+++ b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c
@@ -20,7 +20,9 @@
 #include <smbios.h>
 #include <console/console.h>
 #include <arch/io.h>
-#include <arch/acpigen.h>
+#if CONFIG_GENERATE_ACPI_TABLES
+# include <arch/acpigen.h>
+#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                                 */
 



More information about the coreboot-gerrit mailing list