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.
Signed-off-by: Stephen Boyd <swb...@chromium.org> --- cmd/Kconfig | 2 +- cmd/Makefile | 1 + cmd/{x86 => }/cbsysinfo.c | 0 cmd/x86/Makefile | 1 - 4 files changed, 2 insertions(+), 2 deletions(-) rename cmd/{x86 => }/cbsysinfo.c (100%) diff --git a/cmd/Kconfig b/cmd/Kconfig index 864b6d464ba0..0f456e3b95a2 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -2898,7 +2898,7 @@ menu "Debug commands" config CMD_CBSYSINFO bool "cbsysinfo" - depends on X86 + depends on X86 || (ARM && SYS_COREBOOT) default y if SYS_COREBOOT help This provides information about the coreboot sysinfo table stored in diff --git a/cmd/Makefile b/cmd/Makefile index 8410be576bb0..2e8034e9c5fd 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