analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
60 stars 75 forks source link

fix(CMSIS): Declare libc function stubs as weak #1029

Closed MaureenHelm closed 4 weeks ago

MaureenHelm commented 1 month ago

Declares _getpid() and _kill() function stubs as weak to avoid conflicting with similar function stubs defined in zephyr libc-hooks. This fixes linker errors when building zephyr with newlib on max32 boards.

Reported in zephyrproject-rtos/zephyr#73606

Hotfix applied to downstream fork in zephyrproject-rtos/hal_adi#1

Tested locally with Zephyr:

$ twister -p max32690evkit/max32690/m4 -T tests/lib/cpp/ -T tests/lib/c_lib/

And in Zephyr CI: https://github.com/zephyrproject-rtos/zephyr/actions/runs/9332489979

Checklist Before Requesting Review