[PATCH 3/6] boot_card: Add attribute weak to override

andreas.koelbl at st.oth-regensburg.de andreas.koelbl at st.oth-regensburg.de
Mon Jul 31 22:27:20 UTC 2017


From: Andreas Kölbl <andreas.koelbl at st.oth-regensburg.de>

If this is omitted, libtests, where this symbol gets overridden, fail to build.
Affected tests:
  sptimecounter01
  spinternalerror01
---
 c/src/lib/libbsp/shared/bootcard.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index 3e243d2569..6e5df99f1e 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -61,7 +61,8 @@ RTEMS_SYSINIT_ITEM(
  *  the system while maximizing shared code and keeping BSP code in C
  *  as much as possible.
  */
-void boot_card(
+
+__attribute__((weak)) void boot_card(
   const char *cmdline
 )
 {
-- 
2.13.3




More information about the devel mailing list