bootm: Skip command-line substitution if !CONFIG_CMDLINE
When there is no command line, we cannot enable this feature. Add a check to avoid a build error. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f2c1442e96
commit
a8d696275a
1 changed files with 2 additions and 1 deletions
|
@ -583,7 +583,8 @@ int bootm_process_cmdline(char *buf, int maxlen, int flags)
|
|||
if (ret)
|
||||
return log_msg_ret("silent", ret);
|
||||
}
|
||||
if (IS_ENABLED(CONFIG_BOOTARGS_SUBST) && (flags & BOOTM_CL_SUBST)) {
|
||||
if (IS_ENABLED(CONFIG_BOOTARGS_SUBST) && IS_ENABLED(CONFIG_CMDLINE) &&
|
||||
(flags & BOOTM_CL_SUBST)) {
|
||||
ret = process_subst(buf, maxlen);
|
||||
if (ret)
|
||||
return log_msg_ret("subst", ret);
|
||||
|
|
Loading…
Reference in a new issue