From 2e3ee94e61cb33852bdc41256e1ce226d8523ca5 Mon Sep 17 00:00:00 2001 From: Andrei Kholodnyi Date: Thu, 21 Nov 2024 12:59:08 +0100 Subject: [PATCH 1/2] add CMAKE_SYSTEM_PROCESSOR to the toolchain.cmake --- buildspecs/cmake/toolchain.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildspecs/cmake/toolchain.cmake b/buildspecs/cmake/toolchain.cmake index aa1c755..1bcac9d 100644 --- a/buildspecs/cmake/toolchain.cmake +++ b/buildspecs/cmake/toolchain.cmake @@ -35,8 +35,15 @@ if (NOT VX_TARGET_TYPE STREQUAL "DKM" AND NOT VX_TARGET_TYPE STREQUAL "RTP") message(FATAL_ERROR "VX_TARGET_TYPE only could be DKM or RTP.") endif() +execute_process( + COMMAND sh -c "wr-cc -print-target-triple | cut -d '-' -f 1 | sed -e 's/arm64/aarch64/g'" + OUTPUT_VARIABLE ARCH + OUTPUT_STRIP_TRAILING_WHITESPACE +) + # load VxWorks.cmake set(CMAKE_SYSTEM_NAME VxWorks) +set(CMAKE_SYSTEM_PROCESSOR ${ARCH}) set(CMAKE_SYSTEM_VERSION 7) # set compiler From f79718d655e6a959b61d4cc4e730d54847f6965a Mon Sep 17 00:00:00 2001 From: Andrei Kholodnyi Date: Thu, 21 Nov 2024 12:59:53 +0100 Subject: [PATCH 2/2] remove -DBUILD_TESTING:BOOL=OFF --- pkg/ros2/files/humble/packages.mk | 18 ++++++++++-------- pkg/ros2/files/humble/vxworks.mixin | 5 +++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/pkg/ros2/files/humble/packages.mk b/pkg/ros2/files/humble/packages.mk index df50085..05f793d 100644 --- a/pkg/ros2/files/humble/packages.mk +++ b/pkg/ros2/files/humble/packages.mk @@ -21,31 +21,33 @@ # SYNOPSIS variables for ROS 2 packages -ROS2_PATCH_DIRS=eclipse-iceoryx/iceoryx \ +ROS2_PATCH_DIRS=ament/googletest \ + eclipse-iceoryx/iceoryx \ eclipse-cyclonedds/cyclonedds \ eProsima/Fast-DDS \ eProsima/foonathan_memory_vendor \ osrf/osrf_pycommon \ + osrf/osrf_testing_tools_cpp \ + ros/class_loader \ + ros/urdfdom \ + ros2/mimick_vendor \ ros2/orocos_kdl_vendor \ ros2/pybind11_vendor \ - ros2/ros2_tracing \ - ros2/rmw_implementation \ ros2/rclcpp \ ros2/rclpy \ + ros2/rcpputils \ ros2/rcutils \ + ros2/rmw \ + ros2/rmw_implementation \ + ros2/ros2_tracing \ ros2/ros2cli # Ignore not used ROS_IGNORE_DIRS=ros-visualization \ ros2/rviz \ - osrf/osrf_testing_tools_cpp \ ros-planning \ ros2/rmw_connextdds \ - ament/ament_lint \ ament/uncrustify_vendor \ - ament/google_benchmark_vendor \ - ros2/mimick_vendor \ - ros2/performance_test_fixture \ eclipse-iceoryx # Ignore Python-specific packages diff --git a/pkg/ros2/files/humble/vxworks.mixin b/pkg/ros2/files/humble/vxworks.mixin index e2a170f..06fee3e 100644 --- a/pkg/ros2/files/humble/vxworks.mixin +++ b/pkg/ros2/files/humble/vxworks.mixin @@ -12,9 +12,10 @@ "-DPython3_EXECUTABLE=/wrsdk/vxsdk/host/x86_64-linux/bin/python3", "-DPYTHON_SOABI=cpython-39-vxworks", "-DSECURITY=ON", - "-DBUILD_TESTING:BOOL=OFF", "-DCMAKE_EXE_LINKER_FLAGS=-rpath-link /work/output/export/root/lib", - "-DFORCE_BUILD_VENDOR_PKG=ON" + "-DFORCE_BUILD_VENDOR_PKG=ON", + "-DCMAKE_CXX_FLAGS=-fwarning-level-low", + "-DCMAKE_C_FLAGS=-fwarning-level-low" ] } }