nuttx-apps/system/microros
Arjav Patel 55a7d4d2df apps/system/microros: define __NuttX__ in cross-compile toolchain flags.
Add -D__NuttX__ to CMAKE_C_FLAGS_INIT and CMAKE_CXX_FLAGS_INIT in
toolchain.cmake.in so that all cross-compiled micro-ROS packages see the
NuttX target macro.  Without this, rcutils/src/process.c follows the
__linux__ branch and references program_invocation_name, a glibc-only
extension absent from the NuttX C library.

Pair with 0002-rcutils-process-nuttx-compat.patch which additionally
guards the linux branch with !defined(__NuttX__), ensuring the embedded
fallback path is taken on NuttX even if the host compiler defines any
linux-flavoured macros.

Signed-off-by: Arjav Patel <arjav1528@gmail.com>
2026-05-26 06:57:55 +08:00
..
micro_ros_lib apps/system/microros: define __NuttX__ in cross-compile toolchain flags. 2026-05-26 06:57:55 +08:00
patches apps/system/microros: define __NuttX__ in cross-compile toolchain flags. 2026-05-26 06:57:55 +08:00
.gitignore apps/system/microros: Add .gitignore for library build artifacts. 2026-05-22 06:49:02 +08:00
CMakeLists.txt apps/system/microros: add CMake ExternalProject build support. 2026-05-26 06:57:55 +08:00
Kconfig apps/system/microros: Add Kconfig with configuration options. 2026-05-22 06:49:02 +08:00
Make.defs apps/system/microros: wire libmicroros.a into LDLIBS and CFLAGS. 2026-05-26 06:57:55 +08:00
Makefile apps/system/microros: add libmicroros.a colcon build pipeline. 2026-05-26 06:57:55 +08:00