Skip to content

Commit

Permalink
rimage: Prepare to change uuid type in module manifest
Browse files Browse the repository at this point in the history
Add a & symbol for getting the address of a variable to prepare the code
for changing the uuid type from an array to a structure.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
  • Loading branch information
softwarecki authored and kv2019i committed Jan 31, 2025
1 parent d21c997 commit b865bca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/rimage/src/adsp_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ static int parse_module(const toml_table_t *toml, struct parse_ctx *pctx,
if (ret < 0)
return err_key_parse("uuid", NULL);

parse_uuid(buf, mod_man->uuid);
parse_uuid(buf, &mod_man->uuid);

mod_man->affinity_mask = parse_uint32_hex_key(mod_entry, &ctx_entry,
"affinity_mask", 1, &ret);
Expand Down Expand Up @@ -1952,7 +1952,7 @@ static int parse_module(const toml_table_t *toml, struct parse_ctx *pctx,
header->version_major = 2;
header->version_minor = 5;
header->ext_module_config_length = sizeof(struct fw_ext_mod_config_header);
memcpy(header->guid, mod_man->uuid, sizeof(mod_man->uuid));
memcpy(header->guid, &mod_man->uuid, sizeof(mod_man->uuid));

type = parse_uint32_hex_key(mod_entry, &ctx_entry, "module_type", 1, &ret);
if (ret < 0)
Expand Down
2 changes: 1 addition & 1 deletion tools/rimage/src/manifest.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static void man_get_section_manifest(struct image *image,
memcpy(man_module->struct_id, "$AME", 4);
man_module->entry_point = sof_mod->module.entry_point;
memcpy(man_module->name, sof_mod->module.name, SOF_MAN_MOD_NAME_LEN);
memcpy(man_module->uuid, sof_mod->module.uuid, 16);
memcpy(&man_module->uuid, &sof_mod->module.uuid, sizeof(man_module->uuid));
man_module->affinity_mask = sof_mod->module.affinity_mask;
man_module->instance_max_count = sof_mod->module.instance_max_count;
man_module->type.auto_start = sof_mod->module.type.auto_start;
Expand Down

0 comments on commit b865bca

Please sign in to comment.