[PATCH] sandbox: Migrate ARCH_MAP_SYSMEM to Kconfig

Move this from a hard-coded define in config.mk to Kconfig.
Signed-off-by: Tom Rini trini@konsulko.com --- arch/sandbox/Kconfig | 3 +++ arch/sandbox/config.mk | 1 - 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig index f83282d9d56a..7606469c94ec 100644 --- a/arch/sandbox/Kconfig +++ b/arch/sandbox/Kconfig @@ -1,6 +1,9 @@ menu "Sandbox architecture" depends on SANDBOX
+config ARCH_MAP_SYSMEM + def_bool y + config SYS_ARCH default "sandbox"
diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk index 1f8cb61c8bfb..2b1b657831c5 100644 --- a/arch/sandbox/config.mk +++ b/arch/sandbox/config.mk @@ -2,7 +2,6 @@ # Copyright (c) 2011 The Chromium OS Authors.
PLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE -PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM PLATFORM_CPPFLAGS += -fPIC PLATFORM_LIBS += -lrt SDL_CONFIG ?= sdl2-config

On Tue, 19 Oct 2021 at 19:17, Tom Rini trini@konsulko.com wrote:
Move this from a hard-coded define in config.mk to Kconfig.
Signed-off-by: Tom Rini trini@konsulko.com
arch/sandbox/Kconfig | 3 +++ arch/sandbox/config.mk | 1 - 2 files changed, 3 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org

On Tue, 19 Oct 2021 at 19:17, Tom Rini trini@konsulko.com wrote:
Move this from a hard-coded define in config.mk to Kconfig.
Signed-off-by: Tom Rini trini@konsulko.com
arch/sandbox/Kconfig | 3 +++ arch/sandbox/config.mk | 1 - 2 files changed, 3 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-dm, thanks!
participants (2)
-
Simon Glass
-
Tom Rini