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
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:
And in Zephyr CI: https://github.com/zephyrproject-rtos/zephyr/actions/runs/9332489979
Checklist Before Requesting Review