summaryrefslogtreecommitdiffstats
path: root/common/boot.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-02-05 16:55:39 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-06 09:00:32 +0100
commitd8f46e091942ef470daefd780c89f9c44f98d096 (patch)
tree1366639ae280635c6be0538c2e35454042960827 /common/boot.c
parentf52e20e77eb07122b4561695b95579da6bcdf1dc (diff)
downloadbarebox-d8f46e091942ef470daefd780c89f9c44f98d096.tar.gz
barebox-d8f46e091942ef470daefd780c89f9c44f98d096.tar.xz
boot: Make independent of command support
The boot code works with command support disabled if we skip support for boot scripts. Bail out before parsing boot scripts and allow to build with command support disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/boot.c')
-rw-r--r--common/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/boot.c b/common/boot.c
index cef3d5e514..41bf1ce64b 100644
--- a/common/boot.c
+++ b/common/boot.c
@@ -289,7 +289,7 @@ int bootentry_create_from_name(struct bootentries *bootentries,
found += ret;
}
- if (!found) {
+ if (IS_ENABLED(CONFIG_COMMAND_SUPPORT) && !found) {
char *path;
if (*name != '/')