rockchip: make the global board_fit_config_name_match __weak
Subsystems (3)
Heiko Stuebner
maintainerPATCH 1/1 rockchip: make the global board_fit_config_name_match __weak
From: Heiko Stuebner <[email protected]>
The core Rockchip spl code contains a default board_fit_config_name_match implementation doing nothing. Individual boards may want to handle this differently, so add a __weak atribute to make it possible to override this function in other places.
--- arch/arm/mach-rockchip/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/spl.c +1 -1
@@ -143,7 +143,7 @@ void board_init_f(ulong dummy) }#ifdef CONFIG_SPL_LOAD_FIT -int board_fit_config_name_match (const char *name) +int __weak board_fit_config_name_match (const char *name) {/* Just empty function now - can't decide what to choose */ debug ("%s: %s\n" , __func__, name);
Signature · 1 line
2.24.1
PATCH 1/1 rockchip: make the global board_fit_config_name_match __weak
Thanks,
- Kever
Heiko Stuebner <[email protected]> ?2020?1?18??? ??4:37???
Quoted 29 lines
From: Heiko Stuebner <[email protected]>
The core Rockchip spl code contains a default
board_fit_config_name_matchimplementation doing nothing. Individual boards may want to handle this differently, so add a__weakatribute to make it possible to override this function in other places.Signed-off-by Heiko Stuebner <[email protected]>--- arch/arm/mach-rockchip/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-rockchip/spl.c +1
-2@@ -143,7 +143,7 @@ void board_init_f(ulong dummy) }#ifdef CONFIG_SPL_LOAD_FIT -int board_fit_config_name_match (const char *name) +int __weak board_fit_config_name_match (const char *name) {/* Just empty function now - can't decide what to choose */ debug ("%s: %s\n" , __func__, name); --2.24.1