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
@@ -12,6 +12,7 @@ set(CMAKE_CXX_COMPILER ${SYSROOT}/bin/aarch64-none-linux-gnu-g++)
list(APPEND CMAKE_FIND_ROOT_PATH
$ENV{TARGET_SYSROOT}
$ENV{ROS_ROOT}
${CMAKE_INSTALL_PREFIX}
)