Add ROS_ROOT configuration for cross-compilation

Add ROS_ROOT argument to compose.yaml, update toolchain CMake to search
in ROS_ROOT, and modify final stage of Dockerfiles to copy to ROS_ROOT
instead of TARGET_SYSROOT. Also add support for ROS2 lyrical distro.
This commit is contained in:
EricX-Zhao
2026-05-11 10:28:33 +03:00
parent 6cd4227324
commit e276ce3a64
6 changed files with 536 additions and 2 deletions
@@ -92,4 +92,7 @@ RUN rm -rf ${TARGET_SYSROOT}/opt
FROM ${CC_PLATFORM_IMAGE} AS final
COPY --from=rmw_zenoh_builder ${TARGET_SYSROOT} ${TARGET_SYSROOT}
ARG ROS_ROOT
ENV ROS_ROOT=${ROS_ROOT}
COPY --from=rmw_zenoh_builder ${TARGET_SYSROOT} ${ROS_ROOT}
WORKDIR /opt