summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-10-19 21:16:55 -0400
committerSimon Glass <sjg@chromium.org>2021-10-31 12:26:44 -0600
commit286a1595fbf5e3d984fc400a3995dd32bc7aa54f (patch)
treea9cb11584cf093425c1293a0842edd578e084348 /arch/sandbox
parentb2dfe8382d9dff1f06ac703e736c1633b09bfca2 (diff)
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> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/Kconfig3
-rw-r--r--arch/sandbox/config.mk1
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig
index f83282d9d5..7606469c94 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 1f8cb61c8b..2b1b657831 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