From 5d2928cdab0afe7624d4d49a180f90c6ceeb0674 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 21 Sep 2017 19:17:33 +0530 Subject: arch/x86: Include acpi_s3.c support in postcar stage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch ensures acpi APIs are available for postcar stage. Change-Id: Ia0f83cd4886ba7a16286dbbeb3257ede014ee3c7 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/21626 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Aaron Durbin --- src/arch/x86/Makefile.inc | 1 + src/arch/x86/acpi_s3.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/arch') diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc index 04e679fa87..813e01b181 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -278,6 +278,7 @@ endif # CONFIG_ARCH_ROMSTAGE_X86_32 / CONFIG_ARCH_ROMSTAGE_X86_64 $(eval $(call create_class_compiler,postcar,x86_32)) postcar-generic-ccopts += -D__POSTCAR__ +postcar-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.c postcar-y += boot.c postcar-y += cbfs_and_run.c postcar-y += cbmem.c diff --git a/src/arch/x86/acpi_s3.c b/src/arch/x86/acpi_s3.c index 0a17eadc53..90f2c4ee7b 100644 --- a/src/arch/x86/acpi_s3.c +++ b/src/arch/x86/acpi_s3.c @@ -25,7 +25,7 @@ #include #include -#if ENV_RAMSTAGE +#if ENV_RAMSTAGE || ENV_POSTCAR /* This is filled with acpi_is_wakeup() call early in ramstage. */ static int acpi_slp_type = -1; -- cgit v1.2.3