Hi Ritvik, I think currently we don't have a "drop-in" replacement for NuttX libc with external libc like musl and others, but it is something easy to do with existing configuration:
Look at libs/libc/machine/Kconfig after line 47 you can define that your ARCH has its own libc function. In fact this is how ESP32 and other chips do it to use the internal ROM libc implementation. Search for LIBC_ARCH_MEMCPY at arch/xtensa/Kconfig and memcpy at boards/xtensa/esp32/common/scripts/esp32_rom.ld BR, Alan On Fri, Aug 2, 2024 at 3:06 PM Ritvik Tanksalkar <ritviktanksal...@gmail.com> wrote: > Hello, > > I'm working on a project where I need to compile the NuttX kernel to use > the system's standard library (stdlib) instead of its custom > implementation. My goal is to have NuttX use the host system's stdlib > functions rather than the ones provided with the kernel. > > Currently, I'm compiling the Nuttx kernel for "sim:posix_spawn" which > guarantees native linux support. > > I'd appreciate any guidance on how to achieve this. Specifically: > > 1. What configuration changes are needed to disable NuttX's built-in libc? > 2. Are there any known issues or challenges in making this change? > > Any insights in this regard would be greatly appreciated. > > Regards, > Ritvik >