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 */