summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/emulation/qemu-i440fx/fw_cfg.c9
1 files changed, 8 insertions, 1 deletions
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 <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 */