summaryrefslogtreecommitdiff
path: root/board/sandbox
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-08-01 16:33:34 -0700
committerSimon Glass <sjg@chromium.org>2017-09-11 21:43:58 -0600
commit226b50bbd87b0c4ebf913066dfadbe04306ce402 (patch)
tree98bf336c875b145cdbc8a45fcbac3932360d54b5 /board/sandbox
parent98cff66027c44e6e15eb48dbb2300f388bcc172c (diff)
downloadu-boot-226b50bbd87b0c4ebf913066dfadbe04306ce402.tar.gz
u-boot-226b50bbd87b0c4ebf913066dfadbe04306ce402.tar.bz2
u-boot-226b50bbd87b0c4ebf913066dfadbe04306ce402.zip
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 'board/sandbox')
-rw-r--r--board/sandbox/README.sandbox7
1 files changed, 3 insertions, 4 deletions
diff --git a/board/sandbox/README.sandbox b/board/sandbox/README.sandbox
index 9dc2eb09d1..2e2c819384 100644
--- a/board/sandbox/README.sandbox
+++ b/board/sandbox/README.sandbox
@@ -24,6 +24,9 @@ single board in board/sandbox.
CONFIG_SANDBOX_BIG_ENDIAN should be defined when running on big-endian
machines.
+By default sandbox builds and runs on 64-bit hosts. If you are going to build
+and run sandbox on a 32-bit host, select CONFIG_SANDBOX_32BIT.
+
Note that standalone/API support is not available at present.
@@ -44,10 +47,6 @@ Note:
make sandbox_defconfig all NO_SDL=1
./u-boot
- If you are building on a 32-bit machine you may get errors from __ffs.h
- about shifting more than the machine word size. Edit the config file
- include/configs/sandbox.h and change CONFIG_SANDBOX_BITS_PER_LONG to 32.
-
U-Boot will start on your computer, showing a sandbox emulation of the serial
console: