diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-04 11:57:50 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-14 20:40:24 -0600 |
commit | d0d0746e0c7c9eeddc82106cf7d4c596eb45f6c2 (patch) | |
tree | 5365fe8215292f7fb031e0abee98c6c6f6201055 /arch/sandbox | |
parent | a7d9caecd770684e6e189dfa24240145ba29379e (diff) | |
download | u-boot-imx-d0d0746e0c7c9eeddc82106cf7d4c596eb45f6c2.zip u-boot-imx-d0d0746e0c7c9eeddc82106cf7d4c596eb45f6c2.tar.gz u-boot-imx-d0d0746e0c7c9eeddc82106cf7d4c596eb45f6c2.tar.bz2 |
sandbox: Don't include the main loop in SPL
SPL does not have a command interface so we should not include the main loop
code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/cpu/start.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 969618e..6e4ec01 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -73,6 +73,7 @@ static int sandbox_cmdline_cb_help(struct sandbox_state *state, const char *arg) } SANDBOX_CMDLINE_OPT_SHORT(help, 'h', 0, "Display help"); +#ifndef CONFIG_SPL_BUILD int sandbox_main_loop_init(void) { struct sandbox_state *state = state_get_current(); @@ -97,6 +98,7 @@ int sandbox_main_loop_init(void) return 0; } +#endif static int sandbox_cmdline_cb_boot(struct sandbox_state *state, const char *arg) |