Commit 98cff66027c44e6e15eb48dbb2300f388bcc172c

Authored by Bin Meng
Committed by Simon Glass
1 parent 5fe7702ecc

sandbox: Introduce Kconfig option for 32/64 bit host

It seems most of the time we are building and running sandbox on 64-bit host.
But we do support 32-bit host as well. Introduce Kconfig option for this.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 17 additions and 0 deletions Side-by-side Diff

arch/sandbox/Kconfig
... ... @@ -18,5 +18,22 @@
18 18 default "sandbox_spl" if SANDBOX_SPL
19 19 default "sandbox" if !SANDBOX_SPL
20 20  
  21 +choice
  22 + prompt "Run sandbox on 32/64-bit host"
  23 + default SANDBOX_64BIT
  24 + help
  25 + Sandbox can be built on 32-bit and 64-bit hosts.
  26 + The default is to build on a 64-bit host and run
  27 + on a 64-bit host. If you want to run sandbox on
  28 + a 32-bit host, change it here.
  29 +
  30 +config SANDBOX_32BIT
  31 + bool "32-bit host"
  32 +
  33 +config SANDBOX_64BIT
  34 + bool "64-bit host"
  35 +
  36 +endchoice
  37 +
21 38 endmenu