From 94c8c389f6748527e138511d5129af6096e9d204 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 6 Oct 2023 16:21:22 +0200 Subject: [PATCH] hw/bsp/frdm-k64f: Fix bootloader build bin/targets/test-boot-frdm-k64f/app/@apache-mynewt-core/libc/ baselibc/@apache-mynewt-core_libc_baselibc.a(start.o): in function `_start': | repos/apache-mynewt-core/build/repos/apache-mynewt-core/ libc/baselibc/src/start.c:43: undefined reference to `mynewt_main' | collect2: error: ld returned 1 exit status --- hw/bsp/frdm-k64f/boot-MK64FN1M0xxx12_flash.ld | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/bsp/frdm-k64f/boot-MK64FN1M0xxx12_flash.ld b/hw/bsp/frdm-k64f/boot-MK64FN1M0xxx12_flash.ld index 6a5989f535..bea71abfa5 100644 --- a/hw/bsp/frdm-k64f/boot-MK64FN1M0xxx12_flash.ld +++ b/hw/bsp/frdm-k64f/boot-MK64FN1M0xxx12_flash.ld @@ -97,6 +97,7 @@ SECTIONS KEEP (*(.init)) KEEP (*(.fini)) . = ALIGN(4); + PROVIDE(mynewt_main = main); } > FLASH .ARM.extab :