.
.
.
common/cli.c
1 bool cli_process_fdt(const char **cmdp)
2 {
3 /* Allow the fdt to override the boot command */
4 char *env = fdtdec_get_config_string(gd->fdt_blob, "bootcmd");
5 if (env)
6 *cmdp = env;
7 /*
8 * If the bootsecure option was chosen, use secure_boot_cmd().
9 * Always use 'env' in this case, since bootsecure requres that the
10 * bootcmd was specified in the FDT too.
11 */
12 return fdtdec_get_config_int(gd->fdt_blob, "bootsecure", 0) != 0;
13 }
.
.