diff options
author | Marek Vasut <marek.vasut@mailbox.org> | 2025-05-12 17:58:39 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-30 10:19:24 -0600 |
commit | e15282f943b42647478ec158011656df7cf12ec2 (patch) | |
tree | 6e63bb0239b49dfa63343a2679ba6debac6caf8e | |
parent | c7f360f20d848f9e2b607885a280084290732566 (diff) |
image: Fix FIT image loadable section custom processing
The original commit always generated linker list entries with the same
entry variable name, because _function passed to ll_entry_declare() is
not a variable and therefore was interpreted as fixed string. Change it
to _type which is a variable and which does allow generation of multiple
unique linker list entries, one for each U_BOOT_FIT_LOADABLE_HANDLER().
Fixes: d7be50921ed3 ("image: Add FIT image loadable section custom processing")
Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
-rw-r--r-- | include/image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h index 4620782c069..1e1bded690b 100644 --- a/include/image.h +++ b/include/image.h @@ -2134,7 +2134,7 @@ struct fit_loadable_tbl { * _handler is the handler function to call after this image type is loaded */ #define U_BOOT_FIT_LOADABLE_HANDLER(_type, _handler) \ - ll_entry_declare(struct fit_loadable_tbl, _function, fit_loadable) = { \ + ll_entry_declare(struct fit_loadable_tbl, _type, fit_loadable) = { \ .type = _type, \ .handler = _handler, \ } |