Skip to contentSkip to conversation

rockchip: make the global board_fit_config_name_match __weak

PATCH New Heiko Stuebner 2 participants 2 messages Jan 17, 2020 – Feb 19, 2020

Subsystems (3)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 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
index 1c091295b4..7339a789fd 100644
@@ -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
#1 lore raw

PATCH 1/1 rockchip: make the global board_fit_config_name_match __weak

<[email protected]>

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_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 -2
index 1c091295b4..7339a789fd 100644
@@ -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