Commit 703fc4bf authored by Marek Vasut's avatar Marek Vasut
Browse files

mxssb: Properly handle the TAG LAST flag

Check if the configuration file contains the LAST option of TAG
command and if so, set up the LAST flag in the SB file.
Signed-off-by: Marek Vasut's avatarMarek Vasut <>
parent 34964f7e
......@@ -523,7 +523,14 @@ static int sb_tag_to_command(struct sb_cmd_ctx *cctx, char *line)
case 'T': /* ROM_TAG_CMD */
cmd->header.tag = ROM_TAG_CMD;
cmd->header.flags = 1; // HACK
tok = strtok(NULL, " ");
if (!tok)
/* Check for "LAST" flag. */
if ((strlen(tok) == 4) && !strncmp(tok, "LAST", 3))
cmd->header.flags = ROM_TAG_CMD_FLAG_ROM_LAST_TAG;
/* Rest of TAG instruction is filled later. */
case 'L': /* ROM_LOAD_CMD */
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