qemu: fix GENERATE_ACPI_TABLES=n in fw_cfg.c

Change-Id: Ib8dc069c9e503747c349e96a466feb42279afd08
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-on: http://review.coreboot.org/4305
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Gerd Hoffmann 2013-12-03 09:40:39 +01:00
parent 4623b20e5a
commit 590e8d4558
1 changed files with 8 additions and 1 deletions

View File

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