Commit b62c174e authored by Wasim Khan's avatar Wasim Khan Committed by Priyanka Jain
Browse files

armv8: fsl : create bootcmd and mcinitcmd as per boot source

NXP platforms expect custom bootcmd and mcinitcmd to be
updated as per boot source with default environment.
Check env variable fsl_bootcmd_mcinitcmd_set to prepare
bootcmd and mcinitcmd

Fixes: cbf77d20

 (armv8: fsl-layerscape: Fix automatic
setting of bootmcd with TF-A)
Signed-off-by: default avatarWasim Khan <>
Reviewed-by: Priyanka Jain's avatarPriyanka Jain <>
parent 0dfa9da2
......@@ -953,12 +953,15 @@ int board_late_init(void)
* Set bootcmd and mcinitcmd if they don't exist in the environment.
* Set bootcmd and mcinitcmd if "fsl_bootcmd_mcinitcmd_set" does
* not exists in env
if (!env_get("bootcmd"))
if (env_get_yesno("fsl_bootcmd_mcinitcmd_set") <= 0) {
// Set bootcmd and mcinitcmd as per boot source
if (!env_get("mcinitcmd"))
env_set("fsl_bootcmd_mcinitcmd_set", "y");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment