image: Fix FIT image loadable section custom processing
PATCH 1/1 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().
---
Cc: Julien Masson <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Paul HENRYS <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Sughosh Ganu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
--- include/image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/image.h +1 -1
@@ -2133,7 +2133,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, \ }
Signature · 1 line
2.47.2
Quoted 8 lines · Marek Vasut
The original commit always generated linker list entries with the same entry variable name, because
_functionpassed toll_entry_declare()is not a variable and therefore was interpreted as fixed string. Change it to_typewhich is a variable and which does allow generation of multiple unique linker list entries, one for eachU_BOOT_FIT_LOADABLE_HANDLER().[...]
Applied to u-boot/next, thanks!
[1/1] image: Fix FIT image loadable section custom processing
commit: e15282f943b42647478ec158011656df7cf12ec2
Signature · 1 line
Tom