diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-01 15:16:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-11 15:57:51 +0200 |
commit | 3c702a58c7db0c3a1d5355643205b97c430a1017 (patch) | |
tree | b38b858bc7de6bd805bdd0e7b06aa8146ada87c8 /common/startup.c | |
parent | 71a4899e18295995e0ea13438b4efe9b8ac16d5a (diff) | |
download | barebox-3c702a58c7db0c3a1d5355643205b97c430a1017.tar.gz barebox-3c702a58c7db0c3a1d5355643205b97c430a1017.tar.xz |
make command support optional
In a noninveractive environment we do not need commands. So make
them optional.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/startup.c b/common/startup.c index b487c5b027..38087093b0 100644 --- a/common/startup.c +++ b/common/startup.c @@ -118,7 +118,9 @@ void start_barebox (void) { initcall_t *initcall; int result; +#ifdef CONFIG_COMMAND_SUPPORT struct stat s; +#endif #ifdef CONFIG_HAS_EARLY_INIT /* We are running from RAM now, copy early initdata from @@ -150,6 +152,7 @@ void start_barebox (void) #endif } #endif +#ifdef CONFIG_COMMAND_SUPPORT printf("running /env/bin/init...\n"); if (!stat("/env/bin/init", &s)) { @@ -157,7 +160,7 @@ void start_barebox (void) } else { printf("not found\n"); } - +#endif /* main_loop() can return to retry autoboot, if so just run it again. */ for (;;) run_shell(); |