Skip to content

Commit

Permalink
boot: Make independent of command support
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
saschahauer committed Feb 6, 2018
1 parent f52e20e commit d8f46e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '/')
Expand Down

0 comments on commit d8f46e0

Please sign in to comment.