summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/acpi/Makefile.inc13
-rw-r--r--src/acpi/acpi.c (renamed from src/arch/x86/acpi.c)0
-rw-r--r--src/acpi/acpi_device.c (renamed from src/arch/x86/acpi_device.c)0
-rw-r--r--src/acpi/acpi_pld.c (renamed from src/arch/x86/acpi_pld.c)0
-rw-r--r--src/acpi/acpigen.c (renamed from src/arch/x86/acpigen.c)0
-rw-r--r--src/acpi/acpigen_dsm.c (renamed from src/arch/x86/acpigen_dsm.c)0
-rw-r--r--src/acpi/acpigen_ps2_keybd.c (renamed from src/arch/x86/acpigen_ps2_keybd.c)0
-rw-r--r--src/arch/x86/Makefile.inc6
8 files changed, 12 insertions, 7 deletions
diff --git a/src/acpi/Makefile.inc b/src/acpi/Makefile.inc
index e99110ec24..068c592db7 100644
--- a/src/acpi/Makefile.inc
+++ b/src/acpi/Makefile.inc
@@ -1,4 +1,15 @@
# SPDX-License-Identifier: GPL-2.0-only
# This file is part of the coreboot project.
-ramstage-$(CONFIG_HAVE_ACPI_TABLES) += sata.c
+ifeq ($(CONFIG_HAVE_ACPI_TABLES),y)
+
+ramstage-y += acpi.c
+ramstage-y += acpi_device.c
+ramstage-y += acpi_pld.c
+ramstage-y += acpigen.c
+ramstage-y += acpigen_dsm.c
+ramstage-y += acpigen_ps2_keybd.c
+
+ramstage-y += sata.c
+
+endif # CONFIG_GENERATE_ACPI_TABLES
diff --git a/src/arch/x86/acpi.c b/src/acpi/acpi.c
index 8e7b51d79d..8e7b51d79d 100644
--- a/src/arch/x86/acpi.c
+++ b/src/acpi/acpi.c
diff --git a/src/arch/x86/acpi_device.c b/src/acpi/acpi_device.c
index 9f63200121..9f63200121 100644
--- a/src/arch/x86/acpi_device.c
+++ b/src/acpi/acpi_device.c
diff --git a/src/arch/x86/acpi_pld.c b/src/acpi/acpi_pld.c
index 135009a243..135009a243 100644
--- a/src/arch/x86/acpi_pld.c
+++ b/src/acpi/acpi_pld.c
diff --git a/src/arch/x86/acpigen.c b/src/acpi/acpigen.c
index dfc2a5adf4..dfc2a5adf4 100644
--- a/src/arch/x86/acpigen.c
+++ b/src/acpi/acpigen.c
diff --git a/src/arch/x86/acpigen_dsm.c b/src/acpi/acpigen_dsm.c
index ecac3fefb8..ecac3fefb8 100644
--- a/src/arch/x86/acpigen_dsm.c
+++ b/src/acpi/acpigen_dsm.c
diff --git a/src/arch/x86/acpigen_ps2_keybd.c b/src/acpi/acpigen_ps2_keybd.c
index 7943f9a158..7943f9a158 100644
--- a/src/arch/x86/acpigen_ps2_keybd.c
+++ b/src/acpi/acpigen_ps2_keybd.c
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index 2d007094c7..aa1f5fef5f 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -230,12 +230,6 @@ $(CONFIG_CBFS_PREFIX)/postcar-compression := none
ifeq ($(CONFIG_ARCH_RAMSTAGE_X86_32)$(CONFIG_ARCH_RAMSTAGE_X86_64),y)
-ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
-ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpigen.c
-ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpigen_dsm.c
-ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi_device.c
-ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi_pld.c
-ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpigen_ps2_keybd.c
ramstage-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.c
ramstage-$(CONFIG_ACPI_BERT) += acpi_bert_storage.c
ramstage-y += c_start.S