aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox/Kconfig
diff options
context:
space:
mode:
authorBin Meng2017-08-01 16:33:34 -0700
committerSimon Glass2017-09-11 21:43:58 -0600
commit226b50bbd87b0c4ebf913066dfadbe04306ce402 (patch)
tree98bf336c875b145cdbc8a45fcbac3932360d54b5 /arch/sandbox/Kconfig
parent98cff66027c44e6e15eb48dbb2300f388bcc172c (diff)
sandbox: Convert SANDBOX_BITS_PER_LONG to Kconfig
Convert SANDBOX_BITS_PER_LONG to Kconfig and assign it a correct number depending on which host we are going to build and run. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/Kconfig')
-rw-r--r--arch/sandbox/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig
index 7b07bff1da2..87418e39868 100644
--- a/arch/sandbox/Kconfig
+++ b/arch/sandbox/Kconfig
@@ -35,4 +35,9 @@ config SANDBOX_64BIT
endchoice
+config SANDBOX_BITS_PER_LONG
+ int
+ default 32 if SANDBOX_32BIT
+ default 64 if SANDBOX_64BIT
+
endmenu