Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rimage/rimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ int main(int argc, char *argv[])
{
struct image image;
const char *mach = NULL;
const char *env_key = NULL;
int opt, ret, i, elf_argc = 0;

memset(&image, 0, sizeof(image));
Expand Down Expand Up @@ -90,6 +91,12 @@ int main(int argc, char *argv[])
}
}

env_key = getenv("SOF_RIMAGE_KEY");
if (env_key) {
fprintf(stdout, "using ENV key %s\n", env_key);
image.key_name = env_key;
}

elf_argc = optind;

/* make sure we have an outfile and machine */
Expand Down