Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40940 )
Change subject: acpi: Move ACPI table support out of arch/x86 (5/5)
......................................................................
acpi: Move ACPI table support out of arch/x86 (5/5)
This change moves all ACPI table support in coreboot currently living
under arch/x86 into common code to make it architecture
independent. ACPI table generation is not really tied to any
architecture and hence it makes sense to move this to its own
directory.
In order to make it easier to review, this change is being split
into multiple CLs. This is change 5/5 which moves the addition of ACPI
table related files from arch/x86/Makefile.inc to acpi/Makefile.inc.
BUG=b:155428745
Change-Id: I8143fd37357aeb0561516450adddc6714d539ada
Signed-off-by: Furquan Shaikh <furquan(a)google.com>
---
M src/acpi/Makefile.inc
M src/arch/x86/Makefile.inc
2 files changed, 8 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/40940/1
diff --git a/src/acpi/Makefile.inc b/src/acpi/Makefile.inc
index 068c592..09ff9f1 100644
--- a/src/acpi/Makefile.inc
+++ b/src/acpi/Makefile.inc
@@ -12,4 +12,12 @@
ramstage-y += sata.c
+ifneq ($(wildcard src/mainboard/$(MAINBOARDDIR)/acpi_tables.c),)
+ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/acpi_tables.c
+endif
+$(eval $(call asl_template,dsdt))
+ifneq ($(wildcard src/mainboard/$(MAINBOARDDIR)/fadt.c),)
+ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/fadt.c
+endif
+
endif # CONFIG_GENERATE_ACPI_TABLES
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index aa1f5fe..c29d5ed 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -281,15 +281,6 @@
ifneq ($(wildcard src/mainboard/$(MAINBOARDDIR)/reset.c),)
ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/reset.c
endif
-ifeq ($(CONFIG_HAVE_ACPI_TABLES),y)
-ifneq ($(wildcard src/mainboard/$(MAINBOARDDIR)/acpi_tables.c),)
-ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/acpi_tables.c
-endif
-$(eval $(call asl_template,dsdt))
-ifneq ($(wildcard src/mainboard/$(MAINBOARDDIR)/fadt.c),)
-ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/fadt.c
-endif
-endif # CONFIG_GENERATE_ACPI_TABLES
ramstage-libs ?=
--
To view, visit https://review.coreboot.org/c/coreboot/+/40940
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8143fd37357aeb0561516450adddc6714d539ada
Gerrit-Change-Number: 40940
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40932 )
Change subject: acpi: Reorganize ACPI configs
......................................................................
acpi: Reorganize ACPI configs
This change moves HAVE_ACPI_TABLES to acpi/Kconfig and ACPI_BERT to
arch/x86/Kconfig to keep them in the same directory where the
corresponding code lives.
BUG=b:155428745
Change-Id: I289565f38e46bd106ff89685aaf8f57e53d9827a
Signed-off-by: Furquan Shaikh <furquan(a)google.com>
---
M src/Kconfig
M src/acpi/Kconfig
M src/arch/x86/Kconfig
3 files changed, 12 insertions(+), 12 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/40932/1
diff --git a/src/Kconfig b/src/Kconfig
index cf4df18..6540499 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -624,12 +624,6 @@
help
Enable Unified Memory Architecture for graphics.
-config HAVE_ACPI_TABLES
- bool
- help
- This variable specifies whether a given board has ACPI table support.
- It is usually set in mainboard/*/Kconfig.
-
config HAVE_MP_TABLE
bool
help
@@ -656,12 +650,6 @@
help
Build support for NHLT (non HD Audio) ACPI table generation.
-config ACPI_BERT
- bool
- depends on HAVE_ACPI_TABLES
- help
- Build an ACPI Boot Error Record Table.
-
#These Options are here to avoid "undefined" warnings.
#The actual selection and help texts are in the following menu.
diff --git a/src/acpi/Kconfig b/src/acpi/Kconfig
index 8c8bb87..52925fe 100644
--- a/src/acpi/Kconfig
+++ b/src/acpi/Kconfig
@@ -12,3 +12,9 @@
help
Provide common definitions for AMD hardware PM1_CNT register sleep
values.
+
+config HAVE_ACPI_TABLES
+ bool
+ help
+ This variable specifies whether a given board has ACPI table support.
+ It is usually set in mainboard/*/Kconfig.
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index 11733bd..a7d9b10 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -246,6 +246,12 @@
Note that it is the responsibility of the payload to reset the
normal boot bit to 1 after each successful boot.
+config ACPI_BERT
+ bool
+ depends on HAVE_ACPI_TABLES
+ help
+ Build an ACPI Boot Error Record Table.
+
config ACPI_NO_PCAT_8259
bool
help
--
To view, visit https://review.coreboot.org/c/coreboot/+/40932
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I289565f38e46bd106ff89685aaf8f57e53d9827a
Gerrit-Change-Number: 40932
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-MessageType: newchange