From 76a211938d12a477cdf724a56ef50875963f61c3 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Tue, 28 May 2024 09:49:46 +0200 Subject: [PATCH] Add WEAK attribute to main functions of standard app (cherry picked from commit 8cb7abc061644614ab84e5660e0f45641902ad9b) (cherry picked from commit b8df925c951345ba69788b428eb1f38a5c3592dd) --- lib_standard_app/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib_standard_app/main.c b/lib_standard_app/main.c index e82647eac..a04b360e2 100644 --- a/lib_standard_app/main.c +++ b/lib_standard_app/main.c @@ -40,7 +40,7 @@ WEAK void __attribute__((noreturn)) app_exit(void) os_sched_exit(-1); } -static void common_app_init(void) +WEAK void common_app_init(void) { UX_INIT(); @@ -55,7 +55,7 @@ static void common_app_init(void) #endif // HAVE_BLE } -static void standalone_app_main(void) +WEAK void standalone_app_main(void) { #ifdef HAVE_SWAP G_called_from_swap = false; @@ -102,7 +102,7 @@ static void standalone_app_main(void) } #ifdef HAVE_SWAP -static void library_app_main(libargs_t *args) +WEAK void library_app_main(libargs_t *args) { BEGIN_TRY { @@ -152,7 +152,7 @@ static void library_app_main(libargs_t *args) } #endif // HAVE_SWAP -__attribute__((section(".boot"))) int main(int arg0) +WEAK __attribute__((section(".boot"))) int main(int arg0) { // exit critical section __asm volatile("cpsie i");