[PATCH v3 10/17] cmd/cbsysinfo: Allow on ARM as well
Stephen Boyd
swboyd at chromium.org
Mon Apr 28 21:24:17 CEST 2025
This command isn't x86 specific. Move it up one level so that it can be
used on a platform that can find the coreboot table, i.e. x86 or ARM.
Reviewed-by: Tom Rini <trini at konsulko.com>
Signed-off-by: Stephen Boyd <swboyd at chromium.org>
---
cmd/Kconfig | 4 ++--
cmd/Makefile | 1 +
cmd/{x86 => }/cbsysinfo.c | 0
cmd/x86/Makefile | 1 -
4 files changed, 3 insertions(+), 3 deletions(-)
rename cmd/{x86 => }/cbsysinfo.c (100%)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 2d31abcef730..5a35dba8681a 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -2929,8 +2929,8 @@ menu "Debug commands"
config CMD_CBSYSINFO
bool "cbsysinfo"
- depends on X86
- default y if SYS_COREBOOT
+ depends on SYS_COREBOOT
+ default y
help
This provides information about the coreboot sysinfo table stored in
memory by coreboot before jumping to U-Boot. It can be useful for
diff --git a/cmd/Makefile b/cmd/Makefile
index 80cf70b7fe8c..7587b258409c 100644
--- a/cmd/Makefile
+++ b/cmd/Makefile
@@ -44,6 +44,7 @@ obj-$(CONFIG_CMD_BUTTON) += button.o
obj-$(CONFIG_CMD_CAT) += cat.o
obj-$(CONFIG_CMD_CACHE) += cache.o
obj-$(CONFIG_CMD_CBFS) += cbfs.o
+obj-$(CONFIG_CMD_CBSYSINFO) += cbsysinfo.o
obj-$(CONFIG_CMD_CEDIT) += cedit.o
obj-$(CONFIG_CMD_CLK) += clk.o
obj-$(CONFIG_CMD_CLS) += cls.o
diff --git a/cmd/x86/cbsysinfo.c b/cmd/cbsysinfo.c
similarity index 100%
rename from cmd/x86/cbsysinfo.c
rename to cmd/cbsysinfo.c
diff --git a/cmd/x86/Makefile b/cmd/x86/Makefile
index 5f3f5be2882f..870e941dcf00 100644
--- a/cmd/x86/Makefile
+++ b/cmd/x86/Makefile
@@ -1,6 +1,5 @@
# SPDX-License-Identifier: GPL-2.0+
-obj-$(CONFIG_CMD_CBSYSINFO) += cbsysinfo.o
obj-y += cpuid.o msr.o mtrr.o
obj-$(CONFIG_CMD_CBCMOS) += cbcmos.o
obj-$(CONFIG_CMD_EXCEPTION) += exception.o
--
Sent by a computer, using git, on the internet
More information about the U-Boot
mailing list