diff --git a/distros/noetic/ci.yaml b/distros/noetic/ci.yaml new file mode 100644 index 000000000..63d3a18eb --- /dev/null +++ b/distros/noetic/ci.yaml @@ -0,0 +1,26 @@ +# Temporary controls for the pull-request build (.github/workflows/testpr.yaml). +# +# testpr.yaml caches the packages it builds per pull request, and rattler-build +# skips everything that is already in that cache. This file tells it what to +# throw away before building. Set it in your PR, and reset it to the defaults +# below before or right after merging. + +# Ignore the PR build cache and rebuild everything, e.g. for a full rebuild PR +# that bumps the build number of all packages. +full_rebuild: false + +# Packages to drop from the PR build cache. Needed when a package changes without +# a new build number, e.g. you fixed one of its patches in patch/: the cache +# still holds the old build, so the fix would never be built in this PR. +# +# Entries are ROS package names (underscores or dashes) or globs; both package +# name prefixes (ros2-, and ros-- of older builds) are matched, e.g. +# +# evict_cache: +# - rosidl_generator_py # one package: ros2-rosidl-generator-py-*.conda +# - std-msgs # dashes work too +# - "roboplan*" # a family of packages (quote globs) +# +# Remember that dependents are not rebuilt automatically: evict them as well if +# they must pick up the change. +evict_cache: [] diff --git a/distros/noetic/conda_build_config.yaml b/distros/noetic/conda_build_config.yaml new file mode 100644 index 000000000..379fc1d77 --- /dev/null +++ b/distros/noetic/conda_build_config.yaml @@ -0,0 +1,84 @@ +krb5: + - 1.21 +numpy: + - 2 +assimp: + - 6.0.3 +libprotobuf: + - 6.33.5 +protobuf: + - 6.33.5 +spdlog: + - 1.17 +pugixml: + - '1.15' +libopencv: + - 4.13.0 +libxml2: + - 2.14.* +graphviz: + - 14.* +# Mitigation for +# https://github.com/RoboStack/ros-jazzy/pull/126#issuecomment-3515455380 +libcap: + - 2.77 +fmt: + - 12.1 +lua: + - 5.4 +tbb: + - '2022' +tbb_devel: + - '2022' + +# Workaround for https://github.com/RoboStack/ros-jazzy/pull/40#issuecomment-2782226697 +cmake: + - 3.* + +# ROS1 stuff +ogre: + - 1.10.12 +setuptools: + - 69 +pyqt: + - 5.15 +pyqtwebengine: + - 5.15 +pyqtchart: + - 5.15 +tinyxml2: + - 11.0 +gazebo: + - '11' + +cdt_name: # [linux] + - conda # [linux] + +python: + - 3.12.* *_cpython +python_impl: + - cpython + +c_compiler: + - gcc # [linux] + - clang # [osx] + - vs2022 # [win] +c_compiler_version: # [unix] + - 13 # [linux] + - 18 # [osx] +c_stdlib: + - sysroot # [linux] + - macosx_deployment_target # [osx] + - vs # [win] +c_stdlib_version: # [unix] + - 2.17 # [linux] + - 10.13 # [osx and x86_64] + - 11.0 # [osx and arm64] +cxx_compiler: + - gxx # [linux] + - clangxx # [osx] + - vs2022 # [win] +cxx_compiler_version: # [unix] + - 13 # [linux] + - 18 # [osx] + diff --git a/distros/noetic/distro.yaml b/distros/noetic/distro.yaml new file mode 100644 index 000000000..46ec49572 --- /dev/null +++ b/distros/noetic/distro.yaml @@ -0,0 +1,6 @@ +# Settings of ros-noetic that differ from the other distributions +# (everything else is shared, see the README). +channel_name: robostack-noetic +upload_to: [anaconda] +read_from: anaconda +rosdistro_sync: manual diff --git a/distros/noetic/files/ros-noetic-catkin/activate.bat b/distros/noetic/files/ros-noetic-catkin/activate.bat new file mode 100644 index 000000000..5d637f9c5 --- /dev/null +++ b/distros/noetic/files/ros-noetic-catkin/activate.bat @@ -0,0 +1,14 @@ +:: ros-noetic-catkin: run on environment activation (bld_catkin.bat copies it to etc/conda) +@if not defined CONDA_PREFIX goto:eof + +@REM Don't do anything when we are in conda build. +@if defined SYS_PREFIX exit /b 0 + +@set "QT_PLUGIN_PATH=%CONDA_PREFIX%\Library\plugins" + +@call "%CONDA_PREFIX%\Library\local_setup.bat" +@set PYTHONHOME= +@set "ROS_OS_OVERRIDE=conda:win64" +@set "ROS_ETC_DIR=%CONDA_PREFIX%\Library\etc\ros" +@set "AMENT_PREFIX_PATH=%CONDA_PREFIX%\Library" +@set "AMENT_PYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe" diff --git a/distros/noetic/files/ros-noetic-catkin/activate.sh b/distros/noetic/files/ros-noetic-catkin/activate.sh new file mode 100644 index 000000000..c6f630e59 --- /dev/null +++ b/distros/noetic/files/ros-noetic-catkin/activate.sh @@ -0,0 +1,25 @@ +# ros-noetic-catkin: run on environment activation (build_catkin.sh copies it to etc/conda) +# if [ -z "${CONDA_PREFIX}" ]; then +# exit 0; +# fi + +# Not sure if this is necessary on UNIX? +# export QT_PLUGIN_PATH=$CONDA_PREFIX\plugins + +if [ "$CONDA_BUILD" = "1" -a "$target_platform" != "$build_platform" ]; then + # ignore sourcing + echo "Not activating ROS when cross-compiling"; +else + source $CONDA_PREFIX/setup.sh +fi + +case "$OSTYPE" in + darwin*) export ROS_OS_OVERRIDE="conda:osx";; + linux*) export ROS_OS_OVERRIDE="conda:linux";; +esac + +export ROS_ETC_DIR=$CONDA_PREFIX/etc/ros +export AMENT_PREFIX_PATH=$CONDA_PREFIX + +# Looks unnecessary for UNIX +# unset PYTHONHOME= diff --git a/distros/noetic/files/ros-noetic-catkin/deactivate.bat b/distros/noetic/files/ros-noetic-catkin/deactivate.bat new file mode 100644 index 000000000..60efb4fed --- /dev/null +++ b/distros/noetic/files/ros-noetic-catkin/deactivate.bat @@ -0,0 +1,17 @@ +:: ros-noetic-catkin: run on environment activation (bld_catkin.bat copies it to etc/conda) +@if not defined CONDA_PREFIX goto:eof + +@set ROS_OS_OVERRIDE= +@set ROS_DISTRO= +@set ROS_ETC_DIR= +@set ROS_PACKAGE_PATH= +@set ROS_PYTHON_VERSION= +@set ROS_VERSION= +@set PYTHONHOME= +@set PYTHONPATH= +@set CMAKE_PREFIX_PATH= +@set AMENT_PREFIX_PATH= +@set COLCON_PREFIX_PATH= +@set QT_PLUGIN_PATH= +@set ROS_LOCALHOST_ONLY= +@set ament_python_executable= diff --git a/distros/noetic/files/ros-noetic-catkin/deactivate.sh b/distros/noetic/files/ros-noetic-catkin/deactivate.sh new file mode 100644 index 000000000..2fd455634 --- /dev/null +++ b/distros/noetic/files/ros-noetic-catkin/deactivate.sh @@ -0,0 +1,20 @@ +# ros-noetic-catkin: run on environment activation (build_catkin.sh copies it to etc/conda) +if [ -z "${CONDA_PREFIX}" ]; then + exit 0 +fi + +unset ROS_DISTRO +unset ROS_ETC_DIR +unset ROS_PACKAGE_PATH +unset ROS_PYTHON_VERSION +unset CMAKE_PREFIX_PATH +unset AMENT_PREFIX_PATH +unset COLCON_PREFIX_PATH +unset ROS_VERSION +unset ROS_OS_OVERRIDE +# unset PYTHONPATH +# unset PYTHONHOME +# unset QT_PLUGIN_PATH +unset ROS_LOCALHOST_ONLY +unset ament_python_executable +unset RMW_IMPLEMENTATION diff --git a/distros/noetic/packages-ignore.yaml b/distros/noetic/packages-ignore.yaml new file mode 100644 index 000000000..dbdfae59f --- /dev/null +++ b/distros/noetic/packages-ignore.yaml @@ -0,0 +1,34 @@ +rmw_cyclonedds_cpp: + conda-forge: [] +rmw_opensplice_cpp: + conda-forge: [] +rmw_connext_cpp: + conda-forge: [] +gmock_vendor: + conda-forge: [] +gtest_vendor: + conda-forge: [] +libyaml_vendor: + conda-forge: [] +connext_cmake_module: + conda-forge: [] +opensplice_cmake_module: + conda-forge: [] +rosidl_typesupport_connext_c: + conda-forge: [] +rosidl_typesupport_connext_cpp: + conda-forge: [] +rosidl_typesupport_opensplice_cpp: + conda-forge: [] +rosidl_typesupport_opensplice_c: + conda-forge: [] +test_msgs: + conda-forge: [] +rttest: + conda-forge: [] +tlsf: + conda-forge: [] +tlsf_cpp: + conda-forge: [] +pendulum_control: + conda-forge: [] diff --git a/distros/noetic/patch/ros-noetic-apriltag.patch b/distros/noetic/patch/ros-noetic-apriltag.patch new file mode 100644 index 000000000..dc07e1377 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-apriltag.patch @@ -0,0 +1,45 @@ +diff --git a/python_build_flags.py b/python_build_flags.py +index f3f0e79..9c7a61e 100644 +--- a/python_build_flags.py ++++ b/python_build_flags.py +@@ -2,6 +2,7 @@ from __future__ import print_function + import sysconfig + import re + import numpy as np ++import os + conf = sysconfig.get_config_vars() + + print('CFLAGS', end=';') +@@ -18,10 +19,10 @@ print(' '.join(c_flags), end=';') + + + print('LINKER', end=';') +-print(conf.get('BLDSHARED', '').split()[0], end=';') ++print(os.getenv('CC'), end=';') + + print('LDFLAGS', end=';') +-print(' '.join(conf.get('BLDSHARED', '').split()[1:]) + ' ' + conf.get('BLDLIBRARY', '') + ' ' + conf.get('LDFLAGS', ''), end=';') ++print(' '.join(conf.get('BLDSHARED', '').split()[1:]) + ' ' + conf.get('LDFLAGS', ''), end=';') + + print('EXT_SUFFIX', end=';') + ext_suffix = '.so' + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b57915b..fa6336a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -48,8 +48,12 @@ add_library(${PROJECT_NAME} ${APRILTAG_SRCS} ${COMMON_SRC} ${TAG_FILES}) + if (MSVC) + # FindThreads will not find pthread.h with MSVC + # winmm is necessary for __imp_timeGetTime +- find_library(PTHREAD_LIBRARIES NAMES pthreads) +- target_link_libraries(${PROJECT_NAME} ${PTHREAD_LIBRARIES} winmm) ++ find_library(PTHREAD_LIBRARIES NAMES pthreads pthread pthreadVC3 pthreadVC2) ++ if (PTHREAD_LIBRARIES) ++ target_link_libraries(${PROJECT_NAME} ${PTHREAD_LIBRARIES} winmm) ++ else() ++ message(FATAL_ERROR "Could not find a pthreads library on Windows") ++ endif() + else() + find_package(Threads REQUIRED) + target_link_libraries(${PROJECT_NAME} PUBLIC Threads::Threads m) diff --git a/distros/noetic/patch/ros-noetic-apriltag.win.patch b/distros/noetic/patch/ros-noetic-apriltag.win.patch new file mode 100644 index 000000000..615163c84 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-apriltag.win.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cf57352..84b62d7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -161,23 +161,3 @@ execute_process(COMMAND python3 -m site --user-site OUTPUT_VARIABLE PY_DEST) + string(STRIP ${PY_DEST} PY_DEST) + install(FILES ${PROJECT_BINARY_DIR}/apriltag${PY_EXT_SUFFIX} DESTINATION ${PY_DEST}) + endif (NOT Python3_NOT_FOUND AND NOT Numpy_NOT_FOUND AND PYTHONLIBS_FOUND AND BUILD_PYTHON_WRAPPER) +- +- +-# Examples +-# apriltag_demo +-add_executable(apriltag_demo example/apriltag_demo.c) +-target_link_libraries(apriltag_demo apriltag) +- +-# opencv_demo +-find_package(OpenCV COMPONENTS core imgproc videoio highgui QUIET) +-if(OpenCV_FOUND) +- add_executable(opencv_demo example/opencv_demo.cc) +- target_link_libraries(opencv_demo apriltag ${OpenCV_LIBRARIES}) +- set_target_properties(opencv_demo PROPERTIES CXX_STANDARD 11) +- install(TARGETS opencv_demo RUNTIME DESTINATION bin) +-else() +- message(WARNING "OpenCV not found: Not building demo") +-endif(OpenCV_FOUND) +- +-# install example programs +-install(TARGETS apriltag_demo RUNTIME DESTINATION bin) diff --git a/distros/noetic/patch/ros-noetic-aruco-ros.patch b/distros/noetic/patch/ros-noetic-aruco-ros.patch new file mode 100644 index 000000000..d1eb90122 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-aruco-ros.patch @@ -0,0 +1,39 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4d8b818..d313db7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -21,7 +21,7 @@ generate_dynamic_reconfigure_options( + cfg/ArucoThreshold.cfg + ) + +-add_compile_options(-std=c++11) ++add_compile_options(-std=c++14) + + catkin_package( + INCLUDE_DIRS include +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4d8b818..e2c5e99 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,7 @@ + cmake_minimum_required(VERSION 2.8.3) + project(aruco_ros) + +-find_package(OpenCV REQUIRED) ++find_package(OpenCV REQUIRED COMPONENTS core imgproc calib3d) + + find_package(catkin REQUIRED COMPONENTS + cv_bridge +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4d8b818..2738144 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -35,7 +35,7 @@ include_directories( + ${OpenCV_INCLUDE_DIRS} + ) + add_library(aruco_ros_utils src/aruco_ros_utils.cpp) +- target_link_libraries(aruco_ros_utils ${catkin_LIBRARIES}) ++ target_link_libraries(aruco_ros_utils ${catkin_LIBRARIES} ${OpenCV_LIBRARIES}) + + add_executable(single src/simple_single.cpp + src/aruco_ros_utils.cpp) diff --git a/distros/noetic/patch/ros-noetic-baldor.patch b/distros/noetic/patch/ros-noetic-baldor.patch new file mode 100644 index 000000000..65b086fb6 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-baldor.patch @@ -0,0 +1,16 @@ +diff --git a/src/baldor/__init__.py b/src/baldor/__init__.py +index f42da9d..1245834 100644 +--- a/src/baldor/__init__.py ++++ b/src/baldor/__init__.py +@@ -9,9 +9,9 @@ import numpy as np + X_AXIS = np.array([1., 0., 0.], dtype=np.float64) + Y_AXIS = np.array([0., 1., 0.], dtype=np.float64) + Z_AXIS = np.array([0., 0., 1.], dtype=np.float64) +-_MAX_FLOAT = np.maximum_sctype(np.float) ++_MAX_FLOAT = np.maximum_sctype(np.float64) + # epsilon for testing whether a number is close to zero +-_FLOAT_EPS = np.finfo(np.float).eps ++_FLOAT_EPS = np.finfo(np.float64).eps + _EPS = np.finfo(float).eps * 4.0 + # axis sequences for Euler angles + _NEXT_AXIS = [1, 2, 0, 1] diff --git a/distros/noetic/patch/ros-noetic-camera-calibration-parsers.win.patch b/distros/noetic/patch/ros-noetic-camera-calibration-parsers.win.patch new file mode 100644 index 000000000..ec1cd7b65 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-camera-calibration-parsers.win.patch @@ -0,0 +1,39 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3ccf4bc..1b2ff24 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,10 +15,21 @@ catkin_package( + CATKIN_DEPENDS sensor_msgs + ) + +-find_package(yaml-cpp) +-add_definitions(-DHAVE_NEW_YAMLCPP) +-link_directories(${YAML_CPP_LIBRARY_DIRS}) +-include_directories(${YAML_CPP_INCLUDE_DIRS}) ++# find_package(yaml-cpp) ++# add_definitions(-DHAVE_NEW_YAMLCPP) ++# link_directories(${YAML_CPP_LIBRARY_DIRS}) ++# include_directories(${YAML_CPP_INCLUDE_DIRS}) ++if(NOT YAMLCPP_FOUND) ++ find_package(yaml-cpp 0.6 REQUIRED) ++ set(YAMLCPP_INCLUDE_DIRS ${YAML_CPP_INCLUDE_DIR}) ++ set(YAMLCPP_LIBRARIES ${YAML_CPP_LIBRARIES}) ++ add_definitions(-DHAVE_NEW_YAMLCPP) ++else() ++ if(YAMLCPP_VERSION VERSION_GREATER "0.5.0") ++ add_definitions(-DHAVE_NEW_YAMLCPP) ++ endif() ++ link_directories(${YAMLCPP_LIBRARY_DIRS}) ++endif() + + # define the library + add_library(${PROJECT_NAME} +@@ -30,7 +41,7 @@ add_library(${PROJECT_NAME} + add_library(${PROJECT_NAME}_wrapper + src/parse_wrapper.cpp) + +-target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${YAML_CPP_LIBRARIES} ${Boost_FILESYSTEM_LIBRARY}) ++target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${YAMLCPP_LIBRARIES} ${Boost_FILESYSTEM_LIBRARY}) + target_link_libraries(${PROJECT_NAME}_wrapper ${PROJECT_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES}) + + # Don't prepend wrapper library name with lib and add to Python libs. diff --git a/distros/noetic/patch/ros-noetic-canopen-chain-node.patch b/distros/noetic/patch/ros-noetic-canopen-chain-node.patch new file mode 100644 index 000000000..dbb9f8d8a --- /dev/null +++ b/distros/noetic/patch/ros-noetic-canopen-chain-node.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 45c6f9d2..87154270 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,7 +22,7 @@ find_package(catkin REQUIRED + + find_package(Boost REQUIRED + COMPONENTS +- filesystem ++ filesystem thread + ) + + add_service_files(DIRECTORY srv diff --git a/distros/noetic/patch/ros-noetic-catch-ros.patch b/distros/noetic/patch/ros-noetic-catch-ros.patch new file mode 100644 index 000000000..2af1e25e0 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-catch-ros.patch @@ -0,0 +1,29 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e8e8f70..242aeaf 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -16,10 +16,11 @@ catkin_package( + + include_directories(include ${catkin_INCLUDE_DIRS}) + +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") + + add_library(catch_ros_standalone + src/standalone_main.cpp ++ src/meta_info.cpp + ) + target_link_libraries(catch_ros_standalone + ${Boost_LIBRARIES} +@@ -27,9 +28,11 @@ target_link_libraries(catch_ros_standalone + + add_library(catch_ros_rostest + src/rostest_main.cpp ++ src/meta_info.cpp + ) + target_link_libraries(catch_ros_rostest + ${Boost_LIBRARIES} ++ ${catkin_LIBRARIES} + ) + + install(FILES src/meta_info.cpp DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) diff --git a/distros/noetic/patch/ros-noetic-catkin-virtualenv.patch b/distros/noetic/patch/ros-noetic-catkin-virtualenv.patch new file mode 100644 index 000000000..7d563f368 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-catkin-virtualenv.patch @@ -0,0 +1,38 @@ +diff --git a/catkin_virtualenv/cmake/catkin_generate_virtualenv.cmake b/catkin_virtualenv/cmake/catkin_generate_virtualenv.cmake +index 0dc1a42..d6b7c2f 100644 +--- a/catkin_virtualenv/cmake/catkin_generate_virtualenv.cmake ++++ b/catkin_virtualenv/cmake/catkin_generate_virtualenv.cmake +@@ -29,7 +29,7 @@ function(catkin_generate_virtualenv) + endif() + + if(NOT DEFINED ARG_PYTHON_INTERPRETER) +- set(ARG_PYTHON_INTERPRETER "python2") ++ set(ARG_PYTHON_INTERPRETER "python") + endif() + + if(NOT DEFINED ARG_USE_SYSTEM_PACKAGES OR ARG_USE_SYSTEM_PACKAGES) +diff --git a/catkin_virtualenv/src/catkin_virtualenv/venv.py b/catkin_virtualenv/src/catkin_virtualenv/venv.py +index 3737a94..9fc9e32 100644 +--- a/catkin_virtualenv/src/catkin_virtualenv/venv.py ++++ b/catkin_virtualenv/src/catkin_virtualenv/venv.py +@@ -60,8 +60,8 @@ def initialize(self, python, use_system_packages, extra_pip_args, clean=True): + raise RuntimeError(error_msg) + + preinstall = [ +- "pip==20.1", +- "pip-tools==5.1.2", ++ "pip", ++ "pip-tools", + ] + + builtin_venv = self._check_module(system_python, "venv") +@@ -71,7 +71,7 @@ def initialize(self, python, use_system_packages, extra_pip_args, clean=True): + virtualenv = ["virtualenv", "--no-setuptools", "--verbose", "--python", python] + # py2's virtualenv command will try install latest setuptools. setuptools>=45 not compatible with py2, + # but we do require a reasonably up-to-date version (because of pip==20.1), so v44 at least. +- preinstall += ["setuptools>=44,<45"] ++ preinstall += ["setuptools"] + + if use_system_packages: + virtualenv.append("--system-site-packages") + diff --git a/distros/noetic/patch/ros-noetic-catkin.patch b/distros/noetic/patch/ros-noetic-catkin.patch new file mode 100644 index 000000000..7f597808e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-catkin.patch @@ -0,0 +1,311 @@ +diff --git a/cmake/catkin_libraries.cmake b/cmake/catkin_libraries.cmake +index b19f4c8a..5d9a24c1 100644 +--- a/cmake/catkin_libraries.cmake ++++ b/cmake/catkin_libraries.cmake +@@ -114,6 +114,40 @@ function(catkin_unpack_libraries_with_build_configuration VAR) + set(${VAR} "${result}" PARENT_SCOPE) + endfunction() + ++# ++# Find libraries by imported location or soname with location dir as hint ++# ++# :param VAR: the output variable name ++# :type VAR: string ++# :param LIB: the imported target to find the library for ++# :type LIB: string ++# :type ARGN: selected config to query in the target's properties ++# :type ARGN: string ++# ++# @public ++# ++function(catkin_find_library_imported_location_library VAR LIB) ++ set(lib ${LIB}) ++ if(ARGN) ++ set(cfg _${ARGN}) ++ endif() ++ set(imported_location_libnames) ++ get_target_property(imported_soname ${lib} IMPORTED_SONAME${cfg}) ++ if(imported_soname) ++ list(APPEND imported_location_libnames ${imported_soname}) ++ endif() ++ get_target_property(imported_location ${lib} IMPORTED_LOCATION${cfg}) ++ if(imported_location) ++ get_filename_component(imported_location_name ${imported_location} NAME) ++ get_filename_component(imported_location_dir ${imported_location} DIRECTORY) ++ list(APPEND imported_location_libnames ${imported_location_name}) ++ endif() ++ if(imported_location_libnames) ++ find_library(imported_location_library NAMES ${imported_location_libnames} HINTS ${imported_location_dir} NO_CACHE) ++ endif() ++ set(${VAR} "${imported_location_library}" PARENT_SCOPE) ++endfunction() ++ + # + # Replace imported library target names with the library name. + # +@@ -142,10 +176,9 @@ function(catkin_replace_imported_library_targets VAR) + list(APPEND result ${${lib}_resolved_libs}) + endif() + elseif(${${lib}_imported}) +- set(imported_libraries) # empty list +- get_target_property(${lib}_imported_location ${lib} IMPORTED_LOCATION) +- if(${lib}_imported_location) +- list(APPEND imported_libraries ${${lib}_imported_location}) ++ catkin_find_library_imported_location_library(${lib}_imported_location_library ${lib}) ++ if(${lib}_imported_location_library) ++ list(APPEND imported_libraries ${${lib}_imported_location_library}) + else() + get_target_property(${lib}_imported_configurations ${lib} IMPORTED_CONFIGURATIONS) + foreach(cfg ${${lib}_imported_configurations}) +@@ -156,11 +189,14 @@ function(catkin_replace_imported_library_targets VAR) + if(NOT ${lib}_imported_location_${cfg}) + get_target_property(${lib}_imported_location_${cfg} ${lib} IMPORTED_LOCATION_${cfg}) + endif() ++ if(${lib}_imported_location_${cfg}) ++ list(APPEND imported_libraries ${${lib}_imported_location_${cfg}}) ++ endif() + else() +- get_target_property(${lib}_imported_location_${cfg} ${lib} IMPORTED_LOCATION_${cfg}) +- endif() +- if(${lib}_imported_location_${cfg}) +- list(APPEND imported_libraries ${${lib}_imported_location_${cfg}}) ++ catkin_find_library_imported_location_library(${lib}_imported_location_library_${cfg} ${lib} ${cfg}) ++ if(${lib}_imported_location_library_${cfg}) ++ list(APPEND imported_libraries ${${lib}_imported_location_library_${cfg}}) ++ endif() + endif() + endforeach() + endif() +diff --git a/cmake/catkin_package.cmake b/cmake/catkin_package.cmake +index df36e236..475eb975 100644 +--- a/cmake/catkin_package.cmake ++++ b/cmake/catkin_package.cmake +@@ -254,6 +254,17 @@ function(_catkin_package) + list(APPEND _PKG_CONFIG_LIBRARIES ${PROJECT_DEPENDENCIES_LIBRARIES}) + endif() + ++ set(_CONDA_ADJUSTED_PKG_CONFIG "") ++ foreach(library ${_PKG_CONFIG_LIBRARIES}) ++ get_filename_component(library_fn "${library}" NAME_WE) ++ if ("${library_fn}" MATCHES "lib(pthread|rt|dl)$") ++ list(APPEND _CONDA_ADJUSTED_PKG_CONFIG ${CMAKE_MATCH_1}) ++ else() ++ list(APPEND _CONDA_ADJUSTED_PKG_CONFIG ${library}) ++ endif() ++ endforeach() ++ set(_PKG_CONFIG_LIBRARIES ${_CONDA_ADJUSTED_PKG_CONFIG}) ++ + # resolve imported library targets + catkin_replace_imported_library_targets(_PKG_CONFIG_LIBRARIES ${_PKG_CONFIG_LIBRARIES}) + +diff --git a/cmake/empy.cmake b/cmake/empy.cmake +index 3e076066..3a24c8c8 100644 +--- a/cmake/empy.cmake ++++ b/cmake/empy.cmake +@@ -22,19 +22,13 @@ function(find_python_module module) + endfunction(find_python_module) + + if(NOT EMPY_SCRIPT) +- find_program(EMPY_EXECUTABLE empy) +- if(NOT EMPY_EXECUTABLE) +- # On OSX, there's an em.py, but not an executable empy script +- find_python_module(em) +- if(NOT PY_EM) +- message(FATAL_ERROR "Unable to find either executable 'empy' or Python module 'em'... try installing the package 'python3-empy'") +- endif() +- # ensure to use cmake-style path separators on Windows +- file(TO_CMAKE_PATH "${PY_EM}" EMPY_SCRIPT) +- else() +- # ensure to use cmake-style path separators on Windows +- file(TO_CMAKE_PATH "${EMPY_EXECUTABLE}" EMPY_SCRIPT) ++ # On OSX, there's an em.py, but not an executable empy script ++ find_python_module(em) ++ if(NOT PY_EM) ++ message(FATAL_ERROR "Unable to find either executable 'empy' or Python module 'em'... try installing the package 'python3-empy'") + endif() ++ # ensure to use cmake-style path separators on Windows ++ file(TO_CMAKE_PATH "${PY_EM}" EMPY_SCRIPT) + set(EMPY_SCRIPT "${EMPY_SCRIPT}" CACHE STRING "Empy script" FORCE) + endif() + message(STATUS "Using empy: ${EMPY_SCRIPT}") +diff --git a/cmake/interrogate_setup_dot_py.py b/cmake/interrogate_setup_dot_py.py +index 5e25fbf8..e8d70451 100644 +--- a/cmake/interrogate_setup_dot_py.py ++++ b/cmake/interrogate_setup_dot_py.py +@@ -40,14 +40,14 @@ from argparse import ArgumentParser + setup_modules = [] + + try: +- import distutils.core +- setup_modules.append(distutils.core) ++ import setuptools ++ setup_modules.append(setuptools) + except ImportError: + pass + + try: +- import setuptools +- setup_modules.append(setuptools) ++ import distutils.core ++ setup_modules.append(distutils.core) + except ImportError: + pass + +diff --git a/cmake/python.cmake b/cmake/python.cmake +index c72b8599..6b39d3a2 100644 +--- a/cmake/python.cmake ++++ b/cmake/python.cmake +@@ -8,9 +8,6 @@ message(STATUS "Using PYTHON_EXECUTABLE: ${PYTHON_EXECUTABLE}") + set(_PYTHON_PATH_VERSION_SUFFIX "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") + + set(enable_setuptools_deb_layout OFF) +-if(EXISTS "/etc/debian_version") +- set(enable_setuptools_deb_layout ON) +-endif() + option(SETUPTOOLS_DEB_LAYOUT "Enable debian style python package layout" ${enable_setuptools_deb_layout}) + + if(SETUPTOOLS_DEB_LAYOUT) +diff --git a/cmake/templates/_setup_util.py.in b/cmake/templates/_setup_util.py.in +index e73934bb..b9c8c005 100755 +--- a/cmake/templates/_setup_util.py.in ++++ b/cmake/templates/_setup_util.py.in +@@ -1,4 +1,4 @@ +-#!@PYTHON_EXECUTABLE@ ++#!/usr/bin/env python + # -*- coding: utf-8 -*- + + # Software License Agreement (BSD License) +@@ -59,12 +59,14 @@ if IS_WINDOWS: + # subfolder of workspace prepended to CMAKE_PREFIX_PATH + ENV_VAR_SUBFOLDERS = { + 'CMAKE_PREFIX_PATH': '', +- 'LD_LIBRARY_PATH' if not IS_DARWIN else 'DYLD_LIBRARY_PATH': @CATKIN_LIB_ENVIRONMENT_PATHS@, ++ # 'LD_LIBRARY_PATH' if not IS_DARWIN else 'DYLD_LIBRARY_PATH': @CATKIN_LIB_ENVIRONMENT_PATHS@, + 'PATH': PATH_TO_ADD_SUFFIX, + 'PKG_CONFIG_PATH': @CATKIN_PKGCONFIG_ENVIRONMENT_PATHS@, +- 'PYTHONPATH': '@PYTHON_INSTALL_DIR@', ++ # 'PYTHONPATH': '@PYTHON_INSTALL_DIR@', + } + ++if IS_WINDOWS or os.path.dirname(os.path.realpath(__file__)) != sys.prefix: ++ ENV_VAR_SUBFOLDERS['PYTHONPATH'] = '@PYTHON_INSTALL_DIR@' + + def rollback_env_variables(environ, env_var_subfolders): + """ +diff --git a/cmake/templates/pkgConfig.cmake.in b/cmake/templates/pkgConfig.cmake.in +index 92199d4e..b1423d7f 100644 +--- a/cmake/templates/pkgConfig.cmake.in ++++ b/cmake/templates/pkgConfig.cmake.in +@@ -119,10 +119,12 @@ endif() + set(libraries "@PKG_CONFIG_LIBRARIES@") + foreach(library ${libraries}) + # keep build configuration keywords, generator expressions, target names, and absolute libraries as-is +- if("${library}" MATCHES "^(debug|optimized|general)$") ++ if("${library}" MATCHES "^(debug|optimized|general|rt|pthread|dl)$") + list(APPEND @PROJECT_NAME@_LIBRARIES ${library}) + elseif(${library} MATCHES "^-l") + list(APPEND @PROJECT_NAME@_LIBRARIES ${library}) ++ elseif(${library} MATCHES "^-framework") ++ list(APPEND @PROJECT_NAME@_LIBRARIES ${library}) + elseif(${library} MATCHES "^-") + # This is a linker flag/option (like -pthread) + # There's no standard variable for these, so create an interface library to hold it +diff --git a/cmake/templates/setup.sh.in b/cmake/templates/setup.sh.in +index 834b01a0..b9dca514 100644 +--- a/cmake/templates/setup.sh.in ++++ b/cmake/templates/setup.sh.in +@@ -11,13 +11,29 @@ + + # since this file is sourced either use the provided _CATKIN_SETUP_DIR + # or fall back to the destination set at configure time ++# _SETUP_UTIL="$_CATKIN_SETUP_DIR/_setup_util.py" ++ ++if [ ! -z "$ZSH_VERSION" ]; then ++ CATKIN_SHELL=zsh ++elif [ ! -z "$BASH_VERSION" ]; then ++ CATKIN_SHELL=bash ++else ++ CATKIN_SHELL=sh ++fi ++ + : ${_CATKIN_SETUP_DIR:=@SETUP_DIR@} ++: ${_CONDA_SETUP_DIR:=$CONDA_PREFIX/etc/conda/activate.d/} + _SETUP_UTIL="$_CATKIN_SETUP_DIR/_setup_util.py" ++ + unset _CATKIN_SETUP_DIR + + if [ ! -f "$_SETUP_UTIL" ]; then +- echo "Missing Python script: $_SETUP_UTIL" +- return 22 ++ _SETUP_UTIL="$_CONDA_SETUP_DIR/ros_setup_util.py" ++ ++ if [ ! -f "$_SETUP_UTIL" ]; then ++ echo "Missing Python script: $_SETUP_UTIL" ++ return 22 ++ fi + fi + + # detect if running on Darwin platform +diff --git a/cmake/test/gtest.cmake b/cmake/test/gtest.cmake +index a87d3a90..5ad52de9 100644 +--- a/cmake/test/gtest.cmake ++++ b/cmake/test/gtest.cmake +@@ -313,6 +313,11 @@ function(catkin_find_google_test_source gtest_path googletest_path + endif() + endfunction() + ++if(DEFINED CATKIN_ENABLE_TESTING AND NOT CATKIN_ENABLE_TESTING) ++ # Binary package builds disable tests; skip gtest/gmock probing entirely. ++ return() ++endif() ++ + find_package(GMock QUIET) + # the GMockConfig.cmake from the Debian package cmake-extras provides all targets + if(TARGET gtest AND TARGET gtest_main AND TARGET gmock AND TARGET gmock_main) +@@ -338,6 +343,26 @@ if(TARGET gtest AND TARGET gtest_main AND TARGET gmock AND TARGET gmock_main) + endif() + else() + find_package(GTest QUIET) ++ # CMake's modern FindGTest populates GTest_FOUND and imported targets ++ # (GTest::gtest / GTest::gtest_main). Catkin expects legacy GTEST_* vars. ++ if(NOT GTEST_FOUND AND GTest_FOUND) ++ set(GTEST_FOUND TRUE) ++ endif() ++ if(NOT GTEST_INCLUDE_DIRS AND TARGET GTest::gtest) ++ get_target_property(_gtest_include_dirs GTest::gtest INTERFACE_INCLUDE_DIRECTORIES) ++ if(_gtest_include_dirs) ++ set(GTEST_INCLUDE_DIRS ${_gtest_include_dirs}) ++ endif() ++ endif() ++ if(NOT GTEST_LIBRARIES AND TARGET GTest::gtest) ++ set(GTEST_LIBRARIES GTest::gtest) ++ endif() ++ if(NOT GTEST_MAIN_LIBRARIES AND TARGET GTest::gtest_main) ++ set(GTEST_MAIN_LIBRARIES GTest::gtest_main) ++ endif() ++ if(GTEST_FOUND AND NOT GTEST_BOTH_LIBRARIES) ++ set(GTEST_BOTH_LIBRARIES ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES}) ++ endif() + endif() + if(NOT GMOCK_FOUND OR NOT GTEST_FOUND) + # If we find one but not the other, see if we can get both from source +diff --git a/cmake/tools/rt.cmake b/cmake/tools/rt.cmake +index da5ed7db..5fb71d58 100644 +--- a/cmake/tools/rt.cmake ++++ b/cmake/tools/rt.cmake +@@ -34,14 +34,5 @@ + get_property(ENABLED_LANGUAGES_LIST GLOBAL PROPERTY ENABLED_LANGUAGES) + list(FIND ENABLED_LANGUAGES_LIST "CXX" _cxx_index) + if(NOT (APPLE OR WIN32 OR MINGW OR ANDROID) AND "${_cxx_index}" GREATER -1) +- if (${CMAKE_VERSION} VERSION_LESS 2.8.4) +- # cmake later than 2.8.0 appears to have a better find_library +- # that knows about the ABI of the compiler. For lucid we just +- # depend on the linker to find it for us. +- set(RT_LIBRARY rt CACHE FILEPATH "Hacked find of rt for cmake < 2.8.4") +- else() +- find_library(RT_LIBRARY rt) +- assert_file_exists(${RT_LIBRARY} "RT Library") +- endif() +- #message(STATUS "RT_LIBRARY: ${RT_LIBRARY}") ++ set(RT_LIBRARY rt) + endif() diff --git a/distros/noetic/patch/ros-noetic-catkin.win.patch b/distros/noetic/patch/ros-noetic-catkin.win.patch new file mode 100644 index 000000000..2d3c9ae59 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-catkin.win.patch @@ -0,0 +1,20 @@ +diff --git a/cmake/platform/windows.cmake b/cmake/platform/windows.cmake +index ca8d77cd..88ad363e 100644 +--- a/cmake/platform/windows.cmake ++++ b/cmake/platform/windows.cmake +@@ -85,13 +85,13 @@ if(WIN32) + add_definitions(-D_USE_MATH_DEFINES) + + # do not define STRICT macros (minwindef.h or boost\winapi\basic_types.hpp) +- add_definitions(-DNO_STRICT) ++ #add_definitions(-DSTRICT) + + # do not define min/max macros + add_definitions(-DNOMINMAX) + + # do not define STRICT macros (qtgui\qwindowdefs_win.h) +- add_definitions(-DQ_NOWINSTRICT) ++ #add_definitions(-DQ_WINSTRICT) + + # keep minimum windows headers inclusion + add_definitions(-DWIN32_LEAN_AND_MEAN) diff --git a/distros/noetic/patch/ros-noetic-chomp-motion-planner.osx.patch b/distros/noetic/patch/ros-noetic-chomp-motion-planner.osx.patch new file mode 100644 index 000000000..2721e4b6e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-chomp-motion-planner.osx.patch @@ -0,0 +1,16 @@ +diff --git a/src/chomp_trajectory.cpp b/src/chomp_trajectory.cpp +index af2c9c9c0..8291b0135 100644 +--- a/src/chomp_trajectory.cpp ++++ b/src/chomp_trajectory.cpp +@@ -153,9 +153,10 @@ void ChompTrajectory::fillInMinJerk() + + // calculate the spline coefficients for each joint: + // (these are for the special case of zero start and end vel and acc) +- std::vector coeff(num_joints_); ++ std::vector> coeff(num_joints_); + for (size_t i = 0; i < num_joints_; i++) + { ++ coeff[i].resize(6); + double x0 = (*this)(start_index, i); + double x1 = (*this)(end_index, i); + coeff[i][0] = x0; diff --git a/distros/noetic/patch/ros-noetic-class-loader.patch b/distros/noetic/patch/ros-noetic-class-loader.patch new file mode 100644 index 000000000..1a385b0d1 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-class-loader.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7580a95..aa97e7a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,7 +3,7 @@ project(class_loader CXX) + + # Default to C++14 + if(NOT CMAKE_CXX_STANDARD) +- set(CMAKE_CXX_STANDARD 14) ++ set(CMAKE_CXX_STANDARD 17) + endif() + if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wall -Wextra -Wpedantic) +@@ -23,7 +23,7 @@ if(${catkin_FOUND}) + find_package(Poco REQUIRED COMPONENTS Foundation) + catkin_package( + INCLUDE_DIRS include +- LIBRARIES ${PROJECT_NAME} ${Poco_LIBRARIES} ++ LIBRARIES ${PROJECT_NAME} ${Poco_LIBRARIES} ${console_bridge_LIBRARIES} + DEPENDS Boost Poco console_bridge + CFG_EXTRAS class_loader-extras.cmake + ) diff --git a/distros/noetic/patch/ros-noetic-cmake-modules.patch b/distros/noetic/patch/ros-noetic-cmake-modules.patch new file mode 100644 index 000000000..3fbf495e8 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-cmake-modules.patch @@ -0,0 +1,19 @@ +diff --git a/cmake/Modules/FindUUID.cmake b/cmake/Modules/FindUUID.cmake +index fbeda44..7ceb796 100644 +--- a/cmake/Modules/FindUUID.cmake ++++ b/cmake/Modules/FindUUID.cmake +@@ -12,12 +12,8 @@ if(APPLE) + set(UUID_INCLUDE_DIRS "") + set(UUID_LIBRARIES "") + elseif(WIN32) +- find_library(UUID_LIBRARIES NAMES Rpcrt4 PATH) +- +- if(UUID_LIBRARIES) +- set(UUID_FOUND true) +- endif(UUID_LIBRARIES) +- ++ set(UUID_LIBRARIES Rpcrt4.lib) ++ set(UUID_FOUND true) + else() + find_path(UUID_INCLUDE_DIRS uuid/uuid.h) + find_library(UUID_LIBRARIES NAMES uuid PATH) diff --git a/distros/noetic/patch/ros-noetic-control-box-rst.patch b/distros/noetic/patch/ros-noetic-control-box-rst.patch new file mode 100644 index 000000000..de9a6120b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-control-box-rst.patch @@ -0,0 +1,13 @@ +diff --git a/src/optimization/include/corbo-optimization/hyper_graph/edge_cache.h b/src/optimization/include/corbo-optimization/hyper_graph/edge_cache.h +index d380ac5..58c3298 100644 +--- a/src/optimization/include/corbo-optimization/hyper_graph/edge_cache.h ++++ b/src/optimization/include/corbo-optimization/hyper_graph/edge_cache.h +@@ -75,7 +75,7 @@ class EdgeCache + PRINT_DEBUG_COND_ONCE(_jacobians.size() >= _values.capacity(), + "EdgeCache::pushJacobian(): cache capacity reached; you might better reserve more space in advance."); + #if __cplusplus > 201402L +- return _values.emplace_back(); ++ return _jacobians.emplace_back(); + #else + _jacobians.emplace_back(value_dim, param_dim); + return _jacobians.back(); diff --git a/distros/noetic/patch/ros-noetic-costmap-converter.patch b/distros/noetic/patch/ros-noetic-costmap-converter.patch new file mode 100644 index 000000000..c4349e014 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-costmap-converter.patch @@ -0,0 +1,99 @@ +From cb6af72f331a881fb399e651d6c9aaaf536a63e3 Mon Sep 17 00:00:00 2001 +From: Ben Wolsieffer +Date: Thu, 10 Aug 2023 13:29:02 -0400 +Subject: [PATCH] Make BlobDetector inherit from cv::Feature2D + +BlobDetector currently inherits from cv::SimpleBlobDetector, which is an +interface class that doesn't provide any functionality itself. On the +other hand, every time OpenCV adds a new pure virtual method to this +interface, it breaks BlobDetector. + +This patch makes BlobDetector inherit from cv::Feature2D instead, which +should hopefully have fewer breaking changes. This requires adding a +typedef for Params, which was originally provided by +cv::SimpleBlobDetector. I also took the opportunity to make all the +parameters reference this typedef rather than directly use +cv::SimpleBlobDetector::Params. + +It is likely possible to remove inheritance from BlobDetector altogether, +since it doesn't appear to use any functionality from cv::Feature2D +either, but I decided not to do this because BlobDetector is part of the +public interface, and this could increase the likelihood of breaking +downstream packages that use this class (if any do). +--- + .../costmap_to_dynamic_obstacles/blob_detector.h | 10 ++++++---- + src/costmap_to_dynamic_obstacles/blob_detector.cpp | 4 ++-- + 2 files changed, 8 insertions(+), 6 deletions(-) + +diff --git a/include/costmap_converter/costmap_to_dynamic_obstacles/blob_detector.h b/include/costmap_converter/costmap_to_dynamic_obstacles/blob_detector.h +index ac9b80a..9bfe5bf 100644 +--- a/include/costmap_converter/costmap_to_dynamic_obstacles/blob_detector.h ++++ b/include/costmap_converter/costmap_to_dynamic_obstacles/blob_detector.h +@@ -57,14 +57,16 @@ + * + * See http://docs.opencv.org/trunk/d0/d7a/classcv_1_1SimpleBlobDetector.html for the original class. + */ +-class BlobDetector : public cv::SimpleBlobDetector ++class BlobDetector : public cv::Feature2D + { + public: ++ typedef cv::SimpleBlobDetector::Params Params; ++ + //! Default constructor which optionally accepts custom parameters +- BlobDetector(const cv::SimpleBlobDetector::Params& parameters = cv::SimpleBlobDetector::Params()); ++ BlobDetector(const Params& parameters = Params()); + + //! Create shared instance of the blob detector with given parameters +- static cv::Ptr create(const BlobDetector::Params& params); ++ static cv::Ptr create(const Params& params); + + /** + * @brief Detects keypoints in an image and extracts contours +@@ -90,7 +92,7 @@ class BlobDetector : public cv::SimpleBlobDetector + const std::vector>& getContours() { return contours_; } + + //! Update internal parameters +- void updateParameters(const cv::SimpleBlobDetector::Params& parameters); ++ void updateParameters(const Params& parameters); + + protected: + struct Center +diff --git a/src/costmap_to_dynamic_obstacles/blob_detector.cpp b/src/costmap_to_dynamic_obstacles/blob_detector.cpp +index c7352f4..564cb0c 100755 +--- a/src/costmap_to_dynamic_obstacles/blob_detector.cpp ++++ b/src/costmap_to_dynamic_obstacles/blob_detector.cpp +@@ -2,9 +2,9 @@ + #include + #include + +-BlobDetector::BlobDetector(const SimpleBlobDetector::Params& parameters) : params_(parameters) {} ++BlobDetector::BlobDetector(const Params& parameters) : params_(parameters) {} + +-cv::Ptr BlobDetector::create(const cv::SimpleBlobDetector::Params& params) ++cv::Ptr BlobDetector::create(const Params& params) + { + return cv::Ptr (new BlobDetector(params)); // compatibility with older versions + //return cv::makePtr(params); + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9ae9e9a..a37846d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,12 +34,15 @@ endif() + ## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html + # catkin_python_setup() + +-## C++11 support ++## C++14 support + IF(NOT MSVC) + include(CheckCXXCompilerFlag) ++ CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14) + CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) + CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X) +-if(COMPILER_SUPPORTS_CXX11) ++if(COMPILER_SUPPORTS_CXX14) ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") ++elseif(COMPILER_SUPPORTS_CXX11) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + elseif(COMPILER_SUPPORTS_CXX0X) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") diff --git a/distros/noetic/patch/ros-noetic-cras-cpp-common.patch b/distros/noetic/patch/ros-noetic-cras-cpp-common.patch new file mode 100644 index 000000000..457502d7d --- /dev/null +++ b/distros/noetic/patch/ros-noetic-cras-cpp-common.patch @@ -0,0 +1,103 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3f0729f..461cb05 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -35,6 +35,7 @@ find_package(Boost REQUIRED COMPONENTS thread) + find_package(Eigen3 REQUIRED) + + find_package(urdfdom_headers REQUIRED) ++find_package(Iconv REQUIRED) + + # Require https://github.com/ros/filters/pull/60 in the filters package (added in 1.8.3 and 1.9.2) + #catkin_lint: ignore_once duplicate_find +@@ -220,12 +221,12 @@ add_library(cras_tf2_utils + target_sources(cras_tf2_utils INTERFACE $) + add_dependencies(cras_tf2_utils ${catkin_EXPORTED_TARGETS}) + target_link_libraries(cras_tf2_utils +- PUBLIC cras_log_utils cras_thread_utils cras_time_utils ${catkin_LIBRARIES}) ++ PUBLIC cras_log_utils cras_thread_utils cras_time_utils cras_semaphore ${catkin_LIBRARIES}) + + add_library(cras_string_utils src/string_utils.cpp src/string_utils/from_chars.cpp src/string_utils/ros.cpp) + add_dependencies(cras_string_utils ${catkin_EXPORTED_TARGETS}) + target_link_libraries(cras_string_utils +- PUBLIC cras_time_utils cras_type_traits ${catkin_LIBRARIES}) ++ PUBLIC cras_time_utils cras_type_traits ${catkin_LIBRARIES} Iconv::Iconv) + if (HAS_FROM_CHARS_FLOAT) + target_compile_definitions(cras_string_utils PRIVATE HAS_FROM_CHARS_FLOAT=1) + endif() +diff --git a/cmake/cras_cpp_common-node_from_nodelet.cmake.em b/cmake/cras_cpp_common-node_from_nodelet.cmake.em +index 99977e9..49b835e 100644 +--- a/cmake/cras_cpp_common-node_from_nodelet.cmake.em ++++ b/cmake/cras_cpp_common-node_from_nodelet.cmake.em +@@ -71,10 +71,12 @@ function(cras_node_from_nodelet target include_file_or_class_name #[=[class_name + if(NODE_IGNORE_HEADER) + # In convention 2) (without a header file), we need to force the linker to include the nodelet library as normally + # it would not link it as there is no code directly linking to its code. +- if(CMAKE_VERSION VERSION_LESS "3.13.0") +- set_property(TARGET ${NODE_TARGET_NAME} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--no-as-needed") +- else() +- target_link_options(${NODE_TARGET_NAME} PUBLIC "LINKER:--no-as-needed") ++ if(NOT APPLE) ++ if(CMAKE_VERSION VERSION_LESS "3.13.0") ++ set_property(TARGET ${NODE_TARGET_NAME} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--no-as-needed") ++ else() ++ target_link_options(${NODE_TARGET_NAME} PUBLIC "LINKER:--no-as-needed") ++ endif() + endif() + endif() + +diff --git a/include/cras_cpp_common/nodelet_utils/impl/nodelet_with_diagnostics.hpp b/include/cras_cpp_common/nodelet_utils/impl/nodelet_with_diagnostics.hpp +index f177aae..24a5b11 100644 +--- a/include/cras_cpp_common/nodelet_utils/impl/nodelet_with_diagnostics.hpp ++++ b/include/cras_cpp_common/nodelet_utils/impl/nodelet_with_diagnostics.hpp +@@ -463,7 +463,7 @@ template + this->data->log = params->getLogger(); + else + this->data->log = ::std::make_shared<::cras::NodeletLogHelper>( +- ::std::bind(&NodeletWithDiagnostics::getName, this)); ++ [this]() -> const ::std::string& { return this->getName(); }); + } + + auto paramAdapter = ::std::make_shared<::cras::NodeHandleGetParamAdapter>(nh); +diff --git a/include/cras_cpp_common/nodelet_utils/impl/nodelet_with_shared_tf_buffer.hpp b/include/cras_cpp_common/nodelet_utils/impl/nodelet_with_shared_tf_buffer.hpp +index ed03498..1e7b542 100644 +--- a/include/cras_cpp_common/nodelet_utils/impl/nodelet_with_shared_tf_buffer.hpp ++++ b/include/cras_cpp_common/nodelet_utils/impl/nodelet_with_shared_tf_buffer.hpp +@@ -54,7 +54,7 @@ struct NodeletWithSharedTfBufferPrivate + template + NodeletWithSharedTfBuffer::NodeletWithSharedTfBuffer() : + cras::TimeJumpResettable(::std::make_shared( +- ::std::bind(&NodeletWithSharedTfBuffer::getName, this))), ++ [this]() -> const ::std::string& { return this->getName(); })), + data(new ::cras::impl::NodeletWithSharedTfBufferPrivate) + { + } +diff --git a/include/cras_cpp_common/nodelet_utils/impl/param_helper.hpp b/include/cras_cpp_common/nodelet_utils/impl/param_helper.hpp +index f4ce255..600fd1d 100644 +--- a/include/cras_cpp_common/nodelet_utils/impl/param_helper.hpp ++++ b/include/cras_cpp_common/nodelet_utils/impl/param_helper.hpp +@@ -26,7 +26,7 @@ namespace cras + + template + NodeletParamHelper::NodeletParamHelper() : ParamHelper(::std::make_shared( +- ::std::bind(&NodeletParamHelper::getName, this))) ++ [this]() -> const ::std::string& { return this->getName(); })) + { + } + +diff --git a/src/thread_utils.cpp b/src/thread_utils.cpp +index 448ed53..849a506 100644 +--- a/src/thread_utils.cpp ++++ b/src/thread_utils.cpp +@@ -40,7 +40,11 @@ void setThreadName(const std::string& name) + memcpy(nameBuf + 8, name.c_str() + (name.length() - 7), 7); + nameBuf[15] = '\0'; + } ++#ifdef __APPLE__ ++ pthread_setname_np(nameBuf); ++#else + pthread_setname_np(pthread_self(), nameBuf); ++#endif + } + + } diff --git a/distros/noetic/patch/ros-noetic-cv-bridge.patch b/distros/noetic/patch/ros-noetic-cv-bridge.patch new file mode 100644 index 000000000..6a081912c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-cv-bridge.patch @@ -0,0 +1,115 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ef804b91..4ef849c4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,28 +3,8 @@ project(cv_bridge) + + find_package(catkin REQUIRED COMPONENTS rosconsole sensor_msgs) + +-if(NOT ANDROID) +- find_package(PythonLibs) +- +- if(PYTHONLIBS_VERSION_STRING VERSION_LESS "3.8") +- # Debian Buster +- find_package(Boost REQUIRED python37) +- else() +- # Ubuntu Focal +- find_package(Boost REQUIRED python) +- endif() +-else() +-find_package(Boost REQUIRED) +-endif() +- +-set(_opencv_version 4) +-find_package(OpenCV 4 QUIET) +-if(NOT OpenCV_FOUND) +- message(STATUS "Did not find OpenCV 4, trying OpenCV 3") +- set(_opencv_version 3) +-endif() +- +-find_package(OpenCV ${_opencv_version} REQUIRED ++find_package(Boost REQUIRED CONFIG COMPONENTS python) ++find_package(OpenCV REQUIRED + COMPONENTS + opencv_core + opencv_imgproc +@@ -43,7 +23,6 @@ catkin_package( + catkin_python_setup() + + include_directories(include ${Boost_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS}) +-link_directories(${Boost_LIBRARY_DIRS}) + + if(NOT ANDROID) + add_subdirectory(python) +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index d1046922c..57ec2a26c 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -1,8 +1,7 @@ + # add library +-include_directories(./) + add_library(${PROJECT_NAME} cv_bridge.cpp rgb_colors.cpp) + add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS}) +-target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBRARIES} ${catkin_LIBRARIES}) ++target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBRARIES} ${Boost_LIBRARIES} ${catkin_LIBRARIES}) + + install(TARGETS ${PROJECT_NAME} + LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} +@@ -12,38 +11,18 @@ install(TARGETS ${PROJECT_NAME} + + if(NOT ANDROID) + # add a Boost Python library +-find_package(PythonInterp REQUIRED) +-find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") +- +-#Get the numpy include directory from its python module +-if(NOT PYTHON_NUMPY_INCLUDE_DIR) +- execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import numpy; print(numpy.get_include())" +- RESULT_VARIABLE PYTHON_NUMPY_PROCESS +- OUTPUT_VARIABLE PYTHON_NUMPY_INCLUDE_DIR +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- +- if(PYTHON_NUMPY_PROCESS EQUAL 0) +- file(TO_CMAKE_PATH "${PYTHON_NUMPY_INCLUDE_DIR}" PYTHON_NUMPY_INCLUDE_CMAKE_PATH) +- set(PYTHON_NUMPY_INCLUDE_DIR ${PYTHON_NUMPY_INCLUDE_CMAKE_PATH} CACHE PATH "Numpy include directory") +- else(PYTHON_NUMPY_PROCESS EQUAL 0) +- message(SEND_ERROR "Could not determine the NumPy include directory, verify that NumPy was installed correctly.") +- endif(PYTHON_NUMPY_PROCESS EQUAL 0) +- endif(NOT PYTHON_NUMPY_INCLUDE_DIR) +- +-include_directories(${PYTHON_INCLUDE_PATH} ${Boost_INCLUDE_DIRS} ${PYTHON_NUMPY_INCLUDE_DIR}) +- +-if (PYTHON_VERSION_MAJOR VERSION_EQUAL 3) +- add_definitions(-DPYTHON3) +-endif() ++find_package(Python COMPONENTS Interpreter Development NumPy) ++add_definitions(-DPYTHON3) + + add_library(${PROJECT_NAME}_boost module.cpp module_opencv4.cpp) ++target_include_directories(${PROJECT_NAME}_boost PUBLIC ${Python_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${Python_NumPy_INCLUDE_DIRS}) + target_link_libraries(${PROJECT_NAME}_boost ${Boost_LIBRARIES} + ${catkin_LIBRARIES} + ${PROJECT_NAME} + ) + + if(NOT APPLE) +- target_link_libraries(${PROJECT_NAME}_boost ${PYTHON_LIBRARIES}) ++ target_link_libraries(${PROJECT_NAME}_boost ${Python_LIBRARIES}) + endif() + + set_target_properties(${PROJECT_NAME}_boost PROPERTIES +diff --git a/src/cv_bridge.cpp b/src/cv_bridge.cpp +index 44f23a32..8de258f7 100644 +--- a/src/cv_bridge.cpp ++++ b/src/cv_bridge.cpp +@@ -33,7 +33,9 @@ + * POSSIBILITY OF SUCH DAMAGE. + *********************************************************************/ + +-#include "boost/endian/conversion.hpp" ++#include ++ ++#include + + #include + diff --git a/distros/noetic/patch/ros-noetic-diagnostic-updater.patch b/distros/noetic/patch/ros-noetic-diagnostic-updater.patch new file mode 100644 index 000000000..096694f88 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-diagnostic-updater.patch @@ -0,0 +1,15 @@ +diff --git a/include/diagnostic_updater/update_functions.h b/include/diagnostic_updater/update_functions.h +index 41e35104..59c05b94 100644 +--- a/include/diagnostic_updater/update_functions.h ++++ b/include/diagnostic_updater/update_functions.h +@@ -37,6 +37,10 @@ + #ifndef __DIAGNOSTIC_STATUS__UPDATE_FUNCTIONS_H__ + #define __DIAGNOSTIC_STATUS__UPDATE_FUNCTIONS_H__ + ++#ifdef ERROR ++#undef ERROR ++#endif ++ + #include + #include + diff --git a/distros/noetic/patch/ros-noetic-draco-point-cloud-transport.patch b/distros/noetic/patch/ros-noetic-draco-point-cloud-transport.patch new file mode 100644 index 000000000..af73936dc --- /dev/null +++ b/distros/noetic/patch/ros-noetic-draco-point-cloud-transport.patch @@ -0,0 +1,55 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3edb39a..7e7672b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -17,13 +17,6 @@ find_package(catkin REQUIRED COMPONENTS + # variables defined, draco_INCLUDE_DIR and draco_LIBRARY_DIR. In that case we + # try to reconstruct the rest from FindDraco.cmake (module mode). + find_package(Draco REQUIRED) +-if(draco_INCLUDE_DIR) +- set(draco_FOUND TRUE) +- set(draco_LIBRARY_DIRS "${draco_LIBRARY_DIR}") +- find_path(draco_INCLUDE_DIRS draco/point_cloud/point_cloud.h PATHS "${draco_INCLUDE_DIR}/..") +- find_library(draco_LIBRARIES NAMES draco PATHS "${draco_LIBRARY_DIR}") +- message("Draco found: ${draco_INCLUDE_DIRS}, ${draco_LIBRARIES}") +-endif() + + add_message_files(FILES + CompressedPointCloud2.msg +@@ -42,8 +35,6 @@ catkin_package( + CATKIN_DEPENDS message_runtime point_cloud_transport sensor_msgs std_msgs + ) + +-include_directories(include ${catkin_INCLUDE_DIRS} SYSTEM ${draco_INCLUDE_DIRS}) +- + set(SOURCE_FILES + src/draco_publisher.cpp + src/draco_subscriber.cpp +@@ -53,14 +44,24 @@ add_library(${PROJECT_NAME} + ${SOURCE_FILES} + ) + add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS}) +-target_link_libraries(${PROJECT_NAME} PUBLIC ${catkin_LIBRARIES} PRIVATE ${draco_LIBRARIES}) +- ++target_link_libraries(${PROJECT_NAME} PUBLIC ${catkin_LIBRARIES} PRIVATE draco::draco) ++# we need ./include and catkin include dirs for pluginlib to find the headers when building the plugin ++target_include_directories(${PROJECT_NAME} PUBLIC ++ $ ++ $ ++ ${catkin_INCLUDE_DIRS} ++) + add_library(${PROJECT_NAME}_plugin + ${SOURCE_FILES} + src/manifest.cpp + ) + add_dependencies(${PROJECT_NAME}_plugin ${${PROJECT_NAME}_EXPORTED_TARGETS}) +-target_link_libraries(${PROJECT_NAME}_plugin PUBLIC ${catkin_LIBRARIES} PRIVATE ${draco_LIBRARIES}) ++target_link_libraries(${PROJECT_NAME}_plugin PUBLIC ${catkin_LIBRARIES} PRIVATE draco::draco) ++target_include_directories(${PROJECT_NAME}_plugin PUBLIC ++ $ ++ $ ++ ${catkin_INCLUDE_DIRS} ++) + class_loader_hide_library_symbols(${PROJECT_NAME}_plugin) + + install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_plugin diff --git a/distros/noetic/patch/ros-noetic-dynamic-graph-tutorial.patch b/distros/noetic/patch/ros-noetic-dynamic-graph-tutorial.patch new file mode 100644 index 000000000..2ae0f2f58 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-dynamic-graph-tutorial.patch @@ -0,0 +1,17 @@ +diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake +index a191c80..c187bed 100644 +--- a/cmake/compiler.cmake ++++ b/cmake/compiler.cmake +@@ -31,9 +31,9 @@ MACRO(_SETUP_PROJECT_WARNINGS) + ENDIF(${R${FLAG}}) + ENDFOREACH(FLAG ${FLAGS}) + +- IF(NOT DEFINED CXX_DISABLE_WERROR) +- SET(WARNING_CXX_FLAGS "-Werror ${WARNING_CXX_FLAGS}") +- ENDIF(NOT DEFINED CXX_DISABLE_WERROR) ++ # IF(NOT DEFINED CXX_DISABLE_WERROR) ++ # SET(WARNING_CXX_FLAGS "-Werror ${WARNING_CXX_FLAGS}") ++ # ENDIF(NOT DEFINED CXX_DISABLE_WERROR) + ENDIF(UNIX) + + # For win32 systems, it is impossible to use Wall, diff --git a/distros/noetic/patch/ros-noetic-dynamic-graph.patch b/distros/noetic/patch/ros-noetic-dynamic-graph.patch new file mode 100644 index 000000000..bf5c80ef3 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-dynamic-graph.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c1a1f06..8e1a908 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -141,6 +141,10 @@ IF(UNIX) + TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC ${CMAKE_DL_LIBS} pthread) + ENDIF(UNIX) + ++IF(UNIX AND NOT APPLE) ++ TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC rt) ++ENDIF(UNIX AND NOT APPLE) ++ + IF(SUFFIX_SO_VERSION) + SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION}) + ENDIF(SUFFIX_SO_VERSION) diff --git a/distros/noetic/patch/ros-noetic-dynamic-reconfigure.win.patch b/distros/noetic/patch/ros-noetic-dynamic-reconfigure.win.patch new file mode 100644 index 000000000..0edf83b7c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-dynamic-reconfigure.win.patch @@ -0,0 +1,128 @@ +diff --git a/src/dynamic_reconfigure/parameter_generator.py b/src/dynamic_reconfigure/parameter_generator.py +index 4810fa8..4071bbb 100644 +--- a/src/dynamic_reconfigure/parameter_generator.py ++++ b/src/dynamic_reconfigure/parameter_generator.py +@@ -51,6 +51,12 @@ import re + # LINEDEBUG="#line" + LINEDEBUG = "//#line" + ++ ++def _normalize_linedebug_path(path): ++ if path is None: ++ return "" ++ return path.replace("\\", "/") ++ + # Convenience names for types + str_t = "str" + bool_t = "bool" +@@ -109,7 +115,7 @@ class ParameterGenerator: + self.state = state + + self.srcline = inspect.currentframe().f_back.f_lineno +- self.srcfile = inspect.getsourcefile(inspect.currentframe().f_back.f_code) ++ self.srcfile = _normalize_linedebug_path(inspect.getsourcefile(inspect.currentframe().f_back.f_code)) + + self.instances[self.id] = self + +@@ -133,7 +139,7 @@ class ParameterGenerator: + 'min': min, + 'max': max, + 'srcline': inspect.currentframe().f_back.f_lineno, +- 'srcfile': inspect.getsourcefile(inspect.currentframe().f_back.f_code), ++ 'srcfile': _normalize_linedebug_path(inspect.getsourcefile(inspect.currentframe().f_back.f_code)), + 'edit_method': edit_method, + } + if type == str_t and (max is not None or min is not None): +@@ -252,7 +258,7 @@ class ParameterGenerator: + 'type': type, + 'value': value, + 'srcline': inspect.currentframe().f_back.f_lineno, +- 'srcfile': inspect.getsourcefile(inspect.currentframe().f_back.f_code), ++ 'srcfile': _normalize_linedebug_path(inspect.getsourcefile(inspect.currentframe().f_back.f_code)), + 'description': descr + } + check_description(descr) +@@ -442,7 +448,9 @@ class ParameterGenerator: + val = "" + else: + val = self.crepr(param, param[value]) +- list.append(Template('${doline} $srcline "$srcfile"\n ' + text).safe_substitute(param, v=val, doline=LINEDEBUG, configname=self.name)) ++ param_normalized = dict(param) ++ param_normalized['srcfile'] = _normalize_linedebug_path(param_normalized.get('srcfile')) ++ list.append(Template('${doline} $srcline "$srcfile"\n ' + text).safe_substitute(param_normalized, v=val, doline=LINEDEBUG, configname=self.name)) + + def appendgroup(self, list, group): + subgroups = [] +@@ -464,7 +472,7 @@ class ParameterGenerator: + # Read the configuration manipulator template and insert line numbers and file name into template. + templatefile = os.path.join(self.dynconfpath, "templates", "ConfigType.h.template") + templatelines = [] +- templatefilesafe = templatefile.replace('\\', '\\\\') # line directive does backslash expansion. ++ templatefilesafe = _normalize_linedebug_path(templatefile) + curline = 1 + f = open(templatefile) + for line in f: +diff --git a/src/dynamic_reconfigure/parameter_generator_catkin.py b/src/dynamic_reconfigure/parameter_generator_catkin.py +index eed790c..642dab7 100644 +--- a/src/dynamic_reconfigure/parameter_generator_catkin.py ++++ b/src/dynamic_reconfigure/parameter_generator_catkin.py +@@ -54,6 +54,12 @@ import textwrap + # LINEDEBUG="#line" + LINEDEBUG = "//#line" + ++ ++def _normalize_linedebug_path(path): ++ if path is None: ++ return "" ++ return path.replace("\\", "/") ++ + # Convenience names for types + str_t = "str" + bool_t = "bool" +@@ -113,7 +119,7 @@ class ParameterGenerator(object): + self.state = state + + self.srcline = inspect.currentframe().f_back.f_lineno +- self.srcfile = inspect.getsourcefile(inspect.currentframe().f_back.f_code) ++ self.srcfile = _normalize_linedebug_path(inspect.getsourcefile(inspect.currentframe().f_back.f_code)) + + self.instances[self.id] = self + +@@ -137,7 +143,7 @@ class ParameterGenerator(object): + 'min': min, + 'max': max, + 'srcline': inspect.currentframe().f_back.f_lineno, +- 'srcfile': inspect.getsourcefile(inspect.currentframe().f_back.f_code), ++ 'srcfile': _normalize_linedebug_path(inspect.getsourcefile(inspect.currentframe().f_back.f_code)), + 'edit_method': edit_method, + } + if (paramtype == str_t or paramtype == bool_t) and (max is not None or min is not None): +@@ -272,7 +278,7 @@ class ParameterGenerator(object): + 'type': type, + 'value': value, + 'srcline': inspect.currentframe().f_back.f_lineno, +- 'srcfile': inspect.getsourcefile(inspect.currentframe().f_back.f_code), ++ 'srcfile': _normalize_linedebug_path(inspect.getsourcefile(inspect.currentframe().f_back.f_code)), + 'description': descr + } + check_description(descr) +@@ -435,7 +441,9 @@ class ParameterGenerator(object): + val = "" + else: + val = self.crepr(param, param[value]) +- list.append(Template('${doline} $srcline "$srcfile"\n ' + text).safe_substitute(param, v=val, doline=LINEDEBUG, configname=self.name)) ++ param_normalized = dict(param) ++ param_normalized['srcfile'] = _normalize_linedebug_path(param_normalized.get('srcfile')) ++ list.append(Template('${doline} $srcline "$srcfile"\n ' + text).safe_substitute(param_normalized, v=val, doline=LINEDEBUG, configname=self.name)) + + def appendgroup(self, list, group): + subgroups = [] +@@ -457,7 +465,7 @@ class ParameterGenerator(object): + # Read the configuration manipulator template and insert line numbers and file name into template. + templatefile = os.path.join(self.dynconfpath, "templates", "ConfigType.h.template") + templatelines = [] +- templatefilesafe = templatefile.replace('\\', '\\\\') # line directive does backslash expansion. ++ templatefilesafe = _normalize_linedebug_path(templatefile) + curline = 1 + with open(templatefile) as f: + for line in f: diff --git a/distros/noetic/patch/ros-noetic-ecl-build.patch b/distros/noetic/patch/ros-noetic-ecl-build.patch new file mode 100644 index 000000000..05708b894 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ecl-build.patch @@ -0,0 +1,41 @@ +diff --git a/cmake/ecl_platform_detection.cmake b/cmake/ecl_platform_detection.cmake +index 35f93e6..7c11b90 100644 +--- a/cmake/ecl_platform_detection.cmake ++++ b/cmake/ecl_platform_detection.cmake +@@ -21,21 +21,21 @@ + macro(ecl_detect_distro) + if(EXISTS "/etc/issue") + file(READ "/etc/issue" ETC_ISSUE) +- string(REGEX MATCH "9.10" DISTRO_KARMIC ${ETC_ISSUE}) +- string(REGEX MATCH "10.04" DISTRO_LUCID ${ETC_ISSUE}) +- string(REGEX MATCH "10.10" DISTRO_MAVERICK ${ETC_ISSUE}) +- string(REGEX MATCH "11.04" DISTRO_NATTY ${ETC_ISSUE}) +- string(REGEX MATCH "11.10" DISTRO_ONEIRIC ${ETC_ISSUE}) +- string(REGEX MATCH "12.04" DISTRO_PRECISE ${ETC_ISSUE}) +- string(REGEX MATCH "12.10" DISTRO_QUANTAL ${ETC_ISSUE}) +- string(REGEX MATCH "13.04" DISTRO_RARING ${ETC_ISSUE}) +- string(REGEX MATCH "13.10" DISTRO_SAUCY ${ETC_ISSUE}) +- string(REGEX MATCH "14.04" DISTRO_TRUSTY ${ETC_ISSUE}) +- string(REGEX MATCH "14.10" DISTRO_UTOPIC ${ETC_ISSUE}) +- string(REGEX MATCH "15.04" DISTRO_VIVID ${ETC_ISSUE}) +- string(REGEX MATCH "15.10" DISTRO_WILY ${ETC_ISSUE}) +- string(REGEX MATCH "16.04" DISTRO_XENIAL ${ETC_ISSUE}) +- string(REGEX MATCH "16.10" DISTRO_YAKKETY ${ETC_ISSUE}) ++ string(REGEX MATCH "9.10" DISTRO_KARMIC "${ETC_ISSUE}") ++ string(REGEX MATCH "10.04" DISTRO_LUCID "${ETC_ISSUE}") ++ string(REGEX MATCH "10.10" DISTRO_MAVERICK "${ETC_ISSUE}") ++ string(REGEX MATCH "11.04" DISTRO_NATTY "${ETC_ISSUE}") ++ string(REGEX MATCH "11.10" DISTRO_ONEIRIC "${ETC_ISSUE}") ++ string(REGEX MATCH "12.04" DISTRO_PRECISE "${ETC_ISSUE}") ++ string(REGEX MATCH "12.10" DISTRO_QUANTAL "${ETC_ISSUE}") ++ string(REGEX MATCH "13.04" DISTRO_RARING "${ETC_ISSUE}") ++ string(REGEX MATCH "13.10" DISTRO_SAUCY "${ETC_ISSUE}") ++ string(REGEX MATCH "14.04" DISTRO_TRUSTY "${ETC_ISSUE}") ++ string(REGEX MATCH "14.10" DISTRO_UTOPIC "${ETC_ISSUE}") ++ string(REGEX MATCH "15.04" DISTRO_VIVID "${ETC_ISSUE}") ++ string(REGEX MATCH "15.10" DISTRO_WILY "${ETC_ISSUE}") ++ string(REGEX MATCH "16.04" DISTRO_XENIAL "${ETC_ISSUE}") ++ string(REGEX MATCH "16.10" DISTRO_YAKKETY "${ETC_ISSUE}") + endif() + if(DISTRO_KARMIC) + set(DISTRO_NAME "Ubuntu") diff --git a/distros/noetic/patch/ros-noetic-ecl-core-apps.patch b/distros/noetic/patch/ros-noetic-ecl-core-apps.patch new file mode 100644 index 000000000..401e91e67 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ecl-core-apps.patch @@ -0,0 +1,31 @@ +diff --git a/src/benchmarks/CMakeLists.txt b/src/benchmarks/CMakeLists.txt +index 82d51b7d5..ad99796ec 100644 +--- a/src/benchmarks/CMakeLists.txt ++++ b/src/benchmarks/CMakeLists.txt +@@ -17,7 +17,9 @@ ecl_add_benchmark(files) + ecl_add_benchmark(flops) + ecl_add_benchmark(exceptions) + ecl_add_benchmark(snooze) +-ecl_add_benchmark(streams) ++if(NOT APPLE) ++ ecl_add_benchmark(streams) ++endif() + ecl_add_benchmark(string_conversions) + + # Sparse is still unstable...and got modified in quantal, comment out for now. +diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt +index 43e82cba6..e2261a64f 100644 +--- a/src/utils/CMakeLists.txt ++++ b/src/utils/CMakeLists.txt +@@ -22,7 +22,9 @@ endmacro() + ecl_add_utility(process_statistics) + ecl_add_utility(hex) + ecl_add_utility(serial) +-ecl_add_utility(socket_client) +-ecl_add_utility(socket_server) ++if(NOT APPLE) ++ ecl_add_utility(socket_client) ++ ecl_add_utility(socket_server) ++endif() + ecl_add_global_utility(yaw2quaternion) + ecl_add_global_utility(quaternion2yaw) diff --git a/distros/noetic/patch/ros-noetic-eigenpy.patch b/distros/noetic/patch/ros-noetic-eigenpy.patch new file mode 100644 index 000000000..e6d1a756f --- /dev/null +++ b/distros/noetic/patch/ros-noetic-eigenpy.patch @@ -0,0 +1,2837 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fda47db..06dbbe3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -12,6 +12,8 @@ set(PROJECT_USE_KEYWORD_LINK_LIBRARIES TRUE) + set(PROJECT_CUSTOM_HEADER_EXTENSION "hpp") + set(PROJECT_COMPATIBILITY_VERSION AnyNewerVersion) + ++find_package(Python COMPONENTS Interpreter Development NumPy REQUIRED) ++ + # Check if the submodule cmake have been initialized + set(JRL_CMAKE_MODULES "${CMAKE_CURRENT_LIST_DIR}/cmake") + if(NOT EXISTS "${CMAKE_SOURCE_DIR}/cmake/base.cmake") +@@ -34,9 +36,6 @@ endif() + IF(NOT DEFINED CMAKE_BUILD_TYPE) + SET(CMAKE_BUILD_TYPE "Release") + ENDIF() +-IF(NOT DEFINED PYTHON_EXECUTABLE) +- SET(PYTHON_EXECUTABLE "/usr/bin/python3") # specify python3 so that Debian Buster passes +-ENDIF() + IF(NOT DEFINED CMAKE_INSTALL_LIBDIR) + SET(CMAKE_INSTALL_LIBDIR "lib/") + ENDIF() +diff --git a/cmake/cython/python/FindPython.cmake b/cmake/cython/python/FindPython.cmake +deleted file mode 100644 +index 1c134e2..0000000 +--- a/cmake/cython/python/FindPython.cmake ++++ /dev/null +@@ -1,224 +0,0 @@ +-# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +-# file Copyright.txt or https://cmake.org/licensing for details. +- +-#[=======================================================================[.rst: +-FindPython +----------- +- +-Find Python interpreter, compiler and development environment (include +-directories and libraries). +- +-Three components are supported: +- +-* ``Interpreter``: search for Python interpreter. +-* ``Compiler``: search for Python compiler. Only offered by IronPython. +-* ``Development``: search for development artifacts (include directories and +- libraries). +-* ``NumPy``: search for NumPy include directories. +- +-If no ``COMPONENTS`` is specified, ``Interpreter`` is assumed. +- +-To ensure consistent versions between components ``Interpreter``, ``Compiler``, +-``Development`` and ``NumPy``, specify all components at the same time:: +- +- find_package (Python COMPONENTS Interpreter Development) +- +-This module looks preferably for version 3 of Python. If not found, version 2 +-is searched. +-To manage concurrent versions 3 and 2 of Python, use :module:`FindPython3` and +-:module:`FindPython2` modules rather than this one. +- +-.. note:: +- +- If components ``Interpreter`` and ``Development`` are both specified, this +- module search only for interpreter with same platform architecture as the one +- defined by ``CMake`` configuration. This contraint does not apply if only +- ``Interpreter`` component is specified. +- +-Imported Targets +-^^^^^^^^^^^^^^^^ +- +-This module defines the following :ref:`Imported Targets ` +-(when :prop_gbl:`CMAKE_ROLE` is ``PROJECT``): +- +-``Python::Interpreter`` +- Python interpreter. Target defined if component ``Interpreter`` is found. +-``Python::Compiler`` +- Python compiler. Target defined if component ``Compiler`` is found. +-``Python::Python`` +- Python library. Target defined if component ``Development`` is found. +-``Python::NumPy`` +- NumPy Python library. Target defined if component ``NumPy`` is found. +- +-Result Variables +-^^^^^^^^^^^^^^^^ +- +-This module will set the following variables in your project +-(see :ref:`Standard Variable Names `): +- +-``Python_FOUND`` +- System has the Python requested components. +-``Python_Interpreter_FOUND`` +- System has the Python interpreter. +-``Python_EXECUTABLE`` +- Path to the Python interpreter. +-``Python_INTERPRETER_ID`` +- A short string unique to the interpreter. Possible values include: +- * Python +- * ActivePython +- * Anaconda +- * Canopy +- * IronPython +-``Python_STDLIB`` +- Standard platform independent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=False,standard_lib=True)``. +-``Python_STDARCH`` +- Standard platform dependent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=True,standard_lib=True)``. +-``Python_SITELIB`` +- Third-party platform independent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=False,standard_lib=False)``. +-``Python_SITEARCH`` +- Third-party platform dependent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=True,standard_lib=False)``. +-``Python_Compiler_FOUND`` +- System has the Python compiler. +-``Python_COMPILER`` +- Path to the Python compiler. Only offered by IronPython. +-``Python_COMPILER_ID`` +- A short string unique to the compiler. Possible values include: +- * IronPython +-``Python_Development_FOUND`` +- System has the Python development artifacts. +-``Python_INCLUDE_DIRS`` +- The Python include directories. +-``Python_LIBRARIES`` +- The Python libraries. +-``Python_LIBRARY_DIRS`` +- The Python library directories. +-``Python_RUNTIME_LIBRARY_DIRS`` +- The Python runtime library directories. +-``Python_VERSION`` +- Python version. +-``Python_VERSION_MAJOR`` +- Python major version. +-``Python_VERSION_MINOR`` +- Python minor version. +-``Python_VERSION_PATCH`` +- Python patch version. +-``Python_NumPy_FOUND`` +- System has the NumPy. +-``Python_NumPy_INCLUDE_DIRS`` +- The NumPy include directries. +-``Python_NumPy_VERSION`` +- The NumPy version. +- +-Hints +-^^^^^ +- +-``Python_ROOT_DIR`` +- Define the root directory of a Python installation. +- +-``Python_USE_STATIC_LIBS`` +- * If not defined, search for shared libraries and static libraries in that +- order. +- * If set to TRUE, search **only** for static libraries. +- * If set to FALSE, search **only** for shared libraries. +- +-``Python_FIND_REGISTRY`` +- On Windows the ``Python_FIND_REGISTRY`` variable determine the order +- of preference between registry and environment variables. +- the ``Python_FIND_REGISTRY`` variable can be set to empty or one of the +- following: +- +- * ``FIRST``: Try to use registry before environment variables. +- This is the default. +- * ``LAST``: Try to use registry after environment variables. +- * ``NEVER``: Never try to use registry. +- +-``CMAKE_FIND_FRAMEWORK`` +- On OS X the :variable:`CMAKE_FIND_FRAMEWORK` variable determine the order of +- preference between Apple-style and unix-style package components. +- +- .. note:: +- +- Value ``ONLY`` is not supported so ``FIRST`` will be used instead. +- +-.. note:: +- +- If a Python virtual environment is configured, set variable +- ``Python_FIND_REGISTRY`` (Windows) or ``CMAKE_FIND_FRAMEWORK`` (macOS) with +- value ``LAST`` or ``NEVER`` to select it preferably. +- +-Commands +-^^^^^^^^ +- +-This module defines the command ``Python_add_library`` (when +-:prop_gbl:`CMAKE_ROLE` is ``PROJECT``), which has the same semantics as +-:command:`add_library`, but takes care of Python module naming rules +-(only applied if library is of type ``MODULE``), and adds a dependency to target +-``Python::Python``:: +- +- Python_add_library (my_module MODULE src1.cpp) +- +-If library type is not specified, ``MODULE`` is assumed. +-#]=======================================================================] +- +- +-set (_PYTHON_PREFIX Python) +- +-if (DEFINED Python_FIND_VERSION) +- set (_Python_REQUIRED_VERSION_MAJOR ${Python_FIND_VERSION_MAJOR}) +- +- include (${CMAKE_CURRENT_LIST_DIR}/FindPython/Support.cmake) +-else() +- # iterate over versions in quiet and NOT required modes to avoid multiple +- # "Found" messages and prematurally failure. +- set (_Python_QUIETLY ${Python_FIND_QUIETLY}) +- set (_Python_REQUIRED ${Python_FIND_REQUIRED}) +- set (Python_FIND_QUIETLY TRUE) +- set (Python_FIND_REQUIRED FALSE) +- +- set (_Python_REQUIRED_VERSIONS 3 2) +- set (_Python_REQUIRED_VERSION_LAST 2) +- +- foreach (_Python_REQUIRED_VERSION_MAJOR IN LISTS _Python_REQUIRED_VERSIONS) +- set (Python_FIND_VERSION ${_Python_REQUIRED_VERSION_MAJOR}) +- include (${CMAKE_CURRENT_LIST_DIR}/FindPython/Support.cmake) +- if (Python_FOUND OR +- _Python_REQUIRED_VERSION_MAJOR EQUAL _Python_REQUIRED_VERSION_LAST) +- break() +- endif() +- # clean-up some CACHE variables to ensure look-up restart from scratch +- foreach (_Python_ITEM IN LISTS _Python_CACHED_VARS) +- unset (${_Python_ITEM} CACHE) +- endforeach() +- endforeach() +- +- unset (Python_FIND_VERSION) +- +- set (Python_FIND_QUIETLY ${_Python_QUIETLY}) +- set (Python_FIND_REQUIRED ${_Python_REQUIRED}) +- if (Python_FIND_REQUIRED OR NOT Python_FIND_QUIETLY) +- # call again validation command to get "Found" or error message +- find_package_handle_standard_args (Python HANDLE_COMPONENTS +- REQUIRED_VARS ${_Python_REQUIRED_VARS} +- VERSION_VAR Python_VERSION) +- endif() +-endif() +- +-if (COMMAND __Python_add_library) +- macro (Python_add_library) +- __Python_add_library (Python ${ARGV}) +- endmacro() +-endif() +- +-unset (_PYTHON_PREFIX) +diff --git a/cmake/cython/python/FindPython/Support.cmake b/cmake/cython/python/FindPython/Support.cmake +deleted file mode 100644 +index 82f0493..0000000 +--- a/cmake/cython/python/FindPython/Support.cmake ++++ /dev/null +@@ -1,1324 +0,0 @@ +-# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +-# file Copyright.txt or https://cmake.org/licensing for details. +- +-# +-# This file is a "template" file used by various FindPython modules. +-# +- +-cmake_policy (VERSION 3.5) +- +-# +-# Initial configuration +-# +-if (NOT DEFINED _PYTHON_PREFIX) +- message (FATAL_ERROR "FindPython: INTERNAL ERROR") +-endif() +-if (NOT DEFINED _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR) +- message (FATAL_ERROR "FindPython: INTERNAL ERROR") +-endif() +-if (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL 3) +- set(_${_PYTHON_PREFIX}_VERSIONS 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) +-elseif (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL 2) +- set(_${_PYTHON_PREFIX}_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) +-else() +- message (FATAL_ERROR "FindPython: INTERNAL ERROR") +-endif() +- +-get_property(_${_PYTHON_PREFIX}_CMAKE_ROLE GLOBAL PROPERTY CMAKE_ROLE) +- +- +-# +-# helper commands +-# +-macro (_PYTHON_DISPLAY_FAILURE _PYTHON_MSG) +- if (${_PYTHON_PREFIX}_FIND_REQUIRED) +- message (FATAL_ERROR "${_PYTHON_MSG}") +- else() +- if (NOT ${_PYTHON_PREFIX}_FIND_QUIETLY) +- message(STATUS "${_PYTHON_MSG}") +- endif () +- endif() +- +- set (${_PYTHON_PREFIX}_FOUND FALSE) +- string (TOUPPER "${_PYTHON_PREFIX}" _${_PYTHON_PREFIX}_UPPER_PREFIX) +- set (${_PYTHON_UPPER_PREFIX}_FOUND FALSE) +- return() +-endmacro() +- +- +-macro (_PYTHON_FIND_FRAMEWORKS) +- set (${_PYTHON_PREFIX}_FRAMEWORKS) +- if (APPLE) +- set (_pff_frameworks ${CMAKE_FRAMEWORK_PATH} +- $ENV{CMAKE_FRAMEWORK_PATH} +- ~/Library/Frameworks +- /usr/local/Frameworks +- ${CMAKE_SYSTEM_FRAMEWORK_PATH}) +- list (REMOVE_DUPLICATES _pff_frameworks) +- foreach (_pff_framework IN LISTS _pff_frameworks) +- if (EXISTS ${_pff_framework}/Python.framework) +- list (APPEND ${_PYTHON_PREFIX}_FRAMEWORKS ${_pff_framework}/Python.framework) +- endif() +- endforeach() +- unset (_pff_frameworks) +- unset (_pff_framework) +- endif() +-endmacro() +- +-function (_PYTHON_GET_FRAMEWORKS _PYTHON_PGF_FRAMEWORK_PATHS _PYTHON_VERSION) +- set (_PYTHON_FRAMEWORK_PATHS) +- foreach (_PYTHON_FRAMEWORK IN LISTS ${_PYTHON_PREFIX}_FRAMEWORKS) +- list (APPEND _PYTHON_FRAMEWORK_PATHS +- "${_PYTHON_FRAMEWORK}/Versions/${_PYTHON_VERSION}") +- endforeach() +- set (${_PYTHON_PGF_FRAMEWORK_PATHS} ${_PYTHON_FRAMEWORK_PATHS} PARENT_SCOPE) +-endfunction() +- +- +-function (_PYTHON_VALIDATE_INTERPRETER) +- if (NOT ${_PYTHON_PREFIX}_EXECUTABLE) +- return() +- endif() +- +- if (ARGC EQUAL 1) +- set (expected_version ${ARGV0}) +- else() +- unset (expected_version) +- endif() +- +- get_filename_component (python_name "${${_PYTHON_PREFIX}_EXECUTABLE}" NAME) +- +- if (expected_version AND NOT python_name STREQUAL "python${expected_version}${CMAKE_EXECUTABLE_SUFFIX}") +- # executable found must have a specific version +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c +- "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))" +- RESULT_VARIABLE result +- OUTPUT_VARIABLE version +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (result OR NOT version EQUAL expected_version) +- # interpreter not usable or has wrong major version +- set (${_PYTHON_PREFIX}_EXECUTABLE ${_PYTHON_PREFIX}_EXECUTABLE-NOTFOUND CACHE INTERNAL "" FORCE) +- return() +- endif() +- else() +- if (NOT python_name STREQUAL "python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR}${CMAKE_EXECUTABLE_SUFFIX}") +- # executable found do not have version in name +- # ensure major version is OK +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c +- "import sys; sys.stdout.write(str(sys.version_info[0]))" +- RESULT_VARIABLE result +- OUTPUT_VARIABLE version +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (result OR NOT version EQUAL _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR) +- # interpreter not usable or has wrong major version +- set (${_PYTHON_PREFIX}_EXECUTABLE ${_PYTHON_PREFIX}_EXECUTABLE-NOTFOUND CACHE INTERNAL "" FORCE) +- return() +- endif() +- endif() +- endif() +- +- if (CMAKE_SIZEOF_VOID_P AND "Development" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS +- AND NOT CMAKE_CROSSCOMPILING) +- # In this case, interpreter must have same architecture as environment +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c +- "import sys, struct; sys.stdout.write(str(struct.calcsize(\"P\")))" +- RESULT_VARIABLE result +- OUTPUT_VARIABLE size +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (result OR NOT size EQUAL CMAKE_SIZEOF_VOID_P) +- # interpreter not usable or has wrong architecture +- set (${_PYTHON_PREFIX}_EXECUTABLE ${_PYTHON_PREFIX}_EXECUTABLE-NOTFOUND CACHE INTERNAL "" FORCE) +- return() +- endif() +- endif() +-endfunction() +- +- +-function (_PYTHON_VALIDATE_COMPILER expected_version) +- if (NOT ${_PYTHON_PREFIX}_COMPILER) +- return() +- endif() +- +- # retrieve python environment version from compiler +- set (working_dir "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/PythonCompilerVersion.dir") +- file (WRITE "${working_dir}/version.py" "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))\n") +- execute_process (COMMAND "${${_PYTHON_PREFIX}_COMPILER}" /target:exe /embed "${working_dir}/version.py" +- WORKING_DIRECTORY "${working_dir}" +- OUTPUT_QUIET +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- execute_process (COMMAND "${working_dir}/version" +- WORKING_DIRECTORY "${working_dir}" +- RESULT_VARIABLE result +- OUTPUT_VARIABLE version +- ERROR_QUIET) +- file (REMOVE_RECURSE "${_${_PYTHON_PREFIX}_VERSION_DIR}") +- +- if (result OR NOT version EQUAL expected_version) +- # Compiler not usable or has wrong major version +- set (${_PYTHON_PREFIX}_COMPILER ${_PYTHON_PREFIX}_COMPILER-NOTFOUND CACHE INTERNAL "" FORCE) +- endif() +-endfunction() +- +- +-function (_PYTHON_FIND_RUNTIME_LIBRARY _PYTHON_LIB) +- string (REPLACE "_RUNTIME" "" _PYTHON_LIB "${_PYTHON_LIB}") +- # look at runtime part on systems supporting it +- if (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR +- (CMAKE_SYSTEM_NAME MATCHES "MSYS|CYGWIN" +- AND ${_PYTHON_LIB} MATCHES "${CMAKE_IMPORT_LIBRARY_SUFFIX}$")) +- set (CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_SHARED_LIBRARY_SUFFIX}) +- # MSYS has a special syntax for runtime libraries +- if (CMAKE_SYSTEM_NAME MATCHES "MSYS") +- list (APPEND CMAKE_FIND_LIBRARY_PREFIXES "msys-") +- endif() +- find_library (${ARGV}) +- endif() +-endfunction() +- +- +-function (_PYTHON_SET_LIBRARY_DIRS _PYTHON_SLD_RESULT) +- unset (_PYTHON_DIRS) +- set (_PYTHON_LIBS ${ARGV}) +- list (REMOVE_AT _PYTHON_LIBS 0) +- foreach (_PYTHON_LIB IN LISTS _PYTHON_LIBS) +- if (${_PYTHON_LIB}) +- get_filename_component (_PYTHON_DIR "${${_PYTHON_LIB}}" DIRECTORY) +- list (APPEND _PYTHON_DIRS "${_PYTHON_DIR}") +- endif() +- endforeach() +- if (_PYTHON_DIRS) +- list (REMOVE_DUPLICATES _PYTHON_DIRS) +- endif() +- set (${_PYTHON_SLD_RESULT} ${_PYTHON_DIRS} PARENT_SCOPE) +-endfunction() +- +- +-# If major version is specified, it must be the same as internal major version +-if (DEFINED ${_PYTHON_PREFIX}_FIND_VERSION_MAJOR +- AND NOT ${_PYTHON_PREFIX}_FIND_VERSION_MAJOR VERSION_EQUAL _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR) +- _python_display_failure ("Could NOT find ${_PYTHON_PREFIX}: Wrong major version specified is \"${${_PYTHON_PREFIX}_FIND_VERSION_MAJOR}\", but expected major version is \"${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR}\"") +-endif() +- +- +-# handle components +-if (NOT ${_PYTHON_PREFIX}_FIND_COMPONENTS) +- set (${_PYTHON_PREFIX}_FIND_COMPONENTS Interpreter) +- set (${_PYTHON_PREFIX}_FIND_REQUIRED_Interpreter TRUE) +-endif() +-if ("NumPy" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS) +- list (APPEND ${_PYTHON_PREFIX}_FIND_COMPONENTS "Interpreter" "Development") +- list (REMOVE_DUPLICATES ${_PYTHON_PREFIX}_FIND_COMPONENTS) +-endif() +-foreach (_${_PYTHON_PREFIX}_COMPONENT IN LISTS ${_PYTHON_PREFIX}_FIND_COMPONENTS) +- set (${_PYTHON_PREFIX}_${_${_PYTHON_PREFIX}_COMPONENT}_FOUND FALSE) +-endforeach() +-unset (_${_PYTHON_PREFIX}_FIND_VERSIONS) +- +-# Set versions to search +-## default: search any version +-set (_${_PYTHON_PREFIX}_FIND_VERSIONS ${_${_PYTHON_PREFIX}_VERSIONS}) +- +-if (${_PYTHON_PREFIX}_FIND_VERSION_COUNT GREATER 1) +- if (${_PYTHON_PREFIX}_FIND_VERSION_EXACT) +- set (_${_PYTHON_PREFIX}_FIND_VERSIONS ${${_PYTHON_PREFIX}_FIND_VERSION_MAJOR}.${${_PYTHON_PREFIX}_FIND_VERSION_MINOR}) +- else() +- unset (_${_PYTHON_PREFIX}_FIND_VERSIONS) +- # add all compatible versions +- foreach (_${_PYTHON_PREFIX}_VERSION IN LISTS _${_PYTHON_PREFIX}_VERSIONS) +- if (_${_PYTHON_PREFIX}_VERSION VERSION_GREATER_EQUAL ${_PYTHON_PREFIX}_FIND_VERSION) +- list (APPEND _${_PYTHON_PREFIX}_FIND_VERSIONS ${_${_PYTHON_PREFIX}_VERSION}) +- endif() +- endforeach() +- endif() +-endif() +- +-# Python and Anaconda distributions: define which architectures can be used +-if (CMAKE_SIZEOF_VOID_P) +- # In this case, search only for 64bit or 32bit +- math (EXPR _${_PYTHON_PREFIX}_ARCH "${CMAKE_SIZEOF_VOID_P} * 8") +- set (_${_PYTHON_PREFIX}_ARCH2 ${_${_PYTHON_PREFIX}_ARCH}) +-else() +- # architecture unknown, search for both 64bit and 32bit +- set (_${_PYTHON_PREFIX}_ARCH 64) +- set (_${_PYTHON_PREFIX}_ARCH2 32) +-endif() +- +-# IronPython support +-if (CMAKE_SIZEOF_VOID_P) +- # In this case, search only for 64bit or 32bit +- math (EXPR _${_PYTHON_PREFIX}_ARCH "${CMAKE_SIZEOF_VOID_P} * 8") +- set (_${_PYTHON_PREFIX}_IRON_PYTHON_NAMES ipy${_${_PYTHON_PREFIX}_ARCH} ipy) +-else() +- # architecture unknown, search for natural interpreter +- set (_${_PYTHON_PREFIX}_IRON_PYTHON_NAMES ipy) +-endif() +-set (_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES net45 net40) +- +-# Apple frameworks handling +-_python_find_frameworks () +- +-# Save CMAKE_FIND_APPBUNDLE +-if (DEFINED CMAKE_FIND_APPBUNDLE) +- set (_${_PYTHON_PREFIX}_CMAKE_FIND_APPBUNDLE ${CMAKE_FIND_APPBUNDLE}) +-else() +- unset (_${_PYTHON_PREFIX}_CMAKE_FIND_APPBUNDLE) +-endif() +-# To avoid app bundle lookup +-set (CMAKE_FIND_APPBUNDLE "NEVER") +- +-# Save CMAKE_FIND_FRAMEWORK +-if (DEFINED CMAKE_FIND_FRAMEWORK) +- set (_${_PYTHON_PREFIX}_CMAKE_FIND_FRAMEWORK ${CMAKE_FIND_FRAMEWORK}) +- if (CMAKE_FIND_FRAMEWORK STREQUAL "ONLY") +- message (AUTHOR_WARNING "Find${_PYTHON_PREFIX}: CMAKE_FIND_FRAMEWORK: 'ONLY' value is not supported. 'FIRST' will be used instead.") +- set (_${_PYTHON_PREFIX}_FIND_FRAMEWORK "FIRST") +- else() +- set (_${_PYTHON_PREFIX}_FIND_FRAMEWORK ${CMAKE_FIND_FRAMEWORK}) +- endif() +-else() +- unset (_${_PYTHON_PREFIX}_CMAKE_FIND_FRAMEWORK) +- set (_${_PYTHON_PREFIX}_FIND_FRAMEWORK "FIRST") +-endif() +-# To avoid framework lookup +-set (CMAKE_FIND_FRAMEWORK "NEVER") +- +-# Windows Registry handling +-if (DEFINED ${_PYTHON_PREFIX}_FIND_REGISTRY) +- if (NOT ${_PYTHON_PREFIX}_FIND_REGISTRY MATCHES "^(FIRST|LAST|NEVER)$") +- message (AUTHOR_WARNING "Find${_PYTHON_PREFIX}: ${${_PYTHON_PREFIX}_FIND_REGISTRY}: invalid value for '${_PYTHON_PREFIX}_FIND_REGISTRY'. 'FIRST', 'LAST' or 'NEVER' expected.") +- set (_${_PYTHON_PREFIX}_FIND_REGISTRY "FIRST") +- else() +- set (_${_PYTHON_PREFIX}_FIND_REGISTRY ${${_PYTHON_PREFIX}_FIND_REGISTRY}) +- endif() +-else() +- set (_${_PYTHON_PREFIX}_FIND_REGISTRY "FIRST") +-endif() +- +- +-unset (_${_PYTHON_PREFIX}_REQUIRED_VARS) +-unset (_${_PYTHON_PREFIX}_CACHED_VARS) +- +- +-# first step, search for the interpreter +-if ("Interpreter" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS) +- list (APPEND _${_PYTHON_PREFIX}_CACHED_VARS ${_PYTHON_PREFIX}_EXECUTABLE) +- if (${_PYTHON_PREFIX}_FIND_REQUIRED_Interpreter) +- list (APPEND _${_PYTHON_PREFIX}_REQUIRED_VARS ${_PYTHON_PREFIX}_EXECUTABLE) +- endif() +- +- set (_${_PYTHON_PREFIX}_HINTS "${${_PYTHON_PREFIX}_ROOT_DIR}" ENV ${_PYTHON_PREFIX}_ROOT_DIR) +- +- # look-up for various versions and locations +- foreach (_${_PYTHON_PREFIX}_VERSION IN LISTS _${_PYTHON_PREFIX}_FIND_VERSIONS) +- string (REPLACE "." "" _${_PYTHON_PREFIX}_VERSION_NO_DOTS ${_${_PYTHON_PREFIX}_VERSION}) +- +- _python_get_frameworks (_${_PYTHON_PREFIX}_FRAMEWORK_PATHS ${_${_PYTHON_PREFIX}_VERSION}) +- +- # Apple frameworks handling +- if (APPLE AND _${_PYTHON_PREFIX}_FIND_FRAMEWORK STREQUAL "FIRST") +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_VERSION} +- python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- NAMES_PER_DIR +- PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS} +- PATH_SUFFIXES bin +- NO_CMAKE_PATH +- NO_CMAKE_ENVIRONMENT_PATH +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- # Windows registry +- if (WIN32 AND _${_PYTHON_PREFIX}_FIND_REGISTRY STREQUAL "FIRST") +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_VERSION} +- python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- python +- ${_${_PYTHON_PREFIX}_IRON_PYTHON_NAMES} +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATHS [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\IronPython\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- PATH_SUFFIXES bin ${_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES} +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- # try using HINTS +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_VERSION} +- python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- python +- ${_${_PYTHON_PREFIX}_IRON_PYTHON_NAMES} +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES bin ${_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES} +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- # try using standard paths. +- if (WIN32) +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_VERSION} +- python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- python +- ${_${_PYTHON_PREFIX}_IRON_PYTHON_NAMES} +- NAMES_PER_DIR) +- else() +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_VERSION} +- python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- NAMES_PER_DIR) +- endif() +- +- # Apple frameworks handling +- if (APPLE AND _${_PYTHON_PREFIX}_FIND_FRAMEWORK STREQUAL "LAST") +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_VERSION} +- python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- NAMES_PER_DIR +- PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS} +- PATH_SUFFIXES bin +- NO_DEFAULT_PATH) +- endif() +- +- # Windows registry +- if (WIN32 AND _${_PYTHON_PREFIX}_FIND_REGISTRY STREQUAL "LAST") +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_VERSION} +- python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- python +- ${_${_PYTHON_PREFIX}_IRON_PYTHON_NAMES} +- NAMES_PER_DIR +- PATHS [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\IronPython\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- PATH_SUFFIXES bin ${_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES} +- NO_DEFAULT_PATH) +- endif() +- +- _python_validate_interpreter (${_${_PYTHON_PREFIX}_VERSION}) +- if (${_PYTHON_PREFIX}_EXECUTABLE) +- break() +- endif() +- endforeach() +- +- if (NOT ${_PYTHON_PREFIX}_EXECUTABLE) +- # No specific version found. Retry with generic names +- # try using HINTS +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- python +- ${_${_PYTHON_PREFIX}_IRON_PYTHON_NAMES} +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES bin ${_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES} +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- # try using standard paths. +- # NAMES_PER_DIR is not defined on purpose to have a chance to find +- # expected version. +- # For example, typical systems have 'python' for version 2.* and 'python3' +- # for version 3.*. So looking for names per dir will find, potentially, +- # systematically 'python' (i.e. version 2) even if version 3 is searched. +- find_program (${_PYTHON_PREFIX}_EXECUTABLE +- NAMES python${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR} +- python +- ${_${_PYTHON_PREFIX}_IRON_PYTHON_NAMES}) +- +- _python_validate_interpreter () +- endif() +- +- # retrieve exact version of executable found +- if (${_PYTHON_PREFIX}_EXECUTABLE) +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c +- "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:3]]))" +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE ${_PYTHON_PREFIX}_VERSION +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- string (REGEX MATCHALL "[0-9]+" _${_PYTHON_PREFIX}_VERSIONS "${${_PYTHON_PREFIX}_VERSION}") +- list (GET _${_PYTHON_PREFIX}_VERSIONS 0 ${_PYTHON_PREFIX}_VERSION_MAJOR) +- list (GET _${_PYTHON_PREFIX}_VERSIONS 1 ${_PYTHON_PREFIX}_VERSION_MINOR) +- list (GET _${_PYTHON_PREFIX}_VERSIONS 2 ${_PYTHON_PREFIX}_VERSION_PATCH) +- else() +- # Interpreter is not usable +- set (${_PYTHON_PREFIX}_EXECUTABLE ${_PYTHON_PREFIX}_EXECUTABLE-NOTFOUND CACHE INTERNAL "" FORCE) +- unset (${_PYTHON_PREFIX}_VERSION) +- endif() +- endif() +- +- if (${_PYTHON_PREFIX}_EXECUTABLE +- AND ${_PYTHON_PREFIX}_VERSION_MAJOR VERSION_EQUAL _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR) +- set (${_PYTHON_PREFIX}_Interpreter_FOUND TRUE) +- # Use interpreter version for future searches to ensure consistency +- set (_${_PYTHON_PREFIX}_FIND_VERSIONS ${${_PYTHON_PREFIX}_VERSION_MAJOR}.${${_PYTHON_PREFIX}_VERSION_MINOR}) +- endif() +- +- if (${_PYTHON_PREFIX}_Interpreter_FOUND) +- if (NOT CMAKE_SIZEOF_VOID_P) +- # determine interpreter architecture +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c "import sys; print(sys.maxsize > 2**32)" +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE ${_PYTHON_PREFIX}_IS64BIT +- ERROR_VARIABLE ${_PYTHON_PREFIX}_IS64BIT) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- if (${_PYTHON_PREFIX}_IS64BIT) +- set (_${_PYTHON_PREFIX}_ARCH 64) +- set (_${_PYTHON_PREFIX}_ARCH2 64) +- else() +- set (_${_PYTHON_PREFIX}_ARCH 32) +- set (_${_PYTHON_PREFIX}_ARCH2 32) +- endif() +- endif() +- endif() +- +- # retrieve interpreter identity +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -V +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE ${_PYTHON_PREFIX}_INTERPRETER_ID +- ERROR_VARIABLE ${_PYTHON_PREFIX}_INTERPRETER_ID) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- if (${_PYTHON_PREFIX}_INTERPRETER_ID MATCHES "Anaconda") +- set (${_PYTHON_PREFIX}_INTERPRETER_ID "Anaconda") +- elseif (${_PYTHON_PREFIX}_INTERPRETER_ID MATCHES "Enthought") +- set (${_PYTHON_PREFIX}_INTERPRETER_ID "Canopy") +- else() +- string (REGEX REPLACE "^([^ ]+).*" "\\1" ${_PYTHON_PREFIX}_INTERPRETER_ID "${${_PYTHON_PREFIX}_INTERPRETER_ID}") +- if (${_PYTHON_PREFIX}_INTERPRETER_ID STREQUAL "Python") +- # try to get a more precise ID +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c "import sys; print(sys.copyright)" +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE ${_PYTHON_PREFIX}_COPYRIGHT +- ERROR_QUIET) +- if (${_PYTHON_PREFIX}_COPYRIGHT MATCHES "ActiveState") +- set (${_PYTHON_PREFIX}_INTERPRETER_ID "ActivePython") +- endif() +- endif() +- endif() +- else() +- set (${_PYTHON_PREFIX}_INTERPRETER_ID Python) +- endif() +- else() +- unset (${_PYTHON_PREFIX}_INTERPRETER_ID) +- endif() +- +- # retrieve various package installation directories +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c "import sys; from distutils import sysconfig;sys.stdout.write(';'.join([sysconfig.get_python_lib(plat_specific=False,standard_lib=True),sysconfig.get_python_lib(plat_specific=True,standard_lib=True),sysconfig.get_python_lib(plat_specific=False,standard_lib=False),sysconfig.get_python_lib(plat_specific=True,standard_lib=False)]))" +- +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_LIBPATHS +- ERROR_QUIET) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- list (GET _${_PYTHON_PREFIX}_LIBPATHS 0 ${_PYTHON_PREFIX}_STDLIB) +- list (GET _${_PYTHON_PREFIX}_LIBPATHS 1 ${_PYTHON_PREFIX}_STDARCH) +- list (GET _${_PYTHON_PREFIX}_LIBPATHS 2 ${_PYTHON_PREFIX}_SITELIB) +- list (GET _${_PYTHON_PREFIX}_LIBPATHS 3 ${_PYTHON_PREFIX}_SITEARCH) +- else() +- unset (${_PYTHON_PREFIX}_STDLIB) +- unset (${_PYTHON_PREFIX}_STDARCH) +- unset (${_PYTHON_PREFIX}_SITELIB) +- unset (${_PYTHON_PREFIX}_SITEARCH) +- endif() +- +- mark_as_advanced (${_PYTHON_PREFIX}_EXECUTABLE) +-endif() +- +- +-# second step, search for compiler (IronPython) +-if ("Compiler" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS) +- list (APPEND _${_PYTHON_PREFIX}_CACHED_VARS ${_PYTHON_PREFIX}_COMPILER) +- if (${_PYTHON_PREFIX}_FIND_REQUIRED_Compiler) +- list (APPEND _${_PYTHON_PREFIX}_REQUIRED_VARS ${_PYTHON_PREFIX}_COMPILER) +- endif() +- +- # IronPython specific artifacts +- # If IronPython interpreter is found, use its path +- unset (_${_PYTHON_PREFIX}_IRON_ROOT) +- if (${_PYTHON_PREFIX}_Interpreter_FOUND AND ${_PYTHON_PREFIX}_INTERPRETER_ID STREQUAL "IronPython") +- get_filename_component (_${_PYTHON_PREFIX}_IRON_ROOT "${${_PYTHON_PREFIX}_EXECUTABLE}" DIRECTORY) +- endif() +- +- # try using root dir and registry +- foreach (_${_PYTHON_PREFIX}_VERSION IN LISTS _${_PYTHON_PREFIX}_FIND_VERSIONS) +- if (_${_PYTHON_PREFIX}_FIND_REGISTRY STREQUAL "FIRST") +- find_program (${_PYTHON_PREFIX}_COMPILER +- NAMES ipyc +- HINTS ${_${_PYTHON_PREFIX}_IRON_ROOT} ${_${_PYTHON_PREFIX}_HINTS} +- PATHS [HKEY_LOCAL_MACHINE\\SOFTWARE\\IronPython\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- PATH_SUFFIXES ${_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES} +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- find_program (${_PYTHON_PREFIX}_COMPILER +- NAMES ipyc +- HINTS ${_${_PYTHON_PREFIX}_IRON_ROOT} ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES ${_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES} +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- +- if (_${_PYTHON_PREFIX}_FIND_REGISTRY STREQUAL "LAST") +- find_program (${_PYTHON_PREFIX}_COMPILER +- NAMES ipyc +- PATHS [HKEY_LOCAL_MACHINE\\SOFTWARE\\IronPython\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- PATH_SUFFIXES ${_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES} +- NO_DEFAULT_PATH) +- endif() +- +- _python_validate_compiler (${_${_PYTHON_PREFIX}_VERSION}) +- if (${_PYTHON_PREFIX}_COMPILER) +- break() +- endif() +- endforeach() +- +- # no specific version found, re-try in standard paths +- find_program (${_PYTHON_PREFIX}_COMPILER +- NAMES ipyc +- HINTS ${_${_PYTHON_PREFIX}_IRON_ROOT} ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES ${_${_PYTHON_PREFIX}_IRON_PYTHON_PATH_SUFFIXES}) +- +- if (${_PYTHON_PREFIX}_COMPILER) +- # retrieve python environment version from compiler +- set (_${_PYTHON_PREFIX}_VERSION_DIR "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/PythonCompilerVersion.dir") +- file (WRITE "${_${_PYTHON_PREFIX}_VERSION_DIR}/version.py" "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:3]]))\n") +- execute_process (COMMAND "${${_PYTHON_PREFIX}_COMPILER}" /target:exe /embed "${_${_PYTHON_PREFIX}_VERSION_DIR}/version.py" +- WORKING_DIRECTORY "${_${_PYTHON_PREFIX}_VERSION_DIR}" +- OUTPUT_QUIET +- ERROR_QUIET) +- execute_process (COMMAND "${_${_PYTHON_PREFIX}_VERSION_DIR}/version" +- WORKING_DIRECTORY "${_${_PYTHON_PREFIX}_VERSION_DIR}" +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_VERSION +- ERROR_QUIET) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- string (REGEX MATCHALL "[0-9]+" _${_PYTHON_PREFIX}_VERSIONS "${_${_PYTHON_PREFIX}_VERSION}") +- list (GET _${_PYTHON_PREFIX}_VERSIONS 0 _${_PYTHON_PREFIX}_VERSION_MAJOR) +- list (GET _${_PYTHON_PREFIX}_VERSIONS 1 _${_PYTHON_PREFIX}_VERSION_MINOR) +- list (GET _${_PYTHON_PREFIX}_VERSIONS 2 _${_PYTHON_PREFIX}_VERSION_PATCH) +- +- if (NOT ${_PYTHON_PREFIX}_Interpreter_FOUND) +- # set public version information +- set (${_PYTHON_PREFIX}_VERSION ${_${_PYTHON_PREFIX}_VERSION}) +- set (${_PYTHON_PREFIX}_VERSION_MAJOR ${_${_PYTHON_PREFIX}_VERSION_MAJOR}) +- set (${_PYTHON_PREFIX}_VERSION_MINOR ${_${_PYTHON_PREFIX}_VERSION_MINOR}) +- set (${_PYTHON_PREFIX}_VERSION_PATCH ${_${_PYTHON_PREFIX}_VERSION_PATCH}) +- endif() +- else() +- # compiler not usable +- set (${_PYTHON_PREFIX}_COMPILER ${_PYTHON_PREFIX}_COMPILER-NOTFOUND CACHE INTERNAL "" FORCE) +- endif() +- file (REMOVE_RECURSE "${_${_PYTHON_PREFIX}_VERSION_DIR}") +- endif() +- +- if (${_PYTHON_PREFIX}_COMPILER) +- if (${_PYTHON_PREFIX}_Interpreter_FOUND) +- # Compiler must be compatible with interpreter +- if (${_${_PYTHON_PREFIX}_VERSION_MAJOR}.${_${_PYTHON_PREFIX}_VERSION_MINOR} VERSION_EQUAL ${${_PYTHON_PREFIX}_VERSION_MAJOR}.${${_PYTHON_PREFIX}_VERSION_MINOR}) +- set (${_PYTHON_PREFIX}_Compiler_FOUND TRUE) +- endif() +- elseif (${_PYTHON_PREFIX}_VERSION_MAJOR VERSION_EQUAL _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR) +- set (${_PYTHON_PREFIX}_Compiler_FOUND TRUE) +- # Use compiler version for future searches to ensure consistency +- set (_${_PYTHON_PREFIX}_FIND_VERSIONS ${${_PYTHON_PREFIX}_VERSION_MAJOR}.${${_PYTHON_PREFIX}_VERSION_MINOR}) +- endif() +- endif() +- +- if (${_PYTHON_PREFIX}_Compiler_FOUND) +- set (${_PYTHON_PREFIX}_COMPILER_ID IronPython) +- else() +- unset (${_PYTHON_PREFIX}_COMPILER_ID) +- endif() +- +- mark_as_advanced (${_PYTHON_PREFIX}_COMPILER) +-endif() +- +- +-# third step, search for the development artifacts +-## Development environment is not compatible with IronPython interpreter +-if ("Development" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS +- AND NOT ${_PYTHON_PREFIX}_INTERPRETER_ID STREQUAL "IronPython") +- list (APPEND _${_PYTHON_PREFIX}_CACHED_VARS ${_PYTHON_PREFIX}_LIBRARY +- ${_PYTHON_PREFIX}_LIBRARY_RELEASE +- ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE +- ${_PYTHON_PREFIX}_LIBRARY_DEBUG +- ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG +- ${_PYTHON_PREFIX}_INCLUDE_DIR) +- if (${_PYTHON_PREFIX}_FIND_REQUIRED_Development) +- list (APPEND _${_PYTHON_PREFIX}_REQUIRED_VARS ${_PYTHON_PREFIX}_LIBRARY +- ${_PYTHON_PREFIX}_INCLUDE_DIR) +- endif() +- +- # Support preference of static libs by adjusting CMAKE_FIND_LIBRARY_SUFFIXES +- unset (_${_PYTHON_PREFIX}_CMAKE_FIND_LIBRARY_SUFFIXES) +- if (DEFINED ${_PYTHON_PREFIX}_USE_STATIC_LIBS AND NOT WIN32) +- set(_${_PYTHON_PREFIX}_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) +- if(${_PYTHON_PREFIX}_USE_STATIC_LIBS) +- set (CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX}) +- else() +- list (REMOVE_ITEM CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_STATIC_LIBRARY_SUFFIX}) +- endif() +- else() +- endif() +- +- # if python interpreter is found, use its location and version to ensure consistency +- # between interpreter and development environment +- unset (_${_PYTHON_PREFIX}_PREFIX) +- if (${_PYTHON_PREFIX}_Interpreter_FOUND) +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c +- "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.PREFIX)" +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_PREFIX +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (_${_PYTHON_PREFIX}_RESULT) +- unset (_${_PYTHON_PREFIX}_PREFIX) +- endif() +- endif() +- set (_${_PYTHON_PREFIX}_HINTS "${_${_PYTHON_PREFIX}_PREFIX}" "${${_PYTHON_PREFIX}_ROOT_DIR}" ENV ${_PYTHON_PREFIX}_ROOT_DIR) +- +- foreach (_${_PYTHON_PREFIX}_VERSION IN LISTS _${_PYTHON_PREFIX}_FIND_VERSIONS) +- string (REPLACE "." "" _${_PYTHON_PREFIX}_VERSION_NO_DOTS ${_${_PYTHON_PREFIX}_VERSION}) +- +- # try to use pythonX.Y-config tool +- set (_${_PYTHON_PREFIX}_CONFIG_NAMES) +- if (DEFINED CMAKE_LIBRARY_ARCHITECTURE) +- set (_${_PYTHON_PREFIX}_CONFIG_NAMES "${CMAKE_LIBRARY_ARCHITECTURE}-python${_${_PYTHON_PREFIX}_VERSION}-config") +- endif() +- list (APPEND _${_PYTHON_PREFIX}_CONFIG_NAMES "python${_${_PYTHON_PREFIX}_VERSION}-config") +- find_program (_${_PYTHON_PREFIX}_CONFIG +- NAMES ${_${_PYTHON_PREFIX}_CONFIG_NAMES} +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES bin) +- unset (_${_PYTHON_PREFIX}_CONFIG_NAMES) +- +- if (NOT _${_PYTHON_PREFIX}_CONFIG) +- continue() +- endif() +- if (DEFINED CMAKE_LIBRARY_ARCHITECTURE) +- # check that config tool match library architecture +- execute_process (COMMAND "${_${_PYTHON_PREFIX}_CONFIG}" --configdir +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_CONFIGDIR +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (_${_PYTHON_PREFIX}_RESULT) +- unset (_${_PYTHON_PREFIX}_CONFIG CACHE) +- continue() +- endif() +- string(FIND "${_${_PYTHON_PREFIX}_CONFIGDIR}" "${CMAKE_LIBRARY_ARCHITECTURE}" _${_PYTHON_PREFIX}_RESULT) +- if (_${_PYTHON_PREFIX}_RESULT EQUAL -1) +- unset (_${_PYTHON_PREFIX}_CONFIG CACHE) +- continue() +- endif() +- endif() +- +- # retrieve root install directory +- execute_process (COMMAND "${_${_PYTHON_PREFIX}_CONFIG}" --prefix +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_PREFIX +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (_${_PYTHON_PREFIX}_RESULT) +- # python-config is not usable +- unset (_${_PYTHON_PREFIX}_CONFIG CACHE) +- continue() +- endif() +- set (_${_PYTHON_PREFIX}_HINTS "${_${_PYTHON_PREFIX}_PREFIX}" "${${_PYTHON_PREFIX}_ROOT_DIR}" ENV ${_PYTHON_PREFIX}_ROOT_DIR) +- +- # retrieve library +- execute_process (COMMAND "${_${_PYTHON_PREFIX}_CONFIG}" --ldflags +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_FLAGS +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- # retrieve library directory +- string (REGEX MATCHALL "-L[^ ]+" _${_PYTHON_PREFIX}_LIB_DIRS "${_${_PYTHON_PREFIX}_FLAGS}") +- string (REPLACE "-L" "" _${_PYTHON_PREFIX}_LIB_DIRS "${_${_PYTHON_PREFIX}_LIB_DIRS}") +- list (REMOVE_DUPLICATES _${_PYTHON_PREFIX}_LIB_DIRS) +- # retrieve library name +- string (REGEX MATCHALL "-lpython[^ ]+" _${_PYTHON_PREFIX}_LIB_NAMES "${_${_PYTHON_PREFIX}_FLAGS}") +- string (REPLACE "-l" "" _${_PYTHON_PREFIX}_LIB_NAMES "${_${_PYTHON_PREFIX}_LIB_NAMES}") +- list (REMOVE_DUPLICATES _${_PYTHON_PREFIX}_LIB_NAMES) +- +- find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE +- NAMES ${_${_PYTHON_PREFIX}_LIB_NAMES} +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} ${_${_PYTHON_PREFIX}_LIB_DIRS} +- PATH_SUFFIXES lib +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- # retrieve runtime library +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE) +- get_filename_component (_${_PYTHON_PREFIX}_PATH "${${_PYTHON_PREFIX}_LIBRARY_RELEASE}" DIRECTORY) +- get_filename_component (_${_PYTHON_PREFIX}_PATH2 "${_${_PYTHON_PREFIX}_PATH}" DIRECTORY) +- _python_find_runtime_library (${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE +- NAMES ${_${_PYTHON_PREFIX}_LIB_NAMES} +- NAMES_PER_DIR +- HINTS "${_${_PYTHON_PREFIX}_PATH}" "${_${_PYTHON_PREFIX}_PATH2}" ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES bin +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- endif() +- +- # retrieve include directory +- execute_process (COMMAND "${_${_PYTHON_PREFIX}_CONFIG}" --includes +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_FLAGS +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- # retrieve include directory +- string (REGEX MATCHALL "-I[^ ]+" _${_PYTHON_PREFIX}_INCLUDE_DIRS "${_${_PYTHON_PREFIX}_FLAGS}") +- string (REPLACE "-I" "" _${_PYTHON_PREFIX}_INCLUDE_DIRS "${_${_PYTHON_PREFIX}_INCLUDE_DIRS}") +- list (REMOVE_DUPLICATES _${_PYTHON_PREFIX}_INCLUDE_DIRS) +- +- find_path (${_PYTHON_PREFIX}_INCLUDE_DIR +- NAMES Python.h +- HINTS ${_${_PYTHON_PREFIX}_INCLUDE_DIRS} +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE AND ${_PYTHON_PREFIX}_INCLUDE_DIR) +- break() +- endif() +- endforeach() +- +- # Rely on HINTS and standard paths if config tool failed to locate artifacts +- if (NOT (${_PYTHON_PREFIX}_LIBRARY_RELEASE OR ${_PYTHON_PREFIX}_LIBRARY_DEBUG) OR NOT ${_PYTHON_PREFIX}_INCLUDE_DIR) +- foreach (_${_PYTHON_PREFIX}_VERSION IN LISTS _${_PYTHON_PREFIX}_FIND_VERSIONS) +- string (REPLACE "." "" _${_PYTHON_PREFIX}_VERSION_NO_DOTS ${_${_PYTHON_PREFIX}_VERSION}) +- +- _python_get_frameworks (_${_PYTHON_PREFIX}_FRAMEWORK_PATHS ${_${_PYTHON_PREFIX}_VERSION}) +- +- set (_${_PYTHON_PREFIX}_REGISTRY_PATHS +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_${_PYTHON_PREFIX}_VERSION}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\ContinuumAnalytics\\Anaconda${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}-${_${_PYTHON_PREFIX}_ARCH2}\\InstallPath]) +- +- if (APPLE AND _${_PYTHON_PREFIX}_FIND_FRAMEWORK STREQUAL "FIRST") +- find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS} +- python${_${_PYTHON_PREFIX}_VERSION}mu +- python${_${_PYTHON_PREFIX}_VERSION}m +- python${_${_PYTHON_PREFIX}_VERSION}u +- python${_${_PYTHON_PREFIX}_VERSION} +- NAMES_PER_DIR +- PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS} +- PATH_SUFFIXES lib/${CMAKE_LIBRARY_ARCHITECTURE} lib libs +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}mu +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}m +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}u +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION} +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config +- NO_CMAKE_PATH +- NO_CMAKE_ENVIRONMENT_PATH +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- if (WIN32 AND _${_PYTHON_PREFIX}_FIND_REGISTRY STREQUAL "FIRST") +- find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS} +- python${_${_PYTHON_PREFIX}_VERSION}mu +- python${_${_PYTHON_PREFIX}_VERSION}m +- python${_${_PYTHON_PREFIX}_VERSION}u +- python${_${_PYTHON_PREFIX}_VERSION} +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATHS ${_${_PYTHON_PREFIX}_REGISTRY_PATHS} +- PATH_SUFFIXES lib/${CMAKE_LIBRARY_ARCHITECTURE} lib libs +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}mu +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}m +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}u +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION} +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- # search in HINTS locations +- find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS} +- python${_${_PYTHON_PREFIX}_VERSION}mu +- python${_${_PYTHON_PREFIX}_VERSION}m +- python${_${_PYTHON_PREFIX}_VERSION}u +- python${_${_PYTHON_PREFIX}_VERSION} +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES lib/${CMAKE_LIBRARY_ARCHITECTURE} lib libs +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}mu +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}m +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}u +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION} +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- +- if (APPLE AND _${_PYTHON_PREFIX}_FIND_FRAMEWORK STREQUAL "LAST") +- set (__${_PYTHON_PREFIX}_FRAMEWORK_PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS}) +- else() +- unset (__${_PYTHON_PREFIX}_FRAMEWORK_PATHS) +- endif() +- +- if (WIN32 AND _${_PYTHON_PREFIX}_FIND_REGISTRY STREQUAL "LAST") +- set (__${_PYTHON_PREFIX}_REGISTRY_PATHS ${_${_PYTHON_PREFIX}_REGISTRY_PATHS}) +- else() +- unset (__${_PYTHON_PREFIX}_REGISTRY_PATHS) +- endif() +- +- # search in all default paths +- find_library (${_PYTHON_PREFIX}_LIBRARY_RELEASE +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS} +- python${_${_PYTHON_PREFIX}_VERSION}mu +- python${_${_PYTHON_PREFIX}_VERSION}m +- python${_${_PYTHON_PREFIX}_VERSION}u +- python${_${_PYTHON_PREFIX}_VERSION} +- NAMES_PER_DIR +- PATHS ${__${_PYTHON_PREFIX}_FRAMEWORK_PATHS} +- ${__${_PYTHON_PREFIX}_REGISTRY_PATHS} +- PATH_SUFFIXES lib/${CMAKE_LIBRARY_ARCHITECTURE} lib libs +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}mu +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}m +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION}u +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config-${_${_PYTHON_PREFIX}_VERSION} +- lib/python${_${_PYTHON_PREFIX}_VERSION}/config) +- # retrieve runtime library +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE) +- get_filename_component (_${_PYTHON_PREFIX}_PATH "${${_PYTHON_PREFIX}_LIBRARY_RELEASE}" DIRECTORY) +- get_filename_component (_${_PYTHON_PREFIX}_PATH2 "${_${_PYTHON_PREFIX}_PATH}" DIRECTORY) +- _python_find_runtime_library (${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS} +- python${_${_PYTHON_PREFIX}_VERSION}mu +- python${_${_PYTHON_PREFIX}_VERSION}m +- python${_${_PYTHON_PREFIX}_VERSION}u +- python${_${_PYTHON_PREFIX}_VERSION} +- NAMES_PER_DIR +- HINTS "${_${_PYTHON_PREFIX}_PATH}" "${_${_PYTHON_PREFIX}_PATH2}" ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES bin) +- endif() +- +- if (WIN32) +- # search for debug library +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE) +- # use library location as a hint +- get_filename_component (_${_PYTHON_PREFIX}_PATH "${${_PYTHON_PREFIX}_LIBRARY_RELEASE}" DIRECTORY) +- find_library (${_PYTHON_PREFIX}_LIBRARY_DEBUG +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}_d +- NAMES_PER_DIR +- HINTS "${_${_PYTHON_PREFIX}_PATH}" ${_${_PYTHON_PREFIX}_HINTS} +- NO_DEFAULT_PATH) +- else() +- # search first in known locations +- if (_${_PYTHON_PREFIX}_FIND_REGISTRY STREQUAL "FIRST") +- find_library (${_PYTHON_PREFIX}_LIBRARY_DEBUG +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}_d +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATHS ${_${_PYTHON_PREFIX}_REGISTRY_PATHS} +- PATH_SUFFIXES lib libs +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- # search in all default paths +- find_library (${_PYTHON_PREFIX}_LIBRARY_DEBUG +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}_d +- NAMES_PER_DIR +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATHS ${__${_PYTHON_PREFIX}_REGISTRY_PATHS} +- PATH_SUFFIXES lib libs) +- endif() +- if (${_PYTHON_PREFIX}_LIBRARY_DEBUG) +- get_filename_component (_${_PYTHON_PREFIX}_PATH "${${_PYTHON_PREFIX}_LIBRARY_DEBUG}" DIRECTORY) +- get_filename_component (_${_PYTHON_PREFIX}_PATH2 "${_${_PYTHON_PREFIX}_PATH}" DIRECTORY) +- _python_find_runtime_library (${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG +- NAMES python${_${_PYTHON_PREFIX}_VERSION_NO_DOTS}_d +- NAMES_PER_DIR +- HINTS "${_${_PYTHON_PREFIX}_PATH}" "${_${_PYTHON_PREFIX}_PATH2}" ${_${_PYTHON_PREFIX}_HINTS} +- PATH_SUFFIXES bin) +- endif() +- endif() +- +- # Don't search for include dir until library location is known +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE OR ${_PYTHON_PREFIX}_LIBRARY_DEBUG) +- unset (_${_PYTHON_PREFIX}_INCLUDE_HINTS) +- +- if (${_PYTHON_PREFIX}_EXECUTABLE) +- # pick up include directory from configuration +- execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c +- "import sys; import sysconfig; sys.stdout.write(sysconfig.get_path('include'))" +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_PATH +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- file (TO_CMAKE_PATH "${_${_PYTHON_PREFIX}_PATH}" _${_PYTHON_PREFIX}_PATH) +- list (APPEND _${_PYTHON_PREFIX}_INCLUDE_HINTS "${_${_PYTHON_PREFIX}_PATH}") +- endif() +- endif() +- +- foreach (_${_PYTHON_PREFIX}_LIB IN ITEMS ${_PYTHON_PREFIX}_LIBRARY_RELEASE ${_PYTHON_PREFIX}_LIBRARY_DEBUG) +- if (${_${_PYTHON_PREFIX}_LIB}) +- # Use the library's install prefix as a hint +- if (${_${_PYTHON_PREFIX}_LIB} MATCHES "^(.+/Frameworks/Python.framework/Versions/[0-9.]+)") +- list (APPEND _${_PYTHON_PREFIX}_INCLUDE_HINTS "${CMAKE_MATCH_1}") +- elseif (${_${_PYTHON_PREFIX}_LIB} MATCHES "^(.+)/lib(64|32)?/python[0-9.]+/config") +- list (APPEND _${_PYTHON_PREFIX}_INCLUDE_HINTS "${CMAKE_MATCH_1}") +- elseif (DEFINED CMAKE_LIBRARY_ARCHITECTURE AND ${_${_PYTHON_PREFIX}_LIB} MATCHES "^(.+)/lib/${CMAKE_LIBRARY_ARCHITECTURE}") +- list (APPEND _${_PYTHON_PREFIX}_INCLUDE_HINTS "${CMAKE_MATCH_1}") +- else() +- # assume library is in a directory under root +- get_filename_component (_${_PYTHON_PREFIX}_PREFIX "${${_${_PYTHON_PREFIX}_LIB}}" DIRECTORY) +- get_filename_component (_${_PYTHON_PREFIX}_PREFIX "${_${_PYTHON_PREFIX}_PREFIX}" DIRECTORY) +- list (APPEND _${_PYTHON_PREFIX}_INCLUDE_HINTS "${_${_PYTHON_PREFIX}_PREFIX}") +- endif() +- endif() +- endforeach() +- list (REMOVE_DUPLICATES _${_PYTHON_PREFIX}_INCLUDE_HINTS) +- +- if (APPLE AND _${_PYTHON_PREFIX}_FIND_FRAMEWORK STREQUAL "FIRST") +- find_path (${_PYTHON_PREFIX}_INCLUDE_DIR +- NAMES Python.h +- HINTS ${_${_PYTHON_PREFIX}_HINTS} +- PATHS ${_${_PYTHON_PREFIX}_FRAMEWORK_PATHS} +- PATH_SUFFIXES include/python${_${_PYTHON_PREFIX}_VERSION}mu +- include/python${_${_PYTHON_PREFIX}_VERSION}m +- include/python${_${_PYTHON_PREFIX}_VERSION}u +- include/python${_${_PYTHON_PREFIX}_VERSION} +- include +- NO_CMAKE_PATH +- NO_CMAKE_ENVIRONMENT_PATH +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- if (WIN32 AND _${_PYTHON_PREFIX}_FIND_REGISTRY STREQUAL "FIRST") +- find_path (${_PYTHON_PREFIX}_INCLUDE_DIR +- NAMES Python.h +- HINTS ${_${_PYTHON_PREFIX}_INCLUDE_HINTS} ${_${_PYTHON_PREFIX}_HINTS} +- PATHS ${_${_PYTHON_PREFIX}_REGISTRY_PATHS} +- PATH_SUFFIXES include/python${_${_PYTHON_PREFIX}_VERSION}mu +- include/python${_${_PYTHON_PREFIX}_VERSION}m +- include/python${_${_PYTHON_PREFIX}_VERSION}u +- include/python${_${_PYTHON_PREFIX}_VERSION} +- include +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- find_path (${_PYTHON_PREFIX}_INCLUDE_DIR +- NAMES Python.h +- HINTS ${_${_PYTHON_PREFIX}_INCLUDE_HINTS} ${_${_PYTHON_PREFIX}_HINTS} +- PATHS ${__${_PYTHON_PREFIX}_FRAMEWORK_PATHS} +- ${__${_PYTHON_PREFIX}_REGISTRY_PATHS} +- PATH_SUFFIXES include/python${_${_PYTHON_PREFIX}_VERSION}mu +- include/python${_${_PYTHON_PREFIX}_VERSION}m +- include/python${_${_PYTHON_PREFIX}_VERSION}u +- include/python${_${_PYTHON_PREFIX}_VERSION} +- include +- NO_SYSTEM_ENVIRONMENT_PATH +- NO_CMAKE_SYSTEM_PATH) +- endif() +- +- if ((${_PYTHON_PREFIX}_LIBRARY_RELEASE OR ${_PYTHON_PREFIX}_LIBRARY_DEBUG) AND ${_PYTHON_PREFIX}_INCLUDE_DIR) +- break() +- endif() +- endforeach() +- +- # search header file in standard locations +- find_path (${_PYTHON_PREFIX}_INCLUDE_DIR +- NAMES Python.h) +- endif() +- +- if (${_PYTHON_PREFIX}_INCLUDE_DIR) +- # retrieve version from header file +- file (STRINGS "${${_PYTHON_PREFIX}_INCLUDE_DIR}/patchlevel.h" _${_PYTHON_PREFIX}_VERSION +- REGEX "^#define[ \t]+PY_VERSION[ \t]+\"[^\"]+\"") +- string (REGEX REPLACE "^#define[ \t]+PY_VERSION[ \t]+\"([^\"]+)\".*" "\\1" +- _${_PYTHON_PREFIX}_VERSION "${_${_PYTHON_PREFIX}_VERSION}") +- string (REGEX MATCHALL "[0-9]+" _${_PYTHON_PREFIX}_VERSIONS "${_${_PYTHON_PREFIX}_VERSION}") +- list (GET _${_PYTHON_PREFIX}_VERSIONS 0 _${_PYTHON_PREFIX}_VERSION_MAJOR) +- list (GET _${_PYTHON_PREFIX}_VERSIONS 1 _${_PYTHON_PREFIX}_VERSION_MINOR) +- list (GET _${_PYTHON_PREFIX}_VERSIONS 2 _${_PYTHON_PREFIX}_VERSION_PATCH) +- +- if (NOT ${_PYTHON_PREFIX}_Interpreter_FOUND AND NOT ${_PYTHON_PREFIX}_Compiler_FOUND) +- # set public version information +- set (${_PYTHON_PREFIX}_VERSION ${_${_PYTHON_PREFIX}_VERSION}) +- set (${_PYTHON_PREFIX}_VERSION_MAJOR ${_${_PYTHON_PREFIX}_VERSION_MAJOR}) +- set (${_PYTHON_PREFIX}_VERSION_MINOR ${_${_PYTHON_PREFIX}_VERSION_MINOR}) +- set (${_PYTHON_PREFIX}_VERSION_PATCH ${_${_PYTHON_PREFIX}_VERSION_PATCH}) +- endif() +- endif() +- +- # define public variables +- include (SelectLibraryConfigurations) +- select_library_configurations (${_PYTHON_PREFIX}) +- if (${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE) +- set (${_PYTHON_PREFIX}_RUNTIME_LIBRARY "${${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE}") +- elseif (${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG) +- set (${_PYTHON_PREFIX}_RUNTIME_LIBRARY "${${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG}") +- else() +- set (${_PYTHON_PREFIX}_RUNTIME_LIBRARY "$${_PYTHON_PREFIX}_RUNTIME_LIBRARY-NOTFOUND") +- endif() +- +- _python_set_library_dirs (${_PYTHON_PREFIX}_LIBRARY_DIRS +- ${_PYTHON_PREFIX}_LIBRARY_RELEASE ${_PYTHON_PREFIX}_LIBRARY_DEBUG) +- if (UNIX) +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE MATCHES "${CMAKE_SHARED_LIBRARY_SUFFIX}$" +- OR ${_PYTHON_PREFIX}_LIBRARY_RELEASE MATCHES "${CMAKE_SHARED_LIBRARY_SUFFIX}$") +- set (${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DIRS ${${_PYTHON_PREFIX}_LIBRARY_DIRS}) +- endif() +- else() +- _python_set_library_dirs (${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DIRS +- ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG) +- endif() +- +- set (${_PYTHON_PREFIX}_INCLUDE_DIRS "${${_PYTHON_PREFIX}_INCLUDE_DIR}") +- +- mark_as_advanced (${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE +- ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG +- ${_PYTHON_PREFIX}_INCLUDE_DIR) +- +- if ((${_PYTHON_PREFIX}_LIBRARY_RELEASE OR ${_PYTHON_PREFIX}_LIBRARY_DEBUG) +- AND ${_PYTHON_PREFIX}_INCLUDE_DIR) +- if (${_PYTHON_PREFIX}_Interpreter_FOUND OR ${_PYTHON_PREFIX}_Compiler_FOUND) +- # development environment must be compatible with interpreter/compiler +- if (${_${_PYTHON_PREFIX}_VERSION_MAJOR}.${_${_PYTHON_PREFIX}_VERSION_MINOR} VERSION_EQUAL ${${_PYTHON_PREFIX}_VERSION_MAJOR}.${${_PYTHON_PREFIX}_VERSION_MINOR}) +- set (${_PYTHON_PREFIX}_Development_FOUND TRUE) +- endif() +- elseif (${_PYTHON_PREFIX}_VERSION_MAJOR VERSION_EQUAL _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR) +- set (${_PYTHON_PREFIX}_Development_FOUND TRUE) +- endif() +- endif() +- +- # Restore the original find library ordering +- if (DEFINED _${_PYTHON_PREFIX}_CMAKE_FIND_LIBRARY_SUFFIXES) +- set (CMAKE_FIND_LIBRARY_SUFFIXES ${_${_PYTHON_PREFIX}_CMAKE_FIND_LIBRARY_SUFFIXES}) +- endif() +-endif() +- +-if ("NumPy" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS AND ${_PYTHON_PREFIX}_Interpreter_FOUND) +- list (APPEND _${_PYTHON_PREFIX}_CACHED_VARS ${_PYTHON_PREFIX}_NumPy_INCLUDE_DIR) +- if (${_PYTHON_PREFIX}_FIND_REQUIRED_NumPy) +- list (APPEND _${_PYTHON_PREFIX}_REQUIRED_VARS ${_PYTHON_PREFIX}_NumPy_INCLUDE_DIR) +- endif() +- execute_process( +- COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c +- "from __future__ import print_function\ntry: import numpy; print(numpy.get_include(), end='')\nexcept:pass\n" +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_NumPy_PATH +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- find_path(${_PYTHON_PREFIX}_NumPy_INCLUDE_DIR +- NAMES "numpy/arrayobject.h" "numpy/numpyconfig.h" +- HINTS "${_${_PYTHON_PREFIX}_NumPy_PATH}" +- NO_DEFAULT_PATH) +- endif() +- if(${_PYTHON_PREFIX}_NumPy_INCLUDE_DIR) +- set(${_PYTHON_PREFIX}_NumPy_INCLUDE_DIRS "${${_PYTHON_PREFIX}_NumPy_INCLUDE_DIR}") +- set(${_PYTHON_PREFIX}_NumPy_FOUND TRUE) +- endif() +- if(${_PYTHON_PREFIX}_NumPy_FOUND) +- execute_process( +- COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c +- "from __future__ import print_function\ntry: import numpy; print(numpy.__version__, end='')\nexcept:pass\n" +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_NumPy_VERSION) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- set(${_PYTHON_PREFIX}_NumPy_VERSION "${_${_PYTHON_PREFIX}_NumPy_VERSION}") +- endif() +- endif() +- # final step: set NumPy founded only if Development component is founded as well +- if (NOT ${_PYTHON_PREFIX}_Development_FOUND) +- set(${_PYTHON_PREFIX}_NumPy_FOUND FALSE) +- endif() +-endif() +- +-# final validation +-if (${_PYTHON_PREFIX}_VERSION_MAJOR AND +- NOT ${_PYTHON_PREFIX}_VERSION_MAJOR VERSION_EQUAL _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR) +- _python_display_failure ("Could NOT find ${_PYTHON_PREFIX}: Found unsuitable major version \"${${_PYTHON_PREFIX}_VERSION_MAJOR}\", but required major version is exact version \"${_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR}\"") +-endif() +- +-include (FindPackageHandleStandardArgs) +-find_package_handle_standard_args (${_PYTHON_PREFIX} +- REQUIRED_VARS ${_${_PYTHON_PREFIX}_REQUIRED_VARS} +- VERSION_VAR ${_PYTHON_PREFIX}_VERSION +- HANDLE_COMPONENTS) +- +-# Create imported targets and helper functions +-if(_${_PYTHON_PREFIX}_CMAKE_ROLE STREQUAL "PROJECT") +- if ("Interpreter" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS +- AND ${_PYTHON_PREFIX}_Interpreter_FOUND +- AND NOT TARGET ${_PYTHON_PREFIX}::Interpreter) +- add_executable (${_PYTHON_PREFIX}::Interpreter IMPORTED) +- set_property (TARGET ${_PYTHON_PREFIX}::Interpreter +- PROPERTY IMPORTED_LOCATION "${${_PYTHON_PREFIX}_EXECUTABLE}") +- endif() +- +- if ("Compiler" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS +- AND ${_PYTHON_PREFIX}_Compiler_FOUND +- AND NOT TARGET ${_PYTHON_PREFIX}::Compiler) +- add_executable (${_PYTHON_PREFIX}::Compiler IMPORTED) +- set_property (TARGET ${_PYTHON_PREFIX}::Compiler +- PROPERTY IMPORTED_LOCATION "${${_PYTHON_PREFIX}_COMPILER}") +- endif() +- +- if ("Development" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS +- AND ${_PYTHON_PREFIX}_Development_FOUND AND NOT TARGET ${_PYTHON_PREFIX}::Python) +- +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE MATCHES "${CMAKE_SHARED_LIBRARY_SUFFIX}$" +- OR ${_PYTHON_PREFIX}_LIBRARY_DEBUG MATCHES "${CMAKE_SHARED_LIBRARY_SUFFIX}$" +- OR ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE OR ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG) +- set (_${_PYTHON_PREFIX}_LIBRARY_TYPE SHARED) +- else() +- set (_${_PYTHON_PREFIX}_LIBRARY_TYPE STATIC) +- endif() +- +- add_library (${_PYTHON_PREFIX}::Python ${_${_PYTHON_PREFIX}_LIBRARY_TYPE} IMPORTED) +- +- set_property (TARGET ${_PYTHON_PREFIX}::Python +- PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${${_PYTHON_PREFIX}_INCLUDE_DIR}") +- +- if ((${_PYTHON_PREFIX}_LIBRARY_RELEASE AND ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE) +- OR (${_PYTHON_PREFIX}_LIBRARY_DEBUG AND ${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG)) +- # System manage shared libraries in two parts: import and runtime +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE AND ${_PYTHON_PREFIX}_LIBRARY_DEBUG) +- set_property (TARGET ${_PYTHON_PREFIX}::Python PROPERTY IMPORTED_CONFIGURATIONS RELEASE DEBUG) +- set_target_properties (${_PYTHON_PREFIX}::Python +- PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C" +- IMPORTED_IMPLIB_RELEASE "${${_PYTHON_PREFIX}_LIBRARY_RELEASE}" +- IMPORTED_LOCATION_RELEASE "${${_PYTHON_PREFIX}_RUNTIME_LIBRARY_RELEASE}") +- set_target_properties (${_PYTHON_PREFIX}::Python +- PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C" +- IMPORTED_IMPLIB_DEBUG "${${_PYTHON_PREFIX}_LIBRARY_DEBUG}" +- IMPORTED_LOCATION_DEBUG "${${_PYTHON_PREFIX}_RUNTIME_LIBRARY_DEBUG}") +- else() +- set_target_properties (${_PYTHON_PREFIX}::Python +- PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES "C" +- IMPORTED_IMPLIB "${${_PYTHON_PREFIX}_LIBRARY}" +- IMPORTED_LOCATION "${${_PYTHON_PREFIX}_RUNTIME_LIBRARY}") +- endif() +- else() +- if (${_PYTHON_PREFIX}_LIBRARY_RELEASE AND ${_PYTHON_PREFIX}_LIBRARY_DEBUG) +- set_property (TARGET ${_PYTHON_PREFIX}::Python PROPERTY IMPORTED_CONFIGURATIONS RELEASE DEBUG) +- set_target_properties (${_PYTHON_PREFIX}::Python +- PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C" +- IMPORTED_LOCATION_RELEASE "${${_PYTHON_PREFIX}_LIBRARY_RELEASE}") +- set_target_properties (${_PYTHON_PREFIX}::Python +- PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C" +- IMPORTED_LOCATION_DEBUG "${${_PYTHON_PREFIX}_LIBRARY_DEBUG}") +- else() +- set_target_properties (${_PYTHON_PREFIX}::Python +- PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES "C" +- IMPORTED_LOCATION "${${_PYTHON_PREFIX}_LIBRARY}") +- endif() +- endif() +- +- if (_${_PYTHON_PREFIX}_CONFIG AND _${_PYTHON_PREFIX}_LIBRARY_TYPE STREQUAL "STATIC") +- # extend link information with dependent libraries +- execute_process (COMMAND "${_${_PYTHON_PREFIX}_CONFIG}" --ldflags +- RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT +- OUTPUT_VARIABLE _${_PYTHON_PREFIX}_FLAGS +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- if (NOT _${_PYTHON_PREFIX}_RESULT) +- string (REGEX MATCHALL "-[Ll][^ ]+" _${_PYTHON_PREFIX}_LINK_LIBRARIES "${_${_PYTHON_PREFIX}_FLAGS}") +- # remove elements relative to python library itself +- list (FILTER _${_PYTHON_PREFIX}_LINK_LIBRARIES EXCLUDE REGEX "-lpython") +- foreach (_${_PYTHON_PREFIX}_DIR IN LISTS ${_PYTHON_PREFIX}_LIBRARY_DIRS) +- list (FILTER _${_PYTHON_PREFIX}_LINK_LIBRARIES EXCLUDE REGEX "-L${${_PYTHON_PREFIX}_DIR}") +- endforeach() +- set_property (TARGET ${_PYTHON_PREFIX}::Python +- PROPERTY INTERFACE_LINK_LIBRARIES ${_${_PYTHON_PREFIX}_LINK_LIBRARIES}) +- endif() +- endif() +- +- # +- # PYTHON_ADD_LIBRARY ( [STATIC|SHARED|MODULE] src1 src2 ... srcN) +- # It is used to build modules for python. +- # +- function (__${_PYTHON_PREFIX}_ADD_LIBRARY prefix name) +- cmake_parse_arguments (PARSE_ARGV 2 PYTHON_ADD_LIBRARY +- "STATIC;SHARED;MODULE" "" "") +- +- unset (type) +- if (NOT (PYTHON_ADD_LIBRARY_STATIC +- OR PYTHON_ADD_LIBRARY_SHARED +- OR PYTHON_ADD_LIBRARY_MODULE)) +- set (type MODULE) +- endif() +- add_library (${name} ${type} ${ARGN}) +- target_link_libraries (${name} PRIVATE ${prefix}::Python) +- +- # customize library name to follow module name rules +- get_property (type TARGET ${name} PROPERTY TYPE) +- if (type STREQUAL "MODULE_LIBRARY") +- set_property (TARGET ${name} PROPERTY PREFIX "") +- if(CMAKE_SYSTEM_NAME STREQUAL "Windows") +- set_property (TARGET ${name} PROPERTY SUFFIX ".pyd") +- endif() +- endif() +- endfunction() +- endif() +- +- if ("NumPy" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS AND ${_PYTHON_PREFIX}_NumPy_FOUND +- AND NOT TARGET ${_PYTHON_PREFIX}::NumPy AND TARGET ${_PYTHON_PREFIX}::Python) +- add_library (${_PYTHON_PREFIX}::NumPy INTERFACE IMPORTED) +- set_property (TARGET ${_PYTHON_PREFIX}::NumPy +- PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${${_PYTHON_PREFIX}_NumPy_INCLUDE_DIR}") +- target_link_libraries (${_PYTHON_PREFIX}::NumPy INTERFACE ${_PYTHON_PREFIX}::Python) +- endif() +-endif() +- +-# final clean-up +- +-# Restore CMAKE_FIND_APPBUNDLE +-if (DEFINED _${_PYTHON_PREFIX}_CMAKE_FIND_APPBUNDLE) +- set (CMAKE_FIND_APPBUNDLE ${_${_PYTHON_PREFIX}_CMAKE_FIND_APPBUNDLE}) +- unset (_${_PYTHON_PREFIX}_CMAKE_FIND_APPBUNDLE) +-else() +- unset (CMAKE_FIND_APPBUNDLE) +-endif() +-# Restore CMAKE_FIND_FRAMEWORK +-if (DEFINED _${_PYTHON_PREFIX}_CMAKE_FIND_FRAMEWORK) +- set (CMAKE_FIND_FRAMEWORK ${_${_PYTHON_PREFIX}_CMAKE_FIND_FRAMEWORK}) +- unset (_${_PYTHON_PREFIX}_CMAKE_FIND_FRAMEWORK) +-else() +- unset (CMAKE_FIND_FRAMEWORK) +-endif() +- +-unset (_${_PYTHON_PREFIX}_CONFIG CACHE) +diff --git a/cmake/cython/python/FindPython2.cmake b/cmake/cython/python/FindPython2.cmake +deleted file mode 100644 +index b9c0b6b..0000000 +--- a/cmake/cython/python/FindPython2.cmake ++++ /dev/null +@@ -1,189 +0,0 @@ +-# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +-# file Copyright.txt or https://cmake.org/licensing for details. +- +-#[=======================================================================[.rst: +-FindPython2 +------------ +- +-Find Python 2 interpreter, compiler and development environment (include +-directories and libraries). +- +-Three components are supported: +- +-* ``Interpreter``: search for Python 2 interpreter +-* ``Compiler``: search for Python 2 compiler. Only offered by IronPython. +-* ``Development``: search for development artifacts (include directories and +- libraries) +-* ``NumPy``: search for NumPy include directories. +- +-If no ``COMPONENTS`` is specified, ``Interpreter`` is assumed. +- +-To ensure consistent versions between components ``Interpreter``, ``Compiler``, +-``Development`` and ``NumPy``, specify all components at the same time:: +- +- find_package (Python2 COMPONENTS Interpreter Development) +- +-This module looks only for version 2 of Python. This module can be used +-concurrently with :module:`FindPython3` module to use both Python versions. +- +-The :module:`FindPython` module can be used if Python version does not matter +-for you. +- +-.. note:: +- +- If components ``Interpreter`` and ``Development`` are both specified, this +- module search only for interpreter with same platform architecture as the one +- defined by ``CMake`` configuration. This contraint does not apply if only +- ``Interpreter`` component is specified. +- +-Imported Targets +-^^^^^^^^^^^^^^^^ +- +-This module defines the following :ref:`Imported Targets ` +-(when :prop_gbl:`CMAKE_ROLE` is ``PROJECT``): +- +-``Python2::Interpreter`` +- Python 2 interpreter. Target defined if component ``Interpreter`` is found. +-``Python2::Compiler`` +- Python 2 compiler. Target defined if component ``Compiler`` is found. +-``Python2::Python`` +- Python 2 library. Target defined if component ``Development`` is found. +-``Python2::NumPy`` +- NumPy library for Python 2. Target defined if component ``NumPy`` is found. +- +-Result Variables +-^^^^^^^^^^^^^^^^ +- +-This module will set the following variables in your project +-(see :ref:`Standard Variable Names `): +- +-``Python2_FOUND`` +- System has the Python 2 requested components. +-``Python2_Interpreter_FOUND`` +- System has the Python 2 interpreter. +-``Python2_EXECUTABLE`` +- Path to the Python 2 interpreter. +-``Python2_INTERPRETER_ID`` +- A short string unique to the interpreter. Possible values include: +- * Python +- * ActivePython +- * Anaconda +- * Canopy +- * IronPython +-``Python2_STDLIB`` +- Standard platform independent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=False,standard_lib=True)``. +-``Python2_STDARCH`` +- Standard platform dependent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=True,standard_lib=True)``. +-``Python2_SITELIB`` +- Third-party platform independent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=False,standard_lib=False)``. +-``Python2_SITEARCH`` +- Third-party platform dependent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=True,standard_lib=False)``. +-``Python2_Compiler_FOUND`` +- System has the Python 2 compiler. +-``Python2_COMPILER`` +- Path to the Python 2 compiler. Only offered by IronPython. +-``Python2_COMPILER_ID`` +- A short string unique to the compiler. Possible values include: +- * IronPython +-``Python2_Development_FOUND`` +- System has the Python 2 development artifacts. +-``Python2_INCLUDE_DIRS`` +- The Python 2 include directories. +-``Python2_LIBRARIES`` +- The Python 2 libraries. +-``Python2_LIBRARY_DIRS`` +- The Python 2 library directories. +-``Python2_RUNTIME_LIBRARY_DIRS`` +- The Python 2 runtime library directories. +-``Python2_VERSION`` +- Python 2 version. +-``Python2_VERSION_MAJOR`` +- Python 2 major version. +-``Python2_VERSION_MINOR`` +- Python 2 minor version. +-``Python2_VERSION_PATCH`` +- Python 2 patch version. +-``Python2_NumPy_FOUND`` +- System has the NumPy. +-``Python2_NumPy_INCLUDE_DIRS`` +- The NumPy include directries. +-``Python2_NumPy_VERSION`` +- The NumPy version. +- +-Hints +-^^^^^ +- +-``Python2_ROOT_DIR`` +- Define the root directory of a Python 2 installation. +- +-``Python2_USE_STATIC_LIBS`` +- * If not defined, search for shared libraries and static libraries in that +- order. +- * If set to TRUE, search **only** for static libraries. +- * If set to FALSE, search **only** for shared libraries. +- +-``Python2_FIND_REGISTRY`` +- On Windows the ``Python2_FIND_REGISTRY`` variable determine the order +- of preference between registry and environment variables. +- the ``Python2_FIND_REGISTRY`` variable can be set to empty or one of the +- following: +- +- * ``FIRST``: Try to use registry before environment variables. +- This is the default. +- * ``LAST``: Try to use registry after environment variables. +- * ``NEVER``: Never try to use registry. +- +-``CMAKE_FIND_FRAMEWORK`` +- On macOS the :variable:`CMAKE_FIND_FRAMEWORK` variable determine the order of +- preference between Apple-style and unix-style package components. +- +- .. note:: +- +- Value ``ONLY`` is not supported so ``FIRST`` will be used instead. +- +-.. note:: +- +- If a Python virtual environment is configured, set variable +- ``Python_FIND_REGISTRY`` (Windows) or ``CMAKE_FIND_FRAMEWORK`` (macOS) with +- value ``LAST`` or ``NEVER`` to select it preferably. +- +-Commands +-^^^^^^^^ +- +-This module defines the command ``Python2_add_library`` (when +-:prop_gbl:`CMAKE_ROLE` is ``PROJECT``), which has the same semantics as +-:command:`add_library`, but takes care of Python module naming rules +-(only applied if library is of type ``MODULE``), and adds a dependency to target +-``Python2::Python``:: +- +- Python2_add_library (my_module MODULE src1.cpp) +- +-If library type is not specified, ``MODULE`` is assumed. +-#]=======================================================================] +- +- +-set (_PYTHON_PREFIX Python2) +- +-set (_Python2_REQUIRED_VERSION_MAJOR 2) +- +-include (${CMAKE_CURRENT_LIST_DIR}/FindPython/Support.cmake) +- +-if (COMMAND __Python2_add_library) +- macro (Python2_add_library) +- __Python2_add_library (Python2 ${ARGV}) +- endmacro() +-endif() +- +-unset (_PYTHON_PREFIX) +diff --git a/cmake/cython/python/FindPython3.cmake b/cmake/cython/python/FindPython3.cmake +deleted file mode 100644 +index c2f3384..0000000 +--- a/cmake/cython/python/FindPython3.cmake ++++ /dev/null +@@ -1,189 +0,0 @@ +-# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +-# file Copyright.txt or https://cmake.org/licensing for details. +- +-#[=======================================================================[.rst: +-FindPython3 +------------ +- +-Find Python 3 interpreter, compiler and development environment (include +-directories and libraries). +- +-Three components are supported: +- +-* ``Interpreter``: search for Python 3 interpreter +-* ``Compiler``: search for Python 3 compiler. Only offered by IronPython. +-* ``Development``: search for development artifacts (include directories and +- libraries) +-* ``NumPy``: search for NumPy include directories. +- +-If no ``COMPONENTS`` is specified, ``Interpreter`` is assumed. +- +-To ensure consistent versions between components ``Interpreter``, ``Compiler``, +-``Development`` and ``NumPy``, specify all components at the same time:: +- +- find_package (Python3 COMPONENTS Interpreter Development) +- +-This module looks only for version 3 of Python. This module can be used +-concurrently with :module:`FindPython2` module to use both Python versions. +- +-The :module:`FindPython` module can be used if Python version does not matter +-for you. +- +-.. note:: +- +- If components ``Interpreter`` and ``Development`` are both specified, this +- module search only for interpreter with same platform architecture as the one +- defined by ``CMake`` configuration. This contraint does not apply if only +- ``Interpreter`` component is specified. +- +-Imported Targets +-^^^^^^^^^^^^^^^^ +- +-This module defines the following :ref:`Imported Targets ` +-(when :prop_gbl:`CMAKE_ROLE` is ``PROJECT``): +- +-``Python3::Interpreter`` +- Python 3 interpreter. Target defined if component ``Interpreter`` is found. +-``Python3::Compiler`` +- Python 3 compiler. Target defined if component ``Compiler`` is found. +-``Python3::Python`` +- Python 3 library. Target defined if component ``Development`` is found. +-``Python3::NumPy`` +- NumPy library for Python 3. Target defined if component ``NumPy`` is found. +- +-Result Variables +-^^^^^^^^^^^^^^^^ +- +-This module will set the following variables in your project +-(see :ref:`Standard Variable Names `): +- +-``Python3_FOUND`` +- System has the Python 3 requested components. +-``Python3_Interpreter_FOUND`` +- System has the Python 3 interpreter. +-``Python3_EXECUTABLE`` +- Path to the Python 3 interpreter. +-``Python3_INTERPRETER_ID`` +- A short string unique to the interpreter. Possible values include: +- * Python +- * ActivePython +- * Anaconda +- * Canopy +- * IronPython +-``Python3_STDLIB`` +- Standard platform independent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=False,standard_lib=True)``. +-``Python3_STDARCH`` +- Standard platform dependent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=True,standard_lib=True)``. +-``Python3_SITELIB`` +- Third-party platform independent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=False,standard_lib=False)``. +-``Python3_SITEARCH`` +- Third-party platform dependent installation directory. +- +- Information returned by +- ``distutils.sysconfig.get_python_lib(plat_specific=True,standard_lib=False)``. +-``Python3_Compiler_FOUND`` +- System has the Python 3 compiler. +-``Python3_COMPILER`` +- Path to the Python 3 compiler. Only offered by IronPython. +-``Python3_COMPILER_ID`` +- A short string unique to the compiler. Possible values include: +- * IronPython +-``Python3_Development_FOUND`` +- System has the Python 3 development artifacts. +-``Python3_INCLUDE_DIRS`` +- The Python 3 include directories. +-``Python3_LIBRARIES`` +- The Python 3 libraries. +-``Python3_LIBRARY_DIRS`` +- The Python 3 library directories. +-``Python3_RUNTIME_LIBRARY_DIRS`` +- The Python 3 runtime library directories. +-``Python3_VERSION`` +- Python 3 version. +-``Python3_VERSION_MAJOR`` +- Python 3 major version. +-``Python3_VERSION_MINOR`` +- Python 3 minor version. +-``Python3_VERSION_PATCH`` +- Python 3 patch version. +-``Python3_NumPy_FOUND`` +- System has the NumPy. +-``Python3_NumPy_INCLUDE_DIRS`` +- The NumPy include directries. +-``Python3_NumPy_VERSION`` +- The NumPy version. +- +-Hints +-^^^^^ +- +-``Python3_ROOT_DIR`` +- Define the root directory of a Python 3 installation. +- +-``Python3_USE_STATIC_LIBS`` +- * If not defined, search for shared libraries and static libraries in that +- order. +- * If set to TRUE, search **only** for static libraries. +- * If set to FALSE, search **only** for shared libraries. +- +-``Python3_FIND_REGISTRY`` +- On Windows the ``Python3_FIND_REGISTRY`` variable determine the order +- of preference between registry and environment variables. +- the ``Python3_FIND_REGISTRY`` variable can be set to empty or one of the +- following: +- +- * ``FIRST``: Try to use registry before environment variables. +- This is the default. +- * ``LAST``: Try to use registry after environment variables. +- * ``NEVER``: Never try to use registry. +- +-``CMAKE_FIND_FRAMEWORK`` +- On OS X the :variable:`CMAKE_FIND_FRAMEWORK` variable determine the order of +- preference between Apple-style and unix-style package components. +- +- .. note:: +- +- Value ``ONLY`` is not supported so ``FIRST`` will be used instead. +- +-.. note:: +- +- If a Python virtual environment is configured, set variable +- ``Python_FIND_REGISTRY`` (Windows) or ``CMAKE_FIND_FRAMEWORK`` (macOS) with +- value ``LAST`` or ``NEVER`` to select it preferably. +- +-Commands +-^^^^^^^^ +- +-This module defines the command ``Python3_add_library`` (when +-:prop_gbl:`CMAKE_ROLE` is ``PROJECT``), which has the same semantics as +-:command:`add_library`, but takes care of Python module naming rules +-(only applied if library is of type ``MODULE``), and adds a dependency to target +-``Python3::Python``:: +- +- Python3_add_library (my_module MODULE src1.cpp) +- +-If library type is not specified, ``MODULE`` is assumed. +-#]=======================================================================] +- +- +-set (_PYTHON_PREFIX Python3) +- +-set (_Python3_REQUIRED_VERSION_MAJOR 3) +- +-include (${CMAKE_CURRENT_LIST_DIR}/FindPython/Support.cmake) +- +-if (COMMAND __Python3_add_library) +- macro (Python3_add_library) +- __Python3_add_library (Python3 ${ARGV}) +- endmacro() +-endif() +- +-unset (_PYTHON_PREFIX) +diff --git a/cmake/cython/python/README.md b/cmake/cython/python/README.md +deleted file mode 100644 +index 19a931a..0000000 +--- a/cmake/cython/python/README.md ++++ /dev/null +@@ -1,6 +0,0 @@ +-These files are taken from CMake v3.14.5 at +-[github](https://github.com/Kitware/CMake/tree/f3e9a6ff62f6f58cd661dd447c22a01c50f6f4ad) +-with small modifications to allow them to work outside of their expected +-location. +- +-They are used in the modules for CMake < 3.12 +diff --git a/cmake/python.cmake b/cmake/python.cmake +index aa5c452..0c5a284 100644 +--- a/cmake/python.cmake ++++ b/cmake/python.cmake +@@ -55,14 +55,6 @@ + # nothing for CMake < 3.12 which doesn't have those. This also export: - + # `FIND_NUMPY` and/or `SEARCH_FOR_BOOST_PYTHON` if necessary. + +-if(CMAKE_VERSION VERSION_LESS "3.2") +- set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/python ${CMAKE_MODULE_PATH}) +- message( +- STATUS +- "CMake versions older than 3.2 do not properly find Python. Custom macros are used to find it." +- ) +-endif(CMAKE_VERSION VERSION_LESS "3.2") +- + macro(FINDPYTHON) + if(DEFINED FINDPYTHON_ALREADY_CALLED) + message( +@@ -72,193 +64,29 @@ macro(FINDPYTHON) + endif() + set(FINDPYTHON_ALREADY_CALLED TRUE) + +- if(NOT PYTHON_COMPONENTS) +- set(PYTHON_COMPONENTS Interpreter Development) +- endif() +- +- list(FIND PYTHON_COMPONENTS "NumPy" _npindex) +- if(NOT ${_npindex} EQUAL -1) +- set(SEARCH_FOR_NUMPY TRUE) +- endif() +- +- if(CMAKE_VERSION VERSION_LESS "3.18") +- # IF("Development.Module" IN_LIST PYTHON_COMPONENTS) -- require CMake 3.3 +- list(FIND PYTHON_COMPONENTS "Development.Module" _index) +- if(NOT ${_index} EQUAL -1) +- message( +- STATUS +- "For CMake < 3.18, Development.Module is not available. Falling back to Development" +- ) +- list(REMOVE_ITEM PYTHON_COMPONENTS Development.Module) +- set(PYTHON_COMPONENTS ${PYTHON_COMPONENTS} Development) +- endif() +- if(CMAKE_VERSION VERSION_LESS "3.14") +- if(SEARCH_FOR_NUMPY) +- message( +- STATUS +- "For CMake < 3.14, NumPy is not available. Falling back to custom FIND_NUMPY()" +- ) +- list(REMOVE_ITEM PYTHON_COMPONENTS NumPy) +- endif() +- endif() ++ find_package(Python COMPONENTS Interpreter Development NumPy REQUIRED) ++ ++ set(_PYTHON_PREFIX "Python") ++ ++ if(${_PYTHON_PREFIX}_FOUND) ++ set(PYTHON_EXECUTABLE ${${_PYTHON_PREFIX}_EXECUTABLE}) ++ set(PYTHON_LIBRARY ${${_PYTHON_PREFIX}_LIBRARIES}) ++ set(PYTHON_LIBRARIES ${${_PYTHON_PREFIX}_LIBRARIES}) ++ set(PYTHON_INCLUDE_DIR ${${_PYTHON_PREFIX}_INCLUDE_DIRS}) ++ set(PYTHON_INCLUDE_DIRS ${${_PYTHON_PREFIX}_INCLUDE_DIRS}) ++ set(PYTHON_VERSION_STRING ${${_PYTHON_PREFIX}_VERSION}) ++ set(PYTHONLIBS_VERSION_STRING ${${_PYTHON_PREFIX}_VERSION}) ++ set(PYTHON_FOUND ${${_PYTHON_PREFIX}_FOUND}) ++ set(PYTHONLIBS_FOUND ${${_PYTHON_PREFIX}_FOUND}) ++ set(PYTHON_VERSION_MAJOR ${${_PYTHON_PREFIX}_VERSION_MAJOR}) ++ set(PYTHON_VERSION_MINOR ${${_PYTHON_PREFIX}_VERSION_MINOR}) ++ set(PYTHON_VERSION_PATCH ${${_PYTHON_PREFIX}_VERSION_PATCH}) ++ else() ++ message(FATAL_ERROR "Python executable has not been found.") + endif() + +- if(NOT CMAKE_VERSION VERSION_LESS "3.12") +- +- if(DEFINED PYTHON_EXECUTABLE +- OR DEFINED Python_EXECUTABLE +- OR DEFINED Python2_EXECUTABLE +- OR DEFINED Python3_EXECUTABLE) +- +- if(NOT DEFINED PYTHON_EXECUTABLE) +- if(DEFINED Python_EXECUTABLE) +- set(PYTHON_EXECUTABLE ${Python_EXECUTABLE}) +- elseif(DEFINED Python2_EXECUTABLE) +- set(PYTHON_EXECUTABLE ${Python2_EXECUTABLE}) +- elseif(DEFINED Python3_EXECUTABLE) +- set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE}) +- endif() +- endif() +- +- if(NOT DEFINED Python_EXCUTABLE) +- set(Python_EXECUTABLE ${PYTHON_EXECUTABLE}) +- endif() +- else() +- # Search for the default python of the system, if exists +- find_program(PYTHON_EXECUTABLE python) +- endif() +- +- if(PYTHON_EXECUTABLE) +- if(NOT EXISTS ${PYTHON_EXECUTABLE}) +- message( +- FATAL_ERROR +- "${PYTHON_EXECUTABLE} is not a valid path to the Python executable") +- endif() +- execute_process( +- COMMAND ${PYTHON_EXECUTABLE} --version +- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} +- RESULT_VARIABLE _PYTHON_VERSION_RESULT_VARIABLE +- OUTPUT_VARIABLE _PYTHON_VERSION_OUTPUT +- ERROR_VARIABLE _PYTHON_VERSION_OUTPUT +- OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE) +- +- # Provide some hints according to the current PYTHON_EXECUTABLE +- if(NOT DEFINED PYTHON_INCLUDE_DIR) +- execute_process( +- COMMAND +- "${PYTHON_EXECUTABLE}" "-c" +- "import distutils.sysconfig as sysconfig; print(sysconfig.get_python_inc())" +- OUTPUT_VARIABLE PYTHON_INCLUDE_DIR +- ERROR_QUIET) +- string(STRIP "${PYTHON_INCLUDE_DIR}" PYTHON_INCLUDE_DIR) +- file(TO_CMAKE_PATH "${PYTHON_INCLUDE_DIR}" PYTHON_INCLUDE_DIR) +- endif() +- +- if(NOT "${_PYTHON_VERSION_RESULT_VARIABLE}" STREQUAL "0") +- message(FATAL_ERROR "${PYTHON_EXECUTABLE} --version did not succeed.") +- endif(NOT "${_PYTHON_VERSION_RESULT_VARIABLE}" STREQUAL "0") +- string(REGEX REPLACE "Python " "" _PYTHON_VERSION +- ${_PYTHON_VERSION_OUTPUT}) +- string(REGEX REPLACE "\\." ";" _PYTHON_VERSION ${_PYTHON_VERSION}) +- list(GET _PYTHON_VERSION 0 _PYTHON_VERSION_MAJOR) +- +- # Hint for finding the right Python version +- set(Python_EXECUTABLE ${PYTHON_EXECUTABLE}) +- set(Python${_PYTHON_VERSION_MAJOR}_EXECUTABLE ${PYTHON_EXECUTABLE}) +- set(Python${_PYTHON_VERSION_MAJOR}_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}) +- +- find_package("Python${_PYTHON_VERSION_MAJOR}" REQUIRED +- COMPONENTS ${PYTHON_COMPONENTS}) +- else() +- # No hint was provided. We can then check for first Python 2, then Python +- # 3 +- find_package(Python2 QUIET COMPONENTS ${PYTHON_COMPONENTS}) +- if(NOT Python2_FOUND) +- find_package(Python3 QUIET COMPONENTS ${PYTHON_COMPONENTS}) +- if(NOT Python3_FOUND) +- message(FATAL_ERROR "Python executable has not been found.") +- else() +- set(_PYTHON_VERSION_MAJOR 3) +- endif(NOT Python3_FOUND) +- else() +- set(_PYTHON_VERSION_MAJOR 2) +- endif(NOT Python2_FOUND) +- endif(PYTHON_EXECUTABLE) +- +- set(_PYTHON_PREFIX "Python${_PYTHON_VERSION_MAJOR}") +- +- if(${_PYTHON_PREFIX}_FOUND) +- set(PYTHON_EXECUTABLE ${${_PYTHON_PREFIX}_EXECUTABLE}) +- set(PYTHON_LIBRARY ${${_PYTHON_PREFIX}_LIBRARIES}) +- set(PYTHON_LIBRARIES ${${_PYTHON_PREFIX}_LIBRARIES}) +- set(PYTHON_INCLUDE_DIR ${${_PYTHON_PREFIX}_INCLUDE_DIRS}) +- set(PYTHON_INCLUDE_DIRS ${${_PYTHON_PREFIX}_INCLUDE_DIRS}) +- set(PYTHON_VERSION_STRING ${${_PYTHON_PREFIX}_VERSION}) +- set(PYTHONLIBS_VERSION_STRING ${${_PYTHON_PREFIX}_VERSION}) +- set(PYTHON_FOUND ${${_PYTHON_PREFIX}_FOUND}) +- set(PYTHONLIBS_FOUND ${${_PYTHON_PREFIX}_FOUND}) +- set(PYTHON_VERSION_MAJOR ${${_PYTHON_PREFIX}_VERSION_MAJOR}) +- set(PYTHON_VERSION_MINOR ${${_PYTHON_PREFIX}_VERSION_MINOR}) +- set(PYTHON_VERSION_PATCH ${${_PYTHON_PREFIX}_VERSION_PATCH}) +- else() +- message(FATAL_ERROR "Python executable has not been found.") +- endif() +- +- if(SEARCH_FOR_NUMPY) +- set(NUMPY_INCLUDE_DIRS +- "${Python${_PYTHON_VERSION_MAJOR}_NumPy_INCLUDE_DIRS}") +- string(REPLACE "\\" "/" NUMPY_INCLUDE_DIRS "${NUMPY_INCLUDE_DIRS}") +- file(TO_CMAKE_PATH "${NUMPY_INCLUDE_DIRS}" NUMPY_INCLUDE_DIRS) +- endif() +- +- else(NOT CMAKE_VERSION VERSION_LESS "3.12") +- +- find_package(PythonInterp ${ARGN}) +- if(NOT ${PYTHONINTERP_FOUND} STREQUAL TRUE) +- message(FATAL_ERROR "Python executable has not been found.") +- endif(NOT ${PYTHONINTERP_FOUND} STREQUAL TRUE) +- message(STATUS "PythonInterp: ${PYTHON_EXECUTABLE}") +- +- # Set PYTHON_INCLUDE_DIR variables if it is not defined by the user +- if(DEFINED PYTHON_EXECUTABLE) +- # Retrieve the corresponding value of PYTHON_INCLUDE_DIR if it is not +- # defined +- if(NOT DEFINED PYTHON_INCLUDE_DIR) +- execute_process( +- COMMAND +- "${PYTHON_EXECUTABLE}" "-c" +- "import distutils.sysconfig as sysconfig; print(sysconfig.get_python_inc())" +- OUTPUT_VARIABLE PYTHON_INCLUDE_DIR +- ERROR_QUIET) +- string(STRIP "${PYTHON_INCLUDE_DIR}" PYTHON_INCLUDE_DIR) +- endif(NOT DEFINED PYTHON_INCLUDE_DIR) +- set(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIR}) +- +- endif(DEFINED PYTHON_EXECUTABLE) +- +- # Inform PythonLibs of the required version of PythonInterp +- set(PYTHONLIBS_VERSION_STRING ${PYTHON_VERSION_STRING}) +- +- find_package(PythonLibs ${ARGN}) +- message(STATUS "PythonLibraries: ${PYTHON_LIBRARIES}") +- if(NOT ${PYTHONLIBS_FOUND} STREQUAL TRUE) +- message(FATAL_ERROR "Python has not been found.") +- endif(NOT ${PYTHONLIBS_FOUND} STREQUAL TRUE) +- +- string(REPLACE "." ";" _PYTHONLIBS_VERSION ${PYTHONLIBS_VERSION_STRING}) +- list(GET _PYTHONLIBS_VERSION 0 PYTHONLIBS_VERSION_MAJOR) +- list(GET _PYTHONLIBS_VERSION 1 PYTHONLIBS_VERSION_MINOR) +- +- if(NOT ${PYTHON_VERSION_MAJOR} EQUAL ${PYTHONLIBS_VERSION_MAJOR} +- OR NOT ${PYTHON_VERSION_MINOR} EQUAL ${PYTHONLIBS_VERSION_MINOR}) +- message( +- FATAL_ERROR +- "Python interpreter and libraries are in different version: ${PYTHON_VERSION_STRING} vs ${PYTHONLIBS_VERSION_STRING}" +- ) +- endif(NOT ${PYTHON_VERSION_MAJOR} EQUAL ${PYTHONLIBS_VERSION_MAJOR} +- OR NOT ${PYTHON_VERSION_MINOR} EQUAL ${PYTHONLIBS_VERSION_MINOR}) +- +- endif(NOT CMAKE_VERSION VERSION_LESS "3.12") ++ set(NUMPY_INCLUDE_DIRS ++ "${Python_NumPy_INCLUDE_DIRS}") + + # Find PYTHON_LIBRARY_DIRS + get_filename_component(PYTHON_LIBRARY_DIRS "${PYTHON_LIBRARIES}" PATH) +@@ -620,30 +448,9 @@ endmacro() + macro(FIND_NUMPY) + # Detect numpy. + message(STATUS "Checking for NumPy") +- execute_process( +- COMMAND "${PYTHON_EXECUTABLE}" "-c" "import numpy; print (True)" +- OUTPUT_VARIABLE IS_NUMPY +- ERROR_QUIET) +- if(NOT IS_NUMPY) +- message(FATAL_ERROR "Failed to detect numpy") +- else() +- if(NOT NUMPY_INCLUDE_DIRS) +- execute_process( +- COMMAND "${PYTHON_EXECUTABLE}" "-c" +- "import numpy; print (numpy.get_include())" +- OUTPUT_VARIABLE NUMPY_INCLUDE_DIRS +- ERROR_QUIET) +- string(REGEX REPLACE "\n$" "" NUMPY_INCLUDE_DIRS "${NUMPY_INCLUDE_DIRS}") +- file(TO_CMAKE_PATH "${NUMPY_INCLUDE_DIRS}" NUMPY_INCLUDE_DIRS) +- endif() +- message(STATUS " NUMPY_INCLUDE_DIRS=${NUMPY_INCLUDE_DIRS}") +- # Retrive NUMPY_VERSION +- execute_process( +- COMMAND "${PYTHON_EXECUTABLE}" "-c" +- "import numpy; print (numpy.__version__)" +- OUTPUT_VARIABLE NUMPY_VERSION +- ERROR_QUIET) +- string(REGEX REPLACE "\n$" "" NUMPY_VERSION "${NUMPY_VERSION}") +- message(STATUS " NUMPY_VERSION=${NUMPY_VERSION}") +- endif() ++ find_package (Python COMPONENTS Interpreter Development NumPy REQUIRED) ++ set(NUMPY_INCLUDE_DIRS ${Python_NumPy_INCLUDE_DIRS}) ++ set(NUMPY_VERSION ${Python_NumPy_VERSION}) ++ message(STATUS " NUMPY_INCLUDE_DIRS=${NUMPY_INCLUDE_DIRS}") ++ message(STATUS " NUMPY_VERSION=${NUMPY_VERSION}") + endmacro() +diff --git a/cmake/python/FindPythonInterp.cmake b/cmake/python/FindPythonInterp.cmake +deleted file mode 100644 +index 1e01a99..0000000 +--- a/cmake/python/FindPythonInterp.cmake ++++ /dev/null +@@ -1,171 +0,0 @@ +-# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +-# file Copyright.txt or https://cmake.org/licensing for details. +- +-#[=======================================================================[.rst: +-FindPythonInterp +----------------- +- +-.. deprecated:: 3.12 +- +- Use :module:`FindPython3`, :module:`FindPython2` or :module:`FindPython` instead. +- +-Find python interpreter +- +-This module finds if Python interpreter is installed and determines +-where the executables are. This code sets the following variables: +- +-:: +- +- PYTHONINTERP_FOUND - Was the Python executable found +- PYTHON_EXECUTABLE - path to the Python interpreter +- +- +- +-:: +- +- PYTHON_VERSION_STRING - Python version found e.g. 2.5.2 +- PYTHON_VERSION_MAJOR - Python major version found e.g. 2 +- PYTHON_VERSION_MINOR - Python minor version found e.g. 5 +- PYTHON_VERSION_PATCH - Python patch version found e.g. 2 +- +- +- +-The Python_ADDITIONAL_VERSIONS variable can be used to specify a list +-of version numbers that should be taken into account when searching +-for Python. You need to set this variable before calling +-find_package(PythonInterp). +- +-If calling both ``find_package(PythonInterp)`` and +-``find_package(PythonLibs)``, call ``find_package(PythonInterp)`` first to +-get the currently active Python version by default with a consistent version +-of PYTHON_LIBRARIES. +- +-.. note:: +- +- A call to ``find_package(PythonInterp ${V})`` for python version ``V`` +- may find a ``python`` executable with no version suffix. In this case +- no attempt is made to avoid python executables from other versions. +- Use :module:`FindPython3`, :module:`FindPython2` or :module:`FindPython` +- instead. +- +-#]=======================================================================] +- +-unset(_Python_NAMES) +- +-set(_PYTHON1_VERSIONS 1.6 1.5) +-set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) +-set(_PYTHON3_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) +- +-if(PythonInterp_FIND_VERSION) +- if(PythonInterp_FIND_VERSION_COUNT GREATER 1) +- set(_PYTHON_FIND_MAJ_MIN "${PythonInterp_FIND_VERSION_MAJOR}.${PythonInterp_FIND_VERSION_MINOR}") +- list(APPEND _Python_NAMES +- python${_PYTHON_FIND_MAJ_MIN} +- python${PythonInterp_FIND_VERSION_MAJOR}) +- unset(_PYTHON_FIND_OTHER_VERSIONS) +- if(NOT PythonInterp_FIND_VERSION_EXACT) +- foreach(_PYTHON_V ${_PYTHON${PythonInterp_FIND_VERSION_MAJOR}_VERSIONS}) +- if(NOT _PYTHON_V VERSION_LESS _PYTHON_FIND_MAJ_MIN) +- list(APPEND _PYTHON_FIND_OTHER_VERSIONS ${_PYTHON_V}) +- endif() +- endforeach() +- endif() +- unset(_PYTHON_FIND_MAJ_MIN) +- else() +- list(APPEND _Python_NAMES python${PythonInterp_FIND_VERSION_MAJOR}) +- set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON${PythonInterp_FIND_VERSION_MAJOR}_VERSIONS}) +- endif() +-else() +- set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} ${_PYTHON1_VERSIONS}) +-endif() +-find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES}) +- +-# Set up the versions we know about, in the order we will search. Always add +-# the user supplied additional versions to the front. +-set(_Python_VERSIONS ${Python_ADDITIONAL_VERSIONS}) +-# If FindPythonInterp has already found the major and minor version, +-# insert that version next to get consistent versions of the interpreter and +-# library. +-if(DEFINED PYTHONLIBS_VERSION_STRING) +- string(REPLACE "." ";" _PYTHONLIBS_VERSION "${PYTHONLIBS_VERSION_STRING}") +- list(GET _PYTHONLIBS_VERSION 0 _PYTHONLIBS_VERSION_MAJOR) +- list(GET _PYTHONLIBS_VERSION 1 _PYTHONLIBS_VERSION_MINOR) +- list(APPEND _Python_VERSIONS ${_PYTHONLIBS_VERSION_MAJOR}.${_PYTHONLIBS_VERSION_MINOR}) +-endif() +-# Search for the current active python version first +-list(APPEND _Python_VERSIONS ";") +-list(APPEND _Python_VERSIONS ${_PYTHON_FIND_OTHER_VERSIONS}) +- +-unset(_PYTHON_FIND_OTHER_VERSIONS) +-unset(_PYTHON1_VERSIONS) +-unset(_PYTHON2_VERSIONS) +-unset(_PYTHON3_VERSIONS) +- +-# Search for newest python version if python executable isn't found +-if(NOT PYTHON_EXECUTABLE) +- foreach(_CURRENT_VERSION IN LISTS _Python_VERSIONS) +- set(_Python_NAMES python${_CURRENT_VERSION}) +- if(CMAKE_HOST_WIN32) +- list(APPEND _Python_NAMES python) +- endif() +- find_program(PYTHON_EXECUTABLE +- NAMES ${_Python_NAMES} +- PATHS +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-32\\InstallPath] +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-64\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-32\\InstallPath] +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-64\\InstallPath] +- ) +- endforeach() +-endif() +- +-# determine python version string +-if(PYTHON_EXECUTABLE) +- execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c +- "import sys; sys.stdout.write(';'.join([str(x) for x in sys.version_info[:3]]))" +- OUTPUT_VARIABLE _VERSION +- RESULT_VARIABLE _PYTHON_VERSION_RESULT +- ERROR_QUIET) +- if(NOT _PYTHON_VERSION_RESULT) +- string(REPLACE ";" "." PYTHON_VERSION_STRING "${_VERSION}") +- list(GET _VERSION 0 PYTHON_VERSION_MAJOR) +- list(GET _VERSION 1 PYTHON_VERSION_MINOR) +- list(GET _VERSION 2 PYTHON_VERSION_PATCH) +- if(PYTHON_VERSION_PATCH EQUAL 0) +- # it's called "Python 2.7", not "2.7.0" +- string(REGEX REPLACE "\\.0$" "" PYTHON_VERSION_STRING "${PYTHON_VERSION_STRING}") +- endif() +- else() +- # sys.version predates sys.version_info, so use that +- # sys.version was first documented for Python 1.5, so assume version 1.4 +- # if retrieving sys.version fails. +- execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "try: import sys; sys.stdout.write(sys.version)\nexcept: sys.stdout.write(\"1.4.0\")" +- OUTPUT_VARIABLE _VERSION +- RESULT_VARIABLE _PYTHON_VERSION_RESULT +- ERROR_QUIET) +- if(NOT _PYTHON_VERSION_RESULT) +- string(REGEX REPLACE " .*" "" PYTHON_VERSION_STRING "${_VERSION}") +- string(REGEX REPLACE "^([0-9]+)\\.[0-9]+.*" "\\1" PYTHON_VERSION_MAJOR "${PYTHON_VERSION_STRING}") +- string(REGEX REPLACE "^[0-9]+\\.([0-9])+.*" "\\1" PYTHON_VERSION_MINOR "${PYTHON_VERSION_STRING}") +- if(PYTHON_VERSION_STRING MATCHES "^[0-9]+\\.[0-9]+\\.([0-9]+)") +- set(PYTHON_VERSION_PATCH "${CMAKE_MATCH_1}") +- else() +- set(PYTHON_VERSION_PATCH "0") +- endif() +- else() +- unset(PYTHON_VERSION_STRING) +- unset(PYTHON_VERSION_MAJOR) +- unset(PYTHON_VERSION_MINOR) +- unset(PYTHON_VERSION_PATCH) +- endif() +- endif() +- unset(_PYTHON_VERSION_RESULT) +- unset(_VERSION) +-endif() +- +-include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) +-FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonInterp REQUIRED_VARS PYTHON_EXECUTABLE VERSION_VAR PYTHON_VERSION_STRING) +- +-mark_as_advanced(PYTHON_EXECUTABLE) +diff --git a/cmake/python/FindPythonLibs.cmake b/cmake/python/FindPythonLibs.cmake +deleted file mode 100644 +index d3ec7be..0000000 +--- a/cmake/python/FindPythonLibs.cmake ++++ /dev/null +@@ -1,399 +0,0 @@ +-# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +-# file Copyright.txt or https://cmake.org/licensing for details. +- +-#[=======================================================================[.rst: +-FindPythonLibs +--------------- +- +-.. deprecated:: 3.12 +- +- Use :module:`FindPython3`, :module:`FindPython2` or :module:`FindPython` instead. +- +-Find python libraries +- +-This module finds if Python is installed and determines where the +-include files and libraries are. It also determines what the name of +-the library is. This code sets the following variables: +- +-:: +- +- PYTHONLIBS_FOUND - have the Python libs been found +- PYTHON_LIBRARIES - path to the python library +- PYTHON_INCLUDE_PATH - path to where Python.h is found (deprecated) +- PYTHON_INCLUDE_DIRS - path to where Python.h is found +- PYTHON_DEBUG_LIBRARIES - path to the debug library (deprecated) +- PYTHONLIBS_VERSION_STRING - version of the Python libs found (since CMake 2.8.8) +- +- +- +-The Python_ADDITIONAL_VERSIONS variable can be used to specify a list +-of version numbers that should be taken into account when searching +-for Python. You need to set this variable before calling +-find_package(PythonLibs). +- +-If you'd like to specify the installation of Python to use, you should +-modify the following cache variables: +- +-:: +- +- PYTHON_LIBRARY - path to the python library +- PYTHON_INCLUDE_DIR - path to where Python.h is found +- +-If calling both ``find_package(PythonInterp)`` and +-``find_package(PythonLibs)``, call ``find_package(PythonInterp)`` first to +-get the currently active Python version by default with a consistent version +-of PYTHON_LIBRARIES. +-#]=======================================================================] +- +-# Use the executable's path as a hint +-set(_Python_LIBRARY_PATH_HINT) +-if(IS_ABSOLUTE "${PYTHON_EXECUTABLE}") +- if(WIN32) +- get_filename_component(_Python_PREFIX "${PYTHON_EXECUTABLE}" PATH) +- if(_Python_PREFIX) +- set(_Python_LIBRARY_PATH_HINT ${_Python_PREFIX}/libs) +- endif() +- unset(_Python_PREFIX) +- else() +- get_filename_component(_Python_PREFIX "${PYTHON_EXECUTABLE}" PATH) +- get_filename_component(_Python_PREFIX "${_Python_PREFIX}" PATH) +- if(_Python_PREFIX) +- set(_Python_LIBRARY_PATH_HINT ${_Python_PREFIX}/lib) +- endif() +- unset(_Python_PREFIX) +- endif() +-endif() +- +-include(${CMAKE_CURRENT_LIST_DIR}/CMakeFindFrameworks.cmake) +-# Search for the python framework on Apple. +-CMAKE_FIND_FRAMEWORKS(Python) +- +-# Save CMAKE_FIND_FRAMEWORK +-if(DEFINED CMAKE_FIND_FRAMEWORK) +- set(_PythonLibs_CMAKE_FIND_FRAMEWORK ${CMAKE_FIND_FRAMEWORK}) +-else() +- unset(_PythonLibs_CMAKE_FIND_FRAMEWORK) +-endif() +-# To avoid picking up the system Python.h pre-maturely. +-set(CMAKE_FIND_FRAMEWORK LAST) +- +-set(_PYTHON1_VERSIONS 1.6 1.5) +-set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) +-set(_PYTHON3_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) +- +-if(PythonLibs_FIND_VERSION) +- if(PythonLibs_FIND_VERSION_COUNT GREATER 1) +- set(_PYTHON_FIND_MAJ_MIN "${PythonLibs_FIND_VERSION_MAJOR}.${PythonLibs_FIND_VERSION_MINOR}") +- unset(_PYTHON_FIND_OTHER_VERSIONS) +- if(PythonLibs_FIND_VERSION_EXACT) +- if(_PYTHON_FIND_MAJ_MIN STREQUAL PythonLibs_FIND_VERSION) +- set(_PYTHON_FIND_OTHER_VERSIONS "${PythonLibs_FIND_VERSION}") +- else() +- set(_PYTHON_FIND_OTHER_VERSIONS "${PythonLibs_FIND_VERSION}" "${_PYTHON_FIND_MAJ_MIN}") +- endif() +- else() +- foreach(_PYTHON_V ${_PYTHON${PythonLibs_FIND_VERSION_MAJOR}_VERSIONS}) +- if(NOT _PYTHON_V VERSION_LESS _PYTHON_FIND_MAJ_MIN) +- list(APPEND _PYTHON_FIND_OTHER_VERSIONS ${_PYTHON_V}) +- endif() +- endforeach() +- endif() +- unset(_PYTHON_FIND_MAJ_MIN) +- else() +- set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON${PythonLibs_FIND_VERSION_MAJOR}_VERSIONS}) +- endif() +-else() +- set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} ${_PYTHON1_VERSIONS}) +-endif() +- +-# Set up the versions we know about, in the order we will search. Always add +-# the user supplied additional versions to the front. +-# If FindPythonInterp has already found the major and minor version, +-# insert that version between the user supplied versions and the stock +-# version list. +-set(_Python_VERSIONS ${Python_ADDITIONAL_VERSIONS}) +-if(DEFINED PYTHON_VERSION_MAJOR AND DEFINED PYTHON_VERSION_MINOR) +- list(APPEND _Python_VERSIONS ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) +-endif() +-list(APPEND _Python_VERSIONS ${_PYTHON_FIND_OTHER_VERSIONS}) +- +-unset(_PYTHON_FIND_OTHER_VERSIONS) +-unset(_PYTHON1_VERSIONS) +-unset(_PYTHON2_VERSIONS) +-unset(_PYTHON3_VERSIONS) +- +-# Python distribution: define which architectures can be used +-if (CMAKE_SIZEOF_VOID_P) +- # In this case, search only for 64bit or 32bit +- math (EXPR _PYTHON_ARCH "${CMAKE_SIZEOF_VOID_P} * 8") +- set (_PYTHON_ARCH2 _PYTHON_PREFIX_ARCH}) +-else() +- if (PYTHON_EXECUTABLE) +- # determine interpreter architecture +- execute_process (COMMAND "${PYTHON_EXECUTABLE}" -c "import sys; print(sys.maxsize > 2**32)" +- RESULT_VARIABLE _PYTHON_RESULT +- OUTPUT_VARIABLE _PYTHON_IS64BIT +- ERROR_VARIABLE _PYTHON_IS64BIT) +- if (NOT _PYTHON_RESULT) +- if (_PYTHON_IS64BIT) +- set (_PYTHON_ARCH 64) +- set (_PYTHON_ARCH2 64) +- else() +- set (_PYTHON_ARCH 32) +- set (_PYTHON_ARCH2 32) +- endif() +- endif() +- else() +- # architecture unknown, search for both 64bit and 32bit +- set (_PYTHON_ARCH 64) +- set (_PYTHON_ARCH2 32) +- endif() +-endif() +- +-foreach(_CURRENT_VERSION ${_Python_VERSIONS}) +- string(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION}) +- if(WIN32) +- find_library(PYTHON_DEBUG_LIBRARY +- NAMES python${_CURRENT_VERSION_NO_DOTS}_d python +- NAMES_PER_DIR +- HINTS ${_Python_LIBRARY_PATH_HINT} +- PATHS +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs/Debug +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH}\\InstallPath]/libs/Debug +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH2}\\InstallPath]/libs/Debug +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs/Debug +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH}\\InstallPath]/libs/Debug +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH2}\\InstallPath]/libs/Debug +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH}\\InstallPath]/libs +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH2}\\InstallPath]/libs +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH}\\InstallPath]/libs +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH2}\\InstallPath]/libs +- ) +- endif() +- +- set(PYTHON_FRAMEWORK_LIBRARIES) +- if(Python_FRAMEWORKS AND NOT PYTHON_LIBRARY) +- foreach(dir ${Python_FRAMEWORKS}) +- list(APPEND PYTHON_FRAMEWORK_LIBRARIES +- ${dir}/Versions/${_CURRENT_VERSION}/lib) +- endforeach() +- endif() +- find_library(PYTHON_LIBRARY +- NAMES +- python${_CURRENT_VERSION_NO_DOTS} +- python${_CURRENT_VERSION}mu +- python${_CURRENT_VERSION}m +- python${_CURRENT_VERSION}u +- python${_CURRENT_VERSION} +- NAMES_PER_DIR +- HINTS +- ${_Python_LIBRARY_PATH_HINT} +- PATHS +- ${PYTHON_FRAMEWORK_LIBRARIES} +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH}\\InstallPath]/libs +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH2}\\InstallPath]/libs +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH}\\InstallPath]/libs +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH2}\\InstallPath]/libs +- ) +- # Look for the static library in the Python config directory +- find_library(PYTHON_LIBRARY +- NAMES python${_CURRENT_VERSION_NO_DOTS} python${_CURRENT_VERSION} +- NAMES_PER_DIR +- # This is where the static library is usually located +- PATH_SUFFIXES python${_CURRENT_VERSION}/config +- ) +- +- # Don't search for include dir until library location is known +- if(PYTHON_LIBRARY) +- +- # Use the library's install prefix as a hint +- set(_Python_INCLUDE_PATH_HINT) +- # PYTHON_LIBRARY may contain a list because of SelectLibraryConfigurations +- # which may have been run previously. If it is the case, the list can be: +- # optimized;;debug; +- foreach(lib ${PYTHON_LIBRARY} ${PYTHON_DEBUG_LIBRARY}) +- if(IS_ABSOLUTE "${lib}") +- get_filename_component(_Python_PREFIX "${lib}" PATH) +- get_filename_component(_Python_PREFIX "${_Python_PREFIX}" PATH) +- if(_Python_PREFIX) +- list(APPEND _Python_INCLUDE_PATH_HINT ${_Python_PREFIX}/include) +- endif() +- unset(_Python_PREFIX) +- endif() +- endforeach() +- +- # Add framework directories to the search paths +- set(PYTHON_FRAMEWORK_INCLUDES) +- if(Python_FRAMEWORKS AND NOT PYTHON_INCLUDE_DIR) +- foreach(dir ${Python_FRAMEWORKS}) +- list(APPEND PYTHON_FRAMEWORK_INCLUDES +- ${dir}/Versions/${_CURRENT_VERSION}/include) +- endforeach() +- endif() +- +- find_path(PYTHON_INCLUDE_DIR +- NAMES Python.h +- HINTS +- ${_Python_INCLUDE_PATH_HINT} +- PATHS +- ${PYTHON_FRAMEWORK_INCLUDES} +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/include +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH}\\InstallPath]/include +- [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH2}\\InstallPath]/include +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/include +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH}\\InstallPath]/include +- [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}-${_PYTHON_ARCH2}\\InstallPath]/include +- PATH_SUFFIXES +- python${_CURRENT_VERSION}mu +- python${_CURRENT_VERSION}m +- python${_CURRENT_VERSION}u +- python${_CURRENT_VERSION} +- ) +- endif() +- +- # For backward compatibility, set PYTHON_INCLUDE_PATH. +- set(PYTHON_INCLUDE_PATH "${PYTHON_INCLUDE_DIR}") +- +- if(PYTHON_INCLUDE_DIR AND EXISTS "${PYTHON_INCLUDE_DIR}/patchlevel.h") +- file(STRINGS "${PYTHON_INCLUDE_DIR}/patchlevel.h" python_version_str +- REGEX "^#define[ \t]+PY_VERSION[ \t]+\"[^\"]+\"") +- string(REGEX REPLACE "^#define[ \t]+PY_VERSION[ \t]+\"([^\"]+)\".*" "\\1" +- PYTHONLIBS_VERSION_STRING "${python_version_str}") +- unset(python_version_str) +- endif() +- +- if(PYTHON_LIBRARY AND PYTHON_INCLUDE_DIR) +- break() +- endif() +-endforeach() +- +-unset(_Python_INCLUDE_PATH_HINT) +-unset(_Python_LIBRARY_PATH_HINT) +- +-mark_as_advanced( +- PYTHON_DEBUG_LIBRARY +- PYTHON_LIBRARY +- PYTHON_INCLUDE_DIR +-) +- +-# We use PYTHON_INCLUDE_DIR, PYTHON_LIBRARY and PYTHON_DEBUG_LIBRARY for the +-# cache entries because they are meant to specify the location of a single +-# library. We now set the variables listed by the documentation for this +-# module. +-set(PYTHON_INCLUDE_DIRS "${PYTHON_INCLUDE_DIR}") +-set(PYTHON_DEBUG_LIBRARIES "${PYTHON_DEBUG_LIBRARY}") +- +-# These variables have been historically named in this module different from +-# what SELECT_LIBRARY_CONFIGURATIONS() expects. +-set(PYTHON_LIBRARY_DEBUG "${PYTHON_DEBUG_LIBRARY}") +-set(PYTHON_LIBRARY_RELEASE "${PYTHON_LIBRARY}") +-include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake) +-SELECT_LIBRARY_CONFIGURATIONS(PYTHON) +-# SELECT_LIBRARY_CONFIGURATIONS() sets ${PREFIX}_FOUND if it has a library. +-# Unset this, this prefix doesn't match the module prefix, they are different +-# for historical reasons. +-unset(PYTHON_FOUND) +- +-# Restore CMAKE_FIND_FRAMEWORK +-if(DEFINED _PythonLibs_CMAKE_FIND_FRAMEWORK) +- set(CMAKE_FIND_FRAMEWORK ${_PythonLibs_CMAKE_FIND_FRAMEWORK}) +- unset(_PythonLibs_CMAKE_FIND_FRAMEWORK) +-else() +- unset(CMAKE_FIND_FRAMEWORK) +-endif() +- +-include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) +-FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonLibs +- REQUIRED_VARS PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS +- VERSION_VAR PYTHONLIBS_VERSION_STRING) +- +-# PYTHON_ADD_MODULE( src1 src2 ... srcN) is used to build modules for python. +-# PYTHON_WRITE_MODULES_HEADER() writes a header file you can include +-# in your sources to initialize the static python modules +-function(PYTHON_ADD_MODULE _NAME ) +- get_property(_TARGET_SUPPORTS_SHARED_LIBS +- GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS) +- option(PYTHON_ENABLE_MODULE_${_NAME} "Add module ${_NAME}" TRUE) +- option(PYTHON_MODULE_${_NAME}_BUILD_SHARED +- "Add module ${_NAME} shared" ${_TARGET_SUPPORTS_SHARED_LIBS}) +- +- # Mark these options as advanced +- mark_as_advanced(PYTHON_ENABLE_MODULE_${_NAME} +- PYTHON_MODULE_${_NAME}_BUILD_SHARED) +- +- if(PYTHON_ENABLE_MODULE_${_NAME}) +- if(PYTHON_MODULE_${_NAME}_BUILD_SHARED) +- set(PY_MODULE_TYPE MODULE) +- else() +- set(PY_MODULE_TYPE STATIC) +- set_property(GLOBAL APPEND PROPERTY PY_STATIC_MODULES_LIST ${_NAME}) +- endif() +- +- set_property(GLOBAL APPEND PROPERTY PY_MODULES_LIST ${_NAME}) +- add_library(${_NAME} ${PY_MODULE_TYPE} ${ARGN}) +-# target_link_libraries(${_NAME} ${PYTHON_LIBRARIES}) +- +- if(PYTHON_MODULE_${_NAME}_BUILD_SHARED) +- set_target_properties(${_NAME} PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}") +- if(WIN32 AND NOT CYGWIN) +- set_target_properties(${_NAME} PROPERTIES SUFFIX ".pyd") +- endif() +- endif() +- +- endif() +-endfunction() +- +-function(PYTHON_WRITE_MODULES_HEADER _filename) +- +- get_property(PY_STATIC_MODULES_LIST GLOBAL PROPERTY PY_STATIC_MODULES_LIST) +- +- get_filename_component(_name "${_filename}" NAME) +- string(REPLACE "." "_" _name "${_name}") +- string(TOUPPER ${_name} _nameUpper) +- set(_filename ${CMAKE_CURRENT_BINARY_DIR}/${_filename}) +- +- set(_filenameTmp "${_filename}.in") +- file(WRITE ${_filenameTmp} "/*Created by cmake, do not edit, changes will be lost*/\n") +- file(APPEND ${_filenameTmp} +-"#ifndef ${_nameUpper} +-#define ${_nameUpper} +- +-#include +- +-#ifdef __cplusplus +-extern \"C\" { +-#endif /* __cplusplus */ +- +-") +- +- foreach(_currentModule ${PY_STATIC_MODULES_LIST}) +- file(APPEND ${_filenameTmp} "extern void init${PYTHON_MODULE_PREFIX}${_currentModule}(void);\n\n") +- endforeach() +- +- file(APPEND ${_filenameTmp} +-"#ifdef __cplusplus +-} +-#endif /* __cplusplus */ +- +-") +- +- +- foreach(_currentModule ${PY_STATIC_MODULES_LIST}) +- file(APPEND ${_filenameTmp} "int ${_name}_${_currentModule}(void) \n{\n static char name[]=\"${PYTHON_MODULE_PREFIX}${_currentModule}\"; return PyImport_AppendInittab(name, init${PYTHON_MODULE_PREFIX}${_currentModule});\n}\n\n") +- endforeach() +- +- file(APPEND ${_filenameTmp} "void ${_name}_LoadAllPythonModules(void)\n{\n") +- foreach(_currentModule ${PY_STATIC_MODULES_LIST}) +- file(APPEND ${_filenameTmp} " ${_name}_${_currentModule}();\n") +- endforeach() +- file(APPEND ${_filenameTmp} "}\n\n") +- file(APPEND ${_filenameTmp} "#ifndef EXCLUDE_LOAD_ALL_FUNCTION\nvoid CMakeLoadAllPythonModules(void)\n{\n ${_name}_LoadAllPythonModules();\n}\n#endif\n\n#endif\n") +- +-# with configure_file() cmake complains that you may not use a file created using file(WRITE) as input file for configure_file() +- execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${_filenameTmp}" "${_filename}" OUTPUT_QUIET ERROR_QUIET) +- +-endfunction() diff --git a/distros/noetic/patch/ros-noetic-eml.patch b/distros/noetic/patch/ros-noetic-eml.patch new file mode 100644 index 000000000..76d8348bd --- /dev/null +++ b/distros/noetic/patch/ros-noetic-eml.patch @@ -0,0 +1,34566 @@ +diff --git a/CMakeLists.txt ./CMakeLists.txt +new file mode 100644 +index 0000000..01af686 +--- /dev/null ++++ ./CMakeLists.txt +@@ -0,0 +1,63 @@ ++# Copyright FMTC 2006-2008 ++# Author: Klaas Gadeyne. Copied stuff from ++# Linux (PREEMPT_RT) port based on patch by RvdM (October, 5th, 2007) ++ ++# The name of our project is "EML" (EtherCat Master Library). ++# CMakeLists files in this project can refer to the root source ++# directory of the project as ${EML_SOURCE_DIR} and ++# to the root binary directory of the project as ${EML_BINARY_DIR}. ++project (EML) ++ ++OPTION( BUILD_FOR_ECOS "Build EML for the eCos OS" OFF) ++ ++IF (BUILD_FOR_ECOS) ++ INCLUDE(UseEcos) ++ SET( ECOS_INSTALL_PATH "/path/to/ecos.ecc file" CACHE STRING "Where are your ecos installation directories (i.e. your ecos.ecc file)?" ) ++ # ECOS_ADD_INCLUDE_DIRECTORIES() ++ INCLUDE_DIRECTORIES(${EML_SOURCE_DIR}/include/ethercat/arch-eCos) ++ INCLUDE_DIRECTORIES(${ECOS_INSTALL_PATH}/ecos/install/include/) ++ # FIXME: Build system only supports i386 for now... ++ ECOS_USE_I386_ELF_TOOLS() ++ENDIF (BUILD_FOR_ECOS) ++ ++OPTION( BUILD_FOR_RTNET "Build EML using RTNET/Xenomai" OFF) ++ ++IF (BUILD_FOR_RTNET) ++ SET(CMAKE_VERBOSE_MAKEFILE ON) ++ SET(RTNET_INSTALL_PATH "/usr/local/rtnet" CACHE STRING "Path of the RTnet installation directory") ++ SET(XENOMAI_INSTALL_PATH "/usr/xenomai" CACHE STRING "Path of the Xenomai installation directory") ++ ++ INCLUDE_DIRECTORIES(${EML_SOURCE_DIR}/include/ethercat/arch-RTnet) ++ INCLUDE_DIRECTORIES(${RTNET_INSTALL_PATH}/include) ++ INCLUDE_DIRECTORIES(${XENOMAI_INSTALL_PATH}/include) ++ LINK_DIRECTORIES(${XENOMAI_INSTALL_PATH}/lib) ++ ++ SET (XNPOSIX_USER_CFLAGS "`${XENOMAI_INSTALL_PATH}/bin/xeno-config --posix-cflags`") ++ EXEC_PROGRAM ("${XENOMAI_INSTALL_PATH}/bin/xeno-config --posix-ldflags" ++ OUTPUT_VARIABLE XNPOSIX_USER_LDFLAGS) ++ENDIF (BUILD_FOR_RTNET) ++ ++OPTION( BUILD_FOR_POSIX "Build for POSIX (Only tested on Linux/PREEMPT_RT for now)" ON) ++ ++IF (BUILD_FOR_POSIX) ++ SET (POSIX_USER_LDFLAGS "-lpthread -lrt") ++ ++ INCLUDE_DIRECTORIES(${EML_SOURCE_DIR}/include/ethercat/arch-RTnet) ++ ++ENDIF (BUILD_FOR_POSIX) ++ ++# Make sure the compiler can find include files from our library. ++include_directories (${EML_SOURCE_DIR}/include) ++ ++# This simply branches into the listed subdirectories Recurse into the ++# "src" and "test" subdirectories. This does not actually cause ++# another cmake executable to run. The same process will walk through ++# the project's entire directory structure. ++add_subdirectory (src) ++add_subdirectory (tests) ++ ++# FIXME KG What's the f*cking difference with SUBDIRS, as used in the ++# ecos examples? ++# SUBDIRS(src tests) ++ ++ +diff --git a/ethercatmaster.cdl ./ethercatmaster.cdl +new file mode 100644 +index 0000000..34e38bb +--- /dev/null ++++ ./ethercatmaster.cdl +@@ -0,0 +1,197 @@ ++#==================================================================== ++# ++# ethercatmaster.cdl ++# ++# EtherCAT Master stack configuration data ++# ++# ==================================================================== ++#=========================================================================== ++# This file is part of "EtherCAT Master Library". ++# Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++# B-1030 Brussels, Belgium. ++# ++# EtherCAT Master Library is free software; you can redistribute it ++# and/or modify it under the terms of the GNU General Public License ++# as published by the Free Software Foundation; either version 2 or ++# (at your option) any later version. ++# ++# EtherCAT Master Code is distributed in the hope that it will be ++# useful, but WITHOUT ANY WARRANTY; without even the implied ++# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++# PURPOSE. See the GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with the EtherCAT Master Library; if not, write to the Free ++# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++# 02111-1307 USA. ++# ++# EtherCAT, the EtherCAT trade name and logo are the intellectual ++# property of, and protected by Beckhoff. You can use "EtherCAT ++# Master Library" for creating and/or selling or otherwise ++# distributing an EtherCAT network master under the terms of the ++# EtherCAT Master License. ++# ++# You should have received a copy of the EtherCAT Master License ++# along with the EtherCAT Master Library; if not, write to Beckhoff ++# Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++# =========================================================================== ++ ++# =========================================================================== ++# FIXME ++# - Dependencies on other packages need to be fixed ++# ++# ==================================================================== ++ ++######DESCRIPTIONBEGIN#### ++# ++# Author(s): Bob Koninckx, Klaas Gadeyne ++# Contributors: ++# Date: 2005-04-06 ++# ++#####DESCRIPTIONEND#### ++# ++# ==================================================================== ++ ++cdl_package CYGPKG_NET_ETHERCATMASTER { ++ display "EtherCAT Master" ++ description "EtherCAT Master protocol stack" ++ ++ compile -library=libextras.a ecos/support.cxx \ ++ ecos/init.cxx ++ ++ cdl_option CYGNUM_ETHERCATMASTER_LOG_LEVEL { ++ display "EtherCAT Master log level" ++ flavor data ++ legal_values {0 1 2 3 4} ++ default_value 0 ++ description { "Verbosity of logging information messages. Log level ++ 0 prevents anything from being logged. Level 1 will ++ only show fatal errors, level 2 shows all errors. Level ++ 3 adds warnings, end, level 4 finally also shows mere ++ informational messages." } ++ } ++ ++ cdl_option CYGNUM_ETHERCATMASTER_DELIVERY_STACK_SIZE { ++ display "Delivery thread stack size" ++ flavor data ++ default_value 16384 ++ description " ++ The EtherCAT ethernet device driver implements a delivery thread ++ which responds to incoming packets and sends out queued packets ++ as soon as the device is available again. This option determines ++ the stack size of this delivery thread." ++ } ++ ++ cdl_option CYGNUM_ETHERCATMASTER_DELIVERY_PRIORITY { ++ display "Delivery thread priority" ++ flavor data ++ default_value 8 ++ legal_values 0 to 31 ++ description " ++ The EtherCAT ethernet device driver implements a delivery thread ++ which responds to incoming packets and sends out queued packets ++ as soon as the device is available again. This option determines ++ the priority of this delivery thread." ++ } ++ ++ cdl_component CYGPKG_ETHERCATMASTER_DLL { ++ display "Datalink layer subsystem" ++ flavor none ++ requires CYGPKG_IO_ETH_DRIVERS ++ description "Configuration for the Data Link Layer Subsystem" ++ compile dll/ethercat_dll.cxx \ ++ dll/ethercat_telegram.cxx \ ++ dll/ethercat_frame.cxx \ ++ dll/ethercat_device_addressed_telegram.cxx \ ++ dll/ethercat_logical_addressed_telegram.cxx \ ++ dll/ethercat_slave_memory.cxx ++ ++ cdl_option CYGDAT_ETHERCATMASTER_ETH_DEVICE { ++ display "Ethernet device" ++ flavor data ++ default_value {"\"eth0\""} ++ description "Ethernet device to be used by the EtherCAT master" ++ } ++ ++ cdl_option CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY { ++ display "Timeout value" ++ flavor data ++ default_value 20000000 ++ description " ++ Due to its implementation where slaves process ++ the EtherCAT frames on-the-fly, EtherCAT frames ++ should return to the master 'instantaneously'. ++ Due to hardware problems (e.g. disconnecting a ++ slave from the logical ring, sometimes frames ++ don't get back. For this reason, a the rx part ++ implements a timeout after which it gives up. ++ This option determines the value of this ++ timeout, expressed in nanoseconds." ++ } ++ ++ cdl_option CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY_TICKS { ++ display "Timeout value in ticks" ++ flavor data ++ calculated ((CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++ } ++ } ++ ++ cdl_component CYGPKG_ETHERCATMASTER_AL { ++ display "Application layer subsystem" ++ flavor none ++ requires CYGPKG_ETHERCATMASTER_DLL ++ description "Configuration for the Application Link Subsystem" ++ compile al/ethercat_slave_conf.cxx \ ++ al/ethercat_FSM.cxx \ ++ al/ethercat_slave_handler.cxx \ ++ al/ethercat_AL.cxx \ ++ al/ethercat_mbx.cxx \ ++ al/ethercat_router.cxx \ ++ al/ethercat_process_data.cxx \ ++ al/ethercat_master.cxx ++ ++ cdl_option CYGNUM_ETHERCATMASTER_ROUTE_STACK_SIZE { ++ display "Route thread stack size" ++ flavor data ++ default_value 16384 ++ description " ++ The EtherCAT ethernet device driver implements a ++ periodic route thread which is used to check if any ++ of the EtherCAT slaves has posted something in its ++ mailbox. This option determines the stack size of this ++ thread." ++ } ++ ++ cdl_option CYGNUM_ETHERCATMASTER_ROUTE_PRIORITY { ++ display "Route thread priority" ++ flavor data ++ default_value 10 ++ legal_values 0 to 31 ++ description " ++ The EtherCAT ethernet device driver implements a period ++ route thread which is used to check if any of the ++ EtherCAT slaves has posted something in its mailbox. ++ This option determines the thread priority of this ++ thread." ++ } ++ ++ cdl_option CYGNUM_ETHERCATMASTER_ROUTE_PERIOD { ++ display "Route thread period" ++ flavor data ++ default_value 100000000 ++ description " ++ The EtherCAT ethernet device driver implements a period ++ route thread which is used to check if any of the ++ EtherCAT slaves has posted something in its mailbox. ++ This option determines the period of this thread (and ++ thus the responsiveness of ROUTE commands) ++ expressed in nanoseconds." ++ } ++ ++ cdl_option CYGNUM_ETHERCATMASTER_ROUTE_PERIOD_TICKS { ++ display "Route thread period in ticks" ++ flavor data ++ calculated ((CYGNUM_ETHERCATMASTER_ROUTE_PERIOD * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++ } ++ } ++} +diff --git a/include/al/ethercat_AL.h ./include/al/ethercat_AL.h +new file mode 100644 +index 0000000..338bcf3 +--- /dev/null ++++ ./include/al/ethercat_AL.h +@@ -0,0 +1,184 @@ ++// $Id: ethercat_AL.h,v 1.15 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_al__ ++#define __ethercat_al__ ++ ++#include "ethercat/ethercat_defs.h" ++ ++// forward declaration ++class EtherCAT_DataLinkLayer; ++class EtherCAT_SlaveHandler; ++class EtherCAT_SlaveDb; ++class EC_FixedStationAddress; ++ ++/// Convert ringpos2adp in case of autoincrement addressing; ++/** @param ringpos Position in the ring (counting starts from 0) ++ @return adp ++*/ ++inline EC_UINT ringpos2adp(EC_UINT ringpos) ++{ ++ return (EC_UINT) (0x0000 - ringpos); ++} ++ ++/// Convert adp2ringpos in case of autoincrement addressing; ++/** @param adp Auto increment address ++ @return ringpos ++*/ ++inline EC_UINT adp2ringpos(EC_UINT adp) ++{ ++ return (EC_UINT) (0x0000 - adp); ++} ++ ++/// EtherCAT "logic" ++/** @todo search better name for this ++ */ ++class EC_Logic ++{ ++ public: ++ /// this class is a singleton ++ static EC_Logic * instance(); ++ virtual ~EC_Logic(){}; ++ /// Get current idx ++ EC_USINT get_idx(); ++ /// Get wkc (normally always zero, not truly necessary) ++ EC_UINT get_wkc(); ++ ++ private: ++ /// Constructor ++ EC_Logic(); ++ /// Instance ++ static EC_Logic * m_instance; ++ /// Working Counter ++ const EC_UINT m_wkc; ++ /// Index (Increased with each frame the master sends) ++ EC_USINT m_idx; ++}; ++ ++inline EC_USINT ++EC_Logic::get_idx(){ return m_idx++;} ++inline EC_UINT ++EC_Logic::get_wkc(){ return m_wkc;} ++ ++/// EtherCAT Master Application Layer ++class EtherCAT_AL ++{ ++ friend class EtherCAT_Router; ++ ++ public: ++ /// This class is a singleton ++ static EtherCAT_AL * instance(); ++ ++ /// Destructor ++ virtual ~EtherCAT_AL(); ++ ++ /// Get pointer to slaveHandler ++ /** @return pointer to the slaveHandler if it exist, or NULL ++ otherwise ++ @todo As implemented right now, this is an O(N) operation. Try ++ to use some kind of mapping/hash table... ++ */ ++ EtherCAT_SlaveHandler * get_slave_handler(EC_FixedStationAddress station_address); ++ ++ /// Get the number of slaves ++ /** @return the number of slaves ++ */ ++ unsigned int get_num_slaves(){ return m_num_slaves;} ++ ++ /// Check the AL is ready (init was succesful) ++ /** @return true if ready ++ */ ++ ++ bool isReady(); ++ ++ protected: ++ /// Constructor (protected) ++ EtherCAT_AL(); ++ ++ /// Init of EtherCAT network. ++ /** Counts and identifies the number of slaves in the network, and ++ resets the slaves configuration. ++ @return true if success ++ */ ++ bool init(void); ++ ++ /// Scan the slave network, create the necessary slave Handlers ++ /** @return true if succes ++ @todo if 2 slaves have the same product code and revision, they ++ will get the same address!! ++ */ ++ bool scan_slaves(void); ++ ++ /// Reset slaves ++ /** @return true if success ++ */ ++ bool reset_slaves(void); ++ ++ /// Put all slaves in their init state ++ /** @return true if success ++ */ ++ bool put_slaves_in_init(void); ++ ++ private: ++ /// Instance ++ static EtherCAT_AL * m_instance; ++ /// DLL Instance ++ EtherCAT_DataLinkLayer * m_dll_instance; ++ /// Using commonly idx ++ EC_Logic * m_logic_instance; ++ ++ /// Pointer to the slave Handlers ++ EtherCAT_SlaveHandler ** m_slave_handler; ++ ++ /// Pointer to the slave database ++ EtherCAT_SlaveDb * m_slave_db; ++ ++ /// Get information from the SII (in Autoincrement mode) ++ /** @param slave_adp address pointer of the slave to read in ++ autoincrement mode ++ @param address address of the EEPROM that should be read ++ @param a_buffer buffer to put the data in ++ @return reading succeeded? ++ */ ++ bool read_SII(EC_UINT slave_adp, EC_UDINT address, unsigned char * a_buffer); ++ ++ /// Number of slaves in the setup ++ unsigned int m_num_slaves; ++ ++ /// Set is init is succesful ++ bool m_ready; ++}; ++ ++ ++ ++#endif +diff --git a/include/al/ethercat_FSM.h ./include/al/ethercat_FSM.h +new file mode 100644 +index 0000000..dd9fc70 +--- /dev/null ++++ ./include/al/ethercat_FSM.h +@@ -0,0 +1,196 @@ ++// $Id: ethercat_FSM.h,v 1.16 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_fsm__ ++#define __ethercat_fsm__ ++ ++/* Note, this class is supposed to be programmed according to the ++ FSM design Pattern. ++*/ ++ ++// forward declarations ++class EtherCAT_AL; ++class EC_Logic; ++class EtherCAT_SlaveHandler; ++class EtherCAT_DataLinkLayer; ++class EtherCAT_Router; ++class EtherCAT_PD_Buffer; ++ ++// FIXME how to do forward declaration of typedef enum?, with "extern" ++// keyword? ++#include "dll/ethercat_slave_memory.h" ++ ++/// EtherCAT State Machine Operations ++class EC_ESM_Ops ++{ ++ protected: ++ /// Start MBX communication ++ bool start_mbx_comm(); ++ /// Stop MBX communication ++ bool stop_mbx_comm(); ++ /// Start Input update ++ bool start_input_update(); ++ /// Stop Input update ++ bool stop_input_update(); ++ /// Start Output update ++ bool start_output_update(); ++ /// Stop Output update ++ bool stop_output_update(); ++ ++ virtual ~EC_ESM_Ops(){}; ++ protected: ++ /// Constructor ++ /** @param a_SH pointer to slave handler ++ */ ++ EC_ESM_Ops(EtherCAT_SlaveHandler * a_SH); ++ ++ EtherCAT_DataLinkLayer * m_dll_instance; ++ EC_Logic * m_logic_instance; ++ EtherCAT_SlaveHandler * m_SH; ++ EtherCAT_Router * m_router_instance; ++ EtherCAT_PD_Buffer * m_pdbuf_instance; ++ ++ /// Change state of Slave ++ /** @return true if succeeded ++ @pre The station address of the slave is set (this function uses ++ npwr telegrams! ++ */ ++ bool set_state(EC_State a_state); ++}; ++ ++// More forward declarations :-) ++class EC_ESM; ++class EC_ESM_InitState; ++class EC_ESM_PreOpState; ++class EC_ESM_SafeOpState; ++class EC_ESM_OpState; ++ ++/// ESM State Interface class ++/** @todo The bootstrap state is currently not implemented ++ */ ++class EC_ESM_State ++{ ++ friend class EC_ESM; ++ ++ public: ++ virtual ~EC_ESM_State(){}; ++ /// Change the state of an EtherCAT state machine ++ /** @param a_ESM pointer to the EtherCAT state machine ++ @param a_state to which state? Possibilities are ++ - EC_INIT_STATE = 0x01, ++ - EC_PREOP_STATE = 0x02, ++ - EC_BOOTSTRAP_STATE = 0x03, ++ - EC_SAFEOP_STATE = 0x04, ++ - EC_OP_STATE = 0x08 ++ */ ++ virtual bool to_state(EC_ESM * a_ESM, EC_State a_state) = 0; ++ virtual EC_State get_state( ) const = 0; ++ protected: ++ static EC_ESM_InitState initState; ++ static EC_ESM_PreOpState preopState; ++ static EC_ESM_SafeOpState safeopState; ++ static EC_ESM_OpState opState; ++}; ++ ++/// EtherCAT State Machine ++/** @todo Unexpected transitions in the state of the slave (via slaves ++ application, only for complex slaves) are not dealt with for ++ now... This should probably be fixed using a special mailbox msg or a polling ++ mechanism but AFAIS this is undocumented in the spec (see ++ 8.2.4.4.6 Stop output update)... ++*/ ++class EC_ESM : public EC_ESM_Ops ++{ ++ friend class EC_ESM_State; ++ friend class EC_ESM_InitState; ++ friend class EC_ESM_PreOpState; ++ friend class EC_ESM_SafeOpState; ++ friend class EC_ESM_OpState; ++ ++ public: ++ /// State Transitions ++ /** @param a_state state to go to. Possibilities are ++ - EC_INIT_STATE = 0x01, ++ - EC_PREOP_STATE = 0x02, ++ - EC_BOOTSTRAP_STATE = 0x03, ++ - EC_SAFEOP_STATE = 0x04, ++ - EC_OP_STATE = 0x08 ++ */ ++ bool to_state(EC_State a_state){ return (m_esm_state->to_state(this,a_state)); } ++ ++ EC_State get_state() { return m_esm_state->get_state(); } ++ ++ virtual ~EC_ESM(){}; ++ ++ protected: ++ /// Set the internal state ++ void setState(EC_ESM_State * a_esm_state){ m_esm_state = a_esm_state; } ++ ++ /// Constructor ++ /** @param a_SH pointer to Slave Handler this FSM concerns ++ */ ++ EC_ESM(EtherCAT_SlaveHandler * a_SH); ++ ++ private: ++ EC_ESM_State * m_esm_state; ++}; ++ ++class EC_ESM_InitState : public EC_ESM_State ++{ ++ public: ++ virtual EC_State get_state( ) const; ++ virtual bool to_state(EC_ESM * a_ESM, EC_State a_state); ++}; ++ ++class EC_ESM_PreOpState : public EC_ESM_State ++{ ++ public: ++ virtual EC_State get_state( ) const; ++ virtual bool to_state(EC_ESM * a_ESM, EC_State a_state); ++}; ++ ++class EC_ESM_SafeOpState : public EC_ESM_State ++{ ++ public: ++ virtual EC_State get_state( ) const; ++ virtual bool to_state(EC_ESM * a_ESM, EC_State a_state); ++}; ++ ++class EC_ESM_OpState : public EC_ESM_State ++{ ++ public: ++ virtual EC_State get_state( ) const; ++ virtual bool to_state(EC_ESM * a_ESM, EC_State a_state); ++}; ++ ++#endif // __ethercat_fsm__ +diff --git a/include/al/ethercat_master.h ./include/al/ethercat_master.h +new file mode 100644 +index 0000000..ab57d15 +--- /dev/null ++++ ./include/al/ethercat_master.h +@@ -0,0 +1,100 @@ ++// $Id: ethercat_master.h,v 1.25 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_master__ ++#define __ethercat_master__ ++ ++// Forward declarations ++class EtherCAT_AL; ++class EtherCAT_SlaveHandler; ++class EtherCAT_Router; ++class EtherCAT_PD_Buffer; ++class EC_Logic; ++class EtherCAT_DataLinkLayer; ++ ++#include "al/ethercat_mbx.h" ++#include "al/ethercat_process_data.h" ++#include "dll/ethercat_slave_memory.h" ++ ++/// EtherCAT Master instance ++class EtherCAT_Master ++{ ++ public: ++ /// This class is a singleton ++ static EtherCAT_Master * instance(); ++ /// Destructor ++ virtual ~EtherCAT_Master(); ++ ++ /// Get Slave Handler ++ /** @return Pointer to slavehandler if found in the network, or NULL ++ otherwise ++ */ ++ EtherCAT_SlaveHandler * get_slave_handler(EC_FixedStationAddress address); ++ ++ /// Send Process data ++ /** @param datalen number of bytes that should be set ++ @param data pointer to data array. Data is read, transmitted, ++ and (if the operation succeeded) the received data is put in the ++ data array. This happens synchronously with the method call. ++ @return true if msg got true ++ */ ++ bool txandrx_PD(size_t datalen, ++ unsigned char * data); ++ ++ protected: ++ /// Constructor (protected) ++ EtherCAT_Master(); ++ ++ private: ++ /// Master instance ++ static EtherCAT_Master * m_instance; ++ /// Pointer to m_AL_instance ++ EtherCAT_AL * m_al_instance; ++ /// Pointer to router instance ++ EtherCAT_Router * m_router_instance; ++ /// Pointer to process data buffer instance ++ EtherCAT_PD_Buffer * m_pdbuf_instance; ++ ++ /* If master also has slave functionality, it has its own mailbox ++ and its own address, so slaves can post msgs to it. ++ EtherCAT_Mbx m_mbx; ++ EC_FixedStationAddress m_address; ++ */ ++ ++ /// Pointer to logic instance ++ EC_Logic * m_logic_instance; ++ /// Pointer to DLL instance ++ EtherCAT_DataLinkLayer * m_dll_instance; ++}; ++ ++#endif +diff --git a/include/al/ethercat_mbx.h ./include/al/ethercat_mbx.h +new file mode 100644 +index 0000000..72d4636 +--- /dev/null ++++ ./include/al/ethercat_mbx.h +@@ -0,0 +1,264 @@ ++// $Id: ethercat_mbx.h,v 1.14 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_mbx__ ++#define __ethercat_mbx__ ++ ++#include "ethercat/ethercat_defs.h" ++#include "dll/ethercat_slave_memory.h" ++ ++typedef enum { ++ EC_AoE = 0x01, // ADS over EtherCAT ++ EC_EoE = 0x02, // Ethernet over EtherCAT ++ EC_CoE = 0x03, // CANOpen over EtherCAT ++ EC_FoE = 0x04, // File Access over EtherCAT ++} ECMbxMsgType; ++ ++/// EtherCAT Mbx Message type ++class EC_MbxMsgType ++{ ++ public: ++ /// Constructor ++ /** @param type Message type: Possibilities include ++ - EC_AoE (ADS over EtherCAT), ++ - EC_EoE (Ethernet over EtherCAT) ++ - EC_CoE (CANOpen over EtherCAT) ++ - EC_FoE (File Access over EtherCAT) ++ */ ++ EC_MbxMsgType(ECMbxMsgType type = EC_CoE) : msg_type(type){}; ++ virtual ~EC_MbxMsgType(){}; ++ /// Cast operator ++ operator EC_USINT() const {return msg_type;} ++ private: ++ EC_USINT msg_type; ++}; ++ ++/// EtherCAT Mbx Message Priority ++class EC_MbxMsgPriority ++{ ++ public: ++ /// Constructor ++ /** @param priority priority of the msg (from 0 to 3 is allowed, ++ with 3 the max Priority) ++ */ ++ EC_MbxMsgPriority(EC_USINT priority = 0x00) ++ { ++ if(priority < 4) ++ msg_priority = priority; ++ else { ++ ec_log(EC_LOG_WARNING, "EC_MbxMsgPriority: Max Priority is 0x03, using 0x03\n"); ++ msg_priority = 0x03; ++ } ++ } ++ virtual ~EC_MbxMsgPriority(){}; ++ /// Cast operator ++ operator EC_USINT() const {return msg_priority;} ++ private: ++ EC_USINT msg_priority; ++}; ++ ++// Header size is 6 bytes ++static const size_t EC_MBXMSG_HDR_SIZE = 6; ++ ++/// EtherCAT MbxMsg header ++class EC_MbxMsgHdr : public EC_DataStruct ++{ ++ friend class EtherCAT_Router; ++ ++ public: ++ /// Constructor ++ /** @param a_length Length of the MbxMsg ++ @param a_address ++ - For Master/Slave and Slave/Master communication: Address of ++ destination. ++ - For slave to slave communication (routing by Master). Slave ++ puts station address of destination (it must therefore now this ++ address!) so master knows where to send it. Master (in the ++ router) alters address field so destination slave knows where ++ the message came from. ++ @param a_priority Priority of this message ++ @param a_type Type of this Message (higher level protocol) ++ */ ++ EC_MbxMsgHdr(EC_UINT a_length, ++ EC_FixedStationAddress a_address, ++ EC_MbxMsgPriority a_priority, ++ EC_MbxMsgType a_type) ++ : EC_DataStruct(EC_MBXMSG_HDR_SIZE), ++ m_length(a_length), m_address(a_address), ++ m_priority(a_priority), m_type(a_type){}; ++ ++ /// Constructor from data array ++ EC_MbxMsgHdr(const unsigned char * a_buffer); ++ virtual ~EC_MbxMsgHdr(){}; ++ ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ public: ++ EC_UINT m_length; ++ EC_FixedStationAddress m_address; ++ // EC_USINT m_channel; 6 bits unused for now...; ++ EC_MbxMsgPriority m_priority; ++ EC_MbxMsgType m_type; ++ // EC_UINT reserved : 4; ++}; ++ ++/// EtherCAT Mailbox Message ++class EtherCAT_MbxMsg ++{ ++ friend class EtherCAT_Router; ++ ++ public: ++ /// Constructor ++ EtherCAT_MbxMsg(EC_MbxMsgHdr a_hdr, unsigned char * a_MbxMsgdata) ++ : m_hdr(a_hdr), m_MbxMsgdata(a_MbxMsgdata){} ++ EtherCAT_MbxMsg(EC_UINT a_length, EC_UINT a_address, ++ EC_MbxMsgPriority a_priority, ++ EC_MbxMsgType a_type, ++ unsigned char * a_MbxMsgdata) ++ : m_hdr(a_length,a_address,a_priority,a_type), m_MbxMsgdata(a_MbxMsgdata){} ++ EtherCAT_MbxMsg(const unsigned char * a_buffer); ++ ++ virtual ~EtherCAT_MbxMsg(){}; ++ ++ /// Dump msg to buffer for sending... ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ protected: ++ /// MbxMsg header ++ EC_MbxMsgHdr m_hdr; ++ /// MbxMsg data ++ const unsigned char * m_MbxMsgdata; ++ ++ virtual unsigned char * dump_data(unsigned char * a_buffer) const; ++}; ++ ++/// EtherCAT Mailbox ++class EtherCAT_Mbx ++{ ++ public: ++ /// Write a message to the mailbox ++ bool write(EtherCAT_MbxMsg * a_msg); ++ /// Read a message from the mailbox ++ bool read(EtherCAT_MbxMsg * a_msg); ++ ++ EtherCAT_Mbx(){}; ++ virtual ~EtherCAT_Mbx(){}; ++ protected: ++}; ++ ++// ================================================== ++// CANopen over EtherCAT ++// ================================================== ++ ++typedef enum { ++ CANopen_Emergency = 0x01, ++ CANopen_SDORequest = 0x02, ++ CANopen_SDOResponse = 0x03, ++ CANopen_txPDO = 0x04, ++ CANopen_rxPDO = 0x05, ++ CANopen_txPDORemoteReq = 0x06, ++ CANopen_rxPDORemoteReq = 0x07, ++ CANopen_SDOInformation = 0x08, ++} CANopenService; ++ ++/// CANOpen Service ++class CANopen_Service ++{ ++ public: ++ /// Constructor ++ /** @param a_service CanOpen Service. Possibilities are ++ - CANopen_Emergency, ++ - CANopen_SDORequest, ++ - CANopen_SDOResponse, ++ - CANopen_txPDO, ++ - CANopen_rxPDO, ++ - CANopen_txPDORemoteReq, ++ - CANopen_rxPDORemoteReq, ++ - CANopen_SDOInformation ++ */ ++ CANopen_Service(CANopenService a_service = CANopen_Emergency) ++ : m_service(a_service){} ++ ++ virtual ~CANopen_Service(){}; ++ /// Cast operator ++ operator EC_USINT() const { return m_service; } ++ ++ private: ++ CANopenService m_service; ++}; ++ ++static const size_t EC_MBXMSG_COE_HDR_SIZE = 2; ++ ++/// CANopen over EtherCAT Mailbox Message header ++class EC_CoE_Hdr : public EC_DataStruct ++{ ++ public: ++ /// Constructor ++ /** @param a_service CanOpen Service ++ */ ++ EC_CoE_Hdr(CANopen_Service a_service = CANopen_Emergency) : ++ EC_DataStruct(EC_MBXMSG_COE_HDR_SIZE), ++ m_service(a_service){}; ++ EC_CoE_Hdr(const unsigned char * a_buffer); ++ virtual ~EC_CoE_Hdr(){}; ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ private: ++ // FIXME meaning of these is nog clear from spec ++ // Number Low: 8 bits depending on CANopen service ++ // Number High: 1 bit depending on CANopen service ++ CANopen_Service m_service; ++}; ++ ++/// CANopen over EtherCAT Mailbox Message ++class EtherCAT_CoE_MbxMsg : public EtherCAT_MbxMsg ++{ ++ public: ++ EtherCAT_CoE_MbxMsg(EC_MbxMsgHdr a_hdr, ++ EC_CoE_Hdr a_CoE_hdr, ++ unsigned char * a_MbxMsgdata) ++ : EtherCAT_MbxMsg(a_hdr,a_MbxMsgdata), m_CoE_Hdr(a_CoE_hdr){} ++ EtherCAT_CoE_MbxMsg(EC_UINT a_length, EC_UINT a_address, ++ EC_MbxMsgPriority a_priority, ++ EC_MbxMsgType a_type, ++ CANopen_Service a_service, ++ unsigned char * a_MbxMsgdata) ++ : EtherCAT_MbxMsg(a_length,a_address,a_priority,a_type,a_MbxMsgdata), m_CoE_Hdr(a_service){} ++ EtherCAT_CoE_MbxMsg(unsigned char * a_buffer); ++ ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ protected: ++ EC_CoE_Hdr m_CoE_Hdr; ++}; ++ ++#endif // __ethercat_mbx__ +diff --git a/include/al/ethercat_process_data.h ./include/al/ethercat_process_data.h +new file mode 100644 +index 0000000..85de58d +--- /dev/null ++++ ./include/al/ethercat_process_data.h +@@ -0,0 +1,102 @@ ++// $Id: ethercat_process_data.h,v 1.8 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_pd__ ++#define __ethercat_pd__ ++ ++// forward declarations ++class EC_Logic; ++class EtherCAT_DataLinkLayer; ++ ++#include "dll/ethercat_logical_addressed_telegram.h" ++#include "dll/ethercat_frame.h" ++ ++/// EtherCAT Process Data buffer ++/** @note The current implementation starts passing PD as soon as *one* of the ++ slaves indicated it arrived in its safe-operational state by using ++ the EtherCAT_PD_Buffer::start() method. The advantage is that an application could remain running. ++ If a slave follows the spec, it won't process PD unless it is in ++ its SafeOp or Op state, so this should harm... ++ Nevertheless, changing this behaviour into full spec compliance ++ only requires changing 2 lines of code. See the .cxx file. ++*/ ++class EtherCAT_PD_Buffer ++{ ++ friend class EC_ESM_Ops; ++ ++ public: ++ /// Singleton ++ static EtherCAT_PD_Buffer * instance(); ++ ++ /// Send some process data ++ /** @param datalen number of bytes that should be set ++ @param data pointer to data array. Data is read, transmitted, ++ and (if the operation succeeded) the received data is put in the ++ data array ++ @return true if msg got true ++ */ ++ bool txandrx(size_t datalen, unsigned char * data); ++ ++ protected: ++ /// Start transmitting process data ++ void start(); ++ /// Stop transmitting process data ++ void stop(); ++ ++ /// Constructor ++ EtherCAT_PD_Buffer(); ++ virtual ~EtherCAT_PD_Buffer(); ++ ++ private: ++ /// Pointer to EC_Logic ++ EC_Logic * m_logic_instance; ++ /// Pointer to DLL instance ++ EtherCAT_DataLinkLayer * m_dll_instance; ++ /// This class is a singleton ++ static EtherCAT_PD_Buffer * m_instance; ++ ++ /// See note in class definition. ++ unsigned int m_is_running; ++ ++ /// Process data can be divided over MAX_CHUCKS packets ++ /// of upto CHUNK_SIZE bytes ++ static const unsigned MAX_CHUNKS=4; ++ static const unsigned CHUNK_SIZE=1486; ++ ++ /// Telegram(s) to be sent ++ LRW_Telegram *m_lrw_telegram[MAX_CHUNKS]; ++ /// EtherCAT frame(s) to be sent ++ EC_Ethernet_Frame *m_lrw_frame[MAX_CHUNKS]; ++}; ++ ++#endif +diff --git a/include/al/ethercat_router.h ./include/al/ethercat_router.h +new file mode 100644 +index 0000000..2983ceb +--- /dev/null ++++ ./include/al/ethercat_router.h +@@ -0,0 +1,109 @@ ++// $Id: ethercat_router.h,v 1.14 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_router__ ++#define __ethercat_router__ ++ ++// forward declaration ++class EtherCAT_AL; ++class EC_Logic; ++class EtherCAT_DataLinkLayer; ++class EtherCAT_SlaveHandler; ++class EtherCAT_MbxMsg; ++ ++/// EtherCAT Router component ++class EtherCAT_Router ++{ ++ public: ++ /// Singleton ++ static EtherCAT_Router * instance(); ++ virtual ~EtherCAT_Router(); ++ ++ /// Start routing ++ void start(); ++ /// Stop routing ++ void stop(); ++ /// Router running? ++ bool is_running() const { return (EtherCAT_Router::m_is_running != 0); } ++ ++ /// Actual routing code ++ /** @todo This method should not be public, but since it is used in ++ a C-function and I don't know how I could declare a C-function ++ to be a friend of a class... ++ @todo The current implementation simply polls the sync manager ++ data area of each slave and checks if wkc is incremented. ++ Another solution is to configure FMMU's of each slave and query ++ the slaves with one logical EtherCAT msg. This has the ++ advantage of only using one message per slave, but it ++ "sacrifices" an extra FMMU per slave, which might not always be ++ possible. In that case, the master would---during the ++ start_mbx_communication() call of slaves---configure an FMMU of ++ the slave which listens to the written bit of sync manager 0. ++ */ ++ void route(void) const; ++ protected: ++ EtherCAT_Router(); ++ ++ private: ++ /// Pointer to AL instance ++ EtherCAT_AL * m_al_instance; ++ /// Pointer to EC_Logic ++ EC_Logic * m_logic_instance; ++ /// Pointer to DLL instance ++ EtherCAT_DataLinkLayer * m_dll_instance; ++ ++ static EtherCAT_Router * m_instance; ++ /// Usage counter ++ unsigned int m_is_running; ++ ++ /// Check and deliver post from slave ++ /** Check if slave posted something in its mailbox and if positive, ++ deliver msgs to destination. ++ @param sh Slave Handler to query ++ @return true if nothing went wrong (i.e. nothing was posted, or ++ no error occurred during routing ++ */ ++ bool check_mbx(const EtherCAT_SlaveHandler * sh) const; ++ ++ /// Post a msg from a certain slave ++ /** @param msg mbx_msg to be posted ++ @param from_sh "poster" of the msg (The EtherCAT protocol does ++ not provide a From: header in its messages) ++ @return true if everything went fine ++ */ ++ bool post_mbxmsg(EtherCAT_MbxMsg * msg, ++ const EtherCAT_SlaveHandler * from_sh) const; ++ ++}; ++ ++#endif +diff --git a/include/al/ethercat_slave_conf.h ./include/al/ethercat_slave_conf.h +new file mode 100644 +index 0000000..730a904 +--- /dev/null ++++ ./include/al/ethercat_slave_conf.h +@@ -0,0 +1,234 @@ ++// $Id: ethercat_slave_conf.h,v 1.14 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_slave_conf__ ++#define __ethercat_slave_conf__ ++ ++#include "ethercat/ethercat_defs.h" ++#include "dll/ethercat_slave_memory.h" ++ ++/// FMMU Configuration of a slave ++class EtherCAT_FMMU_Config ++{ ++ public: ++ /// Constructor ++ /** @param a_num_used_fmmus the number of used FMMUs for this slave ++ (configuration) ++ */ ++ EtherCAT_FMMU_Config(unsigned int a_num_used_fmmus); ++ virtual ~EtherCAT_FMMU_Config(); ++ ++ /// Returns the number of used FMMUs ++ /** @return the number of used FMMUs ++ */ ++ unsigned int get_num_used_fmmus() const {return m_num_used_fmmus;} ++ ++ /// Operator [] ++ /** @param i which FMMU ++ @return ref to the FMMU ++ */ ++ EC_FMMU & operator[](unsigned int i); ++ /// Operator [] (const version) ++ /** @param i which FMMU ++ @return ref to the FMMU ++ */ ++ const EC_FMMU & operator[](unsigned int i) const; ++ ++ protected: ++ EC_FMMU * fmmus; ++ unsigned int m_num_used_fmmus; ++}; ++ ++/// Process Data Configuration ++/** This class contains the configuration of the Sync Managers used ++ for the process data transmission ++*/ ++class EtherCAT_PD_Config ++{ ++ public: ++ /// Constructor ++ /** @param a_num_used_sms The number of used Sync Managers for ++ transmitting process data ++ */ ++ EtherCAT_PD_Config(unsigned int a_num_used_sms); ++ virtual ~EtherCAT_PD_Config(); ++ ++ /// Retrieve the number of used Sync Managers ++ /** @return the number of used Sync Managers of this config ++ */ ++ unsigned int get_num_used_sms() const {return m_num_used_sms;} ++ ++ /// Get a sync Manager configuration ++ /** @param i which Sync Manager ++ @return ref to the Sync Manager ++ */ ++ EC_SyncMan & operator[](unsigned int i); ++ /// Get a sync Manager configuration (const version) ++ /** @param i which Sync Manager ++ @return ref to the Sync Manager ++ */ ++ const EC_SyncMan & operator[](unsigned int i) const; ++ ++ protected: ++ /// Pointer to the Sync Manager array ++ EC_SyncMan * sms; ++ /// Number of used Sync Managers ++ unsigned int m_num_used_sms; ++}; ++ ++/// Mailbox Configuration (Sync Manager 0 and 1) ++typedef struct ++{ ++ /// Sync Manager 0: For Master to slave communication ++ EC_SyncMan SM0; ++ /// Sync Manager 1: For Slave to Master communication ++ EC_SyncMan SM1; ++} EtherCAT_MbxConfig; ++ ++/// Configuration of EtherCAT Slave ++/** @todo Build this class by parsing (xml-)configuration file ++ */ ++class EtherCAT_SlaveConfig ++{ ++ public: ++ /// Constructor ++ /** @param a_product_code product code of the slave ++ @param a_revision revision of the slave ++ @param a_station_address address of the station as given in ++ config file ++ @param a_fmmu_config pointer to configuration of fmmus as ++ created when parsing config file ++ @param a_pd_config pointer to configuration of SM for process ++ data ++ @param a_mbx_config MBX configuration if this slave is complex. ++ Default argument is NULL for simple slaves ++ @note CanOpen stuff for complex slaves such as the PDO Mapping, the ++ Sync Manager PDO assign objects and the startup objects are not ++ implemented (yet) ++ See p. 106 and 162 of spec. ++ // EtherCAT_PDO_Mapping m_pdo_mapping; ++ // EtherCAT_SM_PDO_Assign m_sm_pdo_assign; ++ // EtherCAT_Startup_Objects m_startup_objects; ++ */ ++ EtherCAT_SlaveConfig(EC_UDINT a_product_code, ++ EC_UDINT a_revision, ++ EC_FixedStationAddress a_station_address, ++ EtherCAT_FMMU_Config * a_fmmu_config, ++ EtherCAT_PD_Config * a_pd_config, ++ EtherCAT_MbxConfig * a_mbx_config = NULL); ++ ++ virtual ~EtherCAT_SlaveConfig(); ++ ++ public: ++ /// Is this a complex slave? ++ bool is_complex(void) const { return m_complex; }; ++ /// Get product code ++ EC_UDINT get_product_code() const { return m_product_code; }; ++ /// Get revision ++ EC_UDINT get_revision() const { return m_revision; }; ++ /// Get station address ++ EC_FixedStationAddress get_station_address() const {return m_station_address; }; ++ /// Get FMMU config to be written when going to preop ++ const EtherCAT_FMMU_Config * get_fmmu_config() const {return m_fmmu_config; }; ++ void set_fmmu_config(EtherCAT_FMMU_Config *new_config) { m_fmmu_config = new_config; }; ++ /// Get PD Configuration (SMS) ++ const EtherCAT_PD_Config * get_pd_config() const {return m_pd_config; }; ++ void set_pd_config(EtherCAT_PD_Config *new_config) { m_pd_config = new_config; }; ++ /// Get configuration of Sync Man channel 0 and 1 for MBX ++ /** @return pointer to config in case of complex slave, or NULL for ++ a simple slave ++ */ ++ const EtherCAT_MbxConfig * get_mbx_config() const { return m_mbx_config; }; ++ void set_mbx_config(EtherCAT_MbxConfig *new_config); ++ /// Check if the SlaveConfig is already used ++ bool is_used() { return used; }; ++ /// The SlaveConfig is now used ++ void set_used() { used = true; }; ++ ++ protected: ++ /// Product code ++ EC_UDINT m_product_code; ++ /// Revision ++ EC_UDINT m_revision; ++ /// Station address ++ EC_FixedStationAddress m_station_address; ++ /// FMMU config to be written when going to preop ++ EtherCAT_FMMU_Config * m_fmmu_config; ++ /// PD Configuration (SMS) ++ EtherCAT_PD_Config * m_pd_config; /// Position in the EtherCAT logical Ring ++ /// Configuration of Sync Man channel 0 and 1 for MBX ++ EtherCAT_MbxConfig * m_mbx_config; ++ ++ bool m_complex; ++ ++ bool used; ++ ++}; ++ ++/// Database of EtherCAT slave configurations ++/** @todo allow dynamic updating by adding of removing a slave ++ configuration ++*/ ++class EtherCAT_SlaveDb ++{ ++ public: ++ /// Singleton ++ static EtherCAT_SlaveDb * instance(unsigned int num_slaves = 0); ++ ++ virtual ~EtherCAT_SlaveDb(); ++ ++ EtherCAT_SlaveConfig * operator[](unsigned int i); ++ const EtherCAT_SlaveConfig * operator[](unsigned int i) const; ++ void set_conf(EtherCAT_SlaveConfig * conf, unsigned int i); ++ ++ /// Find a configuration... ++ /** @param productcode product code ++ @param revision revision ++ @return Pointer to slave configuration if found, or NULL ++ otherwise) ++ */ ++ const EtherCAT_SlaveConfig * find(EC_UDINT productcode, ++ EC_UDINT revision) const; ++ protected: ++ /// Constructor ++ EtherCAT_SlaveDb(unsigned int num_slaves); ++ ++ private: ++ static EtherCAT_SlaveDb * m_instance; ++ ++ EtherCAT_SlaveConfig ** m_sc; ++ unsigned int m_num_slaves; ++ ++}; ++ ++#endif // __ethercat_slave_conf__ +diff --git a/include/al/ethercat_slave_handler.h ./include/al/ethercat_slave_handler.h +new file mode 100644 +index 0000000..f5a0a5b +--- /dev/null ++++ ./include/al/ethercat_slave_handler.h +@@ -0,0 +1,100 @@ ++// $Id: ethercat_slave_handler.h,v 1.25 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_slave_handler__ ++#define __ethercat_slave_handler__ ++ ++#include "al/ethercat_FSM.h" ++#include "al/ethercat_slave_conf.h" ++ ++// forward declaration ++class EtherCAT_AL; ++ ++/// EtherCAT Slave Handler ++class EtherCAT_SlaveHandler : public EC_ESM, public EtherCAT_SlaveConfig ++{ ++ // Being friendly ++ friend class EC_ESM_Ops; ++ friend class EtherCAT_Router; ++ friend class EtherCAT_AL; ++ ++ public: ++ /// Constructor ++ /** @param a_ring_position position in the EtherCAT ring ++ @param a_product_code product code of the slave ++ @param a_revision revision of the slave ++ @param a_station_address address of the station as given in ++ config file ++ @param a_fmmu_config pointer to configuration of fmmus as ++ created when parsing config file ++ @param a_pd_config pointer to configuration of SM for process ++ data ++ @param a_mbx_config MBX configuration if this slave is complex. ++ Default argument is NULL for simple slaves ++ */ ++ EtherCAT_SlaveHandler(EC_UINT a_ring_position, ++ EC_UDINT a_product_code, ++ EC_UDINT a_revision, ++ EC_UDINT a_serial, ++ EC_FixedStationAddress a_station_address, ++ EtherCAT_FMMU_Config * a_fmmu_config, ++ EtherCAT_PD_Config * a_pd_config, ++ EtherCAT_MbxConfig * a_mbx_config = NULL); ++ /// Constructor using Slave Configuration ++ EtherCAT_SlaveHandler(EC_UINT a_ring_position, ++ const EtherCAT_SlaveConfig * a_sconf, ++ EC_UDINT a_serial); ++ virtual ~EtherCAT_SlaveHandler(); ++ ++ /// Get position in the EtherCAT logical ring ++ EC_UINT get_ring_position() const {return m_ring_position; }; ++ /// Get serial ++ EC_UDINT get_serial() const { return m_serial; }; ++ ++ /// Returns and increments sequence number used for duplication mailbox write dectition ++ EC_USINT get_mbx_counter(); ++ protected: ++ ++ /// Position in the EtherCAT logical Ring ++ EC_UINT m_ring_position; ++ ++ /// Serial ++ EC_UDINT m_serial; ++ ++ /// Sequence number for duplicate mailbox write detection ++ EC_USINT m_mbx_counter; ++}; ++ ++ ++#endif // __ethercat_slave_handler__ ++ +diff --git a/include/dll/ethercat_device_addressed_telegram.h ./include/dll/ethercat_device_addressed_telegram.h +new file mode 100644 +index 0000000..cdc96dc +--- /dev/null ++++ ./include/dll/ethercat_device_addressed_telegram.h +@@ -0,0 +1,305 @@ ++// $Id: ethercat_device_addressed_telegram.h,v 1.11 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_device_addressed_telegram_h__ ++#define __ethercat_device_addressed_telegram_h__ ++ ++#include "ethercat_telegram.h" ++ ++/// EtherCAT telegram for all _device addressing_ modes ++/** EtherCAT telegram for all _device addressing_ modes, including ++ Position Addressing Modes (e.g.~Auto Increment Physical Read--APRD), ++ Node Addressing modes (e.g.~Node addressed Physical Read--NPRD) ++ and Broadcast Adressing modes (e.g.~Broadcast read) ++ ++*/ ++class Device_Addressing_Telegram : public EC_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adp device address ++ @param a_ado address offset withing device ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data ++ */ ++ Device_Addressing_Telegram(EC_USINT a_idx=0x00, ++ EC_UINT a_adp =0x0000, ++ EC_UINT a_ado =0x0000, ++ EC_UINT a_wkc =0x0000, ++ EC_UINT a_datalen=0x0000, ++ const unsigned char * a_data=NULL); ++ ++ virtual ~Device_Addressing_Telegram(); ++ ++ /// Set address pointer ++ void set_adp(EC_UINT a_adp) { m_adp = a_adp; } ++ /// Set address offset ++ void set_ado(EC_UINT a_ado) { m_ado = a_ado; } ++ /// Get address pointer ++ EC_UINT get_adp() const { return m_adp;} ++ /// Get address offset ++ EC_UINT get_ado() const { return m_ado;} ++ ++ protected: ++ virtual unsigned char * dump_header_head(unsigned char * a_buffer) const; ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const = 0; ++ ++ virtual const unsigned char * build_header_head(const unsigned char * a_buffer); ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer) = 0; ++ ++ private: ++ EC_UINT m_adp; ++ EC_UINT m_ado; ++}; ++ ++/// Auto Increment Physical Read Telegram (APRD) ++class APRD_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adp auto increment address ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be read: Is actually not used, can be initialised at all zeros ++ @note remove a_data parameter, since is it merely modified by the ++ slave (the result of the read op)?? ++ */ ++ APRD_Telegram(EC_USINT a_idx, EC_UINT a_adp, ++ EC_UINT a_ado,EC_UINT a_wkc, ++ EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ /// Construct telegram from received bytestream... ++ // APRD_Telegram(const unsigned char * a_telegram); ++ ++ virtual ~APRD_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Auto Increment Physical Write Telegram (APWR) ++class APWR_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adp auto increment address ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be written ++ */ ++ APWR_Telegram(EC_USINT a_idx, EC_UINT a_adp, ++ EC_UINT a_ado,EC_UINT a_wkc, ++ EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~APWR_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Auto Increment Physical Read and Write Telegram (APRW) ++class APRW_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adp auto increment address ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be read and written ++ */ ++ APRW_Telegram(EC_USINT a_idx, EC_UINT a_adp, ++ EC_UINT a_ado,EC_UINT a_wkc, ++ EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~APRW_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Broadcast Write Telegram (BWR) ++class BWR_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be written ++ */ ++ BWR_Telegram(EC_USINT a_idx, EC_UINT a_ado, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~BWR_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Broadcast Read Telegram (BRD) ++class BRD_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be read ++ */ ++ BRD_Telegram(EC_USINT a_idx, EC_UINT a_ado, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~BRD_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++ ++/// Node Addressed Physical Write Telegram (NPWR) ++/** @note older versions of the spec and the ethereal plugin use FPWR ++ for this type ++*/ ++class NPWR_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adp slave address ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be written ++ */ ++ NPWR_Telegram(EC_USINT a_idx, EC_UINT a_adp, ++ EC_UINT a_ado,EC_UINT a_wkc, ++ EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~NPWR_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Node Addressed Physical Read Write Telegram (NPRW) ++/** @note older versions of the spec and the ethereal plugin use FPRW ++ for this type ++*/ ++class NPRW_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adp slave address ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be written ++ */ ++ NPRW_Telegram(EC_USINT a_idx, EC_UINT a_adp, ++ EC_UINT a_ado,EC_UINT a_wkc, ++ EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~NPRW_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Node Addressed Physical Read Telegram (NPRD) ++/** @note older versions of the spec and the ethereal plugin use FPWR ++ for this type ++*/ ++class NPRD_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adp slave address ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be written ++ */ ++ NPRD_Telegram(EC_USINT a_idx, EC_UINT a_adp, ++ EC_UINT a_ado,EC_UINT a_wkc, ++ EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~NPRD_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Auto Increment Physical Read Multiple Write Telegram (ARMW) ++class ARMW_Telegram : public Device_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adp auto increment address ++ @param a_ado physical memory address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be read/written ++ */ ++ ARMW_Telegram(EC_USINT a_idx, EC_UINT a_adp, ++ EC_UINT a_ado,EC_UINT a_wkc, ++ EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~ARMW_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++ ++#endif // __ethercat_device_addressed_telegram_h__ +diff --git a/include/dll/ethercat_dll.h ./include/dll/ethercat_dll.h +new file mode 100644 +index 0000000..2733181 +--- /dev/null ++++ ./include/dll/ethercat_dll.h +@@ -0,0 +1,90 @@ ++// $Id: ethercat_dll.h,v 1.22 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_dll__ ++#define __ethercat_dll__ ++ ++// Forward declarations ++struct netif; ++class EtherCAT_Frame; ++ ++/// Abstract representation of the EtherCAT DLL ++class EtherCAT_DataLinkLayer ++{ ++ public: ++ /// This class is a singleton ++ /** @todo Pass destination MAC address instead of defaulting to ++ broadcast? ++ */ ++ static EtherCAT_DataLinkLayer * instance(void); ++ ++ /// Attach the DLL to a networking interface ++ /** @param netif pointer to the NIC ++ */ ++ void attach(struct netif * netif); ++ ++ /// transmit and receive EtherCAT frame (blocking call!) ++ /** @param a_frame ethercat frame to be sent ++ * NOTE that txandrx will retry sending lost frames. ++ */ ++ bool txandrx(EtherCAT_Frame * a_frame); ++ ++ /// transmit an EtherCAT frame (non-blocking call) ++ /** @param a_frame ethercat frame to be sent ++ * @return positive or zero handle on success, negative value for error ++ * Successfull tx MUST be followed by rx call. ++ */ ++ int tx(EtherCAT_Frame * a_frame); ++ ++ /// receive an EtherCAT frame previously sent by tx() (blocking call!) ++ /** @param a_frame ethercat frame to be sent ++ * @param a_handle handle previously returned by tx() ++ * @return false for error/dropped packet ++ */ ++ bool rx(EtherCAT_Frame * a_frame, int a_handle); ++ ++ /// Destructor ++ /** @todo some kind of smart pointer concept necessary for all these ++ singletons. For EtherCAT master on ecos not really an issue... ++ */ ++ virtual ~EtherCAT_DataLinkLayer(); ++ ++ protected: ++ EtherCAT_DataLinkLayer(); ++ ++ private: ++ static EtherCAT_DataLinkLayer * m_instance; ++ struct netif * m_if; ++}; ++ ++#endif // __ethercat_dll__ +diff --git a/include/dll/ethercat_frame.h ./include/dll/ethercat_frame.h +new file mode 100644 +index 0000000..a7b7328 +--- /dev/null ++++ ./include/dll/ethercat_frame.h +@@ -0,0 +1,158 @@ ++// $Id: ethercat_frame.h,v 1.21 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_frame_h__ ++#define __ethercat_frame_h__ ++ ++#include "dll/ethercat_telegram.h" ++#include "ethercat/netif.h" ++ ++/** "Dump" an EtherCAT frame into an array of bytes (for ++ transmitting). ++ @param frame pointer to the frame to be dumped ++ @param buffer pointer to an array of unsigned chars that can be ++ put into an ethernet frame ++ @param bufferlength the maximum length that the frame may have ++ @return the length of the buffer expressed as a number of bytes, ++ if smaller than bufferlength, 0 otherwise ++*/ ++externC int framedump(const struct EtherCAT_Frame * frame, ++ unsigned char * buffer, ++ size_t bufferlength); ++ ++/** Build an EtherCAT frame from an array of bytes (for receiving). ++ @param frame pointer to the frame where data can be put in ++ @param buffer pointer to an array of unsigned chars that contain ++ the necessary info ++ @return zero on succes, -1 otherwise ++*/ ++externC int framebuild(struct EtherCAT_Frame * frame, ++ const unsigned char * buffer); ++ ++/// EtherCAT Frame Interface (we need a C interface) ++/** Due to the fact that this is a C-interface, this class does not ++ herit from EC_Datastruct, although it has the same needs ++*/ ++typedef struct EtherCAT_Frame ++{ ++ /// Return the length of the whole frame ++ virtual size_t length(void) const = 0; ++ ++ /// Dump the contents of a frame into a byte array ++ virtual unsigned char * dump(unsigned char * a_buffer) const = 0; ++ ++ /// Build and check a frame from a byte array ++ /** @param a_buffer the byte array ++ @return 0 if succesful, -1 otherwise ++ */ ++ virtual int build(const unsigned char * a_buffer) = 0; ++ ++ /// Get first telegram ++ virtual EC_Telegram * get_telegram() const = 0; ++ ++} ECFrame; ++ ++/// EtherCAT Frame base class ++/** @todo This interface is not complete, eg. currently there is no ++ way to add/remove telegrams to a frame. Note however that this ++ EtherCAT feature is rarely used AFAIS. ++*/ ++class EC_Frame: public ECFrame ++{ ++ public: ++ virtual ~EC_Frame(); ++ ++ /// return the length of the whole frame ++ /** @return the length of the whole frame in bytes ++ */ ++ size_t length(void) const { return header_length() + body_length();} ++ ++ /// Dump the contents of a frame into an byte array ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ /// Build and check frame starting from byte array ++ virtual int build(const unsigned char * a_buffer); ++ ++ /// Get first telegram ++ EC_Telegram * get_telegram() const { return m_telegram;} ++ ++ protected: ++ /// Constructor ++ EC_Frame(); ++ EC_Frame(const EC_Frame & a_frame); ++ EC_Frame(EC_Telegram * a_telegram); ++ ++ /// Pointer to the first EtherCAT ++ EC_Telegram * m_telegram; ++ ++ /// Dump the header ++ virtual unsigned char * dump_header(unsigned char * a_buffer) const = 0; ++ /// Check if received header in byte array complies to the frame data ++ virtual bool check_header(const unsigned char * a_buffer) const = 0; ++ ++ /// Return the length of the header ++ virtual size_t header_length(void) const = 0; ++ /// Return the length of the body ++ virtual size_t body_length(void) const; ++ ++}; ++ ++/// Ethercat Ethernet_mode frame ++static const size_t ETHERCAT_ETHERNET_FRAME_HEADER_SIZE = 2; ++ ++ ++/// Class representing EtherCAT Frames in "raw" ethernet mode ++class EC_Ethernet_Frame : public EC_Frame ++{ ++ public: ++ /// Constructor ++ /** @param a_telegram pointer to the first telegram of the frame */ ++ EC_Ethernet_Frame(EC_Telegram * a_telegram); ++ virtual ~EC_Ethernet_Frame(){}; ++ ++ protected: ++ virtual size_t header_length(void) const ++ { return ETHERCAT_ETHERNET_FRAME_HEADER_SIZE; } ++ ++ virtual unsigned char * dump_header(unsigned char * a_buffer) const; ++ ++ virtual bool check_header(const unsigned char * a_buffer) const; ++}; ++ ++ ++/// Ethercat UDP_mode Frame ++// FIXME TO BE IMPLEMENTED ++// class EC_UDP_Frame : public EC_Ethernet_Frame ++// redefine virtual header_length() function and ++ ++#endif // __ethercat_frame_h__ +diff --git a/include/dll/ethercat_logical_addressed_telegram.h ./include/dll/ethercat_logical_addressed_telegram.h +new file mode 100644 +index 0000000..bc0ec04 +--- /dev/null ++++ ./include/dll/ethercat_logical_addressed_telegram.h +@@ -0,0 +1,143 @@ ++// $Id: ethercat_logical_addressed_telegram.h,v 1.8 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_logical_addressed_telegram_h__ ++#define __ethercat_logical_addressed_telegram_h__ ++ ++#include "ethercat_telegram.h" ++ ++/// EtherCAT telegram for all _logical addressing_ modes ++/** EtherCAT telegram for all _logical addressing_ modes, that is ++ logical read (LRD), logical write (LWR), and logical Read-Write (LRW) ++*/ ++class Logical_Addressing_Telegram : public EC_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adr logical address (4 bytes) ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data ++ */ ++ Logical_Addressing_Telegram(EC_USINT a_idx=0x00, ++ EC_UDINT a_adr=0x00000000, ++ EC_UINT a_wkc=0x0000, ++ EC_UINT a_datalen=0x0000, ++ const unsigned char * a_data = NULL); ++ ++ virtual ~Logical_Addressing_Telegram(); ++ ++ /// Set address field ++ /** @param a_adr 4 byte logical address ++ */ ++ void set_adr(EC_UDINT a_adr) { m_adr = a_adr; } ++ /// Get address field ++ /** @return 4 byte logical address ++ */ ++ EC_UDINT get_adr() const { return m_adr;} ++ ++ protected: ++ virtual unsigned char * dump_header_head(unsigned char * a_buffer) const; ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const = 0; ++ ++ virtual const unsigned char * build_header_head(const unsigned char * a_buffer); ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer) = 0; ++ ++ private: ++ EC_UDINT m_adr; ++}; ++ ++/// Logical Read Telegram ++class LRD_Telegram : public Logical_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adr logical address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be read ++ */ ++ LRD_Telegram(EC_USINT a_idx, EC_UDINT a_adr, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~LRD_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Logical Write Telegram ++class LWR_Telegram : public Logical_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adr logical address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be written ++ */ ++ LWR_Telegram(EC_USINT a_idx, EC_UDINT a_adr, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~LWR_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++/// Logical Read Write Telegram ++class LRW_Telegram : public Logical_Addressing_Telegram { ++ public: ++ /// Constructor ++ /** @param a_idx index ++ @param a_adr logical address ++ @param a_wkc working counter ++ @param a_datalen data_length ++ @param a_data data to be written and read ++ */ ++ LRW_Telegram(EC_USINT a_idx, EC_UDINT a_adr, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data); ++ ++ virtual ~LRW_Telegram(); ++ ++ protected: ++ virtual unsigned char * dump_command_field(unsigned char * a_buffer) const; ++ virtual const unsigned char * build_command_field(const unsigned char * a_buffer); ++}; ++ ++#endif // __ethercat_logical_addressed_telegram_h__ +diff --git a/include/dll/ethercat_slave_memory.h ./include/dll/ethercat_slave_memory.h +new file mode 100644 +index 0000000..71bf82a +--- /dev/null ++++ ./include/dll/ethercat_slave_memory.h +@@ -0,0 +1,648 @@ ++// $Id: ethercat_slave_memory.h,v 1.25 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_slave_memory_h__ ++#define __ethercat_slave_memory_h__ ++ ++#include "ethercat/ethercat_defs.h" ++#include "ethercat/ethercat_log.h" ++#include "ethercat/ethercat_datastruct.h" ++#include ++#include ++ ++// Describes registers of EtherCAT slave controller ++static const size_t EC_DLInformationSize = 0xa; // 10 bytes ++ ++// Product code and revision offset in SII Eeprom data ++/* BIG FAT WARNING: THIS VARIES FROM WHAT IS WRITTEN IN THE ETHERCAT ++ SPEC VERSION 1.0!!! ++*/ ++static const EC_UDINT EC_ProductCodeAddressInSII = 0x0000000a; ++static const EC_UDINT EC_RevisionAddressInSII = 0x0000000c; ++static const EC_UDINT EC_SerialAddressInSII = 0x0000000e; ++ ++typedef enum { ++ Type = 0, ++ Revision, ++ Build, ++ Num_FMMUs, ++ Num_Sync_Managers, ++ RAM_Size, ++ ECAT_Station_Address, ++ DLL_Control, ++ DLL_Status, ++ AL_Control, ++ AL_Status, ++ PDI_Control, ++ PDI_Conf_reg, ++ AL_Event, ++ RX_Error_Counter_Channel_A, ++ RX_Error_Counter_Channel_B, ++ Watchdog_Divider, ++ Watchdog_Time_PDI, ++ Watchdog_Time_Channel_0, ++ Watchdog_Time_Channel_1, ++ Watchdog_Time_Channel_2, ++ Watchdog_Time_Channel_3, ++ Watchdog_Time_Channel_4, ++ Watchdog_Time_Channel_5, ++ Watchdog_Time_Channel_6, ++ Watchdog_Time_Channel_7, ++ Watchdog_Time_Channel_8, ++ Watchdog_Time_Channel_9, ++ Watchdog_Time_Channel_10, ++ Watchdog_Time_Channel_11, ++ Watchdog_Time_Channel_12, ++ Watchdog_Time_Channel_13, ++ Watchdog_Time_Channel_14, ++ Watchdog_Time_Channel_15, ++ Watchdog_Channel_status, ++ SII_Size, ++ SII_ControlStatus, ++ SII_Address, ++ SII_Data, ++ FMMU_0, ++ FMMU_1, ++ FMMU_2, ++ FMMU_3, ++ FMMU_4, ++ FMMU_5, ++ FMMU_6, ++ FMMU_7, ++ FMMU_8, ++ FMMU_9, ++ FMMU_10, ++ FMMU_11, ++ FMMU_12, ++ FMMU_13, ++ FMMU_14, ++ FMMU_15, ++ Sync_Manager_0, ++ Sync_Manager_1, ++ Sync_Manager_2, ++ Sync_Manager_3, ++ Sync_Manager_4, ++ Sync_Manager_5, ++ Sync_Manager_6, ++ Sync_Manager_7, ++ Sync_Manager_8, ++ Sync_Manager_9, ++ Sync_Manager_10, ++ Sync_Manager_11, ++ Sync_Manager_12, ++ Sync_Manager_13, ++ Sync_Manager_14, ++ Sync_Manager_15, ++ NumRegisters, ++} ECAT_Slave_Registers; ++ ++typedef enum { ++ EC_R = 0, // Read access only ++ EC_W = 1, // Write access only ++ EC_RW = 2 // RW accesc ++} ECAT_Register_Access; ++ ++ ++ ++/// EtherCAT Slave Register data ++typedef struct ++{ ++ /// Register name ++ const char * name; ++ /// Register offset addres ++ const EC_UINT ado; ++ /// Access of the master to the register (r, w, or r/w) ++ const ECAT_Register_Access ECAT_access; ++ /// Access of the slave to the register (r, w, or r/w) ++ const ECAT_Register_Access uC_access; ++ /// Size of the register area (expressed as number of bytes) ++ const EC_USINT size; ++} ECAT_Slave_Register_Data; ++ ++ ++ ++static const ECAT_Slave_Register_Data EC_Slave_RD[NumRegisters] = { ++ {"Type", 0x0000, EC_R, EC_R, 0x01}, ++ {"Revision", 0x0001, EC_R, EC_R, 0x01}, ++ {"Build",0x0002, EC_R, EC_R, 0x02}, ++ {"Number of FMMUs",0x0004,EC_R, EC_R, 0x01}, ++ {"Number of Sync Managers",0x0005,EC_R, EC_R, 0x01}, ++ {"RAM Size",0x0006,EC_R, EC_R, 0x01}, ++ {"EtherCAT Station Address",0x0010,EC_RW,EC_R,0x02}, ++ {"DLL Control Register",0x0100,EC_RW,EC_R,0x02}, ++ {"DLL Status Register",0x0110,EC_R,EC_R,0x02}, ++ {"AL Control Register",0x0120,EC_RW,EC_R,0x02}, ++ {"AL Status Register",0x0130,EC_R,EC_RW,0x02}, ++ {"PDI Control Register",0x0140,EC_R,EC_R,0x02}, ++ {"PDI Config Register",0x0150,EC_R,EC_R,0x05}, ++ {"AL Event Register",0x0220,EC_R,EC_R,0x04}, ++ {"RX Error Counter Channel A",0x0300,EC_RW,EC_R,0x02}, ++ {"RX Error Counter Channel B",0x0302,EC_RW,EC_R,0x02}, ++ {"Watchdog divider",0x0400,EC_RW,EC_R,0x02}, ++ {"Watchdog Time PDI",0x0410,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 0",0x0420,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 1",0x0422,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 2",0x0424,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 3",0x0426,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 4",0x0428,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 5",0x042a,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 6",0x042c,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 7",0x042e,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 8",0x0430,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 9",0x0432,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 10",0x0434,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 11",0x0436,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 12",0x0438,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 13",0x043a,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 14",0x043c,EC_RW,EC_R,0x02}, ++ {"Watchdog Time Channel 15",0x043e,EC_RW,EC_R,0x02}, ++ {"Watchdog Channel status",0x0450,EC_R,EC_R,0x02}, ++ {"SII Eeprom Size",0x0500,EC_R,EC_R,0x02}, ++ {"SII Control/Status",0x0502,EC_RW,EC_R,0x02}, ++ {"SII Address",0x0504,EC_RW,EC_R,0x04}, ++ {"SII Data",0x0508,EC_RW,EC_R,0x04}, ++ {"FMMU0",0x0600,EC_RW,EC_R,0x10}, ++ {"FMMU1",0x0610,EC_RW,EC_R,0x10}, ++ {"FMMU2",0x0620,EC_RW,EC_R,0x10}, ++ {"FMMU3",0x0630,EC_RW,EC_R,0x10}, ++ {"FMMU4",0x0640,EC_RW,EC_R,0x10}, ++ {"FMMU5",0x0650,EC_RW,EC_R,0x10}, ++ {"FMMU6",0x0660,EC_RW,EC_R,0x10}, ++ {"FMMU7",0x0670,EC_RW,EC_R,0x10}, ++ {"FMMU8",0x0680,EC_RW,EC_R,0x10}, ++ {"FMMU9",0x0690,EC_RW,EC_R,0x10}, ++ {"FMMU10",0x06A0,EC_RW,EC_R,0x10}, ++ {"FMMU11",0x06B0,EC_RW,EC_R,0x10}, ++ {"FMMU12",0x06C0,EC_RW,EC_R,0x10}, ++ {"FMMU13",0x06D0,EC_RW,EC_R,0x10}, ++ {"FMMU14",0x06E0,EC_RW,EC_R,0x10}, ++ {"FMMU15",0x06F0,EC_RW,EC_R,0x10}, ++ {"Sync Manager 0",0x0800,EC_RW,EC_R,0x08}, ++ {"Sync Manager 1",0x0808,EC_RW,EC_R,0x08}, ++ {"Sync Manager 2",0x0810,EC_RW,EC_R,0x08}, ++ {"Sync Manager 3",0x0818,EC_RW,EC_R,0x08}, ++ {"Sync Manager 4",0x0820,EC_RW,EC_R,0x08}, ++ {"Sync Manager 5",0x0828,EC_RW,EC_R,0x08}, ++ {"Sync Manager 6",0x0830,EC_RW,EC_R,0x08}, ++ {"Sync Manager 7",0x0838,EC_RW,EC_R,0x08}, ++ {"Sync Manager 8",0x0840,EC_RW,EC_R,0x08}, ++ {"Sync Manager 9",0x0848,EC_RW,EC_R,0x08}, ++ {"Sync Manager 10",0x0850,EC_RW,EC_R,0x08}, ++ {"Sync Manager 11",0x0858,EC_RW,EC_R,0x08}, ++ {"Sync Manager 12",0x0860,EC_RW,EC_R,0x08}, ++ {"Sync Manager 13",0x0868,EC_RW,EC_R,0x08}, ++ {"Sync Manager 14",0x0870,EC_RW,EC_R,0x08}, ++ {"Sync Manager 15",0x0878,EC_RW,EC_R,0x08} ++}; ++ ++ ++static inline int FMMUx(int channel) ++{ ++ switch(channel) { ++ case 0 : return FMMU_0; break; ++ case 1 : return FMMU_1; break; ++ case 2 : return FMMU_2; break; ++ case 3 : return FMMU_3; break; ++ case 4 : return FMMU_4; break; ++ case 5 : return FMMU_5; break; ++ case 6 : return FMMU_6; break; ++ case 7 : return FMMU_7; break; ++ case 8 : return FMMU_8; break; ++ case 9 : return FMMU_9; break; ++ case 10 : return FMMU_10; break; ++ case 11 : return FMMU_11; break; ++ case 12 : return FMMU_12; break; ++ case 13 : return FMMU_13; break; ++ case 14 : return FMMU_14; break; ++ case 15 : return FMMU_15; break; ++ default: ++ ec_log(EC_LOG_ERROR, "FMMUx: No such channel %d\n",channel); ++ return -1; ++ } ++} ++ ++static inline int Sync_Managerx(int channel) ++{ ++ switch(channel) { ++ case 0 : return Sync_Manager_0; break; ++ case 1 : return Sync_Manager_1; break; ++ case 2 : return Sync_Manager_2; break; ++ case 3 : return Sync_Manager_3; break; ++ case 4 : return Sync_Manager_4; break; ++ case 5 : return Sync_Manager_5; break; ++ case 6 : return Sync_Manager_6; break; ++ case 7 : return Sync_Manager_7; break; ++ case 8 : return Sync_Manager_8; break; ++ case 9 : return Sync_Manager_9; break; ++ case 10 : return Sync_Manager_10; break; ++ case 11 : return Sync_Manager_11; break; ++ case 12 : return Sync_Manager_12; break; ++ case 13 : return Sync_Manager_13; break; ++ case 14 : return Sync_Manager_14; break; ++ case 15 : return Sync_Manager_15; break; ++ default: ++ ec_log(EC_LOG_ERROR, "Sync_Managerx: No such channel %d\n",channel); ++ return -1; ++ } ++} ++ ++static inline int Watchdog_Time_Channelx(int channel) ++{ ++ switch(channel) { ++ case 0 : return Watchdog_Time_Channel_0; break; ++ case 1 : return Watchdog_Time_Channel_1; break; ++ case 2 : return Watchdog_Time_Channel_2; break; ++ case 3 : return Watchdog_Time_Channel_3; break; ++ case 4 : return Watchdog_Time_Channel_4; break; ++ case 5 : return Watchdog_Time_Channel_5; break; ++ case 6 : return Watchdog_Time_Channel_6; break; ++ case 7 : return Watchdog_Time_Channel_7; break; ++ case 8 : return Watchdog_Time_Channel_8; break; ++ case 9 : return Watchdog_Time_Channel_9; break; ++ case 10 : return Watchdog_Time_Channel_10; break; ++ case 11 : return Watchdog_Time_Channel_11; break; ++ case 12 : return Watchdog_Time_Channel_12; break; ++ case 13 : return Watchdog_Time_Channel_13; break; ++ case 14 : return Watchdog_Time_Channel_14; break; ++ case 15 : return Watchdog_Time_Channel_15; break; ++ default: ++ ec_log(EC_LOG_ERROR, "Watchdog_Time_Channelx: No such channel %d\n",channel); ++ return -1; ++ } ++} ++ ++/// EtherCAT Data Layer Information ++class EC_DLInformation : public EC_DataStruct ++{ ++ public: ++ EC_DLInformation(EC_USINT type, ++ EC_USINT revision, ++ EC_UINT build, ++ EC_USINT no_of_supp_fmmu_channels, ++ EC_USINT no_of_supp_syncman_channels, ++ EC_USINT ram_size, ++ bool fmmu_bit_operation_not_supp); ++ EC_DLInformation(const unsigned char * a_buffer); ++ virtual ~EC_DLInformation(){}; ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ EC_USINT Type; ++ EC_USINT Revision; ++ EC_UINT Build; ++ EC_USINT NoOfSuppFmmuChannels; ++ EC_USINT NoOfSuppSyncManChannels; ++ EC_USINT RamSize; ++ // EC_USINT Reserved1; ++ bool FmmuBitOperationNotSupp; ++ // EC_UINT Reserved2; ++ // EC_USINT Reserved3; ++}; ++ ++/// EtherCAT Fixed Station Address ++class EC_FixedStationAddress : public EC_DataStruct ++{ ++ public: ++ EC_FixedStationAddress(EC_UINT fixed_station_address = 0x0000) : ++ EC_DataStruct(EC_Slave_RD[ECAT_Station_Address].size), FixedStationAddress(fixed_station_address){}; ++ virtual ~EC_FixedStationAddress(){}; ++ EC_FixedStationAddress(const unsigned char * data) : ++ EC_DataStruct(EC_Slave_RD[ECAT_Station_Address].size) { nw2host(data,FixedStationAddress); } ++ ++ virtual unsigned char * dump(unsigned char * a_buffer) const { return host2nw(a_buffer, FixedStationAddress); } ++ ++ void operator = (const EC_FixedStationAddress & ad){ ++ this->FixedStationAddress = ad.FixedStationAddress; ++ } ++ bool operator ==(const EC_FixedStationAddress & ad) const{ ++ return (this->FixedStationAddress == ad.FixedStationAddress); ++ } ++ operator EC_UINT() const { return FixedStationAddress; } ++ private: ++ /// Fixed Station Address ++ EC_UINT FixedStationAddress; ++}; ++ ++/* class EC_DLControl : public EC_DataStruct */ ++/* { */ ++/* // fixme todo */ ++/* }; */ ++ ++ ++/* class EC_DLStatus : public EC_DataStruct */ ++/* { */ ++/* }; */ ++ ++// EtherCAT states ++typedef enum ++{ ++ EC_INIT_STATE = 0x01, ++ EC_PREOP_STATE = 0x02, ++ EC_BOOTSTRAP_STATE = 0x03, ++ EC_SAFEOP_STATE = 0x04, ++ EC_OP_STATE = 0x08 ++} EC_State; ++ ++/// AL Control register ++class EC_ALControl : public EC_DataStruct ++{ ++ public: ++ /// Constructor ++ /** @param state EtherCAT state: Can be one of the following: ++ EC_INIT_STATE, EC_PREOP_STATE, EC_BOOTSTRAP_STATE, ++ EC_SAFEOP_STATE, EC_OP_STATE ++ @param ack Acknowledge ++ @note The bootstrap state is currently unimplemented ++ */ ++ EC_ALControl(EC_State state = EC_INIT_STATE, ++ bool ack =false); ++ /// Constructor: build from data array ++ EC_ALControl(const unsigned char * a_buffer); ++ virtual ~EC_ALControl(){}; ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ EC_State State; // 4 bits ++ bool Acknowledge; // 1 bit ++ // EC_USINT ApplSpecific; // 8 bits ++}; ++ ++/// AL Status register ++class EC_ALStatus : public EC_DataStruct ++{ ++ public: ++ /// Constructor ++ /** @param state EtherCAT state: Can be one of the following: ++ EC_INIT_STATE, EC_PREOP_STATE, EC_BOOTSTRAP_STATE, ++ EC_SAFEOP_STATE, EC_OP_STATE ++ @param change Change ++ */ ++ EC_ALStatus(EC_State state = EC_INIT_STATE, ++ bool change = false); ++ /// Constructor: build from data array ++ EC_ALStatus(const unsigned char * a_buffer); ++ virtual ~EC_ALStatus(){}; ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ EC_State State; // 4 bits ++ bool Change; // 1 bit ++ // EC_USINT ApplSpecific; // 8 bits ++}; ++ ++/* class EC_PDIControl : public EC_DataStruct */ ++/* { */ ++/* }; */ ++ ++// fixme EC_PDIConfigurationMCI16 ++// fixme EC_PDIConfigurationMCI16 ++// fixme EC_ALEvent ++// fixme statistics and watchdogs ++ ++/// Slave Information Interface Control/Status ++class EC_SIIControlStatus : public EC_DataStruct ++{ ++ public: ++ /// Constructor (see spec for args) ++ EC_SIIControlStatus(bool eeprom_write_access = false, ++ bool eeprom_address_algorithm = false, ++ bool read_op = false, ++ bool write_op = false, ++ bool reload_op = false, ++ bool write_error = false, ++ bool busy = false); ++ /// Constructor: build from data array ++ EC_SIIControlStatus(const unsigned char * a_buffer); ++ virtual ~EC_SIIControlStatus(){}; ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ /// Write access? ++ bool EepromWriteAccess; ++ /// ?? FIXME meaning? ++ bool EepromAddressAlgorithm; ++ /// Read Operation? ++ bool ReadOp; ++ /// Write Operation? ++ bool WriteOp; ++ /// Reload Operation? ++ bool ReloadOp; ++ /// Write Error? ++ bool WriteError; ++ /// Eeprom busy? ++ bool Busy; ++ // Acknowledge Error ++ bool AcknowledgeError; ++}; ++ ++/// Class representing a bit position within a byte ++class EC_BitPos ++{ ++public: ++ /// Constructor ++ /** @param a_int Bit position in the byte (an int from 0 to 7) ++ */ ++ EC_BitPos(EC_USINT a_int = 0){ ++ // There are only 8 bits in a byte... ++ assert(a_int < 8); ++ m_bitpos = a_int; ++ } ++ virtual ~EC_BitPos(){}; ++ /// Cast operator ++ operator EC_USINT() const {return m_bitpos;} ++private: ++ EC_USINT m_bitpos; ++}; ++ ++/// EtherCAT FMMU ++class EC_FMMU : public EC_DataStruct ++{ ++ public: ++ /// Constructor (see spec for params) ++ EC_FMMU(EC_UDINT logical_start_address = 0x00000000, ++ EC_UINT length = 0x0000, ++ EC_BitPos logical_start_bit = 0x00, ++ EC_BitPos logical_end_bit = 0x00, ++ EC_UINT physical_start_address= 0x0000, ++ EC_BitPos physical_start_bit = 0x00, ++ bool read_enable = false, ++ bool write_enable = false, ++ bool channel_enable = false); ++ /// Constructor: build from data array ++ EC_FMMU(const unsigned char * a_buffer); ++ virtual ~EC_FMMU(){}; ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ EC_UDINT LogicalStartAddress; ++ EC_UINT Length; ++ EC_BitPos LogicalStartBit; ++ // EC_USINT Reserved1; // 5 bits ++ EC_BitPos LogicalEndBit; ++ // EC_UINT Reserved2; // 5 bits; ++ EC_UINT PhysicalStartAddress; ++ EC_BitPos PhysicalStartBit; ++ // EC_USINT Reserved3; // 5 bits ++ bool ReadEnable; ++ bool WriteEnable; ++ // EC_USINT Reserved4; // 6 bits ++ bool ChannelEnable; ++ // EC_USINT Reserved5; // 7 bits ++ // EC_USINT Reserved6; // 1 byte ++ // EC_UINT Reserved7; // 2 bytes ++}; ++ ++// ================================================== ++ ++typedef enum ++{ ++ EC_BUFFERED = 0x00, ++ EC_QUEUED = 0x02, ++} ECBufferType; ++ ++/// Class representing queued or buffered Syncman buffertypes ++/** @see EC_SyncMan ++ */ ++class EC_BufferType ++{ ++ public: ++ /// Constructor ++ /** @param bt Buffertype (buffered (EC_BUFFERED) or queued (EC_QUEUED) ++ */ ++ EC_BufferType(ECBufferType bt = EC_BUFFERED){ ++ m_buffertype = (EC_USINT) bt; ++ } ++ virtual ~EC_BufferType(){}; ++ /// Cast operator ++ operator EC_USINT() const {return m_buffertype;} ++private: ++ EC_USINT m_buffertype; ++}; ++ ++typedef enum ++{ ++ EC_READ_FROM_MASTER = 0x00, ++ EC_WRITTEN_FROM_MASTER = 0x01, ++} ECDirection; ++ ++/// Class representing read/write direction of Syncman buffer ++/** @see EC_SyncMan ++ */ ++class EC_Direction ++{ ++ public: ++ /// Constructor ++ /** @param dir R/W direction of Sync Manager Channel. Possible ++ values are ++ - "Memory is read from Master" (EC_READ_FROM_MASTER) and ++ - "Memory is written from Master" (EC_WRITTEN_FROM_MASTER) ++ */ ++ EC_Direction(ECDirection dir = EC_READ_FROM_MASTER){ ++ m_direction = (EC_USINT) dir; ++ } ++ virtual ~EC_Direction(){}; ++ /// Cast operator ++ operator EC_USINT() const {return m_direction;} ++private: ++ EC_USINT m_direction; ++}; ++ ++typedef enum { ++ EC_FIRST_BUFFER = 0x00, ++ EC_SECOND_BUFFER = 0x01, ++ EC_THIRD_BUFFER = 0x02, ++ EC_LOCKED_BUFFER = 0x03, ++} ECBufferedState; ++ ++/// Class representing buffered state of a SyncMan ++/** @see EC_SyncMan ++ */ ++class EC_BufferedState ++{ ++ public: ++ /// Constructor ++ /** @param state Buffered state of the Sync Manager Channel. ++ Possible values are ++ - EC_FIRST_BUFFER, ++ - EC_SECOND_BUFFER, ++ - EC_THIRD_BUFFER, ++ - EC_LOCKED_BUFFER ++ */ ++ EC_BufferedState(ECBufferedState state = EC_FIRST_BUFFER){ ++ m_buffered_state = (EC_USINT) state; ++ } ++ virtual ~EC_BufferedState(){}; ++ /// Cast operator ++ operator EC_USINT() const {return m_buffered_state;} ++private: ++ EC_USINT m_buffered_state; ++}; ++ ++static const bool EC_QUEUED_STATE_READ = false; ++static const bool EC_QUEUED_STATE_WRITTEN = true; ++ ++/// EtherCAT Sync Manager ++class EC_SyncMan : public EC_DataStruct ++{ ++ public: ++ /// Constructor (see spec for arguments) ++ EC_SyncMan(EC_UINT physical_start_address = 0x0000, ++ EC_UINT length = 0x0000, ++ EC_BufferType buffer_type = EC_BUFFERED, ++ EC_Direction direction = EC_READ_FROM_MASTER, ++ bool AL_event_enable = false, ++ bool watchdog_enable = false, ++ bool write_event = false, ++ bool read_event = false, ++ bool watchdog_trigger = false, ++ bool queued_state = EC_QUEUED_STATE_READ, ++ EC_BufferedState buffered_state= EC_FIRST_BUFFER, ++ bool ChannelEnable = false); ++ /// Constructor: build from data array ++ EC_SyncMan(const unsigned char * a_buffer); ++ virtual ~EC_SyncMan(){}; ++ virtual unsigned char * dump(unsigned char * a_buffer) const; ++ ++ EC_UINT PhysicalStartAddress; ++ EC_UINT Length; ++ EC_BufferType BufferType; ++ EC_Direction Direction; ++ bool ALEventEnable; ++ bool ECATEventEnable; ++ bool WatchdogEnable; ++ bool WriteEvent; ++ bool ReadEvent; ++ bool WatchdogTrigger; ++ bool QueuedState; ++ EC_BufferedState BufferedState; ++ bool ChannelEnable; ++}; ++ ++// fixme distributed clock stuff ++ ++#endif // __ethercat_slave_memory_h__ +diff --git a/include/dll/ethercat_telegram.h ./include/dll/ethercat_telegram.h +new file mode 100644 +index 0000000..b496acd +--- /dev/null ++++ ./include/dll/ethercat_telegram.h +@@ -0,0 +1,131 @@ ++// $Id: ethercat_telegram.h,v 1.28 2005/06/17 13:12:38 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_telegram_h__ ++#define __ethercat_telegram_h__ ++ ++#include "ethercat/ethercat_defs.h" ++#include "ethercat/ethercat_datastruct.h" ++ ++// Header size of telegram expressed as a number of bytes ++static const size_t ETHERCAT_TELEGRAM_HEADER_SIZE = 10; ++// Tail size of telegram expressed as a number of bytes ++static const size_t ETHERCAT_TELEGRAM_WKC_SIZE = 2; ++ ++/// EtherCat Telegram Base class ++/** This class should never be used explicitly, only use the ++ interface. Therefore its constructor is protected. The names are ++ chosen according to the Ethercat spec. ++*/ ++class EC_Telegram : public EC_DataStruct ++{ ++ public: ++ virtual ~EC_Telegram(); ++ ++ // redefine pure virtual ++ unsigned char * dump(unsigned char * a_buffer) const; ++ /// Build and check telegram from data array ++ const unsigned char * build(const unsigned char * a_buffer); ++ ++ /// Set working counter ++ void set_wkc(EC_UINT a_wkc) { m_wkc = a_wkc; } ++ /// Set index ++ void set_idx(EC_USINT a_idx) { m_idx = a_idx; } ++ /// Get working counter ++ EC_UINT get_wkc(void) const { return m_wkc; } ++ /// Get index ++ EC_USINT get_idx(void) const { return m_idx; } ++ /// Get pointer to data ++ const unsigned char * get_data(void) const { return m_data; } ++ /// Set data ++ void set_data(const unsigned char * a_data){ m_data = a_data;} ++ /// Get data length ++ size_t get_datalen(void) const {return (length() - ++ ETHERCAT_TELEGRAM_HEADER_SIZE - ++ ETHERCAT_TELEGRAM_WKC_SIZE);} ++ /// Set data length ++ void set_datalen(size_t len) { m_data_length = len + ++ ETHERCAT_TELEGRAM_HEADER_SIZE + ++ ETHERCAT_TELEGRAM_WKC_SIZE; } ++ ++ /// attach telegram to this one - ordering is somewhat arbitrary ++ void attach(EC_Telegram *a_telegram); ++ ++ /// Pointer to next telegram ++ EC_Telegram * next; ++ /// Pointer to previous telegram ++ EC_Telegram * previous; ++ ++ protected: ++ EC_Telegram(size_t a_datasize = 0, const unsigned char * a_data = NULL); ++ EC_Telegram(EC_USINT a_idx, EC_UINT a_wkc); ++ EC_Telegram(size_t a_datasize, const unsigned char * a_data, ++ EC_USINT a_idx, EC_UINT a_wkc); ++ ++ EC_Telegram(const EC_Telegram& a_telegram); ++ ++ /// Dump first 6 bytes of the header (varying across different telegrams) ++ /** @param a_buffer Adress to start writing ++ @return Address to continu writing ++ */ ++ virtual unsigned char * dump_header_head(unsigned char * a_buffer) const = 0; ++ /// Build and check first 6 bytes of the header (varying across ++ /// different telegrams) ++ /** @param a_buffer Adress to start writing ++ @return Address to continu writing ++ */ ++ virtual const unsigned char * build_header_head(const unsigned char * a_buffer) = 0; ++ ++ virtual bool check_index(const unsigned char * buffer) const; ++ virtual bool check_lennext(const unsigned char * buffer) const; ++ ++ protected: ++ /// Pointer to data field ++ const unsigned char * m_data; ++ // Length of data field ++ // size_t m_datalength; ++ /// Index Field ++ EC_USINT m_idx; ++ /// Working counter Field ++ EC_UINT m_wkc; ++ /// IRQ Field (currently unused) ++ static const EC_UINT m_irq; ++ ++ virtual size_t header_length(void)const { return ETHERCAT_TELEGRAM_HEADER_SIZE; } ++ virtual size_t tail_length(void)const { return ETHERCAT_TELEGRAM_WKC_SIZE; } ++ ++ private: ++ virtual const unsigned char * build_body(const unsigned char * a_buffer); ++}; ++ ++#endif // __ethercat_telegram_h__ +diff --git a/include/ethercat/arch-RTnet/ethercat/ethercat_datastruct.h ./include/ethercat/arch-RTnet/ethercat/ethercat_datastruct.h +new file mode 100644 +index 0000000..1256969 +--- /dev/null ++++ ./include/ethercat/arch-RTnet/ethercat/ethercat_datastruct.h +@@ -0,0 +1,72 @@ ++// $Id: ethercat_datastruct.h,v 1.5 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++// fixme include copyright notice ++ ++#ifndef __ethercat_ds_h ++#define __ethercat_ds_h ++ ++/// Base class for all EtherCAT register area data structs ++/** The main purpose of this class is to serialize and deserialize ++ data. ++*/ ++class EC_DataStruct ++{ ++ public: ++ /// Constructor ++ /** @param a_data_length data length expressed as a number of bytes ++ */ ++ EC_DataStruct(size_t a_data_length) : m_data_length(a_data_length){}; ++ ++ /// Destructor ++ virtual ~EC_DataStruct(){}; ++ ++ // default copy constructor will do... ++ ++ /// Return length of data array expressed as a number of bytes ++ /** @return the number of bytes ++ */ ++ size_t length() const {return m_data_length;} ++ ++ /// Dump the data struct into an array (EtherCAT Little Endian) ++ /** @param a_buffer where data should be dumped ++ @return pointer just beyond the array ++ */ ++ virtual unsigned char * dump(unsigned char * a_buffer) const = 0; ++ ++ protected: ++ /// Length of data array expressed as a number of bytes ++ size_t m_data_length; ++}; ++ ++#endif // __ethercat_ds_h +diff --git a/include/ethercat/arch-RTnet/ethercat/ethercat_defs.h ./include/ethercat/arch-RTnet/ethercat/ethercat_defs.h +new file mode 100644 +index 0000000..04f4797 +--- /dev/null ++++ ./include/ethercat/arch-RTnet/ethercat/ethercat_defs.h +@@ -0,0 +1,179 @@ ++// $Id: ethercat_defs.h,v 1.6 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_defs_h__ ++#define __ethercat_defs_h__ ++ ++// NOTE: Contrary to all logic ethercat data is transmitted in Little ++// Endian! ++ ++#include ++/*#ifdef __cplusplus ++extern "C" { ++#define __KERNEL__ ++#endif ++#include ++#include ++#ifdef __cplusplus ++#undef __KERNEL__ ++} ++#endif ++*/ ++#include ++ ++typedef int8_t EC_SINT; ++typedef uint8_t EC_USINT; ++typedef int16_t EC_INT; ++typedef uint16_t EC_UINT; ++typedef int32_t EC_DINT; ++typedef uint32_t EC_UDINT; ++ ++inline uint16_t le16_to_cpu(uint16_t data){return data;} ++inline uint16_t le16_to_cpu(int16_t data){return (uint16_t)data;} ++inline uint32_t le32_to_cpu(uint32_t data){return data;} ++inline uint32_t le32_to_cpu(int32_t data){return (uint32_t)data;} ++ ++inline uint16_t cpu_to_le16(uint16_t data){return data;} ++inline uint16_t cpu_to_le16(int16_t data){return (uint16_t)data;} ++inline uint32_t cpu_to_le32(uint32_t data){return data;} ++inline uint32_t cpu_to_le32(int32_t data){return (uint32_t)data;} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_SINT a_value) { ++ *a_buffer++ = static_cast(a_value); ++ return a_buffer; ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_USINT a_value) { ++ *a_buffer++ = static_cast(a_value); ++ return a_buffer; ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_INT a_value) { ++ uint16_t tmp = cpu_to_le16(a_value); ++ memcpy(a_buffer, &tmp, sizeof(tmp)); ++ return a_buffer + sizeof(tmp); ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_UINT a_value) { ++ uint16_t tmp = cpu_to_le16(a_value); ++ memcpy(a_buffer, &tmp, sizeof(tmp)); ++ return a_buffer + sizeof(tmp); ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_DINT a_value) { ++ uint32_t tmp = cpu_to_le32(a_value); ++ memcpy(a_buffer, &tmp, sizeof(tmp)); ++ return a_buffer + sizeof(tmp); ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_UDINT a_value) { ++ uint32_t tmp = cpu_to_le32(a_value); ++ memcpy(a_buffer, &tmp, sizeof(tmp)); ++ return a_buffer + sizeof(tmp); ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, const unsigned char * a_data, size_t a_datalen) { ++ memcpy(a_buffer, a_data, a_datalen); ++ return a_buffer + a_datalen; ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_SINT& a_value) { ++ a_value = static_cast(*a_data); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_USINT& a_value) { ++ a_value= static_cast(*a_data); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_INT& a_value) { ++ uint16_t tmp; ++ memcpy(&tmp, a_data, sizeof(tmp)); ++ tmp = le16_to_cpu(tmp); ++ ++ a_value = static_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_UINT& a_value) { ++ uint16_t tmp; ++ memcpy(&tmp, a_data, sizeof(tmp)); ++ tmp = le16_to_cpu(tmp); ++ ++ a_value = tmp; //reinterpret_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_DINT& a_value) { ++ uint32_t tmp; ++ memcpy(&tmp, a_data, sizeof(tmp)); ++ tmp = le32_to_cpu(tmp); ++ ++ a_value = static_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_UDINT& a_value) { ++ uint32_t tmp; ++ memcpy(&tmp, a_data,sizeof(tmp)); ++ tmp = le32_to_cpu(tmp); ++ ++ a_value = static_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++/* ++inline const unsigned char * nw2host(const unsigned char * a_data, size_t a_datalen) { ++ return a_data + a_datalen; ++} ++ ++ ++inline const unsigned char * nw2host_int(const unsigned char * a_data, EC_UDINT& a_value) { ++ uint32_t tmp; ++ memcpy(&tmp, a_data,sizeof(tmp)); ++ tmp = le32_to_cpu(tmp); ++ ++ a_value = static_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++ ++inline const unsigned char * nw2host_arr(const unsigned char * a_data, size_t a_datalen) { ++ return a_data + a_datalen; ++} ++*/ ++ ++ ++ ++#endif // __ethercat_defs_h__ +diff --git a/include/ethercat/arch-RTnet/ethercat/ethercat_log.h ./include/ethercat/arch-RTnet/ethercat/ethercat_log.h +new file mode 100644 +index 0000000..6696d7a +--- /dev/null ++++ ./include/ethercat/arch-RTnet/ethercat/ethercat_log.h +@@ -0,0 +1,48 @@ ++// $Id: ethercat_log.h,v 1.6 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_log_h__ ++#define __ethercat_log_h__ ++ ++#include ++ ++#define EC_LOG_INFO 3 ++#define EC_LOG_WARNING 2 ++#define EC_LOG_ERROR 1 ++#define EC_LOG_FATAL 0 ++ ++// Redefine this function if not using eCos... ++#define ec_log(level, args...) \ ++ if (level <= EC_LOG_FATAL) fprintf(stderr, args) ++ ++#endif // __ethercat_log_h__ +diff --git a/include/ethercat/arch-RTnet/ethercat/ethercat_xenomai_drv.h ./include/ethercat/arch-RTnet/ethercat/ethercat_xenomai_drv.h +new file mode 100644 +index 0000000..00a3d74 +--- /dev/null ++++ ./include/ethercat/arch-RTnet/ethercat/ethercat_xenomai_drv.h +@@ -0,0 +1,50 @@ ++// $Id:$ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef ethercat_xenomai_drv_h ++#define ethercat_xenomai_drv_h ++#include ++ ++#ifdef __cplusplus ++extern "C" ++{ ++#endif ++ int set_socket_timeout(struct netif* , int64_t ); // change the timeout (in ns) ++ struct netif* init_ec(const char *); // create an EtharCAT network interface ++ int close_socket(struct netif*); // close the used socket ++#ifdef __cplusplus ++} ++#endif ++ ++ ++#endif +diff --git a/include/ethercat/arch-RTnet/ethercat/netif.h ./include/ethercat/arch-RTnet/ethercat/netif.h +new file mode 100644 +index 0000000..1b7ea9b +--- /dev/null ++++ ./include/ethercat/arch-RTnet/ethercat/netif.h +@@ -0,0 +1,224 @@ ++// $Id: netif.h,v 1.13 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++// $Id: netif.h,v 1.13 2006/02/20 15:57:33 kgad Exp $ ++#ifndef __netif_h__ ++#define __netif_h__ ++ ++// Forward declarations ++struct EtherCAT_Frame; ++struct netif; ++ ++#include ++#include ++ ++#define ETHERCAT_DEVICE_NAME_MAX_LENGTH 256 ++// Size of MAC adresses expressed as a number of bytes ++#define MAC_ADDRESS_SIZE 6 ++ ++// Function prototypes ++#ifdef __cplusplus ++#define externC extern "C" ++#else ++ ++#define externC ++#endif ++ ++ ++typedef char BOOL; ++#define FALSE 0 ++#define TRUE 1 ++ ++ ++externC void if_attach(struct netif * netif); ++externC int framedump(const struct EtherCAT_Frame * frame, unsigned char * buffer, size_t bufferlength); ++externC int framebuild(struct EtherCAT_Frame * frame, const unsigned char * buffer); ++ ++ ++// Number of outstanding packets to keep track of ++#define PKT_LIST_SIZE 128 ++ ++// Number of buffers to hold recieved packets ++#define BUF_LIST_SIZE 16 ++ ++// Should be < number of RX buffers ++#define MAX_UNCLAIMED_PACKETS (BUF_LIST_SIZE-1) ++ ++ ++// buffer to hold recieved packets ++struct pkt_buf { ++ // True if the buffer is being used ++ BOOL is_free; ++ // buffer for to store ethernet message ++ // more than enough to hold any type of message ++ unsigned char data[2000]; ++}; ++ ++// record of packet that has been sent but. ++// 1. has not received reply ++// .... OR .... ++// 2. has not been claimed by higher level software ++struct outstanding_pkt { ++ // whether this record is holding an outstanding packet or not ++ BOOL is_free; ++ ++ // pointer to received packet buffer ++ // If this is NULL if the packet has not been received ++ struct pkt_buf *buf; ++ ++ // The source MAC address is used to keep track of ++ // which packet belongs where ++ u_int8_t ether_shost[MAC_ADDRESS_SIZE]; ++ ++ // EtherCAT_Frame that was use to generate the sent packet... ++ // The exact same frame must be used to pickup the packet ++ struct EtherCAT_Frame * frame; ++ ++ // To allow synchronization between input thread and rx function ++ //pthread_mutex_t rx_mut; ++ //pthread_mutexattr_t rx_attr; ++ pthread_cond_t rx_cond; ++ ++ // Temember when packet was sent ++ struct timespec tx_time; ++}; ++ ++struct netif_counters ++{ ++ uint64_t sent; ++ uint64_t received; ++ uint64_t collected; ++ uint64_t dropped; ++ uint64_t tx_error; ++ uint64_t tx_net_down; ++ uint64_t tx_would_block; ++ uint64_t tx_no_bufs; ++ uint64_t tx_full; ++ uint64_t rx_runt_pkt; ++ uint64_t rx_not_ecat; ++ uint64_t rx_other_eml; ++ uint64_t rx_bad_index; ++ uint64_t rx_bad_seqnum; ++ uint64_t rx_dup_seqnum; ++ uint64_t rx_dup_pkt; ++ uint64_t rx_bad_order; ++ uint64_t rx_late_pkt; // Count of all late packets ++ uint64_t sw_dropped; // packets that were dropped by software (for testing purposes) ++ uint64_t rx_late_pkt_rtt_us; // Round trip time (in microseconds) of last late packet arrival ++ uint64_t rx_late_pkt_rtt_us_sum; // Sum of rtt's of all late packets (for calculating average) ++}; ++ ++/// Generic ethercat interface towards lower level drivers. ++/** It should be readily re-implemented for different OSes such as ++ RTAI, linux, ... etc. (For the ease of porting the interface ++ is in C). ++*/ ++struct netif { ++ /// Transmit and receive an EtherCAT frame ++ /** Implemented for ecos in low_level_txandrx() in ++ packages/io/eth/current/src/ethercatmaster/eth_drv.c ++ and mapped in eth_drv_init() ++ */ ++ BOOL (* txandrx)(struct EtherCAT_Frame * frame, struct netif * netif); ++ ++ /// Transmit and receive an EtherCAT frame - only attempt to send ++ /// frame once ++ BOOL (* txandrx_once)(struct EtherCAT_Frame * frame, struct netif * netif); ++ ++ ++ /// Transmit frame ++ /** Negative return value is an error code, positive and zero is a ++ handle ++ */ ++ int (* tx)(struct EtherCAT_Frame * frame, struct netif * netif); ++ ++ ++ /// Recieve frame ++ /** May block, returns true if correct frame is recieved ++ */ ++ BOOL (* rx)(struct EtherCAT_Frame * frame, struct netif * netif, int handle); ++ ++ /// Drop frame ++ /** Like rx(), but does not fill in frame with result, useful for testing ++ */ ++ BOOL (* drop)(struct EtherCAT_Frame * frame, struct netif * netif, int handle); ++ ++ /// Recieve frame ++ /** Will not block, returns true if correct frame is recieved ++ */ ++ BOOL (* rx_nowait)(struct EtherCAT_Frame * frame, struct netif * netif, int handle); ++ ++ /// The MAC address ++ unsigned char hwaddr[MAC_ADDRESS_SIZE]; ++ /// Filedescriptor of the socket ++ int socket_private; ++ ++ /// Counters for certain types of events (packet drops, invalid packets, etc) ++ struct netif_counters counters; ++ ++ /// Sequence number to put on next sent packet ++ unsigned tx_seqnum; ++ ++ /// Secuence number of more recently recieved packet ++ unsigned rx_seqnum; ++ ++ /// Outstanding pkt slot to use from next tx ++ unsigned next_pkt_index; ++ ++ /// List of outstanding packets ++ /// (packets that have been tx'ed but not rx'ed) ++ struct outstanding_pkt pkt_list[PKT_LIST_SIZE]; ++ ++ // Number of tx'd packets that have not been rx'd yet ++ unsigned unclaimed_packets; ++ ++ /// List of buffers used for packet reception ++ struct pkt_buf buf_list[BUF_LIST_SIZE]; ++ ++ // For thread safety: txandrx() can be called from multiple threads... ++ pthread_mutex_t txandrx_mut; ++ pthread_mutexattr_t txandrx_attr; ++ ++ // For input thread -- if it is used ++ pthread_t input_thread; ++ volatile BOOL stop; ++ volatile BOOL is_stopped; ++ ++ // Timeout for recieve in microseconds. ++ int timeout_us; ++ ++ // private variable ++ void* private_data; ++}; ++ ++#endif // __netif_h__ +diff --git a/include/ethercat/arch-eCos/ethercat/ethercat_datastruct.h ./include/ethercat/arch-eCos/ethercat/ethercat_datastruct.h +new file mode 100644 +index 0000000..1256969 +--- /dev/null ++++ ./include/ethercat/arch-eCos/ethercat/ethercat_datastruct.h +@@ -0,0 +1,72 @@ ++// $Id: ethercat_datastruct.h,v 1.5 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++// fixme include copyright notice ++ ++#ifndef __ethercat_ds_h ++#define __ethercat_ds_h ++ ++/// Base class for all EtherCAT register area data structs ++/** The main purpose of this class is to serialize and deserialize ++ data. ++*/ ++class EC_DataStruct ++{ ++ public: ++ /// Constructor ++ /** @param a_data_length data length expressed as a number of bytes ++ */ ++ EC_DataStruct(size_t a_data_length) : m_data_length(a_data_length){}; ++ ++ /// Destructor ++ virtual ~EC_DataStruct(){}; ++ ++ // default copy constructor will do... ++ ++ /// Return length of data array expressed as a number of bytes ++ /** @return the number of bytes ++ */ ++ size_t length() const {return m_data_length;} ++ ++ /// Dump the data struct into an array (EtherCAT Little Endian) ++ /** @param a_buffer where data should be dumped ++ @return pointer just beyond the array ++ */ ++ virtual unsigned char * dump(unsigned char * a_buffer) const = 0; ++ ++ protected: ++ /// Length of data array expressed as a number of bytes ++ size_t m_data_length; ++}; ++ ++#endif // __ethercat_ds_h +diff --git a/include/ethercat/arch-eCos/ethercat/ethercat_defs.h ./include/ethercat/arch-eCos/ethercat/ethercat_defs.h +new file mode 100644 +index 0000000..ef54d66 +--- /dev/null ++++ ./include/ethercat/arch-eCos/ethercat/ethercat_defs.h +@@ -0,0 +1,140 @@ ++// $Id: ethercat_defs.h,v 1.6 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_defs_h__ ++#define __ethercat_defs_h__ ++ ++// NOTE: Contrary to all logic ethercat data is transmitted in Little ++// Endian! ++ ++#include ++#include ++#include ++ ++typedef cyg_int8 EC_SINT; ++typedef cyg_uint8 EC_USINT; ++typedef cyg_int16 EC_INT; ++typedef cyg_uint16 EC_UINT; ++typedef cyg_int32 EC_DINT; ++typedef cyg_uint32 EC_UDINT; ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_SINT a_value) { ++ *a_buffer++ = static_cast(a_value); ++ return a_buffer; ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_USINT a_value) { ++ *a_buffer++ = static_cast(a_value); ++ return a_buffer; ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_INT a_value) { ++ cyg_uint16 tmp = CYG_CPU_TO_LE16(a_value); ++ memcpy(a_buffer, &tmp, sizeof(tmp)); ++ return a_buffer + sizeof(tmp); ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_UINT a_value) { ++ cyg_uint16 tmp = CYG_CPU_TO_LE16(a_value); ++ memcpy(a_buffer, &tmp, sizeof(tmp)); ++ return a_buffer + sizeof(tmp); ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_DINT a_value) { ++ cyg_uint32 tmp = CYG_CPU_TO_LE32(a_value); ++ memcpy(a_buffer, &tmp, sizeof(tmp)); ++ return a_buffer + sizeof(tmp); ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_UDINT a_value) { ++ cyg_uint32 tmp = CYG_CPU_TO_LE32(a_value); ++ memcpy(a_buffer, &tmp, sizeof(tmp)); ++ return a_buffer + sizeof(tmp); ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, const unsigned char * a_data, size_t a_datalen) { ++ memcpy(a_buffer, a_data, a_datalen); ++ return a_buffer + a_datalen; ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_SINT& a_value) { ++ a_value = static_cast(*a_data); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_USINT& a_value) { ++ a_value= static_cast(*a_data); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_INT& a_value) { ++ cyg_uint16 tmp; ++ memcpy(&tmp, a_data, sizeof(tmp)); ++ tmp = CYG_LE16_TO_CPU(tmp); ++ ++ a_value = static_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_UINT& a_value) { ++ cyg_uint16 tmp; ++ memcpy(&tmp, a_data, sizeof(tmp)); ++ tmp = CYG_LE16_TO_CPU(tmp); ++ ++ a_value = static_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_DINT& a_value) { ++ cyg_uint32 tmp; ++ memcpy(&tmp, a_data, sizeof(tmp)); ++ tmp = CYG_LE32_TO_CPU(tmp); ++ ++ a_value = static_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_UDINT& a_value) { ++ cyg_uint32 tmp; ++ memcpy(&tmp, a_data,sizeof(tmp)); ++ tmp = CYG_LE32_TO_CPU(tmp); ++ ++ a_value = static_cast(tmp); ++ return a_data + sizeof(a_value); ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, size_t a_datalen) { ++ return a_data + a_datalen; ++} ++ ++#endif // __ethercat_defs_h__ +diff --git a/include/ethercat/arch-eCos/ethercat/ethercat_log.h ./include/ethercat/arch-eCos/ethercat/ethercat_log.h +new file mode 100644 +index 0000000..6252d37 +--- /dev/null ++++ ./include/ethercat/arch-eCos/ethercat/ethercat_log.h +@@ -0,0 +1,49 @@ ++// $Id: ethercat_log.h,v 1.6 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_log_h__ ++#define __ethercat_log_h__ ++ ++#include ++#include ++ ++#define EC_LOG_INFO 3 ++#define EC_LOG_WARNING 2 ++#define EC_LOG_ERROR 1 ++#define EC_LOG_FATAL 0 ++ ++// Redefine this function if not using eCos... ++#define ec_log(level, args...) \ ++if(level < CYGNUM_ETHERCATMASTER_LOG_LEVEL) diag_printf(args) ++ ++#endif // __ethercat_log_h__ +diff --git a/include/ethercat/arch-eCos/ethercat/netif.h ./include/ethercat/arch-eCos/ethercat/netif.h +new file mode 100644 +index 0000000..93999cf +--- /dev/null ++++ ./include/ethercat/arch-eCos/ethercat/netif.h +@@ -0,0 +1,83 @@ ++// $Id: netif.h,v 1.13 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++// $Id: netif.h,v 1.13 2006/02/20 15:57:33 kgad Exp $ ++#ifndef __netif_h__ ++#define __netif_h__ ++ ++// Forward declarations ++struct EtherCAT_Frame; ++struct netif; ++ ++#include ++ ++#define ETHERCAT_DEVICE_NAME_MAX_LENGTH 256 ++// Size of MAC adresses expressed as a number of bytes ++#define MAC_ADDRESS_SIZE 6 ++ ++// Function prototypes ++externC void if_attach(struct netif * netif); ++externC int framedump(const struct EtherCAT_Frame * frame, unsigned char * buffer, size_t bufferlength); ++externC int framebuild(struct EtherCAT_Frame * frame, const unsigned char * buffer); ++ ++/// Generic ethercat interface towards lower level drivers. ++/** It should be readily re-implemented for different OSes such as ++ RTAI, linux, ... etc. (For the ease of porting the interface ++ is in C). ++*/ ++struct netif { ++ /// Transmit and receive an EtherCAT frame ++ /** Implemented for ecos in low_level_txandrx() in ++ packages/io/eth/current/src/ethercatmaster/eth_drv.c ++ and mapped in eth_drv_init() ++ */ ++ bool (* txandrx)(struct EtherCAT_Frame * frame, struct netif * netif); ++ ++ /// Request for servicing from low level device driver ++ /** Implemented for ecos in ethercat_delivery_request() in ++ packages/net/ethercatmaster/current/src/ecos/support.cxx ++ and mapped in if_attach() ++ */ ++ void (* service_request_indication)(struct netif * netif); ++ ++ /// The MAC address ++ unsigned char hwaddr[MAC_ADDRESS_SIZE]; ++ /// Name of the device ++ char device_name[ETHERCAT_DEVICE_NAME_MAX_LENGTH]; ++ /// Field to be set by the device driver ++ void * devicedriver_private; ++ /// Field to be set by the stack ++ void * stack_private; ++}; ++ ++#endif // __netif_h__ +diff --git a/include/ethercat/arch-template/ethercat_defs.h ./include/ethercat/arch-template/ethercat_defs.h +new file mode 100644 +index 0000000..1310bd2 +--- /dev/null ++++ ./include/ethercat/arch-template/ethercat_defs.h +@@ -0,0 +1,92 @@ ++// $Id: ethercat_defs.h,v 1.6 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_defs_h__ ++#define __ethercat_defs_h__ ++ ++typedef your_short_int_type_here EC_SINT; // 8 bits, signed ++typedef ... EC_USINT; // 8 bits, unsigned ++typedef ... EC_INT; // 16 bits, signed ++typedef ... EC_UINT; // 16 bits, unsigned ++typedef .. EC_DINT; // 32 bits, signed ++typedef ... EC_UDINT; // 32 bits, unsigned ++ ++// NOTE: Contrary to all logic ethercat data is transmitted in Little ++// Endian! ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_SINT a_value) { ++ *a_buffer++ = static_cast(a_value); ++ return a_buffer; ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_USINT a_value) { ++ *a_buffer++ = static_cast(a_value); ++ return a_buffer; ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_INT a_value) { ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_UINT a_value) { ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_DINT a_value) { ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, EC_UDINT a_value) { ++} ++ ++inline unsigned char * host2nw(unsigned char * a_buffer, const unsigned char * a_data, size_t a_datalen) { ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_SINT& a_value) { ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_USINT& a_value) { ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_INT& a_value) { ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_UINT& a_value) { ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_DINT& a_value) { ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, EC_UDINT& a_value) { ++} ++ ++inline const unsigned char * nw2host(const unsigned char * a_data, size_t a_datalen) { ++} ++ ++#endif // __ethercat_defs_h__ +diff --git a/include/ethercat/arch-template/ethercat_log.h ./include/ethercat/arch-template/ethercat_log.h +new file mode 100644 +index 0000000..02ce9a2 +--- /dev/null ++++ ./include/ethercat/arch-template/ethercat_log.h +@@ -0,0 +1,48 @@ ++// $Id: ethercat_log.h,v 1.6 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#ifndef __ethercat_log_h__ ++#define __ethercat_log_h__ ++ ++#include ++ ++#define EC_LOG_INFO 3 ++#define EC_LOG_WARNING 2 ++#define EC_LOG_ERROR 1 ++#define EC_LOG_FATAL 0 ++ ++// Redefine this function if you're not using eCos... ++#define ec_log(level, args...) \ ++if(level < CYGNUM_ETHERCATMASTER_LOG_LEVEL) diag_printf(args) ++ ++#endif // __ethercat_log_h__ +diff --git a/include/ethercat/ethercat_datastruct.h ./include/ethercat/ethercat_datastruct.h +new file mode 100644 +index 0000000..1256969 +--- /dev/null ++++ ./include/ethercat/ethercat_datastruct.h +@@ -0,0 +1,72 @@ ++// $Id: ethercat_datastruct.h,v 1.5 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++// fixme include copyright notice ++ ++#ifndef __ethercat_ds_h ++#define __ethercat_ds_h ++ ++/// Base class for all EtherCAT register area data structs ++/** The main purpose of this class is to serialize and deserialize ++ data. ++*/ ++class EC_DataStruct ++{ ++ public: ++ /// Constructor ++ /** @param a_data_length data length expressed as a number of bytes ++ */ ++ EC_DataStruct(size_t a_data_length) : m_data_length(a_data_length){}; ++ ++ /// Destructor ++ virtual ~EC_DataStruct(){}; ++ ++ // default copy constructor will do... ++ ++ /// Return length of data array expressed as a number of bytes ++ /** @return the number of bytes ++ */ ++ size_t length() const {return m_data_length;} ++ ++ /// Dump the data struct into an array (EtherCAT Little Endian) ++ /** @param a_buffer where data should be dumped ++ @return pointer just beyond the array ++ */ ++ virtual unsigned char * dump(unsigned char * a_buffer) const = 0; ++ ++ protected: ++ /// Length of data array expressed as a number of bytes ++ size_t m_data_length; ++}; ++ ++#endif // __ethercat_ds_h +diff --git a/include/ethercat/netif.h ./include/ethercat/netif.h +new file mode 100644 +index 0000000..93999cf +--- /dev/null ++++ ./include/ethercat/netif.h +@@ -0,0 +1,83 @@ ++// $Id: netif.h,v 1.13 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++// $Id: netif.h,v 1.13 2006/02/20 15:57:33 kgad Exp $ ++#ifndef __netif_h__ ++#define __netif_h__ ++ ++// Forward declarations ++struct EtherCAT_Frame; ++struct netif; ++ ++#include ++ ++#define ETHERCAT_DEVICE_NAME_MAX_LENGTH 256 ++// Size of MAC adresses expressed as a number of bytes ++#define MAC_ADDRESS_SIZE 6 ++ ++// Function prototypes ++externC void if_attach(struct netif * netif); ++externC int framedump(const struct EtherCAT_Frame * frame, unsigned char * buffer, size_t bufferlength); ++externC int framebuild(struct EtherCAT_Frame * frame, const unsigned char * buffer); ++ ++/// Generic ethercat interface towards lower level drivers. ++/** It should be readily re-implemented for different OSes such as ++ RTAI, linux, ... etc. (For the ease of porting the interface ++ is in C). ++*/ ++struct netif { ++ /// Transmit and receive an EtherCAT frame ++ /** Implemented for ecos in low_level_txandrx() in ++ packages/io/eth/current/src/ethercatmaster/eth_drv.c ++ and mapped in eth_drv_init() ++ */ ++ bool (* txandrx)(struct EtherCAT_Frame * frame, struct netif * netif); ++ ++ /// Request for servicing from low level device driver ++ /** Implemented for ecos in ethercat_delivery_request() in ++ packages/net/ethercatmaster/current/src/ecos/support.cxx ++ and mapped in if_attach() ++ */ ++ void (* service_request_indication)(struct netif * netif); ++ ++ /// The MAC address ++ unsigned char hwaddr[MAC_ADDRESS_SIZE]; ++ /// Name of the device ++ char device_name[ETHERCAT_DEVICE_NAME_MAX_LENGTH]; ++ /// Field to be set by the device driver ++ void * devicedriver_private; ++ /// Field to be set by the stack ++ void * stack_private; ++}; ++ ++#endif // __netif_h__ +diff --git a/src/CMakeLists.txt ./src/CMakeLists.txt +new file mode 100644 +index 0000000..21d05a6 +--- /dev/null ++++ ./src/CMakeLists.txt +@@ -0,0 +1,96 @@ ++FILE( GLOB SRCS al/[^.]*.cxx dll/[^.]*.cxx ) ++SET (eml_SRCS ${SRCS}) ++ ++IF (BUILD_FOR_ECOS) ++ # Copied some stuff from ECOS_ADD_EXECUTABLE macro, since there is no ++ # ECOS_ADD_LIBRARY call ++ ADD_DEFINITIONS(-D__ECOS__=1 -D__ECOS=1) ++ SET(ECOS_DEFINITIONS -Wall -Wno-long-long -pipe -fno-builtin) ++ ++ SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wstrict-prototypes") ++ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -fno-rtti -Wctor-dtor-privacy -fno-strict-aliasing -fno-exceptions") ++ ++ # eCos only supports static libraries ++ add_library(eml ${eml_SRCS}) ++ ++ # arch specific headers ++ FILE( GLOB ARCH_INCLS ${EML_SOURCE_DIR}/include/ethercat/arch-eCos/ethercat/[^.]*.h ) ++ INSTALL_FILES( /include/ethercat/arch-eCos/ FILES ${ETHERCAT_INCLS}) ++ENDIF (BUILD_FOR_ECOS) ++ ++IF (BUILD_FOR_RTNET) ++ SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${XNPOSIX_USER_CFLAGS}") ++ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") ++ ++ FILE( GLOB RTnet_SRCS arch/RTnet/[^.]*.c) ++ SET (eml_SRCS "${eml_SRCS};${RTnet_SRCS}") ++ ++ # Settings for building a static library (.a) ++ OPTION(BUILD_STATIC "Build EML as a static library." OFF) ++ IF ( BUILD_STATIC ) ++ ADD_LIBRARY(eml-static STATIC ${eml_SRCS}) ++ SET_TARGET_PROPERTIES(eml-static ++ PROPERTIES OUTPUT_NAME eml LINK_FLAGS "${XNPOSIX_USER_LDFLAGS}" ++ CLEAN_DIRECT_OUTPUT 1) ++ INSTALL_TARGETS(/lib eml-static) ++ ENDIF ( BUILD_STATIC ) ++ ++ # Settings for building a dynamic library (.so/.dll) ++ OPTION(BUILD_DYNAMIC "Build EML as a dynamic library (Default)." ON) ++ IF( BUILD_DYNAMIC) ++ ADD_LIBRARY(eml-dynamic SHARED ${eml_SRCS}) ++ SET_TARGET_PROPERTIES(eml-dynamic ++ PROPERTIES OUTPUT_NAME eml LINK_FLAGS "${XNPOSIX_USER_LDFLAGS}" ++ CLEAN_DIRECT_OUTPUT 1) ++ INSTALL_TARGETS(/lib eml-dynamic) ++ ENDIF (BUILD_DYNAMIC) ++ ++ # arch specific headers ++ FILE( GLOB ARCH_RTNET_INCLS ${EML_SOURCE_DIR}/include/ethercat/arch-RTnet/ethercat/[^.]*.h ) ++ INSTALL_FILES( /include/ethercat/ FILES ${ARCH_RTNET_INCLS}) ++ ++ENDIF(BUILD_FOR_RTNET) ++ ++IF (BUILD_FOR_POSIX) ++ ++ FILE( GLOB posix_SRCS arch/posix/[^.]*.c) ++ SET (eml_SRCS "${eml_SRCS};${posix_SRCS}") ++ ++ # Settings for building a static library (.a) ++ OPTION(BUILD_STATIC "Build EML as a static library." OFF) ++ IF ( BUILD_STATIC ) ++ ADD_LIBRARY(eml-static STATIC ${eml_SRCS}) ++ SET_TARGET_PROPERTIES(eml-static ++ PROPERTIES OUTPUT_NAME eml LINK_FLAGS "${POSIX_USER_LDFLAGS}" ++ CLEAN_DIRECT_OUTPUT 1) ++ INSTALL_TARGETS(/lib eml-static) ++ ENDIF ( BUILD_STATIC ) ++ ++ # Settings for building a dynamic library (.so/.dll) ++ OPTION(BUILD_DYNAMIC "Build EML as a dynamic library (Default)." ON) ++ IF( BUILD_DYNAMIC) ++ ADD_LIBRARY(eml-dynamic SHARED ${eml_SRCS}) ++ SET_TARGET_PROPERTIES(eml-dynamic ++ PROPERTIES OUTPUT_NAME eml LINK_FLAGS "${POSIX_USER_LDFLAGS}" ++ CLEAN_DIRECT_OUTPUT 1) ++ INSTALL_TARGETS(/lib eml-dynamic) ++ ENDIF (BUILD_DYNAMIC) ++ ++ # arch specific headers ++ FILE( GLOB ARCH_POSIX_INCLS ${EML_SOURCE_DIR}/include/ethercat/arch-RTnet/ethercat/[^.]*.h ) ++ INSTALL_FILES( /include/ethercat/ FILES ${ARCH_POSIX_INCLS}) ++ ++ENDIF(BUILD_FOR_POSIX) ++ ++ ++# Also install header files ++FILE( GLOB AL_INCLS ${EML_SOURCE_DIR}/include/al/[^.]*.h ) ++INSTALL_FILES( /include/al/ FILES ${AL_INCLS}) ++FILE( GLOB DLL_INCLS ${EML_SOURCE_DIR}/include/dll/[^.]*.h ) ++INSTALL_FILES( /include/dll/ FILES ${DLL_INCLS}) ++#FILE( GLOB ETHERCAT_INCLS ${EML_SOURCE_DIR}/include/ethercat/[^.]*.h ) ++#INSTALL_FILES( /include/ethercat/ FILES ${ETHERCAT_INCLS}) ++ ++ ++ ++ +diff --git a/src/al/ethercat_AL.cxx ./src/al/ethercat_AL.cxx +new file mode 100644 +index 0000000..62ed578 +--- /dev/null ++++ ./src/al/ethercat_AL.cxx +@@ -0,0 +1,424 @@ ++// $Id: ethercat_AL.cxx,v 1.21 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "ethercat/ethercat_log.h" ++#include "al/ethercat_AL.h" ++#include "al/ethercat_slave_conf.h" ++#include "dll/ethercat_slave_memory.h" ++#include "al/ethercat_slave_handler.h" ++#include "dll/ethercat_dll.h" ++#include "dll/ethercat_telegram.h" ++#include "dll/ethercat_frame.h" ++#include "dll/ethercat_device_addressed_telegram.h" ++#include "dll/ethercat_logical_addressed_telegram.h" ++#include ++ ++// ================================================== ++EC_Logic * EC_Logic::m_instance = NULL; ++ ++EC_Logic::EC_Logic() ++ : m_wkc(0), m_idx(0){} ++ ++ ++EC_Logic * ++EC_Logic::instance() ++{ ++ if (!m_instance) { ++ m_instance = new EC_Logic(); ++ } ++ return m_instance; ++} ++ ++// ================================================== ++ ++EtherCAT_AL * EtherCAT_AL::m_instance = NULL; ++ ++EtherCAT_AL * ++EtherCAT_AL::instance() ++{ ++ if (!m_instance) { ++ m_instance = new EtherCAT_AL(); ++ } ++ return m_instance; ++} ++ ++EtherCAT_AL::EtherCAT_AL() ++ : m_num_slaves(0), m_ready(false) ++{ ++ m_dll_instance = EtherCAT_DataLinkLayer::instance(); ++ m_slave_db = EtherCAT_SlaveDb::instance(); ++ m_logic_instance = EC_Logic::instance(); ++ ++ if (init() == false){ ++ // Can't use exceptions, since not supported by eCOS f.i. ++ ec_log(EC_LOG_FATAL, "EtherCAT_AL:: Can't init network\n"); ++ } ++ m_ready = true; ++} ++ ++EtherCAT_AL::~EtherCAT_AL() ++{ ++ for (unsigned int i = 0; i < m_num_slaves ; i++) ++ { ++ delete m_slave_handler[i]; ++ } ++ delete[] m_slave_handler; ++} ++ ++bool ++EtherCAT_AL::init(void) ++{ ++ if (scan_slaves()){ ++ if (reset_slaves()){ ++ return put_slaves_in_init(); ++ } ++ else{ ++ ec_log(EC_LOG_FATAL, "Something went wrong while resetting slaves\n"); ++ return false; ++ } ++ } ++ else{ ++ ec_log(EC_LOG_FATAL, "Something went wrong while scanning network\n"); ++ return false; ++ } ++} ++ ++bool ++EtherCAT_AL::isReady() { ++ return m_ready; ++} ++ ++bool ++EtherCAT_AL::scan_slaves(void) ++{ ++ // Send APRD telegram to count number of slaves ++ unsigned char a[1] = { 0x00 }; ++ APRD_Telegram counter_tg(m_logic_instance->get_idx(),0x0000,0x0000, ++ m_logic_instance->get_wkc(),0x01,a); ++ EC_Ethernet_Frame counter_frame(&counter_tg); ++ bool succeed = m_dll_instance->txandrx(&counter_frame); ++ if (succeed == false){ ++ ec_log(EC_LOG_FATAL,"Error sending counter frame\n"); ++ return succeed; ++ } ++ // Init Number of slaves ++ m_num_slaves = counter_tg.get_adp(); ++ ec_log(EC_LOG_INFO, "EtherCAT AL: Ring contains %d slaves\n",m_num_slaves); ++ m_slave_handler = new EtherCAT_SlaveHandler*[m_num_slaves]; ++ ++ // Initialise Slave Handlers, Reading productcode and revision from SII ++ EC_UINT adp = 0x0000; ++ EC_UDINT productcode = 0x00000000; ++ EC_UDINT revision = 0x00000000; ++ EC_UDINT serial = 0x00000000; ++ const EC_UINT SII_datalen = EC_Slave_RD[SII_ControlStatus].size + EC_Slave_RD[SII_Address].size + EC_Slave_RD[SII_Data].size; ++ unsigned char data[SII_datalen]; ++ const EtherCAT_SlaveConfig * sconf; ++ for (unsigned i = 0; i < SII_datalen; i++) ++ data[i] = 0x00; ++ for (unsigned int i = 0; i < m_num_slaves; i++) ++ { ++ for (unsigned j = 0; j < EC_Slave_RD[SII_Data].size; j++) ++ data[j] = 0x00; ++ succeed = read_SII(adp,EC_ProductCodeAddressInSII,data); ++ if (!succeed){ ++ ec_log(EC_LOG_FATAL,"EC_AL::scan_slaves() Error reading Product code of slave %d\n",i); ++ productcode = 0xbaddbadd; ++ //return succeed; ++ } ++ else { ++ nw2host(data+EC_Slave_RD[SII_ControlStatus].size + EC_Slave_RD[SII_Address].size,productcode); ++ } ++ struct timespec sleept; ++ sleept.tv_sec = 0; ++ sleept.tv_nsec = 10*1000*1000; //10ms ++ nanosleep( &sleept, 0); ++ ++ for (unsigned j = 0; j < EC_Slave_RD[SII_Data].size; j++) ++ data[j] = 0x00; ++ succeed = read_SII(adp,EC_RevisionAddressInSII,data); ++ if (!succeed){ ++ ec_log(EC_LOG_FATAL,"EC_AL::scan_slaves() Error reading Revision of slave %d\n",i); ++ revision = 0xbaddbadd; ++ //return succeed; ++ } ++ else { ++ nw2host(data+EC_Slave_RD[SII_ControlStatus].size + EC_Slave_RD[SII_Address].size,revision); ++ } ++ nanosleep( &sleept, 0); ++ ++ for (unsigned j = 0; j < EC_Slave_RD[SII_Data].size; j++) ++ data[j] = 0x00; ++ succeed = read_SII(adp,EC_SerialAddressInSII,data); ++ if (!succeed){ ++ ec_log(EC_LOG_FATAL,"EC_AL::scan_slaves() Error reading Serial of slave %d\n",i); ++ serial = 0xbaddbadd; ++ //return succeed; ++ } ++ else { ++ nw2host(data+EC_Slave_RD[SII_ControlStatus].size + EC_Slave_RD[SII_Address].size,serial); ++ } ++ nanosleep( &sleept, 0); ++ ++ sconf = m_slave_db->find(productcode,revision); ++ if (sconf != NULL){ ++ m_slave_handler[i] = new EtherCAT_SlaveHandler(adp2ringpos(adp),sconf,serial); ++ ec_log(EC_LOG_INFO, "AL creating SlaveHandler: pos=%d, adr=0x%x, Prod. Code=0x%x, rev=0x%x, Serial=%d\n", ++ adp2ringpos(adp),(EC_UINT) sconf->get_station_address(),productcode,revision,serial); ++ } ++ else { // No such slave found... ++ ec_log(EC_LOG_WARNING, "EC_AL Warning: No such slave in db, creating dummy slave\n"); ++ // Create slave handler ++ m_slave_handler[i] = new EtherCAT_SlaveHandler(adp2ringpos(adp),productcode,revision,serial,(i+1),NULL,NULL); ++ ec_log(EC_LOG_INFO, "AL creating SlaveHandler: pos=%d, Product Code=0x%x, rev=0x%x, Serial=%d\n", ++ adp2ringpos(adp),productcode,revision,serial); ++ } ++ // prepare for querying next slave ++ adp--; ++ } ++ return true; ++} ++ ++bool ++EtherCAT_AL::reset_slaves(void) ++{ ++ // Reset FMMUs ++ ec_log(EC_LOG_INFO, "AL: resetting FMMUs\n"); ++ EC_UINT ado = EC_Slave_RD[FMMU_0].ado; ++ // Whole FMMU area is 0x100... ++ static const EC_UINT BWR_data_len = 0x100; ++ unsigned char BWR_data[BWR_data_len] = { 0 }; ++ BWR_Telegram bwr_telegram(m_logic_instance->get_idx(),ado,m_logic_instance->get_wkc(),BWR_data_len,BWR_data); ++ EC_Ethernet_Frame bwr_frame(&bwr_telegram); ++ ++ bool succeed = m_dll_instance->txandrx(&bwr_frame); ++ if (succeed == false) ++ return false; ++ ++ // 3: Reset Sync Managers ++ ec_log(EC_LOG_INFO, "AL: resetting SMs\n"); ++ // Whole SM area is also 0x100... ++ bwr_telegram.set_idx(m_logic_instance->get_idx()); ++ ado = EC_Slave_RD[Sync_Manager_0].ado; ++ bwr_telegram.set_ado(ado); ++ bwr_telegram.set_wkc(m_logic_instance->get_wkc()); ++ return m_dll_instance->txandrx(&bwr_frame); ++} ++ ++bool ++EtherCAT_AL::put_slaves_in_init(void) ++{ ++ ec_log(EC_LOG_INFO, "AL: Setting all slaves in init mode\n"); ++ // 6: Set device state to init ++ EC_ALControl al_control(EC_INIT_STATE,false); ++ unsigned char AL_Control_data[EC_Slave_RD[AL_Control].size]; ++ al_control.dump(AL_Control_data); ++ EC_UINT ado = EC_Slave_RD[AL_Control].ado; ++ EC_UINT adp = 0x0000; ++ APWR_Telegram AL_control_telegram(m_logic_instance->get_idx(),adp,ado, ++ m_logic_instance->get_wkc(),EC_Slave_RD[AL_Control].size, ++ AL_Control_data); ++ EC_Ethernet_Frame AL_control_frame(&AL_control_telegram); ++ ++ // 7: Check device state for init ++ static const EC_UINT AL_Status_Size = EC_Slave_RD[AL_Status].size; ++ unsigned char AL_Status_data[AL_Status_Size]; ++ for (unsigned i=0; iget_idx(),adp,ado, ++ m_logic_instance->get_wkc(),AL_Status_Size,AL_Status_data); ++ EC_Ethernet_Frame AL_status_frame(&AL_status_telegram); ++ EC_UINT ringpos = 0; ++ bool succeed = true; ++ ++ while ((ringpos < m_num_slaves) && (succeed == true)) ++ { ++ succeed = m_dll_instance->txandrx(&AL_control_frame); ++ if (succeed == true) ++ { ++ struct timespec sleept; ++ sleept.tv_sec = 0; ++ sleept.tv_nsec = 10*1000*1000; //10ms ++ nanosleep( &sleept, 0); ++ ++ succeed = m_dll_instance->txandrx(&AL_status_frame); ++ if (succeed == true) ++ { ++ EC_ALStatus status(AL_Status_data); ++ if (status.State != EC_INIT_STATE) ++ { ++ ec_log(EC_LOG_ERROR, "Error: EC slave %d not in init state, AL_status = %x\n",ringpos,status.State); ++ succeed = false; ++ } ++ ringpos++; ++ adp = ringpos2adp(ringpos); ++ AL_control_telegram.set_adp(adp); ++ AL_control_telegram.set_wkc(m_logic_instance->get_wkc()); ++ AL_control_telegram.set_idx(m_logic_instance->get_idx()); ++ ++ AL_status_telegram.set_adp(adp); ++ AL_status_telegram.set_wkc(m_logic_instance->get_wkc()); ++ AL_status_telegram.set_idx(m_logic_instance->get_idx()); ++ } ++ else ++ ec_log(EC_LOG_ERROR, "EtherCAT_AL: Error sending AL_Status_frame for slave %d\n",ringpos); ++ } ++ else { ++ ec_log(EC_LOG_ERROR, "EtherCAT_AL: Error sending AL_Control_frame for slave %d\n",ringpos); ++ struct timespec sleept; ++ sleept.tv_sec = 0; ++ sleept.tv_nsec = 10*1000*1000; //10ms ++ nanosleep( &sleept, 0); ++ succeed = true; // Keep trying, for god's sake ++ } ++ ++ } ++ return succeed; ++} ++ ++// 10 tries was not enough for the optimized version of the code ++static const unsigned int EC_SII_MAXTRIES = 100; ++ ++bool ++EtherCAT_AL::read_SII(EC_UINT slave_adp, ++ EC_UDINT address, ++ unsigned char * a_buffer) ++{ ++ bool succeed; ++ ++ // Indicate we want to read from the E2PROM ++ const EC_UINT SII_control_datalen = EC_Slave_RD[SII_ControlStatus].size + EC_Slave_RD[SII_Address].size; ++ unsigned char SII_control_data[SII_control_datalen]; ++ EC_SIIControlStatus siics(false,false,true,false,false,false,false); ++ unsigned char * ptr = siics.dump(SII_control_data); ++ host2nw(ptr,address); ++ APWR_Telegram SII_control_tg(m_logic_instance->get_idx(), ++ slave_adp,EC_Slave_RD[SII_ControlStatus].ado, ++ m_logic_instance->get_wkc(), ++ SII_control_datalen,SII_control_data); ++ EC_Ethernet_Frame SII_control_frame(&SII_control_tg); ++ succeed = m_dll_instance->txandrx(&SII_control_frame); ++ if (!succeed){ ++ ec_log(EC_LOG_ERROR,"EC_AL::read_SII() Error sending control frame\n"); ++ return false; ++ } ++ // BIG FAT WARNING: USING 2 TELEGRAMS FOR WRITING AS PROGRAMMED ++ // AFTER THIS COMMENT DOES NOT WORK, ++ // CONTRARY TO WHAT IS WRITTEN IN THE SPEC. ALSO NOTE THAT THE USED ++ // ADDRESSES DO NOT CORRESPOND TO THOSE IN THE SPEC!! ++ /* ++ const EC_UINT SII_control_datalen = EC_Slave_RD[SII_ControlStatus].size; ++ unsigned char SII_control_data[SII_control_datalen]; ++ EC_SIIControlStatus siics(false,false,true,false,false,false,false); ++ siics.dump(SII_control_data); ++ APWR_Telegram SII_control_tg(m_logic_instance->get_idx(), ++ slave_adp,EC_Slave_RD[SII_ControlStatus].ado, ++ m_logic_instance->get_wkc(), ++ SII_control_datalen,SII_control_data); ++ EC_Ethernet_Frame SII_control_frame(&SII_control_tg); ++ succeed = m_dll_instance->txandrx(&SII_control_frame); ++ if (!succeed) return false; ++ ++ // Set the address we want to read from ++ const EC_UINT SII_address_datalen = EC_Slave_RD[SII_Address].size; ++ unsigned char SII_address_data[SII_control_datalen]; ++ host2nw(SII_address_data,address); ++ APWR_Telegram SII_address_tg(m_logic_instance->get_idx(), ++ slave_adp,EC_Slave_RD[SII_Address].ado, ++ m_logic_instance->get_wkc(), ++ SII_address_datalen,SII_address_data); ++ EC_Ethernet_Frame SII_address_frame(&SII_address_tg); ++ succeed = m_dll_instance->txandrx(&SII_address_frame); ++ if (!succeed) return false; ++ */ ++ ++ // The actual read ++ const EC_UINT SII_datalen = EC_Slave_RD[SII_ControlStatus].size + EC_Slave_RD[SII_Address].size + EC_Slave_RD[SII_Data].size; ++ APRD_Telegram SII_data_tg(m_logic_instance->get_idx(), ++ slave_adp,EC_Slave_RD[SII_ControlStatus].ado, ++ m_logic_instance->get_wkc(), ++ SII_datalen,a_buffer); ++ EC_Ethernet_Frame SII_data_frame(&SII_data_tg); ++ unsigned int tries = 0; ++ while (tries < EC_SII_MAXTRIES){ ++ SII_data_tg.set_adp(slave_adp); ++ SII_data_tg.set_wkc(m_logic_instance->get_wkc()); ++ SII_data_tg.set_idx(m_logic_instance->get_idx()); ++ succeed = m_dll_instance->txandrx(&SII_data_frame); ++ if (succeed == true){ ++ // Check if EEPROM still busy ++ EC_SIIControlStatus siics(a_buffer); ++ if (siics.Busy){ ++ ec_log(EC_LOG_WARNING, "EEPROM busy\n"); ++ struct timespec sleept; ++ sleept.tv_sec = 0; ++ sleept.tv_nsec = 10*1000*1000; //10ms ++ nanosleep( &sleept, 0); ++ tries++; ++ } ++ else { ++ if (siics.AcknowledgeError) { ++ ec_log(EC_LOG_ERROR,"EC_AL::read_SII() Acknowledge error\n"); ++ return false; ++ } ++ return succeed; ++ } ++ } ++ tries++; ++ } ++ ec_log(EC_LOG_ERROR,"EC_AL::read_SII() Max tries exceeded\n"); ++ return false; ++} ++ ++ ++EtherCAT_SlaveHandler * ++EtherCAT_AL::get_slave_handler(EC_FixedStationAddress station_address) ++{ ++ unsigned int i = 0; ++ while(i < m_num_slaves){ ++ if ( m_slave_handler[i]->get_station_address() == station_address) ++ return m_slave_handler[i]; ++ else i++; ++ } ++ ec_log(EC_LOG_WARNING, "EtherCAT_AL: No such slave, returning NULL\n"); ++ return NULL; ++} ++ ++ +diff --git a/src/al/ethercat_FSM.cxx ./src/al/ethercat_FSM.cxx +new file mode 100644 +index 0000000..2ee1339 +--- /dev/null ++++ ./src/al/ethercat_FSM.cxx +@@ -0,0 +1,474 @@ ++// $Id: ethercat_FSM.cxx,v 1.22 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "al/ethercat_FSM.h" ++#include "al/ethercat_AL.h" ++#include "al/ethercat_slave_handler.h" ++#include "al/ethercat_router.h" ++#include "al/ethercat_process_data.h" ++#include "dll/ethercat_slave_memory.h" ++#include "dll/ethercat_dll.h" ++#include "dll/ethercat_telegram.h" ++#include "dll/ethercat_frame.h" ++#include "dll/ethercat_device_addressed_telegram.h" ++#include ++ ++EC_ESM_InitState EC_ESM_State::initState; ++EC_ESM_PreOpState EC_ESM_State::preopState; ++EC_ESM_SafeOpState EC_ESM_State::safeopState; ++EC_ESM_OpState EC_ESM_State::opState; ++ ++EC_ESM_Ops::EC_ESM_Ops(EtherCAT_SlaveHandler * a_SH) ++ : m_SH(a_SH) ++{ ++ m_dll_instance = EtherCAT_DataLinkLayer::instance(); ++ m_logic_instance = EC_Logic::instance(); ++ m_router_instance = EtherCAT_Router::instance(); ++ m_pdbuf_instance = EtherCAT_PD_Buffer::instance(); ++}; ++ ++// Maximum number of tries setting the state ++static const unsigned int EC_ESM_OPS_MAX_RETRIES = 10; ++ ++bool ++ EC_ESM_Ops::set_state(EC_State a_state) ++{ ++ static const EC_UINT AL_Control_Size = EC_Slave_RD[AL_Control].size; ++ EC_ALControl al_control(a_state,false); ++ unsigned char AL_Control_data[AL_Control_Size]; ++ al_control.dump(AL_Control_data); ++ NPWR_Telegram AL_control_telegram(m_logic_instance->get_idx(), ++ m_SH->get_station_address(), ++ EC_Slave_RD[AL_Control].ado, ++ m_logic_instance->get_wkc(), ++ AL_Control_Size, ++ AL_Control_data); ++ EC_Ethernet_Frame AL_control_frame(&AL_control_telegram); ++ ++ bool succeed; ++ unsigned int tries = 0; ++ ++ while (tries < EC_ESM_OPS_MAX_RETRIES){ ++ succeed = m_dll_instance->txandrx(&AL_control_frame); ++ if (succeed == true){ ++ static const EC_UINT AL_Status_Size = EC_Slave_RD[AL_Status].size; ++ unsigned char AL_Status_data[AL_Status_Size]; ++ for (unsigned i=0; iget_idx(), ++ m_SH->get_station_address(), ++ EC_Slave_RD[AL_Status].ado, ++ m_logic_instance->get_wkc(),AL_Status_Size,AL_Status_data); ++ EC_Ethernet_Frame AL_status_frame(&AL_status_telegram); ++ struct timespec sleept; ++ sleept.tv_sec = 0; ++ sleept.tv_nsec = 10*1000*1000; //10ms ++ nanosleep( &sleept, 0); ++ succeed = m_dll_instance->txandrx(&AL_status_frame); ++ if (succeed == true){ ++ EC_ALStatus status(AL_Status_data); ++ if ((status.State == a_state ) && (status.Change == false)) ++ return true; ++ else ++ ec_log(EC_LOG_WARNING, "EC_ESM_Ops::set_state() Warning: State trans. failed (try %d), desired=%x, status=%x\n",tries,a_state,status.State); ++ } ++ } ++ else { ++ ec_log(EC_LOG_WARNING, "EC_ESM_Ops::set_state() Warning: Error sending control frame (try %d)\n", tries); ++ struct timespec sleept; ++ sleept.tv_sec = 0; ++ sleept.tv_nsec = 10*1000*1000; //10ms ++ nanosleep( &sleept, 0); ++ } ++ ++ AL_control_telegram.set_idx(m_logic_instance->get_idx()); ++ AL_control_telegram.set_wkc(m_logic_instance->get_wkc()); ++ al_control.dump(AL_Control_data); ++ tries++; ++ } ++ // Should never get here... ++ ec_log(EC_LOG_ERROR, "EC_ESM_Ops::set_state() failed to set state after %d tries", EC_ESM_OPS_MAX_RETRIES); ++ return false; ++} ++ ++bool ++EC_ESM_Ops::start_mbx_comm() ++{ ++ // Checking the current state of FSM is problably not necessary, since ++ // this function can only be called from the appropriate state (at ++ // least in theory :-) ++ ++ // FIXME Check PDI. Or is this slave specific and should this be ++ // passed in via slave specific init commands? Configure all other ++ // DLL registers here... ++ ++ // Set station address ++ static const EC_UINT address_datalen = EC_Slave_RD[ECAT_Station_Address].size; ++ unsigned char address_data[address_datalen]; ++ (m_SH->get_station_address()).dump(address_data); ++ APWR_Telegram address_tg(m_logic_instance->get_idx(), ++ ringpos2adp(m_SH->get_ring_position()), ++ EC_Slave_RD[ECAT_Station_Address].ado, ++ (m_logic_instance->get_wkc()), ++ address_datalen, ++ address_data); ++ EC_Ethernet_Frame address_frame(&address_tg); ++ bool succeed = m_dll_instance->txandrx(&address_frame); ++ if (succeed == false){ ++ ec_log(EC_LOG_ERROR, "Error setting Fixed Station Address\n"); ++ return succeed; ++ } ++ struct timespec sleept; ++ sleept.tv_sec = 0; ++ sleept.tv_nsec = 10*1000*1000; //10ms ++ nanosleep( &sleept, 0); ++ ++ // From here on, we can use NP telegrams ++ ++ // MBX initialisation for complex slaves ++ if (m_SH->is_complex()){ ++ // Write MBX configuration to slave ++ unsigned char mbx_conf_data[EC_Slave_RD[Sync_Manager_0].size]; ++ (m_SH->get_mbx_config()->SM0).dump(mbx_conf_data); ++ NPWR_Telegram mbx_conf_tg(m_logic_instance->get_idx(), ++ m_SH->get_station_address(), ++ EC_Slave_RD[Sync_Manager_0].ado, ++ m_logic_instance->get_wkc(), ++ EC_Slave_RD[Sync_Manager_0].size, ++ mbx_conf_data); ++ EC_Ethernet_Frame mbx_conf_frame(&mbx_conf_tg); ++ succeed = m_dll_instance->txandrx(&mbx_conf_frame); ++ if (succeed == false){ ++ ec_log(EC_LOG_ERROR, "Error setting SM0 conf for mbx\n"); ++ return succeed; ++ } ++ nanosleep( &sleept, 0); ++ ++ // Do the same for the second mbx ++ (m_SH->get_mbx_config()->SM1).dump(mbx_conf_data); ++ mbx_conf_tg.set_idx(m_logic_instance->get_idx()); ++ mbx_conf_tg.set_ado(EC_Slave_RD[Sync_Manager_1].ado); ++ mbx_conf_tg.set_wkc(m_logic_instance->get_wkc()); ++ succeed = m_dll_instance->txandrx(&mbx_conf_frame); ++ if (succeed == false){ ++ ec_log(EC_LOG_ERROR, "Error setting SM1 conf for mbx\n"); ++ return succeed; ++ } ++ nanosleep( &sleept, 0); ++ ++ // Start mbx communication via router... ++ m_router_instance->start(); ++ } ++ ++ // Set state to PREOP ++ return set_state(EC_PREOP_STATE); ++} ++ ++bool ++EC_ESM_Ops::stop_mbx_comm() ++{ ++ return set_state(EC_INIT_STATE); ++ ++ if (m_SH->is_complex()){ ++ // Stop mbx communication via router... ++ m_router_instance->stop(); ++ } ++} ++ ++ ++bool ++EC_ESM_Ops::start_input_update() ++{ ++ bool succeed = true; ++ ++ // Write FMMU channels ++ static const EC_UINT fmmu_data_len = EC_Slave_RD[FMMU_0].size; ++ unsigned char fmmu_data[fmmu_data_len]; ++ EC_UINT adp = m_SH->get_station_address(); ++ EC_UINT ado = 0x0000; ++ ++ NPWR_Telegram fmmu_tg(m_logic_instance->get_idx(),adp,ado,(m_logic_instance->get_wkc()),fmmu_data_len,fmmu_data); ++ EC_Ethernet_Frame fmmu_frame(&fmmu_tg); ++ unsigned int i = 0; ++ ++ assert(m_SH->get_fmmu_config() != NULL); ++ while ((succeed == true) && (i < m_SH->get_fmmu_config()->get_num_used_fmmus())) ++ { ++ (*(m_SH->get_fmmu_config()))[i].dump(fmmu_data); ++ ado = EC_Slave_RD[FMMUx(i)].ado; ++ fmmu_tg.set_ado(ado); ++ succeed = m_dll_instance->txandrx(&fmmu_frame); ++ ++ // increase idx and reset wkc ++ fmmu_tg.set_idx(m_logic_instance->get_idx()); ++ fmmu_tg.set_wkc((m_logic_instance->get_wkc())); ++ i++; ++ } ++ ++ if (succeed == false) ++ { ++ ec_log(EC_LOG_ERROR, "error writing fmmu config\n"); ++ return false; ++ } ++ ++ unsigned int j; ++ // Part two: write Sync Managers ++ if (m_SH->is_complex() == true) // write sync managers starting from 2 ++ j = 2; ++ else // write sync managers starting from 0 ++ j = 0; ++ ++ static const EC_UINT sm_data_len = EC_Slave_RD[Sync_Manager_0].size; ++ unsigned char sm_data[sm_data_len]; ++ NPWR_Telegram sm_tg(m_logic_instance->get_idx(),adp,ado,(m_logic_instance->get_wkc()),sm_data_len,sm_data); ++ EC_Ethernet_Frame sm_frame(&sm_tg); ++ i=0; ++ while ((succeed == true) && (i < m_SH->get_pd_config()->get_num_used_sms())) ++ { ++ (*(m_SH->get_pd_config()))[i].dump(sm_data); ++ ado = EC_Slave_RD[Sync_Managerx(j)].ado; ++ sm_tg.set_ado(ado); ++ succeed = m_dll_instance->txandrx(&sm_frame); ++ ++ // increase idx and reset wkc ++ sm_tg.set_idx(m_logic_instance->get_idx()); ++ sm_tg.set_wkc((m_logic_instance->get_wkc())); ++ i++;j++; ++ } ++ if (succeed == false) ++ { ++ ec_log(EC_LOG_ERROR, "error writing SM config\n"); ++ return false; ++ } ++ ++ // Note: In case of complex slaves, check if SDO-Download services ++ // to be sent to slave and send them if necessary... ++ ++ succeed = set_state(EC_SAFEOP_STATE); ++ if (succeed) ++ m_pdbuf_instance->start(); ++ // Ask for start PD transmission in master ++ return succeed; ++ ++} ++ ++bool ++EC_ESM_Ops::stop_input_update() ++{ ++ // Ask for stopping PD transmission in master ++ m_pdbuf_instance->stop(); ++ return set_state(EC_PREOP_STATE); ++} ++ ++bool ++EC_ESM_Ops::start_output_update() ++{ ++ /* According to the spec (9.1.3.5 start output update (master)), make sure to ++ transmit "valid" output data to the slaves. However, AFAIS, the ++ master cannot tell whether output data are valid or not. That is ++ up to the slaves. Moreover, in (9.1.2.5 start output update ++ (slave)), the slave has to receive the al control indication ++ first and then starts writing valid output data , so this is contrary to ++ what is told in the master. ++ */ ++ return set_state(EC_OP_STATE); ++} ++ ++bool ++EC_ESM_Ops::stop_output_update() ++{ ++ return set_state(EC_SAFEOP_STATE); ++} ++// ================================================== ++ ++EC_ESM::EC_ESM(EtherCAT_SlaveHandler * a_SH) ++ : EC_ESM_Ops(a_SH) ++ { ++ m_esm_state = &EC_ESM_State::initState; ++ } ++ ++// ================================================== ++ ++EC_State ++EC_ESM_InitState::get_state( ) const ++{ ++ return EC_INIT_STATE; ++} ++ ++bool ++EC_ESM_InitState::to_state(EC_ESM * a_ESM, EC_State a_state) ++{ ++ bool succeed; ++ switch(a_state){ ++ case EC_INIT_STATE: ++ succeed = true; ++ break; ++ case EC_PREOP_STATE: ++ succeed = a_ESM->start_mbx_comm(); ++ if (succeed) a_ESM->setState(&preopState); ++ break; ++ case EC_SAFEOP_STATE: ++ succeed = a_ESM->start_mbx_comm(); ++ if (succeed){ ++ a_ESM->setState(&preopState); ++ succeed = a_ESM->to_state(EC_SAFEOP_STATE); ++ } ++ break; ++ case EC_OP_STATE: ++ succeed = a_ESM->start_mbx_comm(); ++ if (succeed){ ++ a_ESM->setState(&preopState); ++ succeed = a_ESM->to_state(EC_OP_STATE); ++ } ++ break; ++ default: ++ succeed = false; break; ++ // FIXME implement bootstrap state... ++ } ++ return succeed; ++} ++ ++EC_State ++EC_ESM_PreOpState::get_state( ) const ++{ ++ return EC_PREOP_STATE; ++} ++ ++bool ++EC_ESM_PreOpState::to_state(EC_ESM * a_ESM, EC_State a_state) ++{ ++ bool succeed; ++ switch(a_state){ ++ case EC_INIT_STATE: ++ succeed = a_ESM->stop_mbx_comm(); ++ if (succeed) a_ESM->setState(&initState); ++ break; ++ case EC_PREOP_STATE: ++ succeed = true; ++ break; ++ case EC_SAFEOP_STATE: ++ succeed = a_ESM->start_input_update(); ++ if (succeed) a_ESM->setState(&safeopState); ++ break; ++ case EC_OP_STATE: ++ succeed = a_ESM->start_input_update(); ++ if (succeed){ ++ a_ESM->setState(&safeopState); ++ succeed = a_ESM->to_state(EC_OP_STATE); ++ } ++ break; ++ default: ++ succeed = false; break; ++ // FIXME implement bootstrap state... ++ } ++ return succeed; ++} ++ ++EC_State ++EC_ESM_SafeOpState::get_state( ) const ++{ ++ return EC_SAFEOP_STATE; ++} ++ ++bool ++EC_ESM_SafeOpState::to_state(EC_ESM * a_ESM, EC_State a_state) ++{ ++ bool succeed; ++ switch(a_state){ ++ case EC_INIT_STATE: ++ succeed = a_ESM->stop_input_update(); ++ if (succeed){ ++ succeed = a_ESM->stop_mbx_comm(); ++ if (succeed) a_ESM->setState(&initState); ++ } ++ break; ++ case EC_PREOP_STATE: ++ succeed = a_ESM->stop_input_update(); ++ if (succeed) a_ESM->setState(&preopState); ++ break; ++ case EC_SAFEOP_STATE: ++ succeed = true; ++ break; ++ case EC_OP_STATE: ++ succeed = a_ESM->start_output_update(); ++ if (succeed) a_ESM->setState(&opState); ++ break; ++ default: ++ succeed = false; break; ++ // FIXME implement bootstrap state... ++ } ++ return succeed; ++} ++ ++EC_State ++EC_ESM_OpState::get_state( ) const ++{ ++ return EC_OP_STATE; ++} ++ ++ ++bool ++EC_ESM_OpState::to_state(EC_ESM * a_ESM, EC_State a_state) ++{ ++ bool succeed; ++ switch(a_state){ ++ case EC_INIT_STATE: ++ succeed = a_ESM->stop_output_update(); ++ if (succeed){ ++ succeed = a_ESM->stop_input_update(); ++ if (succeed){ ++ succeed = a_ESM->stop_mbx_comm(); ++ if (succeed) a_ESM->setState(&initState); ++ } ++ } ++ break; ++ case EC_PREOP_STATE: ++ succeed = a_ESM->stop_output_update(); ++ if (succeed){ ++ succeed = a_ESM->stop_input_update(); ++ if (succeed) a_ESM->setState(&preopState); ++ } ++ break; ++ case EC_SAFEOP_STATE: ++ succeed = a_ESM->stop_output_update(); ++ if (succeed) a_ESM->setState(&safeopState); ++ break; ++ case EC_OP_STATE: ++ succeed = true; ++ break; ++ default: ++ succeed = false; break; ++ // FIXME implement bootstrap state... ++ } ++ return succeed; ++} +diff --git a/src/al/ethercat_master.cxx ./src/al/ethercat_master.cxx +new file mode 100644 +index 0000000..c94f9c7 +--- /dev/null ++++ ./src/al/ethercat_master.cxx +@@ -0,0 +1,80 @@ ++// $Id: ethercat_master.cxx,v 1.28 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "al/ethercat_master.h" ++#include "al/ethercat_AL.h" ++#include "al/ethercat_router.h" ++#include "al/ethercat_slave_conf.h" ++#include "dll/ethercat_slave_memory.h" ++#include "dll/ethercat_dll.h" ++#include "dll/ethercat_telegram.h" ++#include "dll/ethercat_frame.h" ++#include "dll/ethercat_device_addressed_telegram.h" ++#include "dll/ethercat_logical_addressed_telegram.h" ++ ++EtherCAT_Master * EtherCAT_Master::m_instance = 0; ++ ++EtherCAT_Master * ++EtherCAT_Master::instance() ++{ ++ if (!m_instance) { ++ m_instance = new EtherCAT_Master(); ++ } ++ return m_instance; ++} ++ ++EtherCAT_Master::EtherCAT_Master() ++{ ++ m_al_instance = EtherCAT_AL::instance(); ++ m_router_instance = EtherCAT_Router::instance(); ++ m_pdbuf_instance = EtherCAT_PD_Buffer::instance(); ++} ++ ++EtherCAT_Master::~EtherCAT_Master(){} ++ ++EtherCAT_SlaveHandler * ++EtherCAT_Master::get_slave_handler(EC_FixedStationAddress address) ++{ ++ return m_al_instance->get_slave_handler(address); ++} ++ ++ ++bool ++EtherCAT_Master::txandrx_PD(size_t datalen, ++ unsigned char * data) ++{ ++ return m_pdbuf_instance->txandrx(datalen,data); ++} ++ ++ ++ +diff --git a/src/al/ethercat_mbx.cxx ./src/al/ethercat_mbx.cxx +new file mode 100644 +index 0000000..7ceccb2 +--- /dev/null ++++ ./src/al/ethercat_mbx.cxx +@@ -0,0 +1,130 @@ ++// $Id: ethercat_mbx.cxx,v 1.8 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "al/ethercat_mbx.h" ++#include ++ ++EC_MbxMsgHdr::EC_MbxMsgHdr(const unsigned char * a_buffer) ++ : EC_DataStruct(EC_MBXMSG_HDR_SIZE),m_address(a_buffer+sizeof(m_length)) ++{ ++ a_buffer = nw2host(a_buffer,m_length); ++ a_buffer += m_address.length(); ++ EC_USINT priority; ++ a_buffer = nw2host(a_buffer,priority); ++ m_priority = priority >> 6; // bitshifting 6 bits ++ EC_USINT msg_type; ++ a_buffer = nw2host(a_buffer,msg_type); ++ msg_type &= 0x7; // Only last 3 bits should last ++ assert(msg_type <= EC_FoE); ++ m_type = (ECMbxMsgType) msg_type; ++} ++ ++ ++unsigned char * ++EC_MbxMsgHdr::dump(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer,m_length); ++ a_buffer = m_address.dump(a_buffer); ++ ++ EC_USINT priority = m_priority << 6; ++ a_buffer = host2nw(a_buffer,priority); ++ ++ a_buffer = host2nw(a_buffer,m_type); ++ return a_buffer; ++} ++ ++// ================================================== ++ ++EtherCAT_MbxMsg::EtherCAT_MbxMsg(const unsigned char * a_buffer) ++ : m_hdr(a_buffer) ++{ ++ a_buffer+=EC_MBXMSG_HDR_SIZE; ++ m_MbxMsgdata = a_buffer; ++} ++ ++ ++unsigned char * ++EtherCAT_MbxMsg::dump_data(unsigned char * a_buffer) const ++{ ++ memcpy(a_buffer,m_MbxMsgdata,m_hdr.m_length); ++ return (a_buffer + m_hdr.m_length); ++} ++ ++unsigned char * ++EtherCAT_MbxMsg::dump(unsigned char * a_buffer) const ++{ ++ a_buffer = m_hdr.dump(a_buffer); ++ a_buffer = dump_data(a_buffer); ++ return a_buffer; ++} ++ ++// ================================================== ++ ++EC_CoE_Hdr::EC_CoE_Hdr(const unsigned char * a_buffer) ++ : EC_DataStruct(EC_MBXMSG_COE_HDR_SIZE) ++{ ++ EC_UINT hdr; ++ a_buffer = nw2host(a_buffer,hdr); ++ // FIXME Number Hi and Number Lo not yet implemented ++ hdr = hdr >> 12; hdr &= 0xf; ++ assert(hdr <= CANopen_SDOInformation); ++ m_service = (CANopenService) hdr; ++} ++ ++unsigned char * ++EC_CoE_Hdr::dump(unsigned char * a_buffer) const ++{ ++ EC_UINT hdr = m_service; ++ a_buffer = host2nw(a_buffer,hdr); ++ return a_buffer; ++} ++ ++// ================================================== ++ ++EtherCAT_CoE_MbxMsg::EtherCAT_CoE_MbxMsg(unsigned char * a_buffer) ++ : EtherCAT_MbxMsg(a_buffer), m_CoE_Hdr(a_buffer + EC_MBXMSG_HDR_SIZE) ++{ ++ a_buffer+=(EC_MBXMSG_COE_HDR_SIZE+EC_MBXMSG_HDR_SIZE); ++ m_MbxMsgdata = a_buffer; ++} ++ ++ ++unsigned char * ++EtherCAT_CoE_MbxMsg::dump(unsigned char * a_buffer) const ++{ ++ a_buffer = m_hdr.dump(a_buffer); ++ a_buffer = m_CoE_Hdr.dump(a_buffer); ++ a_buffer = this->dump_data(a_buffer); ++ return a_buffer; ++} ++ +diff --git a/src/al/ethercat_process_data.cxx ./src/al/ethercat_process_data.cxx +new file mode 100644 +index 0000000..044f8ad +--- /dev/null ++++ ./src/al/ethercat_process_data.cxx +@@ -0,0 +1,159 @@ ++// $Id: ethercat_process_data.cxx,v 1.10 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "al/ethercat_process_data.h" ++#include "al/ethercat_slave_handler.h" ++#include "al/ethercat_AL.h" ++#include "al/ethercat_master.h" ++#include "dll/ethercat_dll.h" ++ ++EtherCAT_PD_Buffer * EtherCAT_PD_Buffer::m_instance = 0; ++ ++EtherCAT_PD_Buffer * ++EtherCAT_PD_Buffer::instance() ++{ ++ if (!m_instance) { ++ m_instance = new EtherCAT_PD_Buffer(); ++ } ++ return m_instance; ++} ++ ++// al_instance cannot be initiated right now, since this results in a ++// circular instantiation al_instance calls router_instance etc. ++EtherCAT_PD_Buffer::EtherCAT_PD_Buffer() ++ : m_is_running(0) ++{ ++ for (unsigned i=0;i 0) ++ --m_is_running; ++ else ++ ec_log(EC_LOG_INFO, "EtherCAT_PD_Buffer already stopped...\n"); ++} ++ ++bool ++EtherCAT_PD_Buffer::txandrx(size_t datalen, unsigned char * data) ++{ ++ //define MAX_CHUNKS 4 ++ //define CHUNK_SIZE 1486 ++ ++ if (datalen>(CHUNK_SIZE*MAX_CHUNKS)) { ++ ec_log(EC_LOG_ERROR, "PD_Buffer: Too much data (%zd) to send in %d chunks of %d bytes\n", ++ datalen, MAX_CHUNKS, CHUNK_SIZE); ++ return false; ++ } ++ ++ int handles[MAX_CHUNKS]; ++ for (unsigned i=0;iget_num_slaves() == m_running) ++ { ++ int dst = 0x00010000; ++ unsigned index=0; ++ while (datalen > 0) ++ { ++ assert(indexset_idx(m_logic_instance->get_idx()); ++ a_lrw_telegram->set_wkc(m_logic_instance->get_wkc()); ++ a_lrw_telegram->set_datalen(chunk_size); ++ a_lrw_telegram->set_data(data); ++ a_lrw_telegram->set_adr(dst); ++ ++ int result = m_dll_instance->tx(m_lrw_frame[index]); ++ if (result < 0) ++ { ++ ec_log(EC_LOG_ERROR, "PD_Buffer: Error sending PD\n"); ++ success = false; ++ break; ++ } ++ handles[index] = result; ++ datalen -= chunk_size; ++ data += chunk_size; ++ dst += chunk_size; ++ ++index; ++ } ++ ++ // Receive every packet that was sent ++ for(int i=index-1; i>=0; --i) { ++ if (handles[i] != -1) { ++ if (!m_dll_instance->rx(m_lrw_frame[i],handles[i])) { ++ ec_log(EC_LOG_ERROR, "PD_Buffer: Error receiving PD\n"); ++ success = false; ++ } ++ } ++ } ++ } ++ ++ return success; ++} ++ ++ ++ ++ ++ ++ ++ +diff --git a/src/al/ethercat_router.cxx ./src/al/ethercat_router.cxx +new file mode 100644 +index 0000000..d3ae091 +--- /dev/null ++++ ./src/al/ethercat_router.cxx +@@ -0,0 +1,175 @@ ++// $Id: ethercat_router.cxx,v 1.19 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "al/ethercat_router.h" ++#include "al/ethercat_mbx.h" ++#include "al/ethercat_slave_handler.h" ++#include "al/ethercat_AL.h" ++#include "al/ethercat_master.h" ++#include "dll/ethercat_device_addressed_telegram.h" ++#include "dll/ethercat_frame.h" ++#include "dll/ethercat_dll.h" ++ ++EtherCAT_Router * EtherCAT_Router::m_instance = 0; ++ ++EtherCAT_Router * ++EtherCAT_Router::instance() ++{ ++ if (!m_instance) { ++ m_instance = new EtherCAT_Router(); ++ } ++ return m_instance; ++} ++ ++// al_instance cannot be initiated right now, since this results in a ++// circular instantiation al_instance calls router_instance etc. ++EtherCAT_Router::EtherCAT_Router() ++ : m_al_instance(NULL), m_is_running(0) ++{ ++ // get pointer to DLL and logic ++ m_dll_instance = EtherCAT_DataLinkLayer::instance(); ++ m_logic_instance = EC_Logic::instance(); ++} ++ ++EtherCAT_Router::~EtherCAT_Router(){} ++ ++void ++EtherCAT_Router::start() ++{ ++ // Only instantiate here... ++ m_al_instance = EtherCAT_AL::instance(); ++ ++m_is_running; ++} ++ ++void ++EtherCAT_Router::stop() ++{ ++ if (EtherCAT_Router::m_is_running > 0) ++ --EtherCAT_Router::m_is_running; ++ else ++ ec_log(EC_LOG_INFO, "EtherCAT_Router already stopped...\n"); ++} ++ ++void ++EtherCAT_Router::route() const ++{ ++ if ( EtherCAT_Router::m_is_running != 0){ ++ // ec_log(EC_LOG_INFO, "EtherCAT_Router::Routing\n"); ++ EtherCAT_SlaveHandler * sh; ++ for (unsigned int i = 0; i < m_al_instance->get_num_slaves() ; i++){ ++ sh = m_al_instance->m_slave_handler[i]; ++ // don't use return value? ++ check_mbx(sh); ++ } ++ } ++} ++ ++bool ++EtherCAT_Router::check_mbx(const EtherCAT_SlaveHandler * sh) const ++{ ++ if (sh->is_complex()){ ++ // SM0 is for M->S communication, SM1 for S->M ++ const EC_UINT datalen = sh->get_mbx_config()->SM1.Length; ++ unsigned char mbx_data[datalen]; ++ NPRD_Telegram chk_mbx_tg(m_logic_instance->get_idx(), ++ sh->get_station_address(), ++ sh->get_mbx_config()->SM1.PhysicalStartAddress, ++ m_logic_instance->get_wkc(), ++ datalen, ++ mbx_data); ++ EC_Ethernet_Frame chk_mbx_frame(&chk_mbx_tg); ++ if (m_dll_instance->txandrx(&chk_mbx_frame)){ ++ // If slave posted something, wkc has increased ++ if (chk_mbx_tg.get_wkc() == 0x1){ ++ EtherCAT_MbxMsg msg(chk_mbx_tg.get_data()); ++ return (post_mbxmsg(&msg,sh)); ++ } ++ } ++ else { ++ ec_log(EC_LOG_ERROR, "Router: Error checking mbx\n"); ++ return false; ++ } ++ } ++ return true; ++} ++ ++bool ++EtherCAT_Router::post_mbxmsg(EtherCAT_MbxMsg * msg, const EtherCAT_SlaveHandler * from_sh) const ++{ ++ EC_FixedStationAddress dest_addr = msg->m_hdr.m_address; ++ EtherCAT_SlaveHandler * dest_sh = m_al_instance->get_slave_handler(dest_addr); ++ if (dest_sh->is_complex()){ ++ // Check if MBX sizes correspond... ++ const EC_UINT datalen = dest_sh->get_mbx_config()->SM0.Length; ++ unsigned char mbx_data[datalen]; ++ if (dest_sh->get_mbx_config()->SM0.Length == from_sh->get_mbx_config()->SM1.Length){ ++ // Alter Header: Include source instead of destination ++ msg->m_hdr.m_address = from_sh->get_station_address(); ++ msg->dump(mbx_data); ++ NPWR_Telegram put_mbx_tg(m_logic_instance->get_idx(), ++ dest_addr, ++ from_sh->get_mbx_config()->SM0.PhysicalStartAddress, ++ m_logic_instance->get_wkc(), ++ dest_sh->get_mbx_config()->SM1.Length, ++ mbx_data); ++ EC_Ethernet_Frame put_mbx_frame(&put_mbx_tg); ++ bool succeed = false; ++ // According to the spec, we have to keep trying until ++ // the slave accepts the command (could be \inf loop!). ++ while (succeed == false) ++ succeed = m_dll_instance->txandrx(&put_mbx_frame); ++ return succeed; ++ } ++ else{ ++ ec_log(EC_LOG_ERROR, "Router::post_mbxmsg() error: SM sizes of source and destination do not match...!!\n"); ++ return false; ++ } ++ } ++ else { ++ ec_log(EC_LOG_ERROR, "Router Error: Destination address of MbxMsg is not a complex slave!!\n"); ++ return false; ++ } ++} ++ ++/// C-interface to perform the routing ++externC void route_msgs(void) ++{ ++ static EtherCAT_Router * EC_Router = EtherCAT_Router::instance(); ++ EC_Router->route(); ++ // ec_log(EC_LOG_INFO, "Routing Mbx msgs\n"); ++} ++ ++ ++ ++ ++ +diff --git a/src/al/ethercat_slave_conf.cxx ./src/al/ethercat_slave_conf.cxx +new file mode 100644 +index 0000000..c41e52b +--- /dev/null ++++ ./src/al/ethercat_slave_conf.cxx +@@ -0,0 +1,188 @@ ++// $Id: ethercat_slave_conf.cxx,v 1.9 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "al/ethercat_slave_conf.h" ++ ++#include "dll/ethercat_slave_memory.h" ++#include "dll/ethercat_dll.h" ++#include "dll/ethercat_frame.h" ++#include "dll/ethercat_device_addressed_telegram.h" ++#include "al/ethercat_master.h" ++ ++EtherCAT_FMMU_Config::EtherCAT_FMMU_Config(unsigned int a_num_used_fmmus) ++ : m_num_used_fmmus(a_num_used_fmmus) ++{ ++ fmmus = new EC_FMMU[m_num_used_fmmus]; ++} ++ ++EtherCAT_FMMU_Config::~EtherCAT_FMMU_Config() ++{ ++ delete[] fmmus; ++} ++ ++EC_FMMU & ++EtherCAT_FMMU_Config::operator[](unsigned int i) ++{ ++ assert(i < m_num_used_fmmus); ++ return fmmus[i]; ++} ++ ++const EC_FMMU & ++EtherCAT_FMMU_Config::operator[](unsigned int i) const ++{ ++ assert(i < m_num_used_fmmus); ++ return fmmus[i]; ++} ++ ++// ================================================== ++ ++EtherCAT_PD_Config::EtherCAT_PD_Config(unsigned int a_num_used_sms) ++ : m_num_used_sms(a_num_used_sms) ++{ ++ sms = new EC_SyncMan[m_num_used_sms]; ++} ++ ++EtherCAT_PD_Config::~EtherCAT_PD_Config() ++{ ++ delete[] sms; ++} ++ ++EC_SyncMan & ++EtherCAT_PD_Config::operator[](unsigned int i) ++{ ++ assert(i < m_num_used_sms); ++ return sms[i]; ++} ++ ++const EC_SyncMan & ++EtherCAT_PD_Config::operator[](unsigned int i) const ++{ ++ assert(i < m_num_used_sms); ++ return sms[i]; ++} ++ ++// ================================================== ++ ++EtherCAT_SlaveConfig::EtherCAT_SlaveConfig(EC_UDINT a_product_code, ++ EC_UDINT a_revision, ++ EC_FixedStationAddress a_station_address, ++ EtherCAT_FMMU_Config * a_fmmu_config, ++ EtherCAT_PD_Config * a_pd_config, ++ EtherCAT_MbxConfig * a_mbx_config) ++ : m_product_code(a_product_code), m_revision(a_revision), ++ m_station_address(a_station_address), m_fmmu_config(a_fmmu_config), ++ m_pd_config(a_pd_config), m_mbx_config(a_mbx_config), used(false) ++{ ++ if (m_mbx_config == NULL) ++ m_complex = false; ++ else ++ m_complex = true; ++} ++ ++void EtherCAT_SlaveConfig::set_mbx_config(EtherCAT_MbxConfig *new_config) ++{ ++ m_mbx_config = new_config; ++ if (m_mbx_config == NULL) ++ m_complex = false; ++ else ++ m_complex = true; ++} ++ ++EtherCAT_SlaveConfig::~EtherCAT_SlaveConfig(){} ++ ++// ================================================== ++EtherCAT_SlaveDb * EtherCAT_SlaveDb::m_instance = NULL; ++ ++EtherCAT_SlaveDb * ++EtherCAT_SlaveDb::instance(unsigned int num_slaves) ++{ ++ if (!m_instance){ ++ m_instance = new EtherCAT_SlaveDb(num_slaves); ++ } ++ return m_instance; ++} ++ ++EtherCAT_SlaveDb::EtherCAT_SlaveDb(unsigned int num_slaves) ++ : m_num_slaves(num_slaves) ++{ ++ m_sc = new EtherCAT_SlaveConfig*[num_slaves]; ++} ++ ++EtherCAT_SlaveDb::~EtherCAT_SlaveDb() ++{ ++ delete[] m_sc; ++} ++ ++EtherCAT_SlaveConfig * ++EtherCAT_SlaveDb::operator[](unsigned int i) ++{ ++ assert(i < m_num_slaves); ++ return m_sc[i]; ++} ++ ++const EtherCAT_SlaveConfig * ++EtherCAT_SlaveDb::operator[](unsigned int i) const ++{ ++ assert(i < m_num_slaves); ++ return m_sc[i]; ++} ++ ++void ++EtherCAT_SlaveDb::set_conf(EtherCAT_SlaveConfig * conf, ++ unsigned int i) ++{ ++ assert(i < m_num_slaves); ++ m_sc[i] = conf; ++} ++ ++const EtherCAT_SlaveConfig * ++EtherCAT_SlaveDb::find(EC_UDINT productcode, ++ EC_UDINT revision) const ++{ ++ unsigned int i = 0; ++ while(i < m_num_slaves){ ++ if ( !m_sc[i]->is_used() && (m_sc[i]->get_product_code() == productcode) && ++ (m_sc[i]->get_revision() == revision) ) { ++ m_sc[i]->set_used(); ++ return m_sc[i]; ++ } ++ else i++; ++ } ++ ec_log(EC_LOG_WARNING, "EtherCAT_SlaveDb: No such Config, returning NULL!\n"); ++ return NULL; ++} ++ ++ ++ ++ ++ +diff --git a/src/al/ethercat_slave_handler.cxx ./src/al/ethercat_slave_handler.cxx +new file mode 100644 +index 0000000..1ef9c25 +--- /dev/null ++++ ./src/al/ethercat_slave_handler.cxx +@@ -0,0 +1,77 @@ ++// $Id: ethercat_slave_handler.cxx,v 1.19 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "al/ethercat_slave_handler.h" ++#include ++ ++EtherCAT_SlaveHandler::EtherCAT_SlaveHandler(EC_UINT a_ring_position, ++ EC_UDINT a_product_code, ++ EC_UDINT a_revision, ++ EC_UDINT a_serial, ++ EC_FixedStationAddress a_station_address, ++ EtherCAT_FMMU_Config * a_fmmu_config, ++ EtherCAT_PD_Config * a_pd_config, ++ EtherCAT_MbxConfig * a_mbx_config) ++ : EC_ESM(this), ++ EtherCAT_SlaveConfig(a_product_code, ++ a_revision, ++ a_station_address, ++ a_fmmu_config, ++ a_pd_config, ++ a_mbx_config), ++ m_ring_position(a_ring_position), ++ m_serial(a_serial), ++ m_mbx_counter(0) ++{} ++ ++EtherCAT_SlaveHandler::EtherCAT_SlaveHandler(EC_UINT a_ring_position, ++ const EtherCAT_SlaveConfig * a_sconf, EC_UDINT a_serial) ++ : EC_ESM(this), ++ EtherCAT_SlaveConfig(*a_sconf), ++ m_ring_position(a_ring_position), ++ m_serial(a_serial), ++ m_mbx_counter(0) ++{} ++ ++EtherCAT_SlaveHandler::~EtherCAT_SlaveHandler(){} ++ ++ ++EC_USINT EtherCAT_SlaveHandler::get_mbx_counter() ++{ ++ m_mbx_counter = 1+(m_mbx_counter % 7); ++ assert(m_mbx_counter>0); ++ assert(m_mbx_counter<=7); ++ return m_mbx_counter; ++} ++ ++ +diff --git a/src/arch/RTnet/ethercat_xenomai_drv.c ./src/arch/RTnet/ethercat_xenomai_drv.c +new file mode 100644 +index 0000000..f9e0568 +--- /dev/null ++++ ./src/arch/RTnet/ethercat_xenomai_drv.c +@@ -0,0 +1,266 @@ ++// $Id:$ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#include ++ ++#include ++#include ++#include ++ ++// Maximum tries to send and receive a message ++#define MAX_TRIES_TX 10 ++// Timeout for receiving and transmitting messages is 100 us ++#define TIMEOUT_NSEC 1000 * 100 ++// Maximum times the master may retry to create or close a socket ++#define MAX_TRIES_SOCKET 10 ++// Ethernet Header is 14 bytes: 2 * MAC ADDRESS + 2 bytes for the type ++#define HEADER_SIZE 14 ++#define MAX_ETH_DATA 1500 ++ ++int set_socket_timeout(struct netif* ni, int64_t timeout) { ++ return ioctl(ni->socket_private,RTNET_RTIOC_TIMEOUT,&timeout); ++} ++ ++int init_socket(const char* interface) { ++ int sock; ++ int tries = 0; ++ struct sockaddr_ll addr; ++ struct ifreq ifr; ++ ++ while (((sock = socket(PF_PACKET, SOCK_RAW, htons(0x88A4))) < 0) && tries < MAX_TRIES_SOCKET) { ++ sleep(1); ++ tries++; ++ } ++ ++ if(sock < 0) { ++ perror("Failed to create socket"); ++ return -1; ++ } ++ ++ printf("Socket created: socket id: %d\n", sock); ++ ++ int index_ioctl; ++ strncpy(ifr.ifr_name, interface, IFNAMSIZ); ++ if ((index_ioctl = ioctl(sock, SIOCGIFINDEX, &ifr)) < 0) { ++ perror("Cannot get interface index"); ++ close(sock); ++ return -1; ++ } ++ printf("Got interface: index: %d\n", index_ioctl); ++ ++ int64_t timeout = TIMEOUT_NSEC; ++ if(ioctl(sock,RTNET_RTIOC_TIMEOUT,&timeout) < 0) { ++ perror("Cannot set timout"); ++ printf("Continue without timeout\n"); ++ } ++ ++ addr.sll_family = AF_PACKET; ++ addr.sll_protocol = htons(0x88A4); ++ addr.sll_ifindex = ifr.ifr_ifindex; ++ ++ if ((bind(sock, (struct sockaddr *)&addr, sizeof(addr))) < 0) { ++ perror("Cannot bind to local ip/port"); ++ close(sock); ++ return -1; ++ } ++ ++ return sock; ++} ++ ++int close_socket(struct netif *ni) { ++ int ret = close(ni->socket_private); ++ int tries = 1; ++ while(ret < 0 && tries < MAX_TRIES_SOCKET) { ++ ret = close(ni->socket_private); ++ tries++; ++ sleep(1); ++ } ++ if(ret < 0) ++ perror("Failed to close socket"); ++ return ret; ++} ++ ++struct eth_msg { ++ u_int8_t ether_dhost[ETH_ALEN]; /* destination eth addr */ ++ u_int8_t ether_shost[ETH_ALEN]; /* source ether addr */ ++ u_int8_t ether_type [2]; /* packet type ID field */ ++ unsigned char data [MAX_ETH_DATA]; ++}; ++ ++static bool low_level_output(struct EtherCAT_Frame * frame, struct netif * netif) ++{ ++ bool result = false; ++ struct eth_msg msg_to_send; ++ int tel; ++ for(tel = 0; telsocket_private; ++ // Destination address is broadcast MAC address ++ // FIXME Is this also valid for EtherCAT UDP ethernet frames? ++ memset(msg_to_send.ether_dhost, 0xFF, ETH_ALEN); ++ // Source address ++ for(tel = 0; telhwaddr)[tel]; ++ // Type is ethercat ++ msg_to_send.ether_type[0] = 0x88; ++ msg_to_send.ether_type[1] = 0xA4; ++ ++ ++ // The actual send ++ int len_send = send(sock,(unsigned char *)&msg_to_send,msg_len ,0); ++ if(len_send < 0) ++ ec_log(EC_LOG_FATAL, "low_level_output(): Cannot Send\n"); ++ else ++ result = true; ++ } ++ else { // higher level protocol error. Attempt to map to much data in one ethernet frame ++ ec_log(EC_LOG_FATAL, "EtherCAT fatal: message buffer overflow\n"); ++ // Release the message buffer again ++ } ++ ++ return result; ++} ++ ++ ++static bool low_level_input(struct EtherCAT_Frame * frame, struct netif * netif) { ++ ++ unsigned char buffer_receive[MAX_ETH_DATA + HEADER_SIZE]; ++ struct eth_msg *msg_received = (struct eth_msg *)buffer_receive; ++ //Receive message from socket ++ int sock = netif->socket_private; ++ ++ int len_recv; ++ int tries=0; ++ static const int MAX_TRIES=3; // Maximum number of tries for recieving packets ++ ++ do { ++ ++tries; ++ len_recv = recv(sock,buffer_receive,sizeof(buffer_receive),0); ++ if(len_recv < 0) { ++ //perror("low_level_input: Cannot receive msg: "); ++ ec_log(EC_LOG_ERROR, "low_level_input: Cannot receive msg: %d\n",len_recv); ++ return false; ++ } ++ ++ if (len_recv <= sizeof(ETH_ALEN + ETH_ALEN + 2)) { ++ ec_log(EC_LOG_ERROR, "low_level_input: recieved runt packet: %d\n",len_recv); ++ continue; ++ } ++ ++ if ( (msg_received->ether_shost[4] != netif->hwaddr[4]) ) { ++ ec_log(EC_LOG_ERROR, "low_level_input: got incorrect sequence number: %d, expected %d\n", ++ msg_received->ether_shost[4], netif->hwaddr[4]); ++ continue; ++ } ++ else { ++ break; ++ } ++ } while(tries < MAX_TRIES); ++ ++ if (tries >= MAX_TRIES) { ++ ec_log(EC_LOG_ERROR, "low_level_input: recieved too many bad packets: %d\n",len_recv); ++ return false; ++ } ++ ++ if ( ((msg_received->ether_type[0]) != 0x88) || (msg_received->ether_type[1]) != 0xA4) { ++ ec_log(EC_LOG_ERROR, "low_level_input: No EtherCAT msg!\n"); ++ return false; ++ } ++ ++ // build Ethercat Frame ++ int succes = framebuild(frame,msg_received->data); ++ if (succes != 0){ ++ // FIXME decent error handling here ++ ec_log(EC_LOG_ERROR, "low_level_input: framebuilding failed!\n"); ++ return false; ++ } ++ ++ return true; ++} ++ ++// For thread safety: txandrx() can be called from multiple threads... ++static pthread_mutex_t txandrx_mut; ++ ++static bool ec_rtdm_txandrx(struct EtherCAT_Frame * frame, struct netif * netif) { ++ int tries = 0; ++ while (tries < MAX_TRIES_TX) { ++ pthread_mutex_lock (&txandrx_mut); ++ netif->hwaddr[4]++; ++ if (low_level_output(frame,netif)){ ++ if (low_level_input(frame,netif)){ ++ pthread_mutex_unlock(&txandrx_mut); ++ return true; ++ } ++ else{ ++ ec_log(EC_LOG_ERROR, "low_level_txandrx: receiving failed\n"); ++ pthread_mutex_unlock(&txandrx_mut); ++ } ++ } ++ else{ ++ ec_log(EC_LOG_ERROR, "low_level_txandrx: sending failed\n"); ++ pthread_mutex_unlock(&txandrx_mut); ++ } ++ tries++; ++ } ++ ec_log(EC_LOG_FATAL, "low_level_txandrx: failed: MAX_TRIES_TX: Giving up\n"); ++ return false; ++} ++ ++struct netif* init_ec(const char * interface) { ++ int sock = init_socket(interface); ++ if(sock < 0) { ++ ec_log(EC_LOG_FATAL,"Socket initialisation failed\n"); ++ return 0; ++ } ++ struct netif* ni = (struct netif*)malloc(sizeof(struct netif)); ++ ni->txandrx = ec_rtdm_txandrx; ++ ni->socket_private = sock; ++ //Mac-address ++ ni->hwaddr[0] = 0x00; ni->hwaddr[2] = 0x00; ni->hwaddr[4] = 0x00; ++ ni->hwaddr[1] = 0x00; ni->hwaddr[3] = 0x00; ni->hwaddr[5] = 0x00; ++ return ni; ++ ++} +diff --git a/src/arch/posix/ethercat_posix_drv.c ./src/arch/posix/ethercat_posix_drv.c +new file mode 100644 +index 0000000..f79ad61 +--- /dev/null ++++ ./src/arch/posix/ethercat_posix_drv.c +@@ -0,0 +1,1087 @@ ++// $Id:$ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++/* ++ Contributed by RvdM, October, 5th, 2007. ++ Purpose to use EML over PREEMPT_RT kernel ++ Based on rtnet/xenomai driver ++*/ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#include ++#include ++ ++#include ++#include ++ ++#include ++ ++ ++// Maximum tries to send and receive a message ++#define MAX_TRIES_TX 10 ++// Timeout for receiving and transmitting messages is 2000 us ++// specifying 1000us or lower did not work on plain Linux. ++// recv() returned immediately with EWOULDBLOCK. ++// May/must be different for xgPREEMPT_RT kernels. ++#define TIMEOUT_USEC 20000 ++ ++// Socket timeout - so input_thread can exit ++#define SOCKET_TIMEOUT_USEC 10000 ++ ++// Maximum times the master may retry to create or close a socket ++#define MAX_TRIES_SOCKET 10 ++// Ethernet Header is 14 bytes: 2 * MAC ADDRESS + 2 bytes for the type ++#define HEADER_SIZE 14 ++#define MAX_ETH_DATA 1500 ++ ++#define NSEC_PER_SEC 1000000000 ++ ++// Size of buffer that holds message from strerror ++#define ERRBUF_LEN 60 ++ ++static char* my_strerror(int errnum, char *buf, size_t buflen) ++{ ++ assert(buflen>0); ++ assert(buf!=NULL); ++ buf[0] = '\0'; ++ if (strerror_r(errnum, buf, buflen) != 0) { ++ snprintf(buf, buflen, "N%d", errnum); ++ } ++ return buf; ++} ++ ++static void my_usleep(uint32_t usec) ++{ ++ char errbuf[ERRBUF_LEN]; ++ assert(usec<1000000); ++ struct timespec req, rem; ++ req.tv_sec = 0; ++ req.tv_nsec = usec*1000; ++ while (nanosleep(&req, &rem)!=0) { ++ int error = errno; ++ ec_log(EC_LOG_ERROR, "%s : Error : %s\n", __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ if (error != EINTR) { ++ break; ++ } ++ req = rem; ++ } ++ return; ++} ++ ++// No longer set socket timeout, but insteads set timeout variable used by pthread_cond_timedwait. ++// Produces the simular semantics as setting socket timeout in non-threaded posix driver ++// Timeout value it on microseconds ++int set_socket_timeout(struct netif* ni, int64_t timeout) { ++ if ((timeout*1000) >= NSEC_PER_SEC) ++ { ++ ec_log(EC_LOG_FATAL, "%s: timeout is too large : %ld\n", __func__, timeout); ++ assert(timeout*1000 < NSEC_PER_SEC); ++ return -1; ++ } ++ ni->timeout_us = timeout; ++ return 0; ++} ++ ++ ++ ++static int init_socket(const char* interface) { ++ int sock; ++ int tries = 0; ++ struct sockaddr_ll addr; ++ struct ifreq ifr; ++ ++ char errbuf[ERRBUF_LEN]; ++ ++ while (((sock = socket(PF_PACKET, SOCK_RAW, htons(0x88A4))) < 0) && tries < MAX_TRIES_SOCKET) { ++ int error = errno; ++ fprintf(stderr, "Couldn't open raw socket for interface %s : %s\n", ++ interface, my_strerror(error,errbuf,sizeof(errbuf))); ++ sleep(1); ++ tries++; ++ } ++ ++ if(sock < 0) { ++ perror("Failed to create socket"); ++ return -1; ++ } ++ ++ //printf("Socket created: socket id: %d\n", sock); ++ ++ int rv, index_ioctl; ++ strncpy(ifr.ifr_name, interface, IFNAMSIZ); ++ if ((rv = ioctl(sock, SIOCGIFFLAGS, &ifr)) < 0) { ++ perror("Cannot get interface flags"); ++ close(sock); ++ return -1; ++ } ++ if (!(ifr.ifr_flags & IFF_UP)) { ++ fprintf(stderr, ++ "Interface %s is not UP\n" ++ " try : ifup %s\n" ++ ,interface, interface); ++ return -1; ++ } ++ ++ if ((index_ioctl = ioctl(sock, SIOCGIFINDEX, &ifr)) < 0) { ++ perror("Cannot get interface index"); ++ close(sock); ++ return -1; ++ } ++ //printf("Got interface: index: %d for %s\n", index_ioctl, ifr.ifr_name); ++ ++ struct timeval tv; ++ tv.tv_sec = ( SOCKET_TIMEOUT_USEC ) / 1000000; ++ tv.tv_usec = ( SOCKET_TIMEOUT_USEC ) % 1000000; ++ if ( setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, (void*)&tv, sizeof(tv) ) != 0) { ++ perror("Aborting: Cannot set timeout"); ++ return -1; ++ } else { ++ //printf("Input thread recv timeout has been set to %u usecs.\n", SOCKET_TIMEOUT_USEC); ++ } ++ ++ memset(&addr,0,sizeof(addr)); ++ addr.sll_family = AF_PACKET; ++ addr.sll_protocol = htons(0x88A4); ++ addr.sll_ifindex = ifr.ifr_ifindex; ++ ++ if ((bind(sock, (struct sockaddr *)&addr, sizeof(addr))) < 0) { ++ perror("Cannot bind to local ip/port"); ++ close(sock); ++ return -1; ++ } ++ ++ return sock; ++} ++ ++int close_socket(struct netif *ni) { ++ assert(ni!=NULL); ++ char errbuf[ERRBUF_LEN]; ++ ++ // If sock is < 0, things have not been started ++ if (ni->socket_private < 0) { ++ ec_log(EC_LOG_ERROR, "%s: close called twice on netif\n", __func__); ++ return -1; ++ } ++ ++ // First try stopping input thread ++ ec_log(EC_LOG_INFO, "%s : Stopping input thread...\n", __func__); ++ ni->stop = TRUE; ++ int tries = 0; ++ for (tries = 0; tries<10; ++tries) { ++ my_usleep(SOCKET_TIMEOUT_USEC); ++ if (ni->is_stopped) { ++ ec_log(EC_LOG_INFO, "%s : Input thread has stopped\n", __func__); ++ break; ++ } ++ } ++ ++ // Force input thread to exit ++ if (!ni->is_stopped) { ++ ec_log(EC_LOG_ERROR, "%s: input thread d/n stop, cancelling thread\n", __func__); ++ int error = pthread_cancel(ni->input_thread); ++ if (error!=0) { ++ ec_log(EC_LOG_ERROR, "%s: error cancelling input thread : %s\n", __func__, ++ my_strerror(error,errbuf,sizeof(errbuf))); ++ return -1; ++ } ++ my_usleep(SOCKET_TIMEOUT_USEC); ++ } ++ ++ int ret = close(ni->socket_private); ++ tries = 1; ++ while(ret < 0 && tries < MAX_TRIES_SOCKET) { ++ ret = close(ni->socket_private); ++ tries++; ++ sleep(1); ++ } ++ if(ret < 0) ++ perror("Failed to close socket"); ++ ++ ni->socket_private = -1; ++ ++ if (ni->is_stopped) { ++ free(ni); ++ } ++ ++ return ret; ++} ++ ++struct eth_msg { ++ u_int8_t ether_dhost[ETH_ALEN]; /* destination eth addr */ ++ u_int8_t ether_shost[ETH_ALEN]; /* source ether addr */ ++ u_int8_t ether_type [2]; /* packet type ID field */ ++ unsigned char data [MAX_ETH_DATA]; ++}; ++ ++// Send packet, if successfull add handle to list of packet awaiting a response. ++// Returns postive handle to packet list for success. ++// Returns negative value for errors ++// Assumes txandrx_mut is held when this function is called ++static int low_level_output(struct EtherCAT_Frame * frame, struct netif * netif) ++{ ++ struct netif *ni = netif; ++ assert(ni!=NULL); ++ assert(pthread_mutex_lock(&ni->txandrx_mut) == EDEADLK); ++ ++ char errbuf[ERRBUF_LEN]; ++ ++ // Is there a slot to send packet with? ++ if (ni->unclaimed_packets >= MAX_UNCLAIMED_PACKETS) { ++ // Maybe put a condition variable here is the future. ++ ec_log(EC_LOG_FATAL, "%s: too many outstanding packets : %d\n", ++ __func__, ni->unclaimed_packets); ++ ++ni->counters.tx_full; ++ return -1; ++ } ++ ++ // Find empty spot in list to store information about the sent packet ++ struct outstanding_pkt* pkt=NULL; ++ unsigned pkt_index; ++ { unsigned xx; ++ for (xx=0; xxnext_pkt_index + xx) % PKT_LIST_SIZE; ++ struct outstanding_pkt* i_pkt = &ni->pkt_list[pkt_index]; ++ if (i_pkt->is_free) { ++ pkt=i_pkt; ++ break; ++ } ++ } ++ } ++ ++ // Couldn't find empty slot ++ if (pkt==NULL) { ++ ec_log(EC_LOG_FATAL, "%s: outstanding packet list is full\n", __func__); ++ ++ni->counters.tx_full; ++ return -1; ++ } ++ ++ // higher level protocol error. Attempt to map too much data in one ethernet frame ++ struct eth_msg msg_to_send; ++ memset(msg_to_send.data, 0x00, MAX_ETH_DATA); ++ int len_dump = framedump(frame, msg_to_send.data, MAX_ETH_DATA); ++ if(len_dump==0) { ++ ec_log(EC_LOG_FATAL, "%s: message buffer overflow\n", __func__); ++ ++ni->counters.tx_error; ++ return -1; ++ } ++ ++ // Send packet ++ int msg_len = len_dump + ETH_ALEN + ETH_ALEN + 2; ++ int sock = ni->socket_private; ++ // Destination address is broadcast MAC address ++ // FIXME Is this also valid for EtherCAT UDP ethernet frames? ++ memset(msg_to_send.ether_dhost, 0xFF, ETH_ALEN); ++ // Source address, last 3 bytes are used as markers ++ memcpy(msg_to_send.ether_shost, ni->hwaddr, ETH_ALEN); ++ assert(pkt_index<=0xFF); ++ msg_to_send.ether_shost[3] = pkt_index; ++ ni->tx_seqnum = (ni->tx_seqnum+1) & 0xFFFF; ++ msg_to_send.ether_shost[4] = ((ni->tx_seqnum) >> 8) & 0xFF; ++ msg_to_send.ether_shost[5] = ((ni->tx_seqnum) >> 0) & 0xFF; ++ ++ // EtherType is ethercat ++ msg_to_send.ether_type[0] = 0x88; ++ msg_to_send.ether_type[1] = 0xA4; ++ ++ ++ // Pad the packet so the data (src + dst + ethertype + payload) is at least 60 bytes ++ // This prevents wireshark from complianing about parsing errors ++ int pkt_len = (msg_len < 60) ? 60 : msg_len; ++ ++ // Get send time ++ if (clock_gettime(CLOCK_REALTIME, &pkt->tx_time) != 0) { ++ int error = errno; ++ ec_log(EC_LOG_FATAL, "%s: Could not get send_time : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ ++ni->counters.tx_error; ++ return -1; ++ } ++ ++ // Send packet - sending should not block. ++ int len_send = send(sock,(unsigned char *)&msg_to_send, pkt_len, MSG_DONTWAIT); ++ if(len_send < 0) { ++ int error = errno; ++ if (error == ENETDOWN) { ++ ++ni->counters.tx_net_down; ++ if ((ni->counters.tx_net_down & 0xFFF) == 1) { ++ ec_log(EC_LOG_FATAL, "%s: %llu times : %s\n", ++ __func__, (unsigned long long) ni->counters.tx_net_down, my_strerror(error,errbuf,sizeof(errbuf))); ++ } ++ } ++ else if ((error == EWOULDBLOCK) || (error == EAGAIN)) ++ { ++ // On some systems EAGAIN != EWOULDBLOCK and either error code can be returned ++ ++ni->counters.tx_would_block; ++ if ((ni->counters.tx_would_block & 0xFFF) == 1) ++ { ++ ec_log(EC_LOG_FATAL, "%s: %llu times : Cannot Send : would block\n", ++ __func__, (unsigned long long) ni->counters.tx_would_block); ++ } ++ } ++ else if (error == ENOBUFS) ++ { ++ ++ni->counters.tx_no_bufs; ++ if ((ni->counters.tx_no_bufs & 0xFFF) == 1) ++ { ++ ec_log(EC_LOG_FATAL, "%s: %llu times : Cannot Send : %s\n", ++ __func__, (unsigned long long) ni->counters.tx_no_bufs, ++ my_strerror(error,errbuf,sizeof(errbuf))); ++ } ++ } ++ else { ++ static int last_error=0; ++ ++ni->counters.tx_error; ++ if ((error != last_error) || ((ni->counters.tx_error & 0xFFF) == 1)) ++ { ++ ec_log(EC_LOG_FATAL, "%s: %llu times : Cannot Send : %s\n", ++ __func__, (unsigned long long) ni->counters.tx_error, ++ my_strerror(error,errbuf,sizeof(errbuf))); ++ } ++ last_error = error; ++ } ++ return -1; ++ } ++ if (len_send != pkt_len) { ++ ec_log(EC_LOG_FATAL, "%s: Incomplete send, sent %d or %d bytes\n", ++ __func__, len_send, pkt_len); ++ ++ni->counters.tx_error; ++ return -1; ++ } ++ ++ // Put packet in list of outstanding packets ++ ++ni->unclaimed_packets; ++ pkt->is_free = FALSE; ++ pkt->frame = frame; ++ memcpy(pkt->ether_shost, msg_to_send.ether_shost, ETH_ALEN); ++ ++ // Generate handle for sent packet ++ int handle = 0xFFFFFF & ++ ((pkt->ether_shost[3]<<16) | ++ (pkt->ether_shost[4]<<8 ) | ++ (pkt->ether_shost[5]<<0 )); ++ ++ // Start searching when picking next open packet slot ++ ni->next_pkt_index = (ni->next_pkt_index+1) % PKT_LIST_SIZE; ++ ++ ++ni->counters.sent; ++ assert(handle >= 0); ++ return handle; ++} ++ ++ ++// Last two bytes of src MAC address lets us determine seqnum of packet ++static unsigned parse_seqnum(u_int8_t ether_shost[MAC_ADDRESS_SIZE]) { ++ unsigned seqnum = ++ ( ((unsigned) ether_shost[4]) << 8) | ++ ( ((unsigned) ether_shost[5]) << 0) ; ++ return seqnum; ++} ++ ++ ++enum input_retcode {RECOVERABLE_ERROR=0,UNRECOVERABLE_ERROR=-1,SUCCESS=1}; ++ ++// Receives packet and stores it in pkt_list ++// Returns 1 for success ++// Returns -1 for unrecoverable errors (socket problem, not enough input buffers) ++// Returns 0 for a timeout (no packet ready), or recoverable error (invalid packet received, bad packet format) ++// Assumes txandrx_mut is held when this function is called ++static enum input_retcode low_level_input(struct netif * ni) ++{ ++ assert(ni!=NULL); ++ assert(pthread_mutex_lock(&ni->txandrx_mut) == EDEADLK); ++ ++ char errbuf[ERRBUF_LEN]; ++ ++ // Find empty packet buffer to hold recieved packet ++ struct pkt_buf *buf = NULL; ++ {unsigned buf_index; ++ for (buf_index=0; buf_indexbuf_list[buf_index]; ++ if (i_buf->is_free) { ++ buf = i_buf; ++ break; ++ } ++ } ++ } ++ ++ if (buf==NULL) { ++ // No buffer to hold incoming packet ++ ec_log(EC_LOG_FATAL, "%s : EtherCAT fatal: packet buffer list if full\n", __func__); ++ return UNRECOVERABLE_ERROR; ++ } ++ assert(sizeof(struct eth_msg) < sizeof(buf->data)); //Const assert? ++ struct eth_msg *msg_received = (struct eth_msg *) buf->data; ++ ++ // Try to receive message from socket ++ // Don't hold mutex while blocking on recv, also mark buffer as ++ // non-free, so it is not used by a different rx call. ++ int sock = ni->socket_private; ++ buf->is_free = FALSE; ++ pthread_mutex_unlock(&ni->txandrx_mut); ++ int len_recv = recv(sock,msg_received,sizeof(*msg_received),0); ++ pthread_mutex_lock(&ni->txandrx_mut); ++ buf->is_free = TRUE; ++ ++ if(len_recv < 0) { ++ int error = errno; ++ if (error != EAGAIN) { // log error, for anthing other than a timeout ++ ec_log(EC_LOG_ERROR, "%s: Cannot receive msg: %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ if (error == EINTR) { ++ return RECOVERABLE_ERROR; ++ } else { ++ return UNRECOVERABLE_ERROR; ++ } ++ } ++ return RECOVERABLE_ERROR; ++ } ++ ++ if (len_recv <= sizeof(ETH_ALEN + ETH_ALEN + 2)) { ++ ec_log(EC_LOG_ERROR, "%s: recieved runt packet: %d\n",__func__,len_recv); ++ ++ni->counters.rx_runt_pkt; ++ return RECOVERABLE_ERROR; // we did receive a packet ++ } ++ ++ if ( ((msg_received->ether_type[0]) != 0x88) || (msg_received->ether_type[1]) != 0xA4) { ++ ec_log(EC_LOG_ERROR, "%s: No EtherCAT msg!\n", __func__); ++ ++ni->counters.rx_not_ecat; ++ return RECOVERABLE_ERROR; // we did receive a packet ++ } ++ ++ // Use 2nd and 3rd byte of source max address to identify instance of EML that sent this out ++ // Ignore packet with HW addresses from other EML libraries ++ if ((msg_received->ether_shost[1] != ni->hwaddr[1]) || ++ (msg_received->ether_shost[2] != ni->hwaddr[2]) ) ++ { ++ ++ni->counters.rx_other_eml; ++ if ((ni->counters.rx_other_eml & 0x3FF) == 1) { ++ ec_log(EC_LOG_WARNING, ++ "%s: received %llu packets sent out from another EML instance\n", ++ __func__, (unsigned long long) ni->counters.rx_other_eml); ++ } ++ return RECOVERABLE_ERROR; ++ } ++ ++ // 3rd byte of source MAC address tells us where outstanding packet should be in queue ++ unsigned pkt_index = 0xFF & msg_received->ether_shost[3]; ++ if (pkt_index >= PKT_LIST_SIZE) { ++ ec_log(EC_LOG_ERROR, "%s: packet doesn't belong in queue, bad index %d", __func__, pkt_index); ++ ++ni->counters.rx_bad_index; ++ return RECOVERABLE_ERROR; ++ } ++ struct outstanding_pkt *pkt= &ni->pkt_list[pkt_index]; ++ ++ unsigned rx_seqnum = parse_seqnum(msg_received->ether_shost); ++ ++ // Print warning if this packet is a repeat or is recieved out-of-order ++ // This shouldn't happen with normal setup... It may be worthwhile ++ // know about this odd situation if it occurs. ++ int16_t diff = (rx_seqnum - ni->rx_seqnum) & 0xFFFF; ++ // diff == 1 : Good: this is the next expected packet.. ++ // diff == 0 : Bad: seems like a duplicate packet has been recieved, ++ // diff < 1 : Bad: seems like an old got packets out-of-order, or old packet has been re-received ++ // diff > 1 : Ok: could mean previous packets have been ++ // lost, and this is first to make it back successfully ++ if (diff == 0) { ++ ec_log(EC_LOG_ERROR, "low_level_input: error, got packet with duplicate seqnum %d\n", rx_seqnum); ++ ++ni->counters.rx_dup_seqnum; ++ // allow following checks to drop packet ++ } else if (diff < 0) { ++ // Newer packet has already been recieved, somehow packets got ++ // reordered. This should not happen on a raw ethernet chain. ++ // Could occur if running ethercat over IP/UDP. ++ // Also, could be caused by buffering in OS. ++ ec_log(EC_LOG_ERROR, ++ "low_level_input: warning : got packet in incorrect order: got %d, expected %d\n", ++ rx_seqnum, (ni->rx_seqnum+1) & 0xFFFF); ++ ++ni->counters.rx_bad_order; ++ // Don't drop packet might still be uncollected -- ++ // Allow following to filter it out. ++ } ++ ++ // Determine if received seqnum matches seqnum used when sending packet ++ unsigned tx_seqnum = parse_seqnum(pkt->ether_shost); ++ if (rx_seqnum != tx_seqnum) { ++ ec_log(EC_LOG_ERROR, ++ "low_level_input: got packet with invalid seqnum: got %d, expected %d\n" ++ " next packet will be sent with seqnum %d\n" ++ " last received packet had seqnum %d\n" ++ , rx_seqnum, tx_seqnum, ni->tx_seqnum, ni->rx_seqnum); ++ ++ni->counters.rx_bad_seqnum; ++ return RECOVERABLE_ERROR; ++ } ++ ++ // Make sure packet has not arrived already ++ if ( (pkt->buf!=NULL) ) { ++ ec_log(EC_LOG_ERROR, "low_level_input: got duplicate packet?\n"); ++ ++ni->counters.rx_dup_pkt; ++ return RECOVERABLE_ERROR; ++ } ++ ++ // Record most recently received seqnum ++ ni->rx_seqnum = rx_seqnum; ++ ++ // Make sure packet has not been collected with rx ++ if ( (pkt->is_free==TRUE) ) { ++ ec_log(EC_LOG_ERROR, ++ "%s: got packet that has already been collected with rx(), increase socket timeout?\n", __func__); ++ ++ni->counters.rx_late_pkt; ++ // Keep track of how long it actually took for the late packet to get back. ++ struct timespec rx_time; ++ if (clock_gettime(CLOCK_REALTIME, &rx_time) != 0) { ++ int error = errno; ++ ec_log(EC_LOG_FATAL, "%s: Could not get recv time for late packet : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ } else { ++ unsigned round_trip_time_us = ++ (rx_time.tv_sec - pkt->tx_time.tv_sec) * 1000000 + ++ (rx_time.tv_nsec - pkt->tx_time.tv_nsec) / 1000; ++ ni->counters.rx_late_pkt_rtt_us = round_trip_time_us; ++ ni->counters.rx_late_pkt_rtt_us_sum += round_trip_time_us; ++ ec_log(EC_LOG_ERROR, ++ "%s: late packet arrived in %u us, timeout set to %u us\n", ++ __func__, round_trip_time_us, ni->timeout_us); ++ } ++ return RECOVERABLE_ERROR; ++ } ++ ++ // Packet passes all checks... mark outstanding packet as having ++ // received reply - mark buffer as being used. ++ buf->is_free=FALSE; ++ pkt->buf=buf; ++ ++ // Signal anybody waiting on sent packet ++ int error = pthread_cond_broadcast(&pkt->rx_cond); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL, "%s: cond broadcast : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ return UNRECOVERABLE_ERROR; ++ } ++ ++ ++ni->counters.received; ++ return SUCCESS; ++} ++ ++ ++// Thread that continuously polls input and puts it into queue ++void* low_level_input_thread_func(void* data) ++{ ++ char errbuf[ERRBUF_LEN]; ++ ++ // Increase priority of input thread ++ struct sched_param thread_param; ++ int policy = SCHED_FIFO; ++ thread_param.sched_priority = sched_get_priority_max(policy); ++ int error = pthread_setschedparam(pthread_self(), policy, &thread_param); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL, "%s : Setting thread sched : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ } ++ ++ struct netif * ni = (struct netif *) data; ++ ec_log(EC_LOG_INFO, "INFO: Starting input thread\n"); ++ BOOL stop = FALSE; ++ while (stop==FALSE) { ++ error = pthread_mutex_lock(&ni->txandrx_mut); ++ assert(error==0); ++ stop = ni->stop; ++ if (low_level_input(ni)==UNRECOVERABLE_ERROR) { ++ ec_log(EC_LOG_FATAL, "%s : Unrecoverable error on input thread\n", __func__); ++ // Some unrecoverable error can be recovered with external conditions (ENETDOWN) ++ // However, don't spin on recv if it will immediately return an error code ++ //stop = TRUE; ++ my_usleep(10000); ++ } ++ error = pthread_mutex_unlock(&ni->txandrx_mut); ++ assert(error==0); ++ } ++ ec_log(EC_LOG_INFO, "INFO: Input thread is exiting\n"); ++ ni->is_stopped=TRUE; ++ return NULL; ++} ++ ++ ++static void init_buf(struct pkt_buf *buf) { ++ buf->is_free = TRUE; ++} ++ ++static BOOL init_pkt(struct outstanding_pkt *pkt) { ++ pkt->is_free = TRUE; ++ pkt->buf = NULL; ++ pkt->frame = NULL; ++ memset(pkt->ether_shost, 0, sizeof(pkt->ether_shost)); ++ ++ int error; ++ char errbuf[ERRBUF_LEN]; ++ ++ error = pthread_cond_init(&pkt->rx_cond,NULL); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL,"%s : Initializing rx condition var failed : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ return FALSE; ++ } ++ ++ return TRUE; ++} ++ ++ ++// Tries lookup of packet from queue using handle ++// returns NULL if handle is stall/invalid, or pointer to outstanding pkt otherwise; ++// Assumes txandrx mutex is already held ++static struct outstanding_pkt *low_level_lookup(struct EtherCAT_Frame * frame, struct netif * ni, int handle) ++{ ++ assert(frame!=NULL); ++ assert(ni!=NULL); ++ assert(pthread_mutex_lock(&ni->txandrx_mut) == EDEADLK); ++ ++ // Make sure handle makes sense, also make sure it is not a negative number ++ if ( ((handle>>24) & 0xFF) != 0) { ++ ec_log(EC_LOG_ERROR, "low_level_lookup: called with invalid handle 0x%08X\n", handle); ++ return NULL; ++ } ++ ++ // Source MAC address packet should have ++ // First 3 bytes are sent by netif source MAC address ++ // Second 3 byte are encoded in handle. ++ u_int8_t ether_shost[ETH_ALEN]; ++ memcpy(ether_shost, ni->hwaddr, ETH_ALEN); ++ ether_shost[3] = (handle>>16) & 0xFF; ++ ether_shost[4] = (handle>>8) & 0xFF; ++ ether_shost[5] = (handle>>0) & 0xFF; ++ ++ // 3th byte of source MAC address tells us where outstanding packet should be in queue ++ unsigned pkt_index = 0xFF & ether_shost[3]; ++ if (pkt_index >= PKT_LIST_SIZE) { ++ ec_log(EC_LOG_ERROR, "low_level_lookup: handle 0x%08X references bad pkt_index\n", handle, pkt_index); ++ return NULL; //error ++ } ++ struct outstanding_pkt *pkt = &ni->pkt_list[pkt_index]; ++ ++ // Check frame stored for outstanding packet against frame that was passed in ++ if (pkt->frame != frame) { ++ ec_log(EC_LOG_ERROR, "low_level_lookup: handle frame d/n match passed in frame \n"); ++ return NULL; //error ++ } ++ ++ // Check MAC address encoded in handle against mac address packet was sent out with ++ if (memcmp(pkt->ether_shost, ether_shost, ETH_ALEN) != 0) { ++ ec_log(EC_LOG_ERROR, "low_level_lookup: tried collecting with stale handle \n"); ++ return NULL; //error ++ } ++ ++ // Make sure packet was not already collected ++ if (pkt->is_free!=FALSE) { ++ ec_log(EC_LOG_ERROR, "low_level_lookup: tried collecting with same handle twice \n"); ++ return NULL; //error ++ } ++ ++ return pkt; ++} ++ ++ ++// Drop packet from queue of outstanding packets. ++// Returns FALSE if packet d/n seem to exist ++// Assumes txandrx mutex is already held ++BOOL low_level_release(struct EtherCAT_Frame * frame, struct netif * ni, int handle) ++{ ++ assert(pthread_mutex_lock(&ni->txandrx_mut) == EDEADLK); ++ ++ // Lookup pointer to packet using handle ++ struct outstanding_pkt *pkt = low_level_lookup(frame, ni, handle); ++ if (pkt == NULL) { ++ return FALSE; ++ } ++ ++ // Mark packet buffer as availible ++ if (pkt->buf!=NULL) { ++ init_buf(pkt->buf); ++ } ++ ++ // Mark outstanding pkt as unused ++ pkt->is_free = TRUE; ++ pkt->buf = NULL; ++ pkt->frame = NULL; ++ // Don't clear source MAC address, to allow detection of packets ++ // that are received late, (rx was called before packet got back) ++ ++ // One less outstanding packet ++ assert(ni->unclaimed_packets > 0); ++ --ni->unclaimed_packets; ++ ++ // Packets are only released when they are not recieved ++ ++ni->counters.dropped; ++ ++ return TRUE; ++} ++ ++ ++enum dequeue_retcode {DEQUEUE_SUCCESS=1,DEQUEUE_ERROR=-1,DEQUEUE_NOT_FOUND=0}; ++ ++// Tries retrieving packet from queue using handle ++// returns negative values for error, 0 if no packet is in queue, or postive value if packet is found ++// Assumes txandrx mutex is already held ++static int low_level_dequeue(struct EtherCAT_Frame * frame, struct netif * ni, int handle) ++{ ++ assert(pthread_mutex_lock(&ni->txandrx_mut) == EDEADLK); ++ ++ // Lookup pointer to packet using handle ++ struct outstanding_pkt *pkt = low_level_lookup(frame, ni, handle); ++ if (pkt == NULL) { ++ return DEQUEUE_ERROR; ++ } ++ ++ // OK, handle is good... ++ // has response packet been received ? ++ if (pkt->buf==NULL) { ++ return DEQUEUE_NOT_FOUND; // packet has not been recieved ++ } ++ assert(pkt->buf->is_free == FALSE); ++ ++ // Response packet has been received... ++ ++ // Get pointer to ethernet packet payout ++ assert(sizeof(struct eth_msg) < sizeof(pkt->buf->data)); //Const assert? ++ struct eth_msg *msg_received = (struct eth_msg *) pkt->buf->data; ++ ++ // Mark packet buffer as availible ++ init_buf(pkt->buf); ++ ++ // Mare outstanding pkt as unused ++ init_pkt(pkt); ++ ++ int success = framebuild(frame,msg_received->data); ++ if (success != 0){ ++ // FIXME decent error handling here ++ ec_log(EC_LOG_ERROR, "low_level_input: framebuilding failed!\n"); ++ return DEQUEUE_ERROR; ++ } ++ ++ // One less unclaimed packet ++ assert(ni->unclaimed_packets > 0); ++ --ni->unclaimed_packets; ++ ++ ++ni->counters.collected; ++ return DEQUEUE_SUCCESS; // Good ++} ++ ++// Transmits a packet. ++// Returns a negative value for errors, or positive integer handle ++// handle and frame* should be used to get response with ec_posix_rx() ++static int ec_posix_tx(struct EtherCAT_Frame * frame, struct netif * ni) ++{ ++ assert(ni != NULL); ++ ++ int error = pthread_mutex_lock (&ni->txandrx_mut); ++ assert(error==0); ++ int handle = low_level_output(frame,ni); ++ error = pthread_mutex_unlock (&ni->txandrx_mut); ++ assert(error==0); ++ return handle; ++} ++ ++ ++// Receives a packet that has been sent with ec_posix_tx() ++// Returns TRUE for success, FALSE for errors or timeout. ++static BOOL ec_posix_rx_common(struct EtherCAT_Frame * frame, struct netif * ni, int handle, BOOL mayblock) ++{ ++ assert(ni != NULL); ++ assert(frame != NULL); ++ char errbuf[ERRBUF_LEN]; ++ ++ // Find rx mutex for outstanding packet ++ struct outstanding_pkt *pkt; ++ int error = pthread_mutex_lock(&ni->txandrx_mut); ++ assert(error==0); ++ if (error!=0) { ++ ec_log(EC_LOG_FATAL, "%s: error locking mutex : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ return FALSE; ++ } ++ pkt = low_level_lookup(frame, ni, handle); ++ ++ // Bad handle, double rx, etc... ++ if (pkt == NULL) { ++ pthread_mutex_unlock(&ni->txandrx_mut); ++ return FALSE; ++ } ++ ++ // Try pulling result from queue ++ enum dequeue_retcode result = low_level_dequeue(frame, ni, handle); ++ ++ // If this can block, try waiting for condition signal ++ if (mayblock) { ++ // Wait until after packet was sent ++ struct timespec timeout = pkt->tx_time; ++ timeout.tv_nsec += (ni->timeout_us * 1000); ++ if (timeout.tv_nsec >= NSEC_PER_SEC) { ++ timeout.tv_nsec -= NSEC_PER_SEC; ++ ++timeout.tv_sec; ++ } ++ assert(timeout.tv_nsec < NSEC_PER_SEC); ++ assert(timeout.tv_nsec >= 0); ++ ++ // Put loop around pthread_cond_timedwait to handle spurious wakeups ++ while (result == DEQUEUE_NOT_FOUND) { ++ // Wait on recv condition from input thread ++ error = pthread_cond_timedwait(&pkt->rx_cond, &ni->txandrx_mut, &timeout); ++ if (error != 0) { ++ if (error == ETIMEDOUT) { ++ // Timeout ++ } else { ++ ec_log(EC_LOG_FATAL, "%s: error waiting on timed condition : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ } ++ break; ++ } else { ++ result = low_level_dequeue(frame, ni, handle); ++ // dequeue should always return 1 (since we know the packet is there) ++ // ... unless there was a spurious wakeup. ++ if (result == DEQUEUE_NOT_FOUND) { ++ ec_log(EC_LOG_FATAL, "%s: spurious wakeup : dequeue result=%d\n", ++ __func__, result); ++ } ++ } ++ } ++ } //end if mayblock ++ ++ // If we didn't get the packet, release it's resources ++ if (result!=DEQUEUE_SUCCESS) { ++ low_level_release(frame, ni, handle); ++ } ++ ++ error = pthread_mutex_unlock(&ni->txandrx_mut); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL, "%s: error unlocking mutex : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ } ++ return (result==DEQUEUE_SUCCESS) ? TRUE : FALSE; ++} ++ ++ ++ ++// Drops a packet that has been sent with ec_posix_tx() ++// Returns true for success, false for errors ++static BOOL ec_posix_drop(struct EtherCAT_Frame * frame, struct netif * ni, int handle) ++{ ++ assert(ni != NULL); ++ assert(frame != NULL); ++ char errbuf[ERRBUF_LEN]; ++ ++ // Find rx mutex for outstanding packet ++ struct outstanding_pkt *pkt; ++ int error = pthread_mutex_lock(&ni->txandrx_mut); ++ assert(error==0); ++ pkt = low_level_lookup(frame, ni, handle); ++ ++ // Bad handle, double rx, etc... ++ if (pkt == NULL) { ++ pthread_mutex_unlock(&ni->txandrx_mut); ++ return FALSE; ++ } ++ ++ BOOL success = low_level_release(frame, ni, handle); ++ ++ if (success) { ++ ++ni->counters.sw_dropped; ++ } ++ ++ error = pthread_mutex_unlock(&ni->txandrx_mut); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL, "%s: error unlocking mutex : %s\n", ++ __func__, my_strerror(error,errbuf,sizeof(errbuf))); ++ } ++ ++ return success; ++} ++ ++ ++// Receives a packet that has been sent with ec_posix_tx() ++// Returns TRUE for success, FALSE for errors or timeout. ++static BOOL ec_posix_rx(struct EtherCAT_Frame * frame, struct netif * ni, int handle) ++{ ++ return ec_posix_rx_common(frame, ni, handle, TRUE); ++} ++ ++// Receives a packet that has been sent with ec_posix_tx(), doesn't wait ++// Returns TRUE for success, FALSE for errors or timeout. ++static BOOL ec_posix_rx_nowait(struct EtherCAT_Frame * frame, struct netif * ni, int handle) ++{ ++ return ec_posix_rx_common(frame, ni, handle, FALSE); ++} ++ ++ ++// Only attempt to send one packet ++static BOOL ec_posix_txandrx_once(struct EtherCAT_Frame * frame, struct netif * ni) ++{ ++ assert(ni != NULL); ++ ++ int handle = ec_posix_tx(frame, ni); ++ if (handle < 0) { ++ return FALSE; ++ } ++ BOOL result = ec_posix_rx(frame, ni, handle); ++ return result; ++} ++ ++ ++// Normal txandrx, try sending packet multiple times before giving up. ++static BOOL ec_rtdm_txandrx(struct EtherCAT_Frame * frame, struct netif * netif) { ++ struct netif *ni = netif; ++ assert(ni != NULL); ++ char errbuf[ERRBUF_LEN]; ++ ++ int tries = 0; ++ while (tries < MAX_TRIES_TX) { ++ BOOL success = ec_posix_txandrx_once(frame, ni); ++ if (success) { ++ if (tries > 0) { ++ ec_log(EC_LOG_ERROR, "low_level_txandrx: sending/receiving failed %d times\n", tries); ++ } ++ return TRUE; ++ } ++ int error = pthread_mutex_lock(&ni->txandrx_mut); ++ assert(error==0); ++ //++ni->retries; ++ error = pthread_mutex_unlock(&ni->txandrx_mut); ++ assert(error==0); ++ tries++; ++ } ++ ec_log(EC_LOG_FATAL, "low_level_txandrx: failed %d times: Giving up\n", MAX_TRIES_TX); ++ return FALSE; ++} ++ ++ ++struct netif* init_ec(const char * interface) { ++ char errbuf[ERRBUF_LEN]; ++ ++ int sock = init_socket(interface); ++ if(sock < 0) { ++ ec_log(EC_LOG_FATAL,"Socket initialisation failed\n"); ++ return 0; ++ } ++ ++ struct netif* ni = (struct netif*)malloc(sizeof(struct netif)); ++ if (ni==NULL) { ++ ec_log(EC_LOG_FATAL,"Allocating netif struct failed\n"); ++ return NULL; ++ } ++ int error = pthread_mutexattr_init(&ni->txandrx_attr); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL,"Initializing txandrx mutex attr failed : %s\n", ++ my_strerror(error,errbuf,sizeof(errbuf))); ++ free(ni); ++ return NULL; ++ } ++ ++ error = pthread_mutexattr_settype(&ni->txandrx_attr, PTHREAD_MUTEX_ERRORCHECK_NP); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL,"Setting type of mutex attr failed : %s\n", ++ my_strerror(error,errbuf,sizeof(errbuf))); ++ free(ni); ++ return NULL; ++ } ++ ++ error = pthread_mutex_init(&ni->txandrx_mut, &ni->txandrx_attr); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL,"Initializing txandrx mutex failed : %s\n", ++ my_strerror(error,errbuf,sizeof(errbuf))); ++ free(ni); ++ return NULL; ++ } ++ ++ int index; ++ for (index=0; indexpkt_list[index])) { ++ ec_log(EC_LOG_FATAL,"Initializing pkt %d failed\n", index); ++ free(ni); ++ return NULL; ++ } ++ } ++ ++ for (index=0; indexbuf_list[index]); ++ } ++ ++ ni->txandrx = ec_rtdm_txandrx; ++ ni->txandrx_once = ec_posix_txandrx_once; ++ ni->tx = ec_posix_tx; ++ ni->rx = ec_posix_rx; ++ ni->drop = ec_posix_drop; ++ ni->rx_nowait = ec_posix_rx_nowait; ++ ++ ni->socket_private = sock; ++ memset(&ni->counters, 0, sizeof(ni->counters)); ++ ni->next_pkt_index = 0; ++ ni->tx_seqnum = 0; ++ ni->rx_seqnum = 0xffff; ++ ++ ni->timeout_us = TIMEOUT_USEC; ++ ++ ni->unclaimed_packets = 0; ++ ++ // To differentiate between different implemenations of EML library, ++ // Use a random-ish value for 2nd and 3rd bytes src MAC address ++ struct timeval tv; ++ if (gettimeofday(&tv, NULL) != 0) { ++ ec_log(EC_LOG_ERROR,"Gettimeofday : %s\n", ++ my_strerror(error,errbuf,sizeof(errbuf))); ++ } ++ int r = tv.tv_sec ^ tv.tv_usec; ++ ++ //Mac-address ++ ni->hwaddr[0] = 0x00; ni->hwaddr[2] = r ; ni->hwaddr[4] = 0x00; ++ ni->hwaddr[1] = r>>8; ni->hwaddr[3] = 0x00; ni->hwaddr[5] = 0x00; ++ ++ // Start input thread ++ ni->stop = FALSE; ++ ni->is_stopped = FALSE; ++ error = pthread_create(&ni->input_thread, NULL, low_level_input_thread_func, ni); ++ if (error != 0) { ++ ec_log(EC_LOG_FATAL,"Starting input thread failed : %s\n", ++ my_strerror(error,errbuf,sizeof(errbuf))); ++ free(ni); ++ return NULL; ++ } ++ return ni; ++ ++} +diff --git a/src/dll/ethercat_device_addressed_telegram.cxx ./src/dll/ethercat_device_addressed_telegram.cxx +new file mode 100644 +index 0000000..e4204b7 +--- /dev/null ++++ ./src/dll/ethercat_device_addressed_telegram.cxx +@@ -0,0 +1,313 @@ ++// $Id: ethercat_device_addressed_telegram.cxx,v 1.9 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include ++#include "dll/ethercat_device_addressed_telegram.h" ++// -------------------------------------------------- ++// Device Addressing Telegram ++// -------------------------------------------------- ++ ++// Defining the different types of possible telegrams ++static const EC_USINT APRD = 0x01; // Autoincrement Physical read ++static const EC_USINT NPRD = 0x04; // Node addressed Physical read ++static const EC_USINT APWR = 0x02; // Autoincrement Physical write ++static const EC_USINT NPWR = 0x05; // Node addressed Physical write ++static const EC_USINT APRW = 0x03; // Autoincrement Physical read_write ++static const EC_USINT NPRW = 0x06; // Node addressed Physical read-write ++static const EC_USINT ARMW = 0x0d; // Autoincrement Physical write ++ // Multiple write ++static const EC_USINT BRD = 0x07; // Broadcast Read ++static const EC_USINT BWR = 0x08; // Broadcast Write ++ ++#define DA_TG Device_Addressing_Telegram ++DA_TG::DA_TG(EC_USINT a_idx, EC_UINT a_adp, EC_UINT a_ado, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data) ++ : EC_Telegram(a_datalen, a_data, a_idx, a_wkc), ++ m_adp(a_adp), ++ m_ado(a_ado) ++{ ++} ++ ++DA_TG::~DA_TG(){} ++ ++unsigned char * ++DA_TG::dump_header_head(unsigned char * a_buffer) const ++{ ++ a_buffer = this->dump_command_field(a_buffer); ++ a_buffer = host2nw(a_buffer, m_idx); ++ a_buffer = host2nw(a_buffer, m_adp); ++ a_buffer = host2nw(a_buffer, m_ado); ++ return a_buffer; ++} ++ ++const unsigned char * DA_TG::build_header_head(const unsigned char * a_buffer) ++{ ++ a_buffer = this->build_command_field(a_buffer); ++ ++ if (this->check_index(a_buffer) == true){ ++ a_buffer++; ++ // Read ADP (could be altered) ++ a_buffer = nw2host(a_buffer, m_adp); ++ // Read ADO: FIXME: could add check if this is not altered either ++ a_buffer = nw2host(a_buffer, m_ado); ++ // Leave pointer at the start of the data field ++ return a_buffer; ++ } ++ else return NULL; ++} ++ ++// -------------------------------------------------- ++// Auto Increment Physical Read Telegram ++// -------------------------------------------------- ++APRD_Telegram::APRD_Telegram(EC_USINT a_idx, EC_UINT a_adp, EC_UINT a_ado, EC_UINT a_wkc, ++ EC_UINT a_datalen, const unsigned char * a_data) ++ : DA_TG(a_idx, a_adp, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++APRD_Telegram::~APRD_Telegram() ++{ ++} ++ ++unsigned char * ++APRD_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, APRD); ++ return a_buffer; ++} ++ ++const unsigned char * APRD_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == APRD); ++ return ++a_buffer; ++} ++ ++ ++// -------------------------------------------------- ++// Auto Increment Physical Write Telegram ++// -------------------------------------------------- ++APWR_Telegram::APWR_Telegram(EC_USINT a_idx, EC_UINT a_adp, EC_UINT a_ado, EC_UINT a_wkc, ++ EC_UINT a_datalen, const unsigned char * a_data) ++ : DA_TG(a_idx, a_adp, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++APWR_Telegram::~APWR_Telegram(){} ++ ++unsigned char * ++APWR_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, APWR); ++ return a_buffer; ++} ++ ++const unsigned char * APWR_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == APWR); ++ return ++a_buffer; ++} ++ ++// -------------------------------------------------- ++// Auto Increment Physical Read Write Telegram ++// -------------------------------------------------- ++APRW_Telegram::APRW_Telegram(EC_USINT a_idx, EC_UINT a_adp, EC_UINT a_ado, EC_UINT a_wkc, ++ EC_UINT a_datalen, const unsigned char * a_data) ++ : DA_TG(a_idx, a_adp, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++APRW_Telegram::~APRW_Telegram(){} ++ ++unsigned char * ++APRW_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, APRW); ++ return a_buffer; ++} ++ ++const unsigned char * APRW_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == APRW); ++ return ++a_buffer; ++} ++ ++// -------------------------------------------------- ++// Broadcast Write Telegram ++// -------------------------------------------------- ++BWR_Telegram::BWR_Telegram(EC_USINT a_idx, EC_UINT a_ado, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data) ++ : DA_TG(a_idx, 0x0000, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++BWR_Telegram::~BWR_Telegram(){} ++ ++unsigned char * ++BWR_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, BWR); ++ return a_buffer; ++} ++ ++const unsigned char * BWR_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == BWR); ++ return ++a_buffer; ++} ++ ++// -------------------------------------------------- ++// Broadcast Read Telegram ++// -------------------------------------------------- ++BRD_Telegram::BRD_Telegram(EC_USINT a_idx, EC_UINT a_ado, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data) ++ : DA_TG(a_idx, 0x0000, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++BRD_Telegram::~BRD_Telegram(){} ++ ++unsigned char * ++BRD_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, BRD); ++ return a_buffer; ++} ++ ++const unsigned char * BRD_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == BRD); ++ return ++a_buffer; ++} ++ ++ ++// -------------------------------------------------- ++// Node Addressed Physical Write Telegram ++// -------------------------------------------------- ++NPWR_Telegram::NPWR_Telegram(EC_USINT a_idx, EC_UINT a_adp, EC_UINT a_ado, EC_UINT a_wkc, ++ EC_UINT a_datalen, const unsigned char * a_data) ++ : DA_TG(a_idx, a_adp, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++NPWR_Telegram::~NPWR_Telegram(){} ++ ++unsigned char * ++NPWR_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, NPWR); ++ return a_buffer; ++} ++ ++const unsigned char * NPWR_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == NPWR); ++ return ++a_buffer; ++} ++ ++ ++// -------------------------------------------------- ++// Node Addressed Physical Read Telegram ++// -------------------------------------------------- ++NPRD_Telegram::NPRD_Telegram(EC_USINT a_idx, EC_UINT a_adp, EC_UINT a_ado, EC_UINT a_wkc, ++ EC_UINT a_datalen, const unsigned char * a_data) ++ : DA_TG(a_idx, a_adp, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++NPRD_Telegram::~NPRD_Telegram(){} ++ ++unsigned char * ++NPRD_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, NPRD); ++ return a_buffer; ++} ++ ++const unsigned char * NPRD_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == NPRD); ++ return ++a_buffer; ++} ++ ++ ++// -------------------------------------------------- ++// Node Addressed Physical Read Write Telegram ++// -------------------------------------------------- ++NPRW_Telegram::NPRW_Telegram(EC_USINT a_idx, EC_UINT a_adp, EC_UINT a_ado, EC_UINT a_wkc, ++ EC_UINT a_datalen, const unsigned char * a_data) ++ : DA_TG(a_idx, a_adp, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++NPRW_Telegram::~NPRW_Telegram(){} ++ ++unsigned char * ++NPRW_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, NPRW); ++ return a_buffer; ++} ++ ++const unsigned char * NPRW_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == NPRW); ++ return ++a_buffer; ++} ++ ++ ++// -------------------------------------------------- ++// Auto Increment Physical Read Multiple Write Telegram ++// -------------------------------------------------- ++ARMW_Telegram::ARMW_Telegram(EC_USINT a_idx, EC_UINT a_adp, EC_UINT a_ado, EC_UINT a_wkc, ++ EC_UINT a_datalen, const unsigned char * a_data) ++ : DA_TG(a_idx, a_adp, a_ado, a_wkc, a_datalen, a_data) ++{ ++} ++ ++ARMW_Telegram::~ARMW_Telegram(){} ++ ++unsigned char * ++ARMW_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, ARMW); ++ return a_buffer; ++} ++ ++const unsigned char * ARMW_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == ARMW); ++ return ++a_buffer; ++} +diff --git a/src/dll/ethercat_dll.cxx ./src/dll/ethercat_dll.cxx +new file mode 100644 +index 0000000..a4cc297 +--- /dev/null ++++ ./src/dll/ethercat_dll.cxx +@@ -0,0 +1,97 @@ ++// $Id: ethercat_dll.cxx,v 1.30 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include ++#include "ethercat/ethercat_log.h" ++#include "dll/ethercat_dll.h" ++#include "dll/ethercat_frame.h" ++#include "dll/ethercat_device_addressed_telegram.h" ++#include "dll/ethercat_logical_addressed_telegram.h" ++#include "ethercat/netif.h" ++//#include "pkgconf/net_ethercatmaster.h" ++ ++#include "unistd.h" ++ ++ ++ ++EtherCAT_DataLinkLayer * EtherCAT_DataLinkLayer::m_instance = 0; ++ ++EtherCAT_DataLinkLayer::EtherCAT_DataLinkLayer() ++ : m_if(0) ++{ ++} ++ ++EtherCAT_DataLinkLayer::~EtherCAT_DataLinkLayer() ++{ ++} ++ ++EtherCAT_DataLinkLayer * EtherCAT_DataLinkLayer::instance(void) ++{ ++ if(!m_instance) { ++ m_instance = new EtherCAT_DataLinkLayer(); ++ } ++ ++ return m_instance; ++} ++ ++bool EtherCAT_DataLinkLayer::txandrx(EtherCAT_Frame * a_frame) ++{ ++ bool succeed = m_if->txandrx(a_frame, m_if); ++ if (!succeed) ++ ec_log(EC_LOG_INFO, "DLL::txandrx() Error\n"); ++ return succeed; ++} ++ ++int EtherCAT_DataLinkLayer::tx(EtherCAT_Frame * a_frame) ++{ ++ int handle = m_if->tx(a_frame, m_if); ++ if (handle < 0) ++ ec_log(EC_LOG_INFO, "DLL::tx Error\n"); ++ return handle; ++} ++ ++bool EtherCAT_DataLinkLayer::rx(EtherCAT_Frame * a_frame, int a_handle) ++{ ++ bool succeed = m_if->rx(a_frame, m_if, a_handle); ++ if (!succeed) ++ ec_log(EC_LOG_INFO, "DLL::rx Error\n"); ++ return succeed; ++} ++ ++void EtherCAT_DataLinkLayer::attach(struct netif * netif) ++{ ++ m_if = netif; ++} ++ ++ ++ +diff --git a/src/dll/ethercat_frame.cxx ./src/dll/ethercat_frame.cxx +new file mode 100644 +index 0000000..a09f51a +--- /dev/null ++++ ./src/dll/ethercat_frame.cxx +@@ -0,0 +1,161 @@ ++// $Id: ethercat_frame.cxx,v 1.18 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++#include "dll/ethercat_frame.h" ++#include "ethercat/ethercat_log.h" ++ ++externC int framedump(const struct EtherCAT_Frame * frame, ++ unsigned char * buffer, ++ size_t bufferlength) ++{ ++ EC_UINT length = 0; ++ if ( (length = frame->length()) <= bufferlength ) ++ { ++ frame->dump(buffer); ++ } ++ else { return 0;} ++ return length; ++} ++ ++externC int framebuild(struct EtherCAT_Frame * frame, ++ const unsigned char * buffer) ++{ ++ return (frame->build(buffer)); ++} ++ ++// -------------------------------------------------- ++// EC_Frame ++// -------------------------------------------------- ++ ++EC_Frame::EC_Frame() ++ : m_telegram(NULL){}; ++ ++EC_Frame::EC_Frame(EC_Telegram * a_telegram) ++ : m_telegram(a_telegram){}; ++ ++EC_Frame::~EC_Frame() ++{ ++} ++ ++size_t ++EC_Frame::body_length(void) const ++{ ++ int result = 0; ++ if (m_telegram) ++ { ++ EC_Telegram * tg = m_telegram; ++ result += tg->length(); ++ while (tg->next != NULL) ++ { ++ tg = tg->next; ++ result += tg->length(); ++ } ++ } ++ return result; ++} ++ ++unsigned char * ++EC_Frame::dump(unsigned char * a_buffer) const ++{ ++ a_buffer = dump_header(a_buffer); ++ if (m_telegram){ ++ EC_Telegram * tg = m_telegram; ++ a_buffer = tg->dump(a_buffer); ++ while (tg->next != NULL){ ++ tg = tg->next; ++ a_buffer = tg->dump(a_buffer); ++ } ++ } ++ return a_buffer; ++} ++ ++int ++EC_Frame::build(const unsigned char * a_buffer) ++{ ++ if (this->check_header(a_buffer) == true) ++ { ++ a_buffer += ETHERCAT_ETHERNET_FRAME_HEADER_SIZE; ++ // a_buffer now points to the first telegram ++ // current telegram in frame, initialised to first telegram ++ EC_Telegram * tg = this->get_telegram(); ++ while(tg) { ++ if ((a_buffer = tg->build(a_buffer)) == NULL) ++ return -1; ++ else ++ tg = tg->next; ++ } ++ return 0; ++ } ++ else return -1; ++} ++ ++// -------------------------------------------------- ++// EC_Ethernet_Frame ++// -------------------------------------------------- ++EC_Ethernet_Frame::EC_Ethernet_Frame(EC_Telegram * a_telegram) ++ : EC_Frame(a_telegram) ++{ ++} ++ ++ ++unsigned char * ++EC_Ethernet_Frame::dump_header(unsigned char * a_buffer) const ++{ ++ // Implementation: LSB = length, then Reserved, then MSB = type ++ EC_UINT tmp = 0x01; // Type = Ethercat command ++ tmp = tmp << 12; ++ tmp |= this->body_length(); ++ ++ a_buffer = host2nw(a_buffer, tmp); ++ return a_buffer; ++} ++ ++bool ++EC_Ethernet_Frame::check_header(const unsigned char * a_buffer) const ++{ ++ const unsigned char * dataptr = a_buffer; ++ EC_UINT frame_header; ++ dataptr=nw2host(dataptr,frame_header); ++ ++ EC_UINT ec_command = 0x1000; ++ if (ec_command == (frame_header & ec_command)) ++ { ++ EC_UINT bodylength = 0x07ff; ++ if (this->body_length() == (size_t) (frame_header & bodylength)) ++ return true; ++ } ++ ec_log(EC_LOG_ERROR, "building frame: checkheader failed\n"); ++ return false; ++} ++ ++ ++ +diff --git a/src/dll/ethercat_logical_addressed_telegram.cxx ./src/dll/ethercat_logical_addressed_telegram.cxx +new file mode 100644 +index 0000000..eec2510 +--- /dev/null ++++ ./src/dll/ethercat_logical_addressed_telegram.cxx +@@ -0,0 +1,164 @@ ++// $Id: ethercat_logical_addressed_telegram.cxx,v 1.6 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include ++#include "dll/ethercat_logical_addressed_telegram.h" ++ ++static const EC_USINT LRD = 0x0a; // Logical Read ++static const EC_USINT LWR = 0x0b; // Logical Write ++static const EC_USINT LRW = 0x0c; // Logical Read-Write ++ ++// -------------------------------------------------- ++// Logical Addressing Telegram ++// -------------------------------------------------- ++ ++#define LA_TG Logical_Addressing_Telegram ++LA_TG::LA_TG(EC_USINT a_idx, EC_UDINT a_adr, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data) ++ : EC_Telegram(a_datalen, a_data, a_idx, a_wkc), ++ m_adr(a_adr) ++{ ++} ++ ++LA_TG::~LA_TG(){} ++ ++unsigned char * ++LA_TG::dump_header_head(unsigned char * a_buffer) const ++{ ++ a_buffer = this->dump_command_field(a_buffer); ++ a_buffer = host2nw(a_buffer, m_idx); ++ a_buffer = host2nw(a_buffer, m_adr); ++ return a_buffer; ++} ++ ++const unsigned char * LA_TG::build_header_head(const unsigned char * a_buffer) ++{ ++ a_buffer = this->build_command_field(a_buffer); ++ ++ if (this->check_index(a_buffer) == true){ ++ a_buffer++; ++ // Read ADR (Fixme, check if not altered) ++ a_buffer = nw2host(a_buffer, m_adr); ++ // Leave pointer at the start of the data field ++ return a_buffer; ++ } ++ else return NULL; ++} ++ ++// -------------------------------------------------- ++// Logical Read Telegram ++// -------------------------------------------------- ++LRD_Telegram::LRD_Telegram(EC_USINT a_idx, EC_UDINT a_adr, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data) ++ : LA_TG(a_idx, a_adr, a_wkc, a_datalen, a_data) ++{ ++} ++ ++ ++LRD_Telegram::~LRD_Telegram() ++{ ++} ++ ++unsigned char * ++LRD_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, LRD); ++ return a_buffer; ++} ++ ++const unsigned char * LRD_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == LRD); ++ return ++a_buffer; ++} ++ ++// -------------------------------------------------- ++// Logical Write Telegram ++// -------------------------------------------------- ++LWR_Telegram::LWR_Telegram(EC_USINT a_idx, EC_UDINT a_adr, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data) ++ : LA_TG(a_idx, a_adr, a_wkc, a_datalen, a_data) ++{ ++} ++ ++ ++LWR_Telegram::~LWR_Telegram() ++{ ++} ++ ++unsigned char * ++LWR_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, LWR); ++ return a_buffer; ++} ++ ++const unsigned char * LWR_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == LWR); ++ return ++a_buffer; ++} ++ ++ ++// -------------------------------------------------- ++// Logical Read Write Telegram ++// -------------------------------------------------- ++LRW_Telegram::LRW_Telegram(EC_USINT a_idx, EC_UDINT a_adr, ++ EC_UINT a_wkc, EC_UINT a_datalen, ++ const unsigned char * a_data) ++ : LA_TG(a_idx, a_adr, a_wkc, a_datalen, a_data) ++{ ++} ++ ++ ++LRW_Telegram::~LRW_Telegram() ++{ ++} ++ ++unsigned char * ++LRW_Telegram::dump_command_field(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer, LRW); ++ return a_buffer; ++} ++ ++const unsigned char * LRW_Telegram::build_command_field(const unsigned char * a_buffer) ++{ ++ assert(a_buffer[0] == LRW); ++ return ++a_buffer; ++} ++ ++ +diff --git a/src/dll/ethercat_slave_memory.cxx ./src/dll/ethercat_slave_memory.cxx +new file mode 100644 +index 0000000..85777bd +--- /dev/null ++++ ./src/dll/ethercat_slave_memory.cxx +@@ -0,0 +1,281 @@ ++// $Id: ethercat_slave_memory.cxx,v 1.10 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "dll/ethercat_slave_memory.h" ++ ++EC_DLInformation::EC_DLInformation(EC_USINT type, ++ EC_USINT revision, ++ EC_UINT build, ++ EC_USINT no_of_supp_fmmu_channels, ++ EC_USINT no_of_supp_syncman_channels, ++ EC_USINT ram_size, ++ bool fmmu_bit_operation_not_supp) ++ : EC_DataStruct(EC_DLInformationSize), ++ Type(type), ++ Revision(revision), ++ Build(build), ++ NoOfSuppFmmuChannels(no_of_supp_fmmu_channels), ++ NoOfSuppSyncManChannels(no_of_supp_fmmu_channels), ++ RamSize(ram_size), ++ FmmuBitOperationNotSupp(fmmu_bit_operation_not_supp){}; ++ ++EC_DLInformation::EC_DLInformation(const unsigned char * a_buffer) ++ : EC_DataStruct(EC_DLInformationSize) ++{ ++ a_buffer = nw2host(a_buffer,Type); ++ a_buffer = nw2host(a_buffer,Revision); ++ a_buffer = nw2host(a_buffer,Build); ++ a_buffer = nw2host(a_buffer,NoOfSuppFmmuChannels); ++ a_buffer = nw2host(a_buffer,NoOfSuppSyncManChannels); ++ a_buffer = nw2host(a_buffer,RamSize); ++ EC_USINT reserved = 0x00; ++ a_buffer = nw2host(a_buffer,reserved); ++ EC_UINT fmmu_bit_op_not_supp = 0x0000; ++ a_buffer = nw2host(a_buffer,fmmu_bit_op_not_supp); ++ FmmuBitOperationNotSupp = bool (fmmu_bit_op_not_supp & 0x0001); ++} ++ ++unsigned char * ++EC_DLInformation::dump(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer,Type); ++ a_buffer = host2nw(a_buffer,Revision); ++ a_buffer = host2nw(a_buffer,Build); ++ a_buffer = host2nw(a_buffer,NoOfSuppFmmuChannels); ++ a_buffer = host2nw(a_buffer,NoOfSuppSyncManChannels); ++ a_buffer = host2nw(a_buffer,RamSize); ++ EC_USINT reserved = 0x00; ++ a_buffer = host2nw(a_buffer,reserved); ++ EC_UINT fmmu_bit_op_not_supp = (EC_UINT) FmmuBitOperationNotSupp; ++ a_buffer = host2nw(a_buffer,fmmu_bit_op_not_supp); ++ EC_UINT reservedword = 0x0000; ++ a_buffer = host2nw(a_buffer,reservedword); ++ return a_buffer; ++} ++// ================================================== ++ ++EC_ALControl::EC_ALControl(EC_State state, bool ack) ++ : EC_DataStruct(EC_Slave_RD[AL_Control].size), ++ State(state), ++ Acknowledge(ack){}; ++ ++EC_ALControl::EC_ALControl(const unsigned char * a_buffer) ++ : EC_DataStruct(EC_Slave_RD[AL_Control].size) ++{ ++ ec_log(EC_LOG_ERROR, "Not implemented yet\n"); ++} ++ ++unsigned char * ++EC_ALControl::dump(unsigned char * a_buffer) const ++{ ++ EC_USINT firstbyte = State | ((EC_USINT) Acknowledge << 4); ++ a_buffer = host2nw(a_buffer,firstbyte); ++ EC_USINT applicationspecific = 0x00; ++ a_buffer = host2nw(a_buffer,applicationspecific); ++ return a_buffer; ++} ++ ++// ================================================== ++ ++EC_ALStatus::EC_ALStatus(EC_State state, bool change) ++ : EC_DataStruct(EC_Slave_RD[AL_Status].size), ++ State(state), ++ Change(change){}; ++ ++EC_ALStatus::EC_ALStatus(const unsigned char * a_buffer) ++ : EC_DataStruct(EC_Slave_RD[AL_Status].size) ++{ ++ EC_USINT firstbyte; ++ a_buffer = nw2host(a_buffer,firstbyte); ++ // FIXME This is not foolproof as long as EC_State is an enum. ++ State = (EC_State) (firstbyte & 0x0f); // 4 LSB bits represent state ++ Change = (bool) (firstbyte & 0x10); // 5the byte represents change ++} ++ ++unsigned char * ++EC_ALStatus::dump(unsigned char * a_buffer) const ++{ ++ EC_USINT firstbyte = State | (((EC_USINT) Change) << 4); ++ a_buffer = host2nw(a_buffer,firstbyte); ++ EC_USINT applicationspecific = 0x00; ++ a_buffer = host2nw(a_buffer,applicationspecific); ++ return a_buffer; ++} ++// ================================================== ++ ++EC_SIIControlStatus::EC_SIIControlStatus(bool eeprom_write_access, ++ bool eeprom_address_algorithm , ++ bool read_op , ++ bool write_op , ++ bool reload_op , ++ bool write_error , ++ bool busy) ++ : EC_DataStruct(EC_Slave_RD[SII_ControlStatus].size), ++ EepromWriteAccess(eeprom_write_access), ++ EepromAddressAlgorithm(eeprom_address_algorithm), ++ ReadOp(read_op), ++ WriteOp(write_op), ++ ReloadOp(reload_op), ++ WriteError(write_error), ++ Busy(busy), ++ AcknowledgeError(false) ++{} ++ ++EC_SIIControlStatus::EC_SIIControlStatus(const unsigned char * a_buffer) ++ : EC_DataStruct(EC_Slave_RD[SII_ControlStatus].size) ++{ ++ EC_UINT byte; ++ a_buffer = nw2host(a_buffer,byte); ++ EepromWriteAccess = (bool) (byte & 0x01); ++ EepromAddressAlgorithm = (bool) ((byte & 0x80) >> 7); ++ ReadOp = (bool) ((byte & 0x100) >> 8); ++ WriteOp = (bool) ((byte & 0x200) >> 9); ++ ReloadOp = (bool) ((byte & 0x400) >> 10); ++ AcknowledgeError = (bool) ((byte & 0x2000) >> 13); ++ WriteError = (bool) ((byte & 0x4000) >> 14); ++ Busy = (bool) ((byte & 0x8000) >> 15); ++} ++ ++unsigned char * ++EC_SIIControlStatus::dump(unsigned char * a_buffer) const ++{ ++ EC_UINT byte = 0x00; ++ byte |= (EC_UINT) EepromWriteAccess; ++ byte |= ((EC_UINT) EepromAddressAlgorithm ) << 7; ++ byte |= ((EC_UINT) ReadOp ) << 8; ++ byte |= ((EC_UINT) WriteOp ) << 9; ++ byte |= ((EC_UINT) ReloadOp) << 10; ++ byte |= ((EC_UINT) AcknowledgeError) << 13; ++ byte |= ((EC_UINT) WriteError) << 14; ++ byte |= ((EC_UINT) Busy) << 15; ++ return host2nw(a_buffer,byte); ++} ++ ++// ================================================== ++EC_FMMU::EC_FMMU(EC_UDINT logical_start_address, ++ EC_UINT length, ++ EC_BitPos logical_start_bit, ++ EC_BitPos logical_end_bit, ++ EC_UINT physical_start_address, ++ EC_BitPos physical_start_bit, ++ bool read_enable, ++ bool write_enable, ++ bool channel_enable) ++ : EC_DataStruct(EC_Slave_RD[FMMU_0].size), ++ LogicalStartAddress(logical_start_address), ++ Length(length), ++ LogicalStartBit(logical_start_bit), ++ LogicalEndBit(logical_end_bit), ++ PhysicalStartAddress(physical_start_address), ++ PhysicalStartBit(physical_start_bit), ++ ReadEnable(read_enable), ++ WriteEnable(write_enable), ++ ChannelEnable(channel_enable){}; ++ ++EC_FMMU::EC_FMMU(const unsigned char * a_buffer) ++ : EC_DataStruct(EC_Slave_RD[FMMU_0].size) ++{ ++ ec_log(EC_LOG_ERROR, "Not implemented yet"); ++} ++ ++unsigned char * ++EC_FMMU::dump(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer,LogicalStartAddress); ++ a_buffer = host2nw(a_buffer,Length); ++ a_buffer = host2nw(a_buffer,(EC_USINT) LogicalStartBit); ++ a_buffer = host2nw(a_buffer,(EC_USINT) LogicalEndBit); ++ a_buffer = host2nw(a_buffer,PhysicalStartAddress); ++ a_buffer = host2nw(a_buffer,(EC_USINT) PhysicalStartBit); ++ ++ EC_USINT rw = ReadEnable | (((EC_USINT) WriteEnable) << 1); ++ a_buffer = host2nw(a_buffer,rw); ++ a_buffer = host2nw(a_buffer,(EC_USINT) ChannelEnable); ++ EC_USINT reserved = 0x00; ++ a_buffer = host2nw(a_buffer,reserved); ++ a_buffer = host2nw(a_buffer,reserved); ++ a_buffer = host2nw(a_buffer,reserved); ++ return a_buffer; ++} ++ ++// ================================================== ++ ++EC_SyncMan::EC_SyncMan(EC_UINT physical_start_address, ++ EC_UINT length, ++ EC_BufferType buffer_type, ++ EC_Direction direction, ++ bool AL_event_enable, ++ bool watchdog_enable, ++ bool write_event, ++ bool read_event, ++ bool watchdog_trigger, ++ bool queued_state, ++ EC_BufferedState buffered_state, ++ bool channel_enable) ++ : EC_DataStruct(EC_Slave_RD[Sync_Manager_0].size), ++ PhysicalStartAddress(physical_start_address), ++ Length(length), ++ BufferType(buffer_type), ++ Direction(direction), ++ ALEventEnable(AL_event_enable), ++ ECATEventEnable(false), ++ WatchdogEnable(watchdog_enable), ++ WriteEvent(write_event), ++ ReadEvent(read_event), ++ WatchdogTrigger(watchdog_trigger), ++ QueuedState(queued_state), ++ BufferedState(buffered_state), ++ ChannelEnable(channel_enable){}; ++ ++EC_SyncMan::EC_SyncMan(const unsigned char * a_buffer) ++ : EC_DataStruct(EC_Slave_RD[Sync_Manager_0].size) ++{ ++ ec_log(EC_LOG_ERROR, "Not implemented yet\n"); ++} ++ ++unsigned char * ++EC_SyncMan::dump(unsigned char * a_buffer) const ++{ ++ a_buffer = host2nw(a_buffer,PhysicalStartAddress); ++ a_buffer = host2nw(a_buffer,Length); ++ // fixme explicit cast necessary here? ++ EC_USINT thirdbyte = BufferType | (Direction << 2) | ((EC_USINT) ECATEventEnable << 4) | ((EC_USINT) ALEventEnable << 5) | ((EC_USINT) WatchdogEnable << 6); ++ a_buffer = host2nw(a_buffer,thirdbyte); ++ EC_USINT fourthbyte = (EC_USINT) WriteEvent | ((EC_USINT) ReadEvent << 1) | ((EC_USINT) WatchdogTrigger << 2) | ((EC_USINT) QueuedState << 3) | (BufferedState << 4); ++ a_buffer = host2nw(a_buffer,fourthbyte); ++ a_buffer = host2nw(a_buffer,(EC_UINT) ChannelEnable); ++ return a_buffer; ++} ++ ++// ================================================== ++ +diff --git a/src/dll/ethercat_telegram.cxx ./src/dll/ethercat_telegram.cxx +new file mode 100644 +index 0000000..f84c56e +--- /dev/null ++++ ./src/dll/ethercat_telegram.cxx +@@ -0,0 +1,203 @@ ++// $Id: ethercat_telegram.cxx,v 1.28 2006/02/20 15:57:33 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include "dll/ethercat_telegram.h" ++#include "ethercat/ethercat_log.h" ++#include ++ ++// Number of bits of the Reserved and NEXT field ++static const EC_UINT ETHERCAT_LEN_NUM_BITS = 11; ++static const EC_UINT ETHERCAT_RESERVED_NUM_BITS = 4; ++static const EC_UINT ETHERCAT_NEXT_NUM_BITS = 1; ++ ++// -------------------------------------------------- ++// Class Telegram ++// -------------------------------------------------- ++EC_Telegram::EC_Telegram(size_t a_datasize, const unsigned char * a_data) ++ : EC_DataStruct(a_datasize + ++ ETHERCAT_TELEGRAM_HEADER_SIZE + ++ ETHERCAT_TELEGRAM_WKC_SIZE), ++ m_data(a_data), m_idx(0), m_wkc(0) ++{ ++ this->next = NULL; ++ this->previous = NULL; ++} ++ ++EC_Telegram::EC_Telegram(EC_USINT a_idx, EC_UINT a_wkc) ++ : EC_DataStruct(ETHERCAT_TELEGRAM_HEADER_SIZE + ++ ETHERCAT_TELEGRAM_WKC_SIZE), ++ m_data(NULL), ++ m_idx(a_idx), m_wkc(a_wkc) ++{ ++ this->next = NULL; ++ this->previous = NULL; ++} ++ ++EC_Telegram::EC_Telegram(size_t a_datasize, const unsigned char * a_data, EC_USINT a_idx, EC_UINT a_wkc) ++ : EC_DataStruct(a_datasize + ++ ETHERCAT_TELEGRAM_HEADER_SIZE + ++ ETHERCAT_TELEGRAM_WKC_SIZE), ++ m_data(a_data), m_idx(a_idx), m_wkc(a_wkc) ++{ ++ this->next = NULL; ++ this->previous = NULL; ++} ++ ++EC_Telegram::EC_Telegram(const EC_Telegram& a_telegram) ++ : EC_DataStruct(a_telegram), m_data(a_telegram.m_data) ++{ ++ this->next = a_telegram.next; ++ this->previous = a_telegram.previous; ++ m_idx = a_telegram.get_idx(); ++ m_wkc = a_telegram.get_wkc(); ++} ++ ++EC_Telegram::~EC_Telegram() ++{ ++} ++ ++unsigned char * EC_Telegram::dump(unsigned char * a_buffer) const ++{ ++ // Dump first 6 bytes of header ++ a_buffer = dump_header_head(a_buffer); ++ // Dump remaining 4 bytes of header ++ EC_UINT tmp = get_datalen(); ++ // Implementation: NEXT = MSB ++ if(this->next){ ++ EC_UINT a_chained_int = 1; ++ a_chained_int = a_chained_int << (ETHERCAT_LEN_NUM_BITS + ETHERCAT_RESERVED_NUM_BITS); ++ tmp |= a_chained_int; ++ } ++ a_buffer = host2nw(a_buffer, tmp); ++ a_buffer = host2nw(a_buffer, m_irq); ++ // Dump data ++ memcpy(a_buffer, m_data, get_datalen()); ++ a_buffer += get_datalen(); ++ // Dump wkc ++ return host2nw(a_buffer, m_wkc); ++} ++ ++const unsigned char * EC_Telegram::build(const unsigned char * buffer) ++{ ++ // Build and check first 6 bytes of header ++ buffer = this->build_header_head(buffer); ++ if (buffer != NULL){ ++ // Check 4 remaining bytes of header ++ if (check_lennext(buffer) == true) ++ buffer += sizeof(EC_UINT); ++ else return NULL; ++ // IRQ is currently not used ++ EC_UINT irq; ++ buffer = nw2host(buffer, irq); ++ ++ // build body ++ buffer = this->build_body(buffer); ++ // build tail ++ buffer = nw2host(buffer,m_wkc); ++ return buffer; ++ } ++ else return NULL; ++} ++ ++const unsigned char * EC_Telegram::build_body(const unsigned char * buffer) ++{ ++ unsigned char * data = (unsigned char *) m_data; ++ memcpy(data,buffer,get_datalen()); ++ return buffer + get_datalen(); ++} ++ ++// Check if the index is unaltered ++bool EC_Telegram::check_index(const unsigned char * buffer) const ++{ ++ const unsigned char * tmpptr = buffer; ++ EC_USINT index; ++ tmpptr = nw2host(tmpptr,index); ++ if (index == m_idx) ++ return true; ++ else{ ++ ec_log(EC_LOG_ERROR, "EC_Telegram::check_index(): Index field does not correspond with received data\n"); ++ return false; ++ } ++} ++ ++/** Check if the next field in the buffer indicates the same as the ++ next field of the telegram, and if the length also corresponds */ ++bool EC_Telegram::check_lennext(const unsigned char * buffer) const ++{ ++ // Unsigned int to verify if the byte sequence indicates a "next" telegram? ++ EC_UINT lennext = 0x0000; ++ EC_UINT len = 0x0000; EC_UINT nextbit = 0x0000; ++ ++ const unsigned char * tmpptr = buffer; ++ static const EC_UINT NEXT_BIT = 0x8000; ++ static const EC_UINT LEN_BIT = 0x07ff; ++ // Convert to host order ++ tmpptr = nw2host(tmpptr,lennext); ++ ++ // Extract next information. The Next bit is always the MSB of and ++ // unsigned int... ++ nextbit = lennext & NEXT_BIT; ++ if ( ((nextbit == NEXT_BIT) && (next == NULL)) || ++ ((nextbit == 0x0000) && (next != NULL)) ){ ++ ec_log(EC_LOG_ERROR, "EC_Telegram::check_lennext(): Next field does not correspond with received data\n"); ++ return false; ++ } ++ else // Extract len information ++ { ++ len = lennext & LEN_BIT; ++ if (len != get_datalen()){ ++ ec_log(EC_LOG_ERROR, "EC_Telegram::check_lennext(): Len field does not correspond with received data\n"); ++ return false; ++ } ++ return true; ++ } ++} ++ ++// irq field is currently unused ++const EC_UINT EC_Telegram::m_irq = 0x0000; ++ ++ ++/** Attach a single a_telegram after this telegram in chain ++ */ ++void EC_Telegram::attach(EC_Telegram *a_telegram) ++{ ++ assert(this != a_telegram); ++ assert(a_telegram->next == NULL); ++ assert(a_telegram->previous == NULL); ++ a_telegram->next = this->next; ++ a_telegram->previous = this; ++ if (this->next != NULL) { ++ this->next->previous = a_telegram; ++ } ++ this->next = a_telegram; ++} +diff --git a/tests/CMakeLists.txt ./tests/CMakeLists.txt +new file mode 100644 +index 0000000..30a0c6f +--- /dev/null ++++ ./tests/CMakeLists.txt +@@ -0,0 +1,15 @@ ++# Make sure the linker can find the eml library once it is built. ++LINK_DIRECTORIES (${EML_BINARY_DIR}/src) ++ ++IF (BUILD_FOR_ECOS) ++ SUBDIRS( ecos ) ++ENDIF (BUILD_FOR_ECOS) ++ ++IF (BUILD_FOR_RTNET) ++ SUBDIRS( rtnet ) ++ENDIF (BUILD_FOR_RTNET) ++ ++IF (BUILD_FOR_POSIX) ++ SUBDIRS( posix ) ++ENDIF (BUILD_FOR_POSIX) ++ +diff --git a/tests/ecos/CMakeLists.txt ./tests/ecos/CMakeLists.txt +new file mode 100644 +index 0000000..20e2372 +--- /dev/null ++++ ./tests/ecos/CMakeLists.txt +@@ -0,0 +1,47 @@ ++# INCLUDE(ProjectSources.txt) ++ ++SET(CMAKE_VERBOSE_MAKEFILE ON) ++#create the eCos executable ++ADD_DEFINITIONS(-D__ECOS__=1 -D__ECOS=1) ++SET(ECOS_DEFINITIONS -Wall -Wno-long-long -pipe -fno-builtin) ++ ++SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wstrict-prototypes") ++SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -fno-rtti -Wctor-dtor-privacy -fno-strict-aliasing -fno-exceptions") ++ ++#sources depend on target.ld ++FOREACH (_current_FILE ${ARGN}) ++ADD_FILE_DEPENDENCIES(${_current_FILE} ${ECOS_INSTALL_PATH}/ecos/install/lib/target.ld) ++ENDFOREACH (_current_FILE) ++ ++#use a variable for the make_clean_files since later on even more files are added ++SET(ECOS_ADD_MAKE_CLEAN_FILES ${ECOS_ADD_MAKE_CLEAN_FILES};${ECOS_INSTALL_PATH}/ecos/install/lib/target.ld) ++SET_DIRECTORY_PROPERTIES( ++ PROPERTIES ++ ADDITIONAL_MAKE_CLEAN_FILES "${ECOS_ADD_MAKE_CLEAN_FILES}" ) ++ ++ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${ECOS_INSTALL_PATH}/ecos/install/lib/target.ld ++ COMMAND sh ++ ARGS -c \"make -C ecos || exit -1\; if [ -e ${ECOS_INSTALL_PATH}/ecos/install/lib/target.ld ] \; then touch ${ECOS_INSTALL_PATH}/ecos/install/lib/target.ld\; fi\" ++ DEPENDS ${ECOS_INSTALL_PATH}/makefile ++) ++ ++ADD_CUSTOM_COMMAND(OUTPUT ${ECOS_INSTALL_PATH}/makefile ++ COMMAND sh ++ ARGS -c \" cd ecos\; ${ECOSCONFIG_EXECUTABLE} tree || exit -1\;\" ++ DEPENDS ${ECOS_INSTALL_PATH}/ecos.ecc ++) ++ ++ADD_CUSTOM_TARGET( ecos make -C ${ECOS_INSTALL_PATH}/ DEPENDS ${ECOS_INSTALL_PATH}/makefile ) ++ ++SET (_ecos_EXTRA_LIBS "${_ecos_EXTRA_LIBS} -L${EML_BINARY_DIR}/src -leml") ++ ++#special link commands for ecos-executables ++SET(CMAKE_CXX_LINK_EXECUTABLE " -o ${_ecos_EXTRA_LIBS} -nostdlib -nostartfiles -L${ECOS_INSTALL_PATH}/ecos/install/lib -Ttarget.ld ${ECOS_LD_MCPU}") ++SET(CMAKE_C_LINK_EXECUTABLE " -o ${_ecos_EXTRA_LIBS} -nostdlib -nostartfiles -L${ECOS_INSTALL_PATH}/ecos/install/lib -Ttarget.ld ${ECOS_LD_MCPU}") ++ ++ADD_EXECUTABLE(ethercat_master_test.elf ethercat.cxx src/process_data.cxx) ++ ++SET_TARGET_PROPERTIES(${_exe_NAME} PROPERTIES SUFFIX ".elf") ++ ++# ECOS_ADD_EXECUTABLE(ethercat_master_test.elf ethercat.cxx) ++ +diff --git a/tests/ecos/ChangeLog ./tests/ecos/ChangeLog +new file mode 100644 +index 0000000..0c4a522 +--- /dev/null ++++ ./tests/ecos/ChangeLog +@@ -0,0 +1,7 @@ ++2005-04-25 Klaas Gadeyne ++ * Obfuscate Bob's email address :-) ++ * Implemented framing and added test to run the lights demo ++ * CVS tag FMVB_0_4_0 ++ ++2004-11-17 Bob Koninckx ++ * Create new module +diff --git a/tests/ecos/ProjectSources.txt ./tests/ecos/ProjectSources.txt +new file mode 100644 +index 0000000..ecb0f1b +--- /dev/null ++++ ./tests/ecos/ProjectSources.txt +@@ -0,0 +1,5 @@ ++#the following name will be used as the name for the executable ++SET(ECOS_PROJECT_NAME ethercat-evaluationboard-test) ++ ++#list the source files for the application ++SET(PROJECT_SRCS ethercat.cxx) +diff --git a/tests/ecos/ecos-i386/CMakeLists.txt ./tests/ecos/ecos-i386/CMakeLists.txt +new file mode 100644 +index 0000000..9e23c4e +--- /dev/null ++++ ./tests/ecos/ecos-i386/CMakeLists.txt +@@ -0,0 +1,24 @@ ++# give the project a name, so that the KDevelop project gets a nice name ++PROJECT(helloworld-i386) ++ ++#include the file with the source list ++INCLUDE(../ProjectSources.txt) ++ ++#compile for the i386 processor ++ECOS_USE_I386_ELF_TOOLS() ++ ++#add some compile switches ++ADD_DEFINITIONS(-O2 -g) ++ ++# verbose Makefiles, so that we see the complete compile commands ++SET(CMAKE_VERBOSE_MAKEFILE ON) ++ ++# we are one directory level deeper here, so the ++# relative paths from the ProjectSources.txt have to be adjusted accordingly ++ECOS_ADJUST_DIRECTORY(target_SRCS ${PROJECT_SRCS}) ++ ++#add the eCos include directories ++ECOS_ADD_INCLUDE_DIRECTORIES() ++ ++#create the eCos executable ++ECOS_ADD_EXECUTABLE(${ECOS_PROJECT_NAME} ${target_SRCS}) +diff --git a/tests/ecos/ecos-i386/ecos/ecos.ecc ./tests/ecos/ecos-i386/ecos/ecos.ecc +new file mode 100644 +index 0000000..597be2e +--- /dev/null ++++ ./tests/ecos/ecos-i386/ecos/ecos.ecc +@@ -0,0 +1,14831 @@ ++# eCos saved configuration ++ ++# ---- commands -------------------------------------------------------- ++# This section contains information about the savefile format. ++# It should not be edited. Any modifications made to this section ++# may make it impossible for the configuration tools to read ++# the savefile. ++ ++cdl_savefile_version 1; ++cdl_savefile_command cdl_savefile_version {}; ++cdl_savefile_command cdl_savefile_command {}; ++cdl_savefile_command cdl_configuration { description hardware template package }; ++cdl_savefile_command cdl_package { value_source user_value wizard_value inferred_value }; ++cdl_savefile_command cdl_component { value_source user_value wizard_value inferred_value }; ++cdl_savefile_command cdl_option { value_source user_value wizard_value inferred_value }; ++cdl_savefile_command cdl_interface { value_source user_value wizard_value inferred_value }; ++ ++# ---- toplevel -------------------------------------------------------- ++# This section defines the toplevel configuration object. The only ++# values that can be changed are the name of the configuration and ++# the description field. It is not possible to modify the target, ++# the template or the set of packages simply by editing the lines ++# below because these changes have wide-ranging effects. Instead ++# the appropriate tools should be used to make such modifications. ++ ++cdl_configuration eCos { ++ description "" ; ++ ++ # These fields should not be modified. ++ hardware pc_rltk8139 ; ++ template net ; ++ package -hardware CYGPKG_HAL_I386 current ; ++ package -hardware CYGPKG_HAL_I386_GENERIC current ; ++ package -hardware CYGPKG_HAL_I386_PC current ; ++ package -hardware CYGPKG_HAL_I386_PCMB current ; ++ package -hardware CYGPKG_IO_PCI current ; ++ package -hardware CYGPKG_IO_SERIAL_GENERIC_16X5X current ; ++ package -hardware CYGPKG_IO_SERIAL_I386_PC current ; ++ package -hardware CYGPKG_DEVS_ETH_RLTK_8139 current ; ++ package -hardware CYGPKG_DEVS_ETH_I386_PC_RLTK8139 current ; ++ package -hardware CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 current ; ++ package -hardware CYGPKG_DEVICES_WALLCLOCK_I386_PC current ; ++ package CYGPKG_HAL current ; ++ package CYGPKG_IO current ; ++ package CYGPKG_IO_SERIAL current ; ++ package CYGPKG_INFRA current ; ++ package CYGPKG_ISOINFRA current ; ++ package CYGPKG_KERNEL current ; ++ package CYGPKG_MEMALLOC current ; ++ package CYGPKG_LIBC current ; ++ package CYGPKG_LIBC_TIME current ; ++ package CYGPKG_LIBC_STDLIB current ; ++ package CYGPKG_LIBC_STRING current ; ++ package CYGPKG_LIBC_I18N current ; ++ package CYGPKG_LIBC_SETJMP current ; ++ package CYGPKG_LIBC_STARTUP current ; ++ package CYGPKG_LIBC_STDIO current ; ++ package CYGPKG_LIBM current ; ++ package CYGPKG_POSIX current ; ++ package CYGPKG_IO_WATCHDOG current ; ++ package CYGPKG_IO_WALLCLOCK current ; ++ package -template CYGPKG_ERROR current ; ++ package -template CYGPKG_IO_FILEIO current ; ++ package -template CYGPKG_IO_ETH_DRIVERS current ; ++ package CYGPKG_NET_ETHERCATMASTER current ; ++}; ++ ++# ---- conflicts ------------------------------------------------------- ++# There are no conflicts. ++ ++# ---- contents -------------------------------------------------------- ++# > ++# > ++# Global build options ++# Global build options including control over ++# compiler flags, linker flags and choice of toolchain. ++# ++cdl_component CYGBLD_GLOBAL_OPTIONS { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Global command prefix ++# This option specifies the command prefix used when ++# invoking the build tools. If your host operating system ++# is Linux you can set this to empty to use your native tools. ++# If so, your native gcc must be gcc-2.95.2 or later, and ++# "ld -v" must report a version more recent than 2.9.1. ++# ++cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value i386-elf ++ # value_source default ++ # Default value: i386-elf ++}; ++ ++# Global compiler flags ++# This option controls the global compiler flags which ++# are used to compile all packages by ++# default. Individual packages may define ++# options which override these global flags. ++# ++cdl_option CYGBLD_GLOBAL_CFLAGS { ++ # Flavor: data ++ user_value "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" ++ # value_source user ++ # Default value: "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" ++ ++ # The following properties are affected by this value ++ # option CYGBLD_INFRA_CFLAGS_WARNINGS_AS_ERRORS ++ # Requires: is_substr(CYGBLD_GLOBAL_CFLAGS, " -Werror") ++ # option CYGBLD_INFRA_CFLAGS_PIPE ++ # Requires: is_substr(CYGBLD_GLOBAL_CFLAGS, " -pipe") ++}; ++ ++# Global linker flags ++# This option controls the global linker flags. Individual ++# packages may define options which override these global flags. ++# ++cdl_option CYGBLD_GLOBAL_LDFLAGS { ++ # Flavor: data ++ user_value "-nostdlib -Wl,--gc-sections -Wl,-static" ++ # value_source user ++ # Default value: "-g -nostdlib -Wl,--gc-sections -Wl,-static" ++}; ++ ++# Build GDB stub loader image ++# This option enables the building of the GDB stubs for the ++# board. The common HAL controls takes care of most of the ++# build process, but the final conversion from ELF image to ++# binary data is handled by the platform CDL, allowing ++# relocation of the data if necessary. ++# ++cdl_option CYGBLD_BUILD_GDB_STUBS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "GRUB" ++ # CYG_HAL_STARTUP == RAM ++ # CYG_HAL_STARTUP == RAM ++ # --> 0 ++ # Requires: CYGSEM_HAL_ROM_MONITOR ++ # CYGSEM_HAL_ROM_MONITOR == 0 ++ # --> 0 ++ # Requires: CYGBLD_BUILD_COMMON_GDB_STUBS ++ # CYGBLD_BUILD_COMMON_GDB_STUBS == 0 ++ # --> 0 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 0 ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT == 0 ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT == 1 ++ # --> 0 ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT == 1 ++ # --> 0 ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++ # CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT == 1 ++ # --> 0 ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++ # CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM == 1 ++ # --> 0 ++}; ++ ++# Build common GDB stub ROM image ++# Unless a target board has specific requirements to the ++# stub implementation, it can use a simple common stub. ++# This option, which gets enabled by platform HALs as ++# appropriate, controls the building of the common stub. ++# ++cdl_option CYGBLD_BUILD_COMMON_GDB_STUBS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYGBLD_BUILD_COMMON_GDB_STUBS ++}; ++ ++# < ++# Redboot HAL options ++# This option lists the target's requirements for a valid Redboot ++# configuration. ++# ++cdl_component CYGPKG_REDBOOT_HAL_OPTIONS { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_REDBOOT ++ # CYGPKG_REDBOOT (unknown) == 0 ++ # --> 0 ++ ++ # There is no associated value. ++}; ++ ++# > ++# Build RedBoot binary image ++# ++cdl_component CYGBLD_BUILD_REDBOOT_BIN { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_HAL_OPTIONS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Build Redboot FLOPPY binary image ++# This option enables the conversion of the Redboot ++# ELF image to a binary image suitable for ++# copying to a floppy disk. ++# ++cdl_option CYGBLD_BUILD_REDBOOT_BIN_FLOPPY { ++ # This option is not active ++ # The parent CYGBLD_BUILD_REDBOOT_BIN is not active ++ # ActiveIf constraint: CYGBLD_BUILD_REDBOOT ++ # CYGBLD_BUILD_REDBOOT (unknown) == 0 ++ # --> 0 ++ # ActiveIf constraint: CYG_HAL_STARTUP == "FLOPPY" ++ # CYG_HAL_STARTUP == RAM ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# Build Redboot ROM binary image ++# This option enables the conversion of the Redboot ++# ELF image to a binary image suitable for ROM ++# programming. ++# ++cdl_option CYGBLD_BUILD_REDBOOT_BIN_ROM { ++ # This option is not active ++ # The parent CYGBLD_BUILD_REDBOOT_BIN is not active ++ # ActiveIf constraint: CYGBLD_BUILD_REDBOOT ++ # CYGBLD_BUILD_REDBOOT (unknown) == 0 ++ # --> 0 ++ # ActiveIf constraint: CYG_HAL_STARTUP == "ROM" ++ # CYG_HAL_STARTUP == RAM ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# < ++# < ++# < ++# eCos HAL ++# doc: ref/the-ecos-hardware-abstraction-layer.html ++# The eCos HAL package provide a porting layer for ++# higher-level parts of the system such as the kernel and the ++# C library. Each installation should have HAL packages for ++# one or more architectures, and for each architecture there ++# may be one or more supported platforms. It is necessary to ++# select one target architecture and one platform for that ++# architecture. There are also a number of configuration ++# options that are common to all HAL packages. ++# ++cdl_package CYGPKG_HAL { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_INFRA ++ # CYGPKG_INFRA == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Platform-independent HAL options ++# A number of configuration options are common to most or all ++# HAL packages, for example options controlling how much state ++# should be saved during a context switch. The implementations ++# of these options will vary from architecture to architecture. ++# ++cdl_component CYGPKG_HAL_COMMON { ++ # There is no associated value. ++}; ++ ++# > ++# Provide eCos kernel support ++# The HAL can be configured to either support the full eCos ++# kernel, or to support only very simple applications which do ++# not require a full kernel. If kernel support is not required ++# then some of the startup, exception, and interrupt handling ++# code can be eliminated. ++# ++cdl_option CYGFUN_HAL_COMMON_KERNEL_SUPPORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++}; ++ ++# HAL exception support ++# When a processor exception occurs, for example an attempt to ++# execute an illegal instruction or to perform a divide by ++# zero, this exception may be handled in a number of different ++# ways. If the target system has gdb support then typically ++# the exception will be handled by gdb code. Otherwise if the ++# HAL exception support is enabled then the HAL will invoke a ++# routine deliver_exception(). Typically this routine will be ++# provided by the eCos kernel, but it is possible for ++# application code to provide its own implementation. If the ++# HAL exception support is not enabled and a processor ++# exception occurs then the behaviour of the system is ++# undefined. ++# ++cdl_option CYGPKG_HAL_EXCEPTIONS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGPKG_KERNEL_EXCEPTIONS ++ # CYGPKG_KERNEL_EXCEPTIONS == 1 ++ # --> 1 ++ # Requires: CYGPKG_KERNEL_EXCEPTIONS ++ # CYGPKG_KERNEL_EXCEPTIONS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_KERNEL_EXCEPTIONS ++ # Requires: CYGPKG_HAL_EXCEPTIONS ++}; ++ ++# Stop calling constructors early ++# This option supports environments where some constructors ++# must be run in the context of a thread rather than at ++# simple system startup time. A boolean flag named ++# cyg_hal_stop_constructors is set to 1 when constructors ++# should no longer be invoked. It is up to some other ++# package to deal with the rest of the constructors. ++# In the current version this is only possible with the ++# C library. ++# ++cdl_option CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS ++ # CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS ++ # Requires: CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG ++}; ++ ++# HAL uses the MMU and allows for CDL manipulation of it's use ++# ++cdl_interface CYGINT_HAL_SUPPORTS_MMU_TABLES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_INSTALL_MMU_TABLES ++ # ActiveIf: CYGINT_HAL_SUPPORTS_MMU_TABLES ++}; ++ ++# Install MMU tables. ++# This option controls whether this application installs ++# its own Memory Management Unit (MMU) tables, or relies on the ++# existing environment to run. ++# ++cdl_option CYGSEM_HAL_INSTALL_MMU_TABLES { ++ # This option is not active ++ # ActiveIf constraint: CYGINT_HAL_SUPPORTS_MMU_TABLES ++ # CYGINT_HAL_SUPPORTS_MMU_TABLES == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYG_HAL_STARTUP != "RAM" ++ # CYG_HAL_STARTUP == RAM ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_STATIC_MMU_TABLES ++ # Requires: CYGSEM_HAL_INSTALL_MMU_TABLES ++}; ++ ++# Use static MMU tables. ++# This option defines an environment where any Memory ++# Management Unit (MMU) tables are constant. Normally used by ROM ++# based environments, this provides a way to save RAM usage which ++# would otherwise be required for these tables. ++# ++cdl_option CYGSEM_HAL_STATIC_MMU_TABLES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGSEM_HAL_INSTALL_MMU_TABLES ++ # CYGSEM_HAL_INSTALL_MMU_TABLES == 0 ++ # --> 0 ++}; ++ ++# Route diagnostic output to debug channel ++# If not inheriting the console setup from the ROM monitor, ++# it is possible to redirect diagnostic output to the debug ++# channel by enabling this option. Depending on the debugger ++# used it may also be necessary to select a mangler for the ++# output to be displayed by the debugger. ++# ++cdl_component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN { ++ # ActiveIf constraint: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE == 0 ++ # --> 1 ++ # ActiveIf constraint: CYGPKG_HAL_ARM || CYGPKG_HAL_POWERPC_MPC8xx || CYGPKG_HAL_V85X_V850 || CYGSEM_HAL_VIRTUAL_VECTOR_DIAG ++ # CYGPKG_HAL_ARM (unknown) == 0 ++ # CYGPKG_HAL_POWERPC_MPC8xx (unknown) == 0 ++ # CYGPKG_HAL_V85X_V850 (unknown) == 0 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_DIAG == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS || CYG_HAL_STARTUP == "RAM") ? 1 : 0 ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # CYG_HAL_STARTUP == RAM ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE ++ # Calculated: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE && !CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++}; ++ ++# > ++# Mangler used on diag output ++# It is sometimes necessary to mangle (encode) the ++# diag ASCII text output in order for it to show up at the ++# other end. In particular, GDB may silently ignore raw ++# ASCII text. ++# ++cdl_option CYGSEM_HAL_DIAG_MANGLER { ++ # This option is not active ++ # The parent CYGDBG_HAL_DIAG_TO_DEBUG_CHAN is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value GDB ++ # value_source default ++ # Default value: GDB ++ # Legal values: "GDB" "None" ++}; ++ ++# < ++# < ++# HAL interrupt handling ++# A number of configuration options related to interrupt ++# handling are common to most or all HAL packages, even though ++# the implementations will vary from architecture to ++# architecture. ++# ++cdl_component CYGPKG_HAL_COMMON_INTERRUPTS { ++ # There is no associated value. ++}; ++ ++# > ++# Use separate stack for interrupts ++# When an interrupt occurs this interrupt can be handled either ++# on the current stack or on a separate stack maintained by the ++# HAL. Using a separate stack requires a small number of extra ++# instructions in the interrupt handling code, but it has the ++# advantage that it is no longer necessary to allow extra space ++# in every thread stack for the interrupt handlers. The amount ++# of extra space required depends on the interrupt handlers ++# that are being used. ++# ++cdl_option CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Interrupt stack size ++# This configuration option specifies the stack size in bytes ++# for the interrupt stack. Typically this should be a multiple ++# of 16, but the exact requirements will vary from architecture ++# to architecture. The interrupt stack serves two separate ++# purposes. It is used as the stack during system ++# initialization. In addition, if the interrupt system is ++# configured to use a separate stack then all interrupts will ++# be processed on this stack. The exact memory requirements ++# will vary from application to application, and will depend ++# heavily on whether or not other interrupt-related options, ++# for example nested interrupts, are enabled. On most targets, ++# in a configuration with no kernel this stack will also be ++# the stack used to invoke the application, and must obviously ++# be appropriately large in that case. ++# ++cdl_option CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4096 ++ # value_source default ++ # Default value: CYGPKG_KERNEL ? 4096 : 32768 ++ # CYGPKG_KERNEL == current ++ # --> 4096 ++ # Legal values: 128 to 1048576 ++}; ++ ++# Allow nested interrupts ++# When an interrupt occurs the HAL interrupt handling code can ++# either leave interrupts disabled for the duration of the ++# interrupt handling code, or by doing some extra work it can ++# reenable interrupts before invoking the interrupt handler and ++# thus allow nested interrupts to happen. If all the interrupt ++# handlers being used are small and do not involve any loops ++# then it is usually better to disallow nested interrupts. ++# However if any of the interrupt handlers are more complicated ++# than nested interrupts will usually be required. ++# ++cdl_option CYGSEM_HAL_COMMON_INTERRUPTS_ALLOW_NESTING { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Save minimum context on interrupt ++# The HAL interrupt handling code can exploit the calling conventions ++# defined for a given architecture to reduce the amount of state ++# that has to be saved. Generally this improves performance and ++# reduces code size. However it can make source-level debugging ++# more difficult. ++# ++cdl_option CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++}; ++ ++# Chain all interrupts together ++# Interrupts can be attached to vectors either singly, or be ++# chained together. The latter is necessary if there is no way ++# of discovering which device has interrupted without ++# inspecting the device itself. It can also reduce the amount ++# of RAM needed for interrupt decoding tables and code. ++# ++cdl_option CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGIMP_KERNEL_INTERRUPTS_CHAIN ++ # Requires: CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN ++}; ++ ++# Ignore spurious [fleeting] interrupts ++# On some hardware, interrupt sources may not be de-bounced or ++# de-glitched. Rather than try to handle these interrupts (no ++# handling may be possible), this option allows the HAL to simply ++# ignore them. In most cases, if the interrupt is real it will ++# reoccur in a detectable form. ++# ++cdl_option CYGIMP_HAL_COMMON_INTERRUPTS_IGNORE_SPURIOUS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# HAL context switch support ++# A number of configuration options related to thread contexts ++# are common to most or all HAL packages, even though the ++# implementations will vary from architecture to architecture. ++# ++cdl_component CYGPKG_HAL_COMMON_CONTEXT { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Use minimum thread context ++# The thread context switch code can exploit the calling ++# conventions defined for a given architecture to reduce the ++# amount of state that has to be saved during a context ++# switch. Generally this improves performance and reduces ++# code size. However it can make source-level debugging more ++# difficult. ++# ++cdl_option CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++}; ++ ++# < ++# Explicit control over cache behaviour ++# These options let the default behaviour of the caches ++# be easily configurable. ++# ++cdl_component CYGPKG_HAL_CACHE_CONTROL { ++ # There is no associated value. ++}; ++ ++# > ++# Enable DATA cache on startup ++# Enabling this option will cause the data cache to be enabled ++# as soon as practicable when eCos starts up. One would choose ++# to disable this if the data cache cannot safely be turned on, ++# such as a case where the cache(s) require additional platform ++# specific setup. ++# ++cdl_component CYGSEM_HAL_ENABLE_DCACHE_ON_STARTUP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# DATA cache mode on startup ++# This option controls the mode the cache will be set to ++# when enabled on startup. ++# ++cdl_option CYGSEM_HAL_DCACHE_STARTUP_MODE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value COPYBACK ++ # value_source default ++ # Default value: COPYBACK ++ # Legal values: "COPYBACK" "WRITETHRU" ++}; ++ ++# < ++# Enable INSTRUCTION cache on startup ++# Enabling this option will cause the instruction cache to be enabled ++# as soon as practicable when eCos starts up. One would choose ++# to disable this if the instruction cache cannot safely be turned on, ++# such as a case where the cache(s) require additional platform ++# specific setup. ++# ++cdl_option CYGSEM_HAL_ENABLE_ICACHE_ON_STARTUP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Source-level debugging support ++# If the source level debugger gdb is to be used for debugging ++# application code then it may be necessary to configure in support ++# for this in the HAL. ++# ++cdl_component CYGPKG_HAL_DEBUG { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Support for GDB stubs ++# The HAL implements GDB stubs for the target. ++# ++cdl_interface CYGINT_HAL_DEBUG_GDB_STUBS { ++ # Implemented by CYGPKG_HAL_I386_PC, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # ActiveIf: CYGINT_HAL_DEBUG_GDB_STUBS ++}; ++ ++# Include GDB stubs in HAL ++# This option causes a set of GDB stubs to be included into the ++# system. On some target systems the GDB support will be ++# provided by other means, for example by a ROM monitor. On ++# other targets, especially when building a ROM-booting system, ++# the necessary support has to go into the target library ++# itself. When GDB stubs are include in a configuration, HAL ++# serial drivers must also be included. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS { ++ # ActiveIf constraint: CYGINT_HAL_DEBUG_GDB_STUBS ++ # CYGINT_HAL_DEBUG_GDB_STUBS == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: ! CYGSEM_HAL_USE_ROM_MONITOR ++ # CYGSEM_HAL_USE_ROM_MONITOR == GDB_stubs ++ # --> 0 ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++ # CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT == 1 ++ # --> 0 ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++ # CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM == 1 ++ # --> 0 ++ # Requires: !CYGSEM_HAL_VIRTUAL_VECTOR_DIAG || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_DIAG == 1 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # DefaultValue: (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS || CYG_HAL_STARTUP == "RAM") ? 1 : 0 ++ # option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # DefaultValue: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # ActiveIf: CYGSEM_HAL_USE_ROM_MONITOR || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # DefaultValue: !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGBLD_BUILD_COMMON_GDB_STUBS ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGPKG_HAL_GDB_FILEIO ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGDBG_HAL_DEBUG_GDB_INITIAL_BREAK ++ # ActiveIf: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++}; ++ ++# Support for external break support in GDB stubs ++# The HAL implements external break (or asynchronous interrupt) ++# in the GDB stubs for the target. ++# ++cdl_interface CYGINT_HAL_DEBUG_GDB_STUBS_BREAK { ++ # Implemented by CYGPKG_HAL_I386_PC, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # ActiveIf: CYGINT_HAL_DEBUG_GDB_STUBS_BREAK ++}; ++ ++# Include GDB external break support for stubs ++# This option causes the GDB stub to add a serial interrupt handler ++# which will listen for GDB break packets. This lets you stop the ++# target asynchronously when using GDB, usually by hitting Control+C ++# or pressing the STOP button. This option differs from ++# CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT in that it is used when ++# GDB stubs are present. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT { ++ # ActiveIf constraint: CYGINT_HAL_DEBUG_GDB_STUBS_BREAK ++ # CYGINT_HAL_DEBUG_GDB_STUBS_BREAK == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 0 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # Requires: !CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++}; ++ ++# Platform does not support CTRLC ++# ++cdl_interface CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # ActiveIf: CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 ++}; ++ ++# Include GDB external break support when no stubs ++# This option adds an interrupt handler for the GDB serial line ++# which will listen for GDB break packets. This lets you stop the ++# target asynchronously when using GDB, usually by hitting Control+C ++# or pressing the STOP button. This option differs from ++# CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT in that it is used when the GDB ++# stubs are NOT present. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT { ++ # ActiveIf constraint: CYGSEM_HAL_USE_ROM_MONITOR || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGSEM_HAL_USE_ROM_MONITOR == GDB_stubs ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 1 ++ # ActiveIf constraint: CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 ++ # CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 1 ++ # Requires: !CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++}; ++ ++# Include GDB multi-threading debug support ++# This option enables some extra HAL code which is needed ++# to support multi-threaded source level debugging. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT { ++ # ActiveIf constraint: CYGSEM_HAL_ROM_MONITOR || CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT ++ # CYGSEM_HAL_ROM_MONITOR == 0 ++ # CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # option CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT ++ # Requires: CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++}; ++ ++# Number of times to retry sending a $O packet ++# This option controls the number of attempts that eCos programs ++# will make to send a $O packet to a host GDB process. If it is ++# set non-zero, then the target process will attempt to resend the ++# $O packet data up to this number of retries. Caution: use of ++# this option is not recommended as it can thoroughly confuse the ++# host GDB process. ++# ++cdl_option CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Timeout period for GDB packets ++# This option controls the time (in milliseconds) that eCos programs ++# will wait for a response when sending packets to a host GDB process. ++# If this time elapses, then the packet will be resent, up to some ++# maximum number of times (CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES). ++# ++cdl_option CYGNUM_HAL_DEBUG_GDB_PROTOCOL_TIMEOUT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 500 ++ # value_source default ++ # Default value: 500 ++}; ++ ++# Location of CRC32 table ++# The stubs use a 1 kilobyte CRC table that can either be pregenerated ++# and placed in ROM, or generated at runtime in RAM. Depending on ++# your memory constraints, one of these options may be better. ++# ++cdl_option CYGDBG_HAL_CRCTABLE_LOCATION { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value RAM ++ # value_source default ++ # Default value: RAM ++ # Legal values: "ROM" "RAM" ++}; ++ ++# Enable initial breakpoint ++# This option causes an application that has GDB stubs built in ++# to take a breakpoint immediately before calling cyg_start(). ++# This gives the developer a chance to set any breakpoints or ++# inspect the system state before it proceeds. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_INITIAL_BREAK { ++ # This option is not active ++ # ActiveIf constraint: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: !CYGPKG_REDBOOT ++ # CYGPKG_REDBOOT (unknown) == 0 ++ # --> 1 ++}; ++ ++# < ++# ROM monitor support ++# Support for ROM monitors can be built in to your application. ++# It may also be relevant to build your application as a ROM monitor ++# itself. Such options are contained here if relevant for your chosen ++# platform. The options and ROM monitors available to choose are ++# platform-dependent. ++# ++cdl_component CYGPKG_HAL_ROM_MONITOR { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Target has virtual vector support ++# ++cdl_interface CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT { ++ # Implemented by CYGPKG_HAL_I386_PC, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT ++ # ActiveIf: CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT ++}; ++ ++# Target supports baud rate control via vectors ++# Whether this target supports the __COMMCTL_GETBAUD ++# and __COMMCTL_SETBAUD virtual vector comm control operations. ++# ++cdl_interface CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Enable use of virtual vector calling interface ++# Virtual vector support allows the HAL to let the ROM ++# monitor handle certain operations. The virtual vector table ++# defines a calling interface between applications running in ++# RAM and the ROM monitor. ++# ++cdl_component CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT { ++ # ActiveIf constraint: CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT ++ # CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT == 1 ++ # --> 1 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# > ++# Inherit console settings from ROM monitor ++# When this option is set, the application will inherit ++# the console as set up by the ROM monitor. This means ++# that the application will use whatever channel and ++# mangling style was used by the ROM monitor when ++# the application was launched. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE { ++ # ActiveIf constraint: CYGSEM_HAL_USE_ROM_MONITOR ++ # CYGSEM_HAL_USE_ROM_MONITOR == GDB_stubs ++ # --> 1 ++ ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: !CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # ActiveIf: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE ++ # option CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE ++ # Calculated: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE && !CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++}; ++ ++# Debug channel is configurable ++# This option is a configuration hint - it is enabled ++# when the HAL initialization code will make use ++# of the debug channel configuration option. ++# ++cdl_option CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE { ++ # Calculated value: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS == 0 ++ # Flavor: bool ++ # Current value: 0 ++}; ++ ++# Console channel is configurable ++# This option is a configuration hint - it is enabled ++# when the HAL initialization code will make use ++# of the console channel configuration option. ++# ++cdl_option CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE { ++ # Calculated value: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE && !CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE == 0 ++ # CYGDBG_HAL_DIAG_TO_DEBUG_CHAN == 0 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# Initialize whole of virtual vector table ++# This option will cause the whole of the virtual ++# vector table to be initialized with dummy values on ++# startup. When this option is enabled, all the ++# options below must also be enabled - or the ++# table would be empty when the application ++# launches. ++# On targets where older ROM monitors without ++# virtual vector support may still be in use, it is ++# necessary for RAM applictions to initialize the ++# table (since all HAL diagnostics and debug IO ++# happens via the table). ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYG_HAL_STARTUP != "RAM" || !CYGSEM_HAL_USE_ROM_MONITOR ++ # CYG_HAL_STARTUP == RAM ++ # CYGSEM_HAL_USE_ROM_MONITOR == GDB_stubs ++ # --> 0 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET == 1 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US == 1 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE == 1 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA == 0 ++ # --> 0 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # ActiveIf: !CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_VERSION ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++}; ++ ++# Claim virtual vector table entries by default ++# By default most virtual vectors will be claimed by ++# RAM startup configurations, meaning that the RAM ++# application will provide the services. The ++# exception is COMMS support (HAL ++# diagnostics/debugging IO) which is left in the ++# control of the ROM monitor. ++# The reasoning behind this is to get as much of the ++# code exercised during regular development so it ++# is known to be working the few times a new ROM ++# monitor or a ROM production configuration is used ++# - COMMS are excluded only by necessity in order to ++# avoid breaking an existing debugger connections ++# (there may be ways around this). ++# For production RAM configurations this option can ++# be switched off, causing the appliction to rely on ++# the ROM monitor for these services, thus ++# saving some space. ++# Individual vectors may also be left unclaimed, ++# controlled by the below options (meaning that the ++# associated service provided by the ROM monitor ++# will be used). ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT { ++ # ActiveIf constraint: !CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 0 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++}; ++ ++# Claim reset virtual vectors ++# This option will cause the reset and kill_by_reset ++# virtual vectors to be claimed. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 0 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET ++}; ++ ++# Claim version virtual vectors ++# This option will cause the version ++# virtual vectors to be claimed. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_VERSION { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 0 ++ # --> 0 ++}; ++ ++# Claim delay_us virtual vector ++# This option will cause the delay_us ++# virtual vector to be claimed. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 0 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US ++}; ++ ++# Claim cache virtual vectors ++# This option will cause the cache virtual vectors ++# to be claimed. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 0 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE ++}; ++ ++# Claim data virtual vectors ++# This option will cause the data virtual vectors ++# to be claimed. At present there is only one, used ++# by the RedBoot ethernet driver to share diag output. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 0 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA ++}; ++ ++# Claim comms virtual vectors ++# This option will cause the communication tables ++# that are part of the virtual vectors mechanism to ++# be claimed. Note that doing this may cause an ++# existing ROM monitor communication connection to ++# be closed. For this reason, the option is disabled ++# per default for normal application ++# configurations. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 0 ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: !CYGSEM_HAL_VIRTUAL_VECTOR_DIAG || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE ++ # DefaultValue: !CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # option CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE ++ # Calculated: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++}; ++ ++# Do diagnostic IO via virtual vector table ++# All HAL IO happens via the virtual vector table / comm ++# tables when those tables are supported by the HAL. ++# If so desired, the low-level IO functions can ++# still be provided by the RAM application by ++# enabling the CLAIM_COMMS option. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_DIAG { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # ActiveIf: CYGPKG_HAL_ARM || CYGPKG_HAL_POWERPC_MPC8xx || CYGPKG_HAL_V85X_V850 || CYGSEM_HAL_VIRTUAL_VECTOR_DIAG ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: !CYGSEM_HAL_VIRTUAL_VECTOR_DIAG || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++}; ++ ++# < ++# Behave as a ROM monitor ++# Enable this option if this program is to be used as a ROM monitor, ++# i.e. applications will be loaded into RAM on the board, and this ++# ROM monitor may process exceptions or interrupts generated from the ++# application. This enables features such as utilizing a separate ++# interrupt stack when exceptions are generated. ++# ++cdl_option CYGSEM_HAL_ROM_MONITOR { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "GRUB" ++ # CYG_HAL_STARTUP == RAM ++ # CYG_HAL_STARTUP == RAM ++ # CYG_HAL_STARTUP == RAM ++ # --> 0 ++ # Requires: !CYGHWR_HAL_I386_FPU_SWITCH_LAZY ++ # CYGHWR_HAL_I386_FPU_SWITCH_LAZY == 1 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYGSEM_HAL_ROM_MONITOR ++ # option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # ActiveIf: CYGSEM_HAL_ROM_MONITOR || CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT ++}; ++ ++# Work with a ROM monitor ++# Support can be enabled for different varieties of ROM monitor. ++# This support changes various eCos semantics such as the encoding ++# of diagnostic output, or the overriding of hardware interrupt ++# vectors. ++# Firstly there is "Generic" support which prevents the HAL ++# from overriding the hardware vectors that it does not use, to ++# instead allow an installed ROM monitor to handle them. This is ++# the most basic support which is likely to be common to most ++# implementations of ROM monitor. ++# "GDB_stubs" provides support when GDB stubs are included in ++# the ROM monitor or boot ROM. ++# ++cdl_option CYGSEM_HAL_USE_ROM_MONITOR { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 GDB_stubs ++ # value_source default ++ # Default value: CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 ++ # CYG_HAL_STARTUP == RAM ++ # --> 1 GDB_stubs ++ # Legal values: "Generic" "GDB_stubs" ++ # Requires: CYG_HAL_STARTUP == "RAM" ++ # CYG_HAL_STARTUP == RAM ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: ! CYGSEM_HAL_USE_ROM_MONITOR ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # ActiveIf: CYGSEM_HAL_USE_ROM_MONITOR || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE ++ # ActiveIf: CYGSEM_HAL_USE_ROM_MONITOR ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # DefaultValue: CYG_HAL_STARTUP != "RAM" || !CYGSEM_HAL_USE_ROM_MONITOR ++}; ++ ++# < ++# Platform defined I/O channels. ++# Platforms which provide additional I/O channels can implement ++# this interface, indicating that the function plf_if_init() ++# needs to be called. ++# ++cdl_interface CYGINT_HAL_PLF_IF_INIT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Platform IDE I/O support. ++# Platforms which provide IDE controllers can implement ++# this interface, indicating that IDE I/O macros are ++# available. ++# ++cdl_interface CYGINT_HAL_PLF_IF_IDE { ++ # Implemented by CYGPKG_HAL_I386_PCMB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# File I/O operations via GDB ++# This option enables support for various file I/O ++# operations using the GDB remote protocol to communicate ++# with GDB. The operations are then performed on the ++# debugging host by proxy. These operations are only ++# currently available by using a system call interface ++# to RedBoot. This may change in the future. ++# ++cdl_option CYGPKG_HAL_GDB_FILEIO { ++ # This option is not active ++ # ActiveIf constraint: CYGSEM_REDBOOT_BSP_SYSCALLS ++ # CYGSEM_REDBOOT_BSP_SYSCALLS (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 0 ++ # --> 0 ++}; ++ ++# Build Compiler sanity checking tests ++# Enabling this option causes compiler tests to be built. ++# ++cdl_option CYGPKG_HAL_BUILD_COMPILER_TESTS { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_HAL_TESTS ++ # Calculated: "tests/context tests/basic" ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES) ? " tests/cache" : "") ++ # . ((CYGPKG_HAL_BUILD_COMPILER_TESTS) ? " tests/cpp1 tests/vaargs" : "") ++ # . ((!CYGVAR_KERNEL_COUNTERS_CLOCK) ? " tests/intr" : "") ++}; ++ ++# Common HAL tests ++# This option specifies the set of tests for the common HAL. ++# ++cdl_component CYGPKG_HAL_TESTS { ++ # Calculated value: "tests/context tests/basic" ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES) ? " tests/cache" : "") ++ # . ((CYGPKG_HAL_BUILD_COMPILER_TESTS) ? " tests/cpp1 tests/vaargs" : "") ++ # . ((!CYGVAR_KERNEL_COUNTERS_CLOCK) ? " tests/intr" : "") ++ # CYGINT_HAL_TESTS_NO_CACHES == 0 ++ # CYGPKG_HAL_BUILD_COMPILER_TESTS == 0 ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # Flavor: data ++ # Current_value: tests/context tests/basic tests/cache ++}; ++ ++# > ++# Interface for cache presence ++# Some architectures and/or platforms do not have caches. By ++# implementing this interface, these can disable the various ++# cache-related tests. ++# ++cdl_interface CYGINT_HAL_TESTS_NO_CACHES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_HAL_TESTS ++ # Calculated: "tests/context tests/basic" ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES) ? " tests/cache" : "") ++ # . ((CYGPKG_HAL_BUILD_COMPILER_TESTS) ? " tests/cpp1 tests/vaargs" : "") ++ # . ((!CYGVAR_KERNEL_COUNTERS_CLOCK) ? " tests/intr" : "") ++ # option CYGPKG_KERNEL_TESTS ++ # Calculated: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++}; ++ ++# < ++# i386 architecture ++# The i386 architecture HAL package provides generic ++# support for this processor architecture. It is also ++# necessary to select a specific target platform HAL ++# package. ++# ++cdl_package CYGPKG_HAL_I386 { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # option CYGPKG_LIBM_CFLAGS_ADD ++ # DefaultValue: ((0 == CYGPKG_HAL_I386) && (0 == CYGPKG_HAL_SYNTH_I386)) ? "" : "-ffloat-store" ++}; ++ ++# > ++# SMP support ++# ++cdl_component CYGPKG_HAL_SMP_SUPPORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGHWR_HAL_I386_FPU_SWITCH_LAZY == 0 ++ # CYGHWR_HAL_I386_FPU_SWITCH_LAZY == 1 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_HAL_I386_PCMB_SMP_SUPPORT ++ # ActiveIf: CYGPKG_HAL_SMP_SUPPORT ++ # component CYGPKG_HAL_I386_PCMB_SMP_SUPPORT ++ # Calculated: CYGPKG_HAL_SMP_SUPPORT ++ # component CYGPKG_KERNEL_SMP_SUPPORT ++ # Requires: CYGPKG_HAL_SMP_SUPPORT ++}; ++ ++# > ++# Max number of CPUs supported ++# ++cdl_option CYGPKG_HAL_SMP_CPU_MAX { ++ # This option is not active ++ # The parent CYGPKG_HAL_SMP_SUPPORT is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 2 ++ # value_source default ++ # Default value: 2 ++}; ++ ++# < ++# Enable I386 FPU support ++# This component enables support for the ++# I386 floating point unit. ++# ++cdl_component CYGHWR_HAL_I386_FPU { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Use lazy FPU state switching ++# This option enables lazy FPU state switching. ++# The default behaviour for eCos is to save and ++# restore FPU state on every thread switch, interrupt ++# and exception. While simple and deterministic, this ++# approach can be expensive if the FPU is not used by ++# all threads. The alternative, enabled by this option, ++# is to use hardware features that allow the FPU state ++# of a thread to be left in the FPU after it has been ++# descheduled, and to allow the state to be switched to ++# a new thread only if it actually uses the FPU. Where ++# only one or two threads use the FPU this can avoid a ++# lot of unnecessary state switching. ++# ++cdl_option CYGHWR_HAL_I386_FPU_SWITCH_LAZY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_HAL_SMP_SUPPORT ++ # Requires: CYGHWR_HAL_I386_FPU_SWITCH_LAZY == 0 ++ # option CYGSEM_HAL_ROM_MONITOR ++ # Requires: !CYGHWR_HAL_I386_FPU_SWITCH_LAZY ++}; ++ ++# < ++# Enable Pentium class CPU features ++# This component enables support for various ++# features of Pentium class CPUs. ++# ++cdl_component CYGHWR_HAL_I386_PENTIUM { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Save/Restore SSE registers on context switch ++# This option enables SSE state switching. The default ++# behaviour for eCos is to ignore the SSE registers. ++# Enabling this option adds SSE state information to ++# every thread context. ++# ++cdl_option CYGHWR_HAL_I386_PENTIUM_SSE { ++ # This option is not active ++ # The parent CYGHWR_HAL_I386_PENTIUM is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Support extra Pentium registers in GDB stub ++# This option enables support for extra Pentium registers ++# in the GDB stub. These are registers such as CR0-CR4, and ++# all MSRs. Not all GDBs support these registers, so the ++# default behaviour for eCos is to not include them in the ++# GDB stub support code. ++# ++cdl_option CYGHWR_HAL_I386_PENTIUM_GDB_REGS { ++ # This option is not active ++ # The parent CYGHWR_HAL_I386_PENTIUM is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Linker script ++# ++cdl_option CYGBLD_LINKER_SCRIPT { ++ # Calculated value: "src/i386.ld" ++ # Flavor: data ++ # Current_value: src/i386.ld ++}; ++ ++# Implementations of hal_i386_mem_real_region_top() ++# ++cdl_interface CYGINT_HAL_I386_MEM_REAL_REGION_TOP { ++ # Implemented by CYGPKG_HAL_I386_PCMB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# Provide the exec command in RedBoot ++# This option contains requirements for booting linux ++# from RedBoot. The component is enabled/disabled from ++# RedBoots CDL. ++# ++cdl_component CYGPKG_REDBOOT_I386_LINUX_EXEC { ++ # This option is not active ++ # ActiveIf constraint: CYGBLD_BUILD_REDBOOT_WITH_EXEC ++ # CYGBLD_BUILD_REDBOOT_WITH_EXEC (unknown) == 0 ++ # --> 0 ++ ++ # There is no associated value. ++}; ++ ++# > ++# Address for the trampoline code ++# This is the address to where the trampoline code is ++# copied. The trampoline copies the image to its ++# final location and jumps to its entry point. ++# ++cdl_option CYGHWR_REDBOOT_I386_TRAMPOLINE_ADDRESS { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_I386_LINUX_EXEC is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x0007C000 ++ # value_source default ++ # Default value: 0x0007C000 ++}; ++ ++# < ++# i386 generic target ++# This package provides support for generic IA32 CPU variants. ++# Any CPU from an 80386 to the latest Pentium/Athlon should work ++# with this variant HAL. Essentially this variant is empty, it ++# just avoids providing any configuration to the generic architecture ++# support in the architecture HAL. ++# ++cdl_package CYGPKG_HAL_I386_GENERIC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# i386 PC Target ++# The i386 PC Target HAL package provides the ++# support needed to run eCos binaries on an i386 PC. ++# ++cdl_package CYGPKG_HAL_I386_PC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVS_ETH_I386_PC_RLTK8139 ++ # ActiveIf: CYGPKG_HAL_I386_PC ++ # package CYGPKG_DEVICES_WALLCLOCK_I386_PC ++ # ActiveIf: CYGPKG_HAL_I386_PC ++}; ++ ++# > ++# How to discover the size of available RAM. ++# It is possible for the HAL to discover the ++# size of RAM In several ways. Currently this ++# can be done by querying the BIOS or by ++# hardcoding the values into the executable. ++# ++cdl_component CYGPKG_HAL_I386_PC_MEMSIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value BIOS ++ # value_source default ++ # Default value: BIOS ++ # Legal values: "BIOS" "HARDCODE" ++ ++ # The following properties are affected by this value ++ # option CYGNUM_HAL_I386_PC_MEMSIZE_BASE ++ # ActiveIf: CYGPKG_HAL_I386_PC_MEMSIZE == "HARDCODE" ++ # option CYGNUM_HAL_I386_PC_MEMSIZE_EXTENDED ++ # ActiveIf: CYGPKG_HAL_I386_PC_MEMSIZE == "HARDCODE" ++}; ++ ++# > ++# Amount of Base RAM available. ++# ++cdl_option CYGNUM_HAL_I386_PC_MEMSIZE_BASE { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_HAL_I386_PC_MEMSIZE == "HARDCODE" ++ # CYGPKG_HAL_I386_PC_MEMSIZE == BIOS ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x000F0000 ++ # value_source default ++ # Default value: 0x000F0000 ++}; ++ ++# Amount of Extended RAM available. ++# ++cdl_option CYGNUM_HAL_I386_PC_MEMSIZE_EXTENDED { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_HAL_I386_PC_MEMSIZE == "HARDCODE" ++ # CYGPKG_HAL_I386_PC_MEMSIZE == BIOS ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x00100000 ++ # value_source default ++ # Default value: 0x00100000 ++}; ++ ++# < ++# Startup type ++# It is possible to configure eCos for the PC target to build for: ++# RAM startup (generally when being run under an existing ++# Monitor program like RedBoot); FLOPPY startup (for writing ++# to a floppy disk, which can then be used for booting ++# on PCs with a standard BIOS), GRUB startup (for being booted ++# by the GRUB bootloader) ROM startup (for writing ++# straight to a boot ROM/Flash). ROM startup is experimental ++# at this time. ++# ++cdl_component CYG_HAL_STARTUP { ++ # Flavor: data ++ user_value RAM ++ # value_source user ++ # Default value: RAM ++ # Legal values: "RAM" "FLOPPY" "ROM" "GRUB" ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_I386_ROMBOOT ++ # Calculated: CYG_HAL_STARTUP == "ROM" ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGHWR_HAL_I386_PC_LOAD_HIGH ++ # Requires: CYG_HAL_STARTUP == "RAM" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGHWR_HAL_I386_PC_LOAD_HIGH ++ # Requires: CYG_HAL_STARTUP == "RAM" || CYG_HAL_STARTUP == "GRUB" ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_grub_hi" : "i386_pc_grub") : "i386_pc_floppy" ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_grub_hi" : "i386_pc_grub") : "i386_pc_floppy" ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_grub_hi" : "i386_pc_grub") : "i386_pc_floppy" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGSEM_HAL_ROM_MONITOR ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGSEM_HAL_ROM_MONITOR ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGSEM_HAL_ROM_MONITOR ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGSEM_HAL_USE_ROM_MONITOR ++ # DefaultValue: CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 ++ # option CYGSEM_HAL_USE_ROM_MONITOR ++ # Requires: CYG_HAL_STARTUP == "RAM" ++ # option CYGBLD_BUILD_REDBOOT_BIN_FLOPPY ++ # ActiveIf: CYG_HAL_STARTUP == "FLOPPY" ++ # option CYGBLD_BUILD_REDBOOT_BIN_ROM ++ # ActiveIf: CYG_HAL_STARTUP == "ROM" ++ # option CYGSEM_HAL_INSTALL_MMU_TABLES ++ # DefaultValue: CYG_HAL_STARTUP != "RAM" ++ # component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # DefaultValue: (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS || CYG_HAL_STARTUP == "RAM") ? 1 : 0 ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # DefaultValue: CYG_HAL_STARTUP != "RAM" || !CYGSEM_HAL_USE_ROM_MONITOR ++}; ++ ++# Build ROM bootstrap code ++# ++cdl_option CYGBLD_BUILD_I386_ROMBOOT { ++ # Calculated value: CYG_HAL_STARTUP == "ROM" ++ # CYG_HAL_STARTUP == RAM ++ # Flavor: bool ++ # Current value: 0 ++}; ++ ++# Diagnostic serial port baud rate ++# This option selects the baud rate used for the diagnostic port. ++# Note: this should match the value chosen for the GDB port if the ++# diagnostic and GDB port are the same. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 38400 ++ # value_source default ++ # Default value: 38400 ++ # Legal values: 9600 19200 38400 57600 115200 ++}; ++ ++# GDB serial port baud rate ++# This option controls the baud rate used for the GDB connection. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 38400 ++ # value_source default ++ # Default value: 38400 ++ # Legal values: 9600 19200 38400 57600 115200 ++}; ++ ++# Number of communication channels on the board ++# This define the number of serial ports that will be used by the HAL. ++# Ports 0 and 1 equate to COM1 and COM2 and port 2 is the PC screen and ++# keyboard. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 3 ++ # value_source default ++ # Default value: CYGSEM_HAL_I386_PC_DIAG_SCREEN ? 3 : 2 ++ # CYGSEM_HAL_I386_PC_DIAG_SCREEN == 1 ++ # --> 3 ++ # Legal values: 1 to 3 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL ++ # LegalValues: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT ++ # LegalValues: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL ++ # LegalValues: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++}; ++ ++# Debug serial port ++# On PCs with two serial ports, this option ++# chooses which port will be used to connect to a host ++# running GDB. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS == 3 ++}; ++ ++# Default console channel. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT { ++ # Flavor: data ++ user_value 2 ++ # value_source user ++ # Default value: 0 ++ # Legal values: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS == 3 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL ++ # DefaultValue: CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT ++}; ++ ++# Diagnostic serial port ++# On PCs with two serial ports, this option ++# chooses which port will be used for diagnostic output. ++# Selecting port 2 will cause the PC screen to be used. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 2 ++ # value_source default ++ # Default value: CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT ++ # CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT == 2 ++ # --> 2 ++ # Legal values: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS == 3 ++}; ++ ++# Output to PC screen ++# This option enables use of the PC screen and keyboard as a ++# third virtual serial device. ++# ++cdl_option CYGSEM_HAL_I386_PC_DIAG_SCREEN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS ++ # DefaultValue: CYGSEM_HAL_I386_PC_DIAG_SCREEN ? 3 : 2 ++ # option CYGNUM_HAL_I386_PC_STARTUP_VIDEO_MODE ++ # Requires: !CYGSEM_HAL_I386_PC_DIAG_SCREEN ++}; ++ ++# Load into higher memory (2MB) ++# This option enables building RAM applications ++# which have a start address outside of the area ++# used by redboot_GRUB. ++# ++cdl_option CYGHWR_HAL_I386_PC_LOAD_HIGH { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++ # Requires: CYG_HAL_STARTUP == "RAM" || CYG_HAL_STARTUP == "GRUB" ++ # CYG_HAL_STARTUP == RAM ++ # CYG_HAL_STARTUP == RAM ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_grub_hi" : "i386_pc_grub") : "i386_pc_floppy" ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_grub_hi" : "i386_pc_grub") : "i386_pc_floppy" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++}; ++ ++# Memory layout ++# ++cdl_component CYGHWR_MEMORY_LAYOUT { ++ # Calculated value: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_grub_hi" : "i386_pc_grub") : "i386_pc_floppy" ++ # CYG_HAL_STARTUP == RAM ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 1 ++ # CYG_HAL_STARTUP == RAM ++ # CYG_HAL_STARTUP == RAM ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 1 ++ # Flavor: data ++ # Current_value: i386_pc_ram_hi ++}; ++ ++# > ++# Memory layout linker script fragment ++# ++cdl_option CYGHWR_MEMORY_LAYOUT_LDI { ++ # Calculated value: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # CYG_HAL_STARTUP == RAM ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 1 ++ # CYG_HAL_STARTUP == RAM ++ # CYG_HAL_STARTUP == RAM ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 1 ++ # Flavor: data ++ # Current_value: ++}; ++ ++# Memory layout header file ++# ++cdl_option CYGHWR_MEMORY_LAYOUT_H { ++ # Calculated value: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : "" ++ # CYG_HAL_STARTUP == RAM ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 1 ++ # CYG_HAL_STARTUP == RAM ++ # CYG_HAL_STARTUP == RAM ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 1 ++ # Flavor: data ++ # Current_value: ++}; ++ ++# < ++# < ++# i386 PC Motherboard Support ++# The i386 PC Motherboard HAL package provides the ++# support needed to run eCos binaries on an i386 PC ++# using a standard motherboard. This package provides ++# support for the standard PC devices: timers, interrupt ++# controller, serial ports, ASCII display, keyboard, PCI ++# bus etc. that are found on all PC compatible platforms. ++# It does not provide support for devices that may also be ++# found on modern motherboards, such as ethernet, sound and ++# video devices. These are supported by drivers elsewhere. ++# ++cdl_package CYGPKG_HAL_I386_PCMB { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_SERIAL_I386_PC ++ # ActiveIf: CYGPKG_HAL_I386_PCMB ++}; ++ ++# > ++# Real-time clock constants. ++# The RTC period is based on the clock input ++# to the 8254, which is 1193180 Hz. ++# CYGNUM_HAL_RTC_PERIOD is set for 100 ticks ++# per second. ++# ++cdl_component CYGNUM_HAL_RTC_CONSTANTS { ++ # There is no associated value. ++}; ++ ++# > ++# Real-time clock numerator ++# ++cdl_option CYGNUM_HAL_RTC_NUMERATOR { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1000000000 ++ # value_source default ++ # Default value: 1000000000 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY_TICKS ++ # Calculated: ((CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++ # option CYGNUM_ETHERCATMASTER_ROUTE_PERIOD_TICKS ++ # Calculated: ((CYGNUM_ETHERCATMASTER_ROUTE_PERIOD * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++}; ++ ++# Real-time clock denominator ++# ++cdl_option CYGNUM_HAL_RTC_DENOMINATOR { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 100 ++ # value_source default ++ # Default value: 100 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY_TICKS ++ # Calculated: ((CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++ # option CYGNUM_ETHERCATMASTER_ROUTE_PERIOD_TICKS ++ # Calculated: ((CYGNUM_ETHERCATMASTER_ROUTE_PERIOD * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++}; ++ ++# Real-time clock period ++# ++cdl_option CYGNUM_HAL_RTC_PERIOD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 11932 ++ # value_source default ++ # Default value: 11932 ++}; ++ ++# < ++# Search entire PCI space ++# This option enables searching the entire PCI address space, including ++# up to 256 busses, etc. Probably only useful when there are bridges or ++# other PCI expanding devices (such as a board with it's own PCI bus) ++# in the system. If disabled, the system will revert to the default ++# PCI space size (typically 8 busses). ++# ++cdl_option CYGSEM_HAL_I386_PC_LARGE_PCI_SPACE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Switch the display to an alternative video mode ++# This option can be used when building RedBoot to switch ++# the display to a suitable mode, typically before running ++# an eCos graphical application. The mode switch involves ++# calling the PC Video BIOS, so needs to happen while the ++# processor is still running in real mode. Some information ++# about the video BIOS, the current mode, and the available ++# modes will be written to video memory so that the eCos ++# application knows what happened. ++# Different graphics cards use different numbers for the ++# various modes, so there is no simple way of knowing which ++# mode should be specified to achieve the desired resolution. ++# Instead RedBoot can be built with a suitable default, for ++# example 0x0100, and then a simple eCos application can be ++# built using an appropriate eCos configuration and ++# run to find out about all the available mode. RedBoot can ++# then be reconfigured and rebuilt to use a suitable mode. ++# The PC motherboard support package comes with a simple ++# eCos program gfxmode.c which can be used for this. ++# ++cdl_option CYGNUM_HAL_I386_PC_STARTUP_VIDEO_MODE { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_REDBOOT ++ # CYGPKG_REDBOOT (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++ # Requires: !CYGSEM_HAL_I386_PC_DIAG_SCREEN ++ # CYGSEM_HAL_I386_PC_DIAG_SCREEN == 1 ++ # --> 0 ++}; ++ ++# ++cdl_component CYGPKG_HAL_I386_PCMB_SMP_SUPPORT { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_HAL_SMP_SUPPORT ++ # CYGPKG_HAL_SMP_SUPPORT == 0 ++ # --> 0 ++ ++ # Calculated value: CYGPKG_HAL_SMP_SUPPORT ++ # CYGPKG_HAL_SMP_SUPPORT == 0 ++ # Flavor: bool ++ # Current value: 0 ++}; ++ ++# Support for gprof profiling ++# The PC HAL support can provide a profiling timer for use ++# by the gprof package. However the hardware only provides a ++# single source of timer interrupts so this must be shared ++# between the system clock and the profiling code. The current ++# implementation requires that the system clock be initialized ++# first (which happens in a static constructor with priority ++# CYG_INIT_CLOCK), then profiling can be enabled via a call ++# to profile_on(). ++# ++cdl_option CYGFUN_HAL_I386_PCMB_GPROF_SUPPORT { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_PROFILE_GPROF ++ # CYGPKG_PROFILE_GPROF (unknown) == 0 ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++}; ++ ++# Enable PC screen support ++# This option enables support for the PC screen and ++# keyboard. These are combined into a virtual serial ++# device that may be used for diagnostic output. ++# Note that there is little point in trying to use it ++# as a debug channel. ++# ++cdl_interface CYGINT_HAL_I386_PCMB_SCREEN_SUPPORT { ++ # Implemented by CYGSEM_HAL_I386_PC_DIAG_SCREEN, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# < ++# < ++# < ++# I/O sub-system ++# doc: ref/io.html ++# The eCos system is supplied with a number of different ++# device drivers. This option enables the basic I/O system ++# support which is the basis for all drivers. ++# ++cdl_package CYGPKG_IO { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ERROR ++ # CYGPKG_ERROR == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_SERIAL ++ # ActiveIf: CYGPKG_IO ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGPKG_IO ++ # option CYGPKG_IO_FILEIO_DEVFS_SUPPORT ++ # ActiveIf: CYGPKG_IO ++}; ++ ++# > ++# Debug I/O sub-system ++# This option enables verbose messages to be displayed on the ++# system 'diag' device during I/O system initialization. ++# ++cdl_option CYGDBG_IO_INIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Basic support for file based I/O ++# This option control support for simple file I/O primitives. It is only ++# present if the FILEIO package is not included. ++# ++cdl_component CYGPKG_IO_FILE_SUPPORT { ++ # This option is not active ++ # ActiveIf constraint: !CYGPKG_IO_FILEIO ++ # CYGPKG_IO_FILEIO == current ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Number of open files ++# This option controls the number of open files. ++# ++cdl_option CYGPKG_IO_NFILE { ++ # This option is not active ++ # The parent CYGPKG_IO_FILE_SUPPORT is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++}; ++ ++# < ++# PCI configuration library ++# doc: ref/io-pci.html ++# The PCI configuration library provides initialization of devices ++# on the PCI bus. Functions to find and access these devices are ++# also provided. ++# ++cdl_package CYGPKG_IO_PCI { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# > ++# PCI build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_PCI_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the PCI configuration library. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_IO_PCI_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the PCI configuration library. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_IO_PCI_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Enable debugging. ++# This option enables minimal debugging of the PCI library. ++# In particular, it will print information about devices as the ++# PCI bus is being scanned/searched. ++# ++cdl_option CYGPKG_IO_PCI_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# PCI tests ++# This option specifies the set of tests for the PCI configuration library. ++# ++cdl_option CYGPKG_IO_PCI_TESTS { ++ # Calculated value: "tests/pci1 tests/pci2" ++ # Flavor: data ++ # Current_value: tests/pci1 tests/pci2 ++}; ++ ++# Writeback Interrupt Line register. ++# This option causes a PCI device interrupt vector to be ++# written to the Interrupt Line register in config space. ++# This is traditionally done by a BIOS so that device ++# drivers can read the interrupt vector directly from ++# device configuration space. ++# ++cdl_option CYGPKG_IO_PCI_CONFIGURE_INTLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# < ++# Serial device drivers ++# doc: ref/io.html ++# This option enables drivers for basic I/O services on ++# serial devices. ++# ++cdl_package CYGPKG_IO_SERIAL { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO ++ # CYGPKG_IO == current ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ERROR ++ # CYGPKG_ERROR == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_SERIAL_GENERIC_16X5X ++ # ActiveIf: CYGPKG_IO_SERIAL ++ # package CYGPKG_IO_SERIAL_I386_PC ++ # ActiveIf: CYGPKG_IO_SERIAL ++}; ++ ++# > ++# Support non-blocking read and write calls ++# This option enables extra code in the generic serial driver ++# which allows clients to switch read() and write() call ++# semantics from blocking to non-blocking. ++# ++cdl_option CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Driver requires block transfer callback functions ++# Some low-level drivers can be optimized to transfer blocks ++# of data instead of a single character at a time. These usually ++# rely on a hardware FIFO of some sort. ++# ++cdl_interface CYGINT_IO_SERIAL_BLOCK_TRANSFER { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Serial driver supports line status ++# ++cdl_interface CYGINT_IO_SERIAL_LINE_STATUS_HW { ++ # Implemented by CYGPKG_IO_SERIAL_I386_PC_SERIAL0, active, enabled ++ # Implemented by CYGPKG_IO_SERIAL_I386_PC_SERIAL1, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 2 ++ ++ # The following properties are affected by this value ++ # option CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS ++ # Requires: CYGINT_IO_SERIAL_LINE_STATUS_HW > 0 ++ # option CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS ++ # DefaultValue: 0 != CYGINT_IO_SERIAL_LINE_STATUS_HW ++}; ++ ++# Support line status callbacks ++# This option indicates that if the serial driver supports it, ++# serial line status and modem status information should be ++# propagated to higher layers via callbacks. ++# ++cdl_option CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGINT_IO_SERIAL_LINE_STATUS_HW ++ # CYGINT_IO_SERIAL_LINE_STATUS_HW == 2 ++ # --> 1 ++ # Requires: CYGINT_IO_SERIAL_LINE_STATUS_HW > 0 ++ # CYGINT_IO_SERIAL_LINE_STATUS_HW == 2 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGOPT_IO_SERIAL_FLOW_CONTROL_HW ++ # Requires: CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS ++ # option CYGOPT_IO_SERIAL_FLOW_CONTROL_HW ++ # DefaultValue: CYGINT_IO_SERIAL_FLOW_CONTROL_HW > 0 ? CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS : 0 ++}; ++ ++# Flow control ++# This component contains options related to flow control. ++# ++cdl_component CYGPKG_IO_SERIAL_FLOW_CONTROL { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: (CYGOPT_IO_SERIAL_FLOW_CONTROL_SOFTWARE || CYGOPT_IO_SERIAL_FLOW_CONTROL_HW) ++ # CYGOPT_IO_SERIAL_FLOW_CONTROL_SOFTWARE == 0 ++ # CYGOPT_IO_SERIAL_FLOW_CONTROL_HW == 0 ++ # --> 0 ++}; ++ ++# > ++# Software flow control ++# This component enables support of software flow control. ++# ++cdl_component CYGOPT_IO_SERIAL_FLOW_CONTROL_SOFTWARE { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_FLOW_CONTROL is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_IO_SERIAL_FLOW_CONTROL ++ # Requires: (CYGOPT_IO_SERIAL_FLOW_CONTROL_SOFTWARE || CYGOPT_IO_SERIAL_FLOW_CONTROL_HW) ++}; ++ ++# > ++# Start character ++# This option specifies the ascii character used to ++# indicate that transmission should start. ++# ++cdl_option CYGDAT_IO_SERIAL_FLOW_CONTROL_XON_CHAR { ++ # This option is not active ++ # The parent CYGOPT_IO_SERIAL_FLOW_CONTROL_SOFTWARE is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 17 ++ # value_source default ++ # Default value: 17 ++ # Legal values: 0 to 255 ++}; ++ ++# Stop character ++# This option specifies the ascii character used to ++# indicate that transmission should stop. ++# ++cdl_option CYGDAT_IO_SERIAL_FLOW_CONTROL_XOFF_CHAR { ++ # This option is not active ++ # The parent CYGOPT_IO_SERIAL_FLOW_CONTROL_SOFTWARE is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 19 ++ # value_source default ++ # Default value: 19 ++ # Legal values: 0 to 255 ++}; ++ ++# < ++# Hardware flow control ++# If the hardware supports it, this option allows hardware ++# flow control to be enabled. This may be in the form of ++# either or both of RTS/CTS, or DSR/DTR flow control. ++# ++cdl_option CYGOPT_IO_SERIAL_FLOW_CONTROL_HW { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_FLOW_CONTROL is disabled ++ # ActiveIf constraint: CYGINT_IO_SERIAL_FLOW_CONTROL_HW > 0 ++ # CYGINT_IO_SERIAL_FLOW_CONTROL_HW == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGINT_IO_SERIAL_FLOW_CONTROL_HW > 0 ? CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS : 0 ++ # CYGINT_IO_SERIAL_FLOW_CONTROL_HW == 0 ++ # CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS == 1 ++ # --> 0 ++ # Requires: CYGINT_IO_SERIAL_FLOW_CONTROL_HW > 0 ++ # CYGINT_IO_SERIAL_FLOW_CONTROL_HW == 0 ++ # --> 0 ++ # Requires: CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS ++ # CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_IO_SERIAL_FLOW_CONTROL ++ # Requires: (CYGOPT_IO_SERIAL_FLOW_CONTROL_SOFTWARE || CYGOPT_IO_SERIAL_FLOW_CONTROL_HW) ++}; ++ ++# Serial h/w supports hardware flow control ++# ++cdl_interface CYGINT_IO_SERIAL_FLOW_CONTROL_HW { ++ # Implemented by CYGPKG_IO_SERIAL_I386_PC_SERIAL0, active, enabled ++ # Implemented by CYGPKG_IO_SERIAL_I386_PC_SERIAL1, active, enabled ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_FLOW_CONTROL is disabled ++ ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 2 ++ ++ # The following properties are affected by this value ++ # option CYGOPT_IO_SERIAL_FLOW_CONTROL_HW ++ # ActiveIf: CYGINT_IO_SERIAL_FLOW_CONTROL_HW > 0 ++ # option CYGOPT_IO_SERIAL_FLOW_CONTROL_HW ++ # Requires: CYGINT_IO_SERIAL_FLOW_CONTROL_HW > 0 ++ # option CYGOPT_IO_SERIAL_FLOW_CONTROL_HW ++ # DefaultValue: CYGINT_IO_SERIAL_FLOW_CONTROL_HW > 0 ? CYGOPT_IO_SERIAL_SUPPORT_LINE_STATUS : 0 ++}; ++ ++# Default flow control method ++# This option allows a default flow control method ++# to be defined. Combinations of flow control methods ++# may also be set, but this is only possible by ++# using the cyg_io_set_config() API in source code. ++# ++cdl_option CYGDAT_IO_SERIAL_FLOW_CONTROL_DEFAULT { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_FLOW_CONTROL is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value NONE ++ # value_source default ++ # Default value: NONE ++ # Legal values: "NONE" "XONXOFF" "RTSCTS" "DSRDTR" ++}; ++ ++# Rx flow control low water mark ++# This sets the water mark used for determining ++# when to disable flow control, expressed ++# as a percentage of the buffer size. When the ++# receive buffer size is lower than this percentage, ++# if the transmitter had previously been throttled, it ++# will now be informed it can restart. ++# ++cdl_option CYGNUM_IO_SERIAL_FLOW_CONTROL_LOW_WATER_PERCENT { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_FLOW_CONTROL is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 33 ++ # value_source default ++ # Default value: 33 ++ # Legal values: 1 to 100 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_IO_SERIAL_FLOW_CONTROL_HIGH_WATER_PERCENT ++ # Requires: CYGNUM_IO_SERIAL_FLOW_CONTROL_HIGH_WATER_PERCENT >= CYGNUM_IO_SERIAL_FLOW_CONTROL_LOW_WATER_PERCENT ++}; ++ ++# Rx flow control high water mark ++# This sets the water mark used for determining ++# when to enable flow control, expressed ++# as a percentage of the buffer size. When the ++# receive buffer size exceeds this percentage, ++# signals are sent to the transmitter to tell it ++# to throttle tranmission. ++# ++cdl_option CYGNUM_IO_SERIAL_FLOW_CONTROL_HIGH_WATER_PERCENT { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_FLOW_CONTROL is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 66 ++ # value_source default ++ # Default value: 66 ++ # Legal values: 1 to 100 ++ # Requires: CYGNUM_IO_SERIAL_FLOW_CONTROL_HIGH_WATER_PERCENT >= CYGNUM_IO_SERIAL_FLOW_CONTROL_LOW_WATER_PERCENT ++ # CYGNUM_IO_SERIAL_FLOW_CONTROL_HIGH_WATER_PERCENT == 0 ++ # CYGNUM_IO_SERIAL_FLOW_CONTROL_LOW_WATER_PERCENT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_IO_SERIAL_FLOW_CONTROL_HIGH_WATER_PERCENT ++ # Requires: CYGNUM_IO_SERIAL_FLOW_CONTROL_HIGH_WATER_PERCENT >= CYGNUM_IO_SERIAL_FLOW_CONTROL_LOW_WATER_PERCENT ++}; ++ ++# < ++# TTY-mode serial device drivers ++# This option enables a simple terminal-like device driver ++# that can be used for serial devices that interact with humans, ++# such as a system console. ++# ++cdl_component CYGPKG_IO_SERIAL_TTY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# HAL/diag serial device driver ++# This option enables the use of the HAL diagnostic channel ++# via the standard I/O drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_HALDIAG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE == "\"/dev/ttydiag\"" ? CYGPKG_IO_SERIAL_HALDIAG : 1) ++}; ++ ++# Console device name ++# This option selects the TTY device to use for the console. ++# ++cdl_option CYGDAT_IO_SERIAL_TTY_CONSOLE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ttydiag\"" ++ # value_source default ++ # Default value: "\"/dev/ttydiag\"" ++ ++ # The following properties are affected by this value ++ # option CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE ++ # DefaultValue: CYGDAT_IO_SERIAL_TTY_CONSOLE ? CYGDAT_IO_SERIAL_TTY_CONSOLE : "\"/dev/null\"" ++ # option CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE ++ # DefaultValue: CYGDAT_IO_SERIAL_TTY_CONSOLE ? CYGDAT_IO_SERIAL_TTY_CONSOLE : "\"/dev/null\"" ++}; ++ ++# TTY mode HAL/diag channel ++# This option causes '/dev/ttydiag' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TTY_TTYDIAG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# TTY mode channel #0 ++# This option causes '/dev/tty0' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TTY_TTY0 { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++}; ++ ++# > ++# TTY mode channel #0 device ++# This option selects the physical device to use for ++# '/dev/tty0'. ++# ++cdl_option CYGDAT_IO_SERIAL_TTY_TTY0_DEV { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser0\"" ++ # value_source default ++ # Default value: "\"/dev/ser0\"" ++}; ++ ++# < ++# TTY mode channel #1 ++# This option causes '/dev/tty1' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TTY_TTY1 { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++}; ++ ++# > ++# TTY mode channel #1 device ++# This option selects the physical device to use for ++# '/dev/tty1'. ++# ++cdl_option CYGDAT_IO_SERIAL_TTY_TTY1_DEV { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser1\"" ++ # value_source default ++ # Default value: "\"/dev/ser1\"" ++}; ++ ++# < ++# TTY mode channel #2 ++# This option causes '/dev/tty2' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TTY_TTY2 { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++}; ++ ++# > ++# TTY mode channel #2 device ++# This option selects the physical device to use for ++# '/dev/tty2'. ++# ++cdl_option CYGDAT_IO_SERIAL_TTY_TTY2_DEV { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser2\"" ++ # value_source default ++ # Default value: "\"/dev/ser2\"" ++}; ++ ++# < ++# TTY mode channel #3 ++# This option causes '/dev/tty3' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TTY_TTY3 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# TTY mode channel #3 device ++# This option selects the physical device to use for ++# '/dev/tty3'. ++# ++cdl_option CYGDAT_IO_SERIAL_TTY_TTY3_DEV { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_TTY_TTY3 is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser3\"" ++ # value_source default ++ # Default value: "\"/dev/ser3\"" ++}; ++ ++# < ++# < ++# Termios compatible TTY drivers ++# This option enables terminal drivers compatible with ++# POSIX termios. ++# ++cdl_component CYGPKG_IO_SERIAL_TERMIOS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGPKG_ISOINFRA && 0 != CYGPKG_IO_FILEIO && 0 != CYGINT_ISO_ERRNO_CODES && 0 != CYGINT_ISO_ERRNO ++ # CYGPKG_ISOINFRA == current ++ # CYGPKG_IO_FILEIO == current ++ # CYGINT_ISO_ERRNO_CODES == 1 ++ # CYGINT_ISO_ERRNO == 1 ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGPKG_IO_FILEIO ++ # CYGPKG_IO_FILEIO == current ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO_CODES ++ # CYGINT_ISO_ERRNO_CODES == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO ++ # CYGINT_ISO_ERRNO == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++}; ++ ++# > ++# Interface for termios tty driver file enabling ++# ++cdl_interface CYGINT_IO_SERIAL_TERMIOS_TERMIOS_TTY { ++ # Implemented by CYGPKG_IO_SERIAL_TERMIOS_TERMIOS0, active, disabled ++ # Implemented by CYGPKG_IO_SERIAL_TERMIOS_TERMIOS1, active, disabled ++ # Implemented by CYGPKG_IO_SERIAL_TERMIOS_TERMIOS2, active, disabled ++ # Implemented by CYGPKG_IO_SERIAL_TERMIOS_TERMIOS3, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_IO_SERIAL_TERMIOS_TERMIOS_TTY ++ # ActiveIf: CYGINT_IO_SERIAL_TERMIOS_TERMIOS_TTY > 0 ++}; ++ ++# Build termios tty driver file ++# ++cdl_option CYGBLD_IO_SERIAL_TERMIOS_TERMIOS_TTY { ++ # This option is not active ++ # ActiveIf constraint: CYGINT_IO_SERIAL_TERMIOS_TERMIOS_TTY > 0 ++ # CYGINT_IO_SERIAL_TERMIOS_TERMIOS_TTY == 0 ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# Termios TTY channel #0 ++# This option causes '/dev/termios0' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS0 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Termios TTY channel #0 device ++# This option selects the physical device to use for ++# '/dev/termios0'. ++# ++cdl_option CYGDAT_IO_SERIAL_TERMIOS_TERMIOS0_DEV { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_TERMIOS_TERMIOS0 is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser0\"" ++ # value_source default ++ # Default value: "\"/dev/ser0\"" ++}; ++ ++# < ++# Termios TTY channel #1 ++# This option causes '/dev/termios1' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS1 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Termios TTY channel #1 device ++# This option selects the physical device to use for ++# '/dev/termios1'. ++# ++cdl_option CYGDAT_IO_SERIAL_TERMIOS_TERMIOS1_DEV { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_TERMIOS_TERMIOS1 is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser1\"" ++ # value_source default ++ # Default value: "\"/dev/ser1\"" ++}; ++ ++# < ++# Termios TTY channel #2 ++# This option causes '/dev/termios2' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS2 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Termios TTY channel #2 device ++# This option selects the physical device to use for ++# '/dev/termios2'. ++# ++cdl_option CYGDAT_IO_SERIAL_TERMIOS_TERMIOS2_DEV { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_TERMIOS_TERMIOS2 is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser2\"" ++ # value_source default ++ # Default value: "\"/dev/ser2\"" ++}; ++ ++# < ++# Termios TTY channel #3 ++# This option causes '/dev/termios3' to be included in the standard ++# drivers. ++# ++cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS3 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Termios TTY channel #3 device ++# This option selects the physical device to use for ++# '/dev/termios3'. ++# ++cdl_option CYGDAT_IO_SERIAL_TERMIOS_TERMIOS3_DEV { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_TERMIOS_TERMIOS3 is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser3\"" ++ # value_source default ++ # Default value: "\"/dev/ser3\"" ++}; ++ ++# < ++# Support signals ++# This option selects whether those parts of the termios ++# interface involving signals is supported. This includes ++# BRKINT mode, the INTR and QUIT characters, and whether ++# SIGHUP is sent on terminal close. ++# ++cdl_option CYGSEM_IO_SERIAL_TERMIOS_USE_SIGNALS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGINT_ISO_SIGNAL_NUMBERS != 0 && CYGINT_ISO_SIGNAL_IMPL != 0 ++ # CYGINT_ISO_SIGNAL_NUMBERS == 1 ++ # CYGINT_ISO_SIGNAL_IMPL == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_SIGNAL_NUMBERS ++ # CYGINT_ISO_SIGNAL_NUMBERS == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_SIGNAL_IMPL ++ # CYGINT_ISO_SIGNAL_IMPL == 1 ++ # --> 1 ++}; ++ ++# < ++# Hardware serial device drivers ++# This option enables the hardware device drivers ++# for the current platform. ++# ++cdl_component CYGPKG_IO_SERIAL_DEVICES { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_IO_SERIAL_TESTS ++ # Calculated: CYGPKG_IO_SERIAL_DEVICES ? "tests/serial1 tests/serial2 tests/serial3 tests/serial4 tests/serial5 tests/tty1 tests/tty2 tests/flow1 tests/flow2" : "" ++}; ++ ++# > ++# 16x5x generic serial device drivers ++# This option enables the serial device drivers for the ++# 16x5x compatiple controllers. ++# ++cdl_package CYGPKG_IO_SERIAL_GENERIC_16X5X { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO_SERIAL ++ # CYGPKG_IO_SERIAL == current ++ # --> 1 ++ # ActiveIf constraint: CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED ++ # CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED == 2 ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ERROR ++ # CYGPKG_ERROR == current ++ # --> 1 ++}; ++ ++# > ++# 16x5x FIFO support ++# Options to configure the FIFO on a 16550 (or above) variant. ++# ++cdl_component CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Threshold for RX interrupt on 16550 FIFO ++# This options configures the threshold value at which ++# the RX interrupt occurs when a FIFO is used. (16550 and ++# above only), this may be after 1, 4, 8 or 14 characters. ++# ++cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO_RX_THRESHOLD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Legal values: 14 8 4 1 ++}; ++ ++# 16x5x TX FIFO size ++# Configures the maximum number of bytes written to the ++# 16x5x UART transmit FIFO when the TX interrupt occurs. ++# ++cdl_option CYGNUM_IO_SERIAL_GENERIC_16X5X_FIFO_TX_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++}; ++ ++# < ++# Serial device driver build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_SERIAL_GENERIC_16X5X_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building these serial device drivers. These flags are ++# used in addition to the set of global flags. ++# ++cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building these serial device drivers. These flags are ++# removed from the set of global flags if present. ++# ++cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# < ++# PC serial device drivers ++# This option enables the serial device drivers for the ++# PC. ++# ++cdl_package CYGPKG_IO_SERIAL_I386_PC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO_SERIAL ++ # CYGPKG_IO_SERIAL == current ++ # --> 1 ++ # ActiveIf constraint: CYGPKG_HAL_I386_PCMB ++ # CYGPKG_HAL_I386_PCMB == current ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ERROR ++ # CYGPKG_ERROR == current ++ # --> 1 ++}; ++ ++# > ++# Generic 16x5x serial driver required ++# ++cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED { ++ # Implemented by CYGPKG_IO_SERIAL_I386_PC_SERIAL0, active, enabled ++ # Implemented by CYGPKG_IO_SERIAL_I386_PC_SERIAL1, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 2 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_SERIAL_GENERIC_16X5X ++ # ActiveIf: CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED ++}; ++ ++# PC serial port 0 driver ++# This option includes the serial device driver for port 0 on the ++# PC. ++# ++cdl_component CYGPKG_IO_SERIAL_I386_PC_SERIAL0 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_IO_SERIAL_I386_PC_TESTING ++ # ActiveIf: CYGPKG_IO_SERIAL_I386_PC_SERIAL0 ++}; ++ ++# > ++# Device name for PC serial port 0 ++# This option specifies the device name port 0 on the PC. ++# ++cdl_option CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser0\"" ++ # value_source default ++ # Default value: "\"/dev/ser0\"" ++ ++ # The following properties are affected by this value ++ # option CYGPRI_SER_TEST_SER_DEV ++ # DefaultValue: CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME ++}; ++ ++# Baud rate for the PC serial port 0 driver ++# This option specifies the default baud rate (speed) for the ++# PC port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_BAUD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 38400 ++ # value_source default ++ # Default value: 38400 ++ # Legal values: 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600 ++ # 4800 7200 9600 14400 19200 38400 57600 115200 230400 ++ # ++}; ++ ++# Buffer size for the PC serial port 0 driver ++# This option specifies the size of the internal buffers used ++# for the PC port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_BUFSIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 128 ++ # value_source default ++ # Default value: 128 ++ # Legal values: 0 to 8192 ++}; ++ ++# I/O base address for the i386-PC serial port 0 ++# This option specifies the I/O address of the 8250 or 16550 for serial port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IOBASE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x000003F8 ++ # value_source default ++ # Default value: 0x000003F8 ++ # Legal values: 0 to 0xFF8 ++}; ++ ++# IRQ for the i386-PC serial port 0 ++# This option specifies the IRQ of the 8250 or 16550 for serial port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IRQ { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4 ++ # value_source default ++ # Default value: 4 ++ # Legal values: 0 to 15 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_INT ++ # DefaultValue: CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IRQ + 32 ++}; ++ ++# INT for the i386-PC serial port 0 ++# This option specifies the interrupt vector of the 8250 or 16550 for serial port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_INT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 36 ++ # value_source default ++ # Default value: CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IRQ + 32 ++ # CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IRQ == 4 ++ # --> 36 ++ # Legal values: 32 to 47 ++}; ++ ++# < ++# PC serial port 1 driver ++# This option includes the serial device driver for port 1 on ++# the PC. ++# ++cdl_component CYGPKG_IO_SERIAL_I386_PC_SERIAL1 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Device name for PC serial port 1 ++# This option specifies the device name port 1 on the PC. ++# ++cdl_option CYGDAT_IO_SERIAL_I386_PC_SERIAL1_NAME { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser1\"" ++ # value_source default ++ # Default value: "\"/dev/ser1\"" ++}; ++ ++# Baud rate for the PC serial port 1 driver ++# This option specifies the default baud rate (speed) for the ++# PC port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_BAUD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 38400 ++ # value_source default ++ # Default value: 38400 ++ # Legal values: 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600 ++ # 4800 7200 9600 14400 19200 38400 57600 115200 230400 ++ # ++}; ++ ++# Buffer size for the PC serial port 1 driver ++# This option specifies the size of the internal buffers used ++# for the PC port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_BUFSIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 128 ++ # value_source default ++ # Default value: 128 ++ # Legal values: 0 to 8192 ++}; ++ ++# I/O base address for the i386-PC serial port 1 ++# This option specifies the I/O address of the 8250 or 16550 for serial port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IOBASE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x000002F8 ++ # value_source default ++ # Default value: 0x000002F8 ++ # Legal values: 0 to 0xFF8 ++}; ++ ++# IRQ for the i386-PC serial port 1 ++# This option specifies the IRQ of the 8250 or 16550 for serial port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IRQ { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 3 ++ # value_source default ++ # Default value: 3 ++ # Legal values: 0 to 15 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_INT ++ # DefaultValue: CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IRQ + 32 ++}; ++ ++# INT for the i386-PC serial port 1 ++# This option specifies the interrupt vector of the 8250 or 16550 for serial port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_INT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 35 ++ # value_source default ++ # Default value: CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IRQ + 32 ++ # CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IRQ == 3 ++ # --> 35 ++ # Legal values: 32 to 47 ++}; ++ ++# < ++# Serial device driver build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_SERIAL_I386_PC_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building these serial device drivers. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_IO_SERIAL_I386_PC_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building these serial device drivers. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_IO_SERIAL_I386_PC_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# Testing parameters ++# ++cdl_component CYGPKG_IO_SERIAL_I386_PC_TESTING { ++ # ActiveIf constraint: CYGPKG_IO_SERIAL_I386_PC_SERIAL0 ++ # CYGPKG_IO_SERIAL_I386_PC_SERIAL0 == 1 ++ # --> 1 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# > ++# Serial device used for testing ++# ++cdl_option CYGPRI_SER_TEST_SER_DEV { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser0\"" ++ # value_source default ++ # Default value: CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME ++ # CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME == "\"/dev/ser0\"" ++ # --> "\"/dev/ser0\"" ++}; ++ ++# < ++# < ++# < ++# Build extra serial tests ++# This option enables the building of some extra tests which ++# can be used when testing / debugging serial drivers. These ++# are not built by default since they do not use the dedicated ++# testing infrastructure. ++# ++cdl_option CYGBLD_IO_SERIAL_EXTRA_TESTS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Serial device driver build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_SERIAL_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the serial device drivers. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_IO_SERIAL_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the serial device drivers. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_IO_SERIAL_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Serial device driver tests ++# This option specifies the set of tests for the serial device drivers. ++# ++cdl_option CYGPKG_IO_SERIAL_TESTS { ++ # Calculated value: CYGPKG_IO_SERIAL_DEVICES ? "tests/serial1 tests/serial2 tests/serial3 tests/serial4 tests/serial5 tests/tty1 tests/tty2 tests/flow1 tests/flow2" : "" ++ # CYGPKG_IO_SERIAL_DEVICES == 1 ++ # Flavor: data ++ # Current_value: tests/serial1 tests/serial2 tests/serial3 tests/serial4 tests/serial5 tests/tty1 tests/tty2 tests/flow1 tests/flow2 ++}; ++ ++# < ++# Enable serial device select support ++# This option enables support for the select() API function on all ++# serial devices. ++# ++cdl_option CYGPKG_IO_SERIAL_SELECT_SUPPORT { ++ # ActiveIf constraint: CYGPKG_IO_FILEIO ++ # CYGPKG_IO_FILEIO == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGFUN_IO_FILEIO_SELECT == 1 ++ # CYGFUN_IO_FILEIO_SELECT == 1 ++ # --> 1 ++}; ++ ++# Serial testing specification ++# ++cdl_component CYGPKG_IO_SERIAL_TEST_SPECS { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# > ++# Skip 9600 baud testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_9600 { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Skip 14400 baud testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_14400 { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Skip 19200 baud testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_19200 { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Skip 38400 baud testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_38400 { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Skip 57600 baud testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_57600 { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Skip 115200 baud testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_115200 { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Skip even-parity testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_PARITY_EVEN { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Skip odd-parity testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_PARITY_ODD { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Skip 2-stop bit testing ++# ++cdl_interface CYGINT_IO_SERIAL_TEST_SKIP_STOP_2 { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# < ++# < ++# Common ethernet support ++# doc: ref/io-eth-drv-generic.html ++# Platform independent ethernet drivers ++# ++cdl_package CYGPKG_IO_ETH_DRIVERS { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVS_ETH_RLTK_8139 ++ # ActiveIf: CYGPKG_IO_ETH_DRIVERS ++ # package CYGPKG_DEVS_ETH_I386_PC_RLTK8139 ++ # ActiveIf: CYGPKG_IO_ETH_DRIVERS ++ # package CYGPKG_NET_ETHERCATMASTER ++ # Requires: CYGPKG_IO_ETH_DRIVERS ++}; ++ ++# > ++# Network drivers ++# ++cdl_interface CYGHWR_NET_DRIVERS { ++ # Implemented by CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH0, active, disabled ++ # Implemented by CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH1, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# Driver supports multicast addressing ++# This interface defines whether or not a driver can handle ++# requests for multicast addressing. ++# ++cdl_interface CYGINT_IO_ETH_MULTICAST { ++ # Implemented by CYGPKG_DEVS_ETH_RLTK_8139, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# Support printing driver debug information ++# Selecting this option will include code to allow the driver to ++# print lots of information on diagnostic output such as full ++# packet dumps. ++# ++cdl_component CYGDBG_IO_ETH_DRIVERS_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Driver debug output verbosity ++# The value of this option indicates the default verbosity ++# level of debugging output. 0 means no debugging output ++# is made by default. Higher values indicate higher verbosity. ++# The verbosity level may also be changed at run time by ++# changing the variable cyg_io_eth_net_debug. ++# ++cdl_option CYGDBG_IO_ETH_DRIVERS_DEBUG_VERBOSITY { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Size of scatter-gather I/O lists ++# A scatter-gather list is used to pass requests to/from ++# the physical device driver. This list can typically be ++# small, as the data is normally already packed into reasonable ++# chunks. ++# ++cdl_option CYGNUM_IO_ETH_DRIVERS_SG_LIST_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: 32 ++}; ++ ++# Support for standard eCos TCP/IP stack. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_NET { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++}; ++ ++# > ++# Warn when there are no more mbufs ++# Warnings about running out of mbufs are printed to the ++# diagnostic output channel via diag_printf() if this option ++# is enabled. Mbufs are the network stack's basic dynamic ++# memory objects that hold all packets in transit; running ++# out is bad for performance but not fatal, not a crash. ++# You might want to turn off the warnings to preserve realtime ++# properties of the system even in extremis. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_NET is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Simulate network failures for testing ++# This package contains a suite of simulated failure modes ++# for the ethernet device layer, including dropping and/or ++# corrupting received packets, dropping packets queued for ++# transmission, and simulating a complete network break. ++# It requires the kernel as a source of time information. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_NET is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Drop incoming packets (percentage) ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_DROP_RX { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is disabled ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 10 ++ # value_source default ++ # Default value: 1 10 ++ # Legal values: 10 50 80 ++}; ++ ++# Corrupt incoming packets (percentage) ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_CORRUPT_RX { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is disabled ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 10 ++ # value_source default ++ # Default value: 1 10 ++ # Legal values: 10 50 80 ++}; ++ ++# Drop outgoing packets (percentage) ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_DROP_TX { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is disabled ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 10 ++ # value_source default ++ # Default value: 1 10 ++ # Legal values: 10 50 80 ++}; ++ ++# Simulate a line cut from time to time ++# This option causes the system to drop all packets for a ++# short random period (10s of seconds), and then act ++# normally for up to 4 times that long. This simulates your ++# sysadmin fiddling with plugs in the network switch ++# cupboard. ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_LINE_CUT { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# < ++# Support for stand-alone network stack. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_STAND_ALONE { ++ # ActiveIf constraint: !CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 1 ++ ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++ # Requires: CYGINT_ISO_STRING_MEMFUNCS ++ # CYGINT_ISO_STRING_MEMFUNCS == 1 ++ # --> 1 ++}; ++ ++# > ++# Pass packets to an alternate stack ++# Define this to allow packets seen by this layer to be ++# passed on to the previous logical layer, i.e. when ++# stand-alone processing replaces system (eCos) processing. ++# ++cdl_option CYGSEM_IO_ETH_DRIVERS_PASS_PACKETS { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_STAND_ALONE is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 != CYGPKG_REDBOOT_NETWORKING ++ # CYGPKG_REDBOOT_NETWORKING (unknown) == 0 ++ # --> 0 ++}; ++ ++# Number of [network] buffers ++# This option is used to allocate space to buffer incoming network ++# packets. These buffers are used to hold data until they can be ++# logically processed by higher layers. ++# ++cdl_option CYGNUM_IO_ETH_DRIVERS_NUM_PKT { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_STAND_ALONE is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4 ++ # value_source default ++ # Default value: 4 ++ # Legal values: 2 to 32 ++}; ++ ++# Show driver warnings ++# Selecting this option will allows the stand-alone ethernet driver ++# to display warnings on the system console when incoming network ++# packets are being discarded due to lack of buffer space. ++# ++cdl_option CYGSEM_IO_ETH_DRIVERS_WARN { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_STAND_ALONE is disabled ++ # ActiveIf constraint: CYGPKG_REDBOOT ++ # CYGPKG_REDBOOT (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Support for lwIP network stack. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_LWIP { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NET_LWIP ++ # CYGPKG_NET_LWIP (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: !CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 1 ++}; ++ ++# Support for EtherCAT Master protocol stack. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_ETHERCATMASTER { ++ # ActiveIf constraint: CYGPKG_NET_ETHERCATMASTER ++ # CYGPKG_NET_ETHERCATMASTER == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: !CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 1 ++}; ++ ++# > ++# Number of [network] buffers ++# This option is used to allocate space to buffer incoming network ++# packets. These buffers are used to hold data until they can be ++# logically processed by higher layers. ++# ++cdl_option CYGNUM_IO_ETH_DRIVERS_ETHERCATMASTER_NUM_PKT { ++ # Flavor: data ++ user_value 32 ++ # value_source user ++ # Default value: 4 ++ # Legal values: 2 to 32 ++}; ++ ++# < ++# Interrupt support required ++# This interface is used to indicate to the low ++# level device drivers that interrupt driven operation ++# is required by higher layers. ++# ++cdl_interface CYGINT_IO_ETH_INT_SUPPORT_REQUIRED { ++ # Implemented by CYGPKG_IO_ETH_DRIVERS_NET, inactive, enabled ++ # Implemented by CYGPKG_IO_ETH_DRIVERS_LWIP, inactive, enabled ++ # Implemented by CYGPKG_IO_ETH_DRIVERS_ETHERCATMASTER, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# Common ethernet support build options ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the common ethernet support package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "-D_KERNEL -D__ECOS" ++ # value_source default ++ # Default value: "-D_KERNEL -D__ECOS" ++}; ++ ++# < ++# RealTek 8139 ethernet driver ++# Ethernet driver for RealTek 8139 controller. ++# ++cdl_package CYGPKG_DEVS_ETH_RLTK_8139 { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO_ETH_DRIVERS ++ # CYGPKG_IO_ETH_DRIVERS == current ++ # --> 1 ++ # ActiveIf constraint: CYGINT_DEVS_ETH_RLTK_8139_REQUIRED ++ # CYGINT_DEVS_ETH_RLTK_8139_REQUIRED == 1 ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# > ++# Share interrupt with other devices ++# If this option is enabled, the driver does not assume that it is ++# in sole possession of the interrupt pin used by the 8139. ++# ++cdl_component CYGPKG_DEVS_ETH_RLTK_8139_SHARE_INTERRUPTS { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++}; ++ ++# > ++# Mask 8139 interrupts on chip ++# If this option is enabled, the driver masks interrupts in the 8139's ++# status register, and does not mask the interrupt vector. This is ++# only useful if the 8139 must share it's interrupt line with other ++# devices. ++# ++cdl_option CYGPKG_DEVS_ETH_RLTK_8139_MASK_INTERRUPTS_IN_8139 { ++ # This option is not active ++ # The parent CYGPKG_DEVS_ETH_RLTK_8139_SHARE_INTERRUPTS is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Print debugging messages ++# If this option is set, a lot of debugging messages are printed ++# to the console to help debug the driver. ++# ++cdl_option CYGDBG_DEVS_ETH_RLTK_8139_CHATTER { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Size of the receive ring ++# The 8139 stores all received packets in a single 'rx ring' ++# located somewhere in physical memory. The size of this ring ++# can be varied from ~8k to ~64k; however the driver currently ++# supports a maximum buffer size of only ~32k (so we can use ++# the 8139's WRAP mode). The actual buffer size is ++# 8192< 2 ++ # Legal values: 0 to 2 ++}; ++ ++# RealTek 8139 ethernet driver build options ++# ++cdl_component CYGPKG_DEVS_ETH_RLTK_8139_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the RealTek 8139 ethernet driver package. These ++# flags are used in addition to the set of global flags. ++# ++cdl_option CYGPKG_DEVS_ETH_RLTK_8139_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "-D_KERNEL -D__ECOS" ++ # value_source default ++ # Default value: "-D_KERNEL -D__ECOS" ++}; ++ ++# < ++# < ++# PC RealTek 8139 ethernet driver ++# Ethernet driver for standard PC's. ++# ++cdl_package CYGPKG_DEVS_ETH_I386_PC_RLTK8139 { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO_ETH_DRIVERS ++ # CYGPKG_IO_ETH_DRIVERS == current ++ # --> 1 ++ # ActiveIf constraint: CYGPKG_HAL_I386_PC ++ # CYGPKG_HAL_I386_PC == current ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# > ++# RealTek 8139 ethernet driver required ++# ++cdl_interface CYGINT_DEVS_ETH_RLTK_8139_REQUIRED { ++ # Implemented by CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH0, active, disabled ++ # Implemented by CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH1, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVS_ETH_RLTK_8139 ++ # ActiveIf: CYGINT_DEVS_ETH_RLTK_8139_REQUIRED ++}; ++ ++# Ethernet port 0 driver ++# ++cdl_component CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH0 { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++}; ++ ++# > ++# Device name for the ETH0 ethernet port 0 driver ++# This option sets the name of the ethernet device for the ++# RealTek 8139 ethernet port 0. ++# ++cdl_option CYGDAT_DEVS_ETH_I386_PC_RLTK8139_ETH0_NAME { ++ # This option is not active ++ # The parent CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH0 is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"eth0\"" ++ # value_source default ++ # Default value: "\"eth0\"" ++}; ++ ++# < ++# Ethernet port 1 driver ++# ++cdl_component CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH1 { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++}; ++ ++# > ++# Device name for the ETH1 ethernet port 1 driver ++# This option sets the name of the ethernet device for the ++# RealTek 8139 ethernet port 1. ++# ++cdl_option CYGDAT_DEVS_ETH_I386_PC_RLTK8139_ETH1_NAME { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"eth1\"" ++ # value_source default ++ # Default value: "\"eth1\"" ++}; ++ ++# < ++# < ++# < ++# < ++# Infrastructure ++# Common types and useful macros. ++# Tracing and assertion facilities. ++# Package startup options. ++# ++cdl_package CYGPKG_INFRA { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_HAL ++ # Requires: CYGPKG_INFRA ++}; ++ ++# > ++# Asserts & Tracing ++# The eCos source code contains a significant amount of ++# internal debugging support, in the form of assertions and ++# tracing. ++# Assertions check at runtime that various conditions are as ++# expected; if not, execution is halted. ++# Tracing takes the form of text messages that are output ++# whenever certain events occur, or whenever functions are ++# called or return. ++# The most important property of these checks and messages is ++# that they are not required for the program to run. ++# It is prudent to develop software with assertions enabled, ++# but disable them when making a product release, thus ++# removing the overhead of that checking. ++# It is possible to enable assertions and tracing ++# independently. ++# There are also options controlling the exact behaviour of ++# the assertion and tracing facilities, thus giving users ++# finer control over the code and data size requirements. ++# ++cdl_component CYGPKG_INFRA_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD ++ # ActiveIf: CYGPKG_INFRA_DEBUG ++ # component CYGFUN_KERNEL_THREADS_STACK_CHECKING ++ # ActiveIf: CYGPKG_INFRA_DEBUG ++ # component CYGFUN_KERNEL_THREADS_STACK_MEASUREMENT ++ # DefaultValue: 0 != CYGPKG_INFRA_DEBUG ++ # option CYGPKG_KERNEL_TESTS ++ # Calculated: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++}; ++ ++# > ++# Use asserts ++# If this option is defined, asserts in the code are tested. ++# Assert functions (CYG_ASSERT()) are defined in ++# 'include/cyg/infra/cyg_ass.h' within the 'install' tree. ++# If it is not defined, these result in no additional ++# object code and no checking of the asserted conditions. ++# ++cdl_component CYGDBG_USE_ASSERTS { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL ++ # CYGINT_INFRA_DEBUG_TRACE_IMPL == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # component CYGFUN_KERNEL_THREADS_STACK_CHECKING ++ # ActiveIf: CYGDBG_USE_ASSERTS ++ # option CYGDBG_MEMALLOC_ALLOCATOR_DLMALLOC_DEBUG ++ # Requires: CYGDBG_USE_ASSERTS ++ # option CYGDBG_MEMALLOC_ALLOCATOR_DLMALLOC_DEBUG ++ # DefaultValue: 0 != CYGDBG_USE_ASSERTS ++}; ++ ++# > ++# Preconditions ++# This option allows individual control of preconditions. ++# A precondition is one type of assert, which it is ++# useful to control separately from more general asserts. ++# The function is CYG_PRECONDITION(condition,msg). ++# ++cdl_option CYGDBG_INFRA_DEBUG_PRECONDITIONS { ++ # This option is not active ++ # The parent CYGDBG_USE_ASSERTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Postconditions ++# This option allows individual control of postconditions. ++# A postcondition is one type of assert, which it is ++# useful to control separately from more general asserts. ++# The function is CYG_POSTCONDITION(condition,msg). ++# ++cdl_option CYGDBG_INFRA_DEBUG_POSTCONDITIONS { ++ # This option is not active ++ # The parent CYGDBG_USE_ASSERTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Loop invariants ++# This option allows individual control of loop invariants. ++# A loop invariant is one type of assert, which it is ++# useful to control separately from more general asserts, ++# particularly since a loop invariant is typically evaluated ++# a great many times when used correctly. ++# The function is CYG_LOOP_INVARIANT(condition,msg). ++# ++cdl_option CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS { ++ # This option is not active ++ # The parent CYGDBG_USE_ASSERTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Use assert text ++# All assertions within eCos contain a text message ++# which should give some information about the condition ++# being tested. ++# These text messages will end up being embedded in the ++# application image and hence there is a significant penalty ++# in terms of image size. ++# It is possible to suppress the use of these messages by ++# disabling this option. ++# This results in smaller code size, but there is less ++# human-readable information if an assertion actually gets ++# triggered. ++# ++cdl_option CYGDBG_INFRA_DEBUG_ASSERT_MESSAGE { ++ # This option is not active ++ # The parent CYGDBG_USE_ASSERTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Use tracing ++# If this option is defined, tracing operations ++# result in output or logging, depending on other options. ++# This may have adverse effects on performance, if the time ++# taken to output message overwhelms the available CPU ++# power or output bandwidth. ++# Trace functions (CYG_TRACE()) are defined in ++# 'include/cyg/infra/cyg_trac.h' within the 'install' tree. ++# If it is not defined, these result in no additional ++# object code and no trace information. ++# ++cdl_component CYGDBG_USE_TRACING { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL ++ # CYGINT_INFRA_DEBUG_TRACE_IMPL == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_WRAP ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_HALT ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT_ON_ASSERT ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_KERNEL_TRACE_TIMESLICE ++ # ActiveIf: CYGDBG_USE_TRACING ++ # component CYGPKG_LIBM_TRACE ++ # Requires: CYGDBG_USE_TRACING ++}; ++ ++# > ++# Trace function reports ++# This option allows individual control of ++# function entry/exit tracing, independent of ++# more general tracing output. ++# This may be useful to remove clutter from a ++# trace log. ++# ++cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS { ++ # This option is not active ++ # The parent CYGDBG_USE_TRACING is not active ++ # The parent CYGDBG_USE_TRACING is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Use trace text ++# All trace calls within eCos contain a text message ++# which should give some information about the circumstances. ++# These text messages will end up being embedded in the ++# application image and hence there is a significant penalty ++# in terms of image size. ++# It is possible to suppress the use of these messages by ++# disabling this option. ++# This results in smaller code size, but there is less ++# human-readable information available in the trace output, ++# possibly only filenames and line numbers. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_MESSAGE { ++ # This option is not active ++ # The parent CYGDBG_USE_TRACING is not active ++ # The parent CYGDBG_USE_TRACING is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Trace output implementations ++# ++cdl_interface CYGINT_INFRA_DEBUG_TRACE_IMPL { ++ # Implemented by CYGDBG_INFRA_DEBUG_TRACE_ASSERT_NULL, inactive, disabled ++ # Implemented by CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE, inactive, disabled ++ # Implemented by CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY, inactive, disabled ++ # Implemented by CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER, inactive, enabled ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # component CYGDBG_USE_ASSERTS ++ # Requires: 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL ++ # component CYGDBG_USE_TRACING ++ # Requires: 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL ++}; ++ ++# Null output ++# A null output module which is useful when ++# debugging interactively; the output routines ++# can be breakpointed rather than have them actually ++# 'print' something. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_NULL { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Simple output ++# An output module which produces simple output ++# from tracing and assertion events. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_KERNEL_TRACE_TIMESLICE ++ # Requires: !CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE ++}; ++ ++# Fancy output ++# An output module which produces fancy output ++# from tracing and assertion events. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_KERNEL_TRACE_TIMESLICE ++ # Requires: !CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY ++}; ++ ++# Buffered tracing ++# An output module which buffers output ++# from tracing and assertion events. The stored ++# messages are output when an assert fires, or ++# CYG_TRACE_PRINT() (defined in ) ++# is called. ++# Of course, there will only be stored messages ++# if tracing per se (CYGDBG_USE_TRACING) ++# is enabled above. ++# ++cdl_component CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Trace buffer size ++# The size of the trace buffer. This counts the number ++# of trace records stored. When the buffer fills it ++# either wraps, stops recording, or generates output. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: 32 ++ # Legal values: 5 to 65535 ++}; ++ ++# Wrap trace buffer when full ++# When the trace buffer has filled with records it ++# starts again at the beginning. Hence only the last ++# CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages will ++# be recorded. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_WRAP { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Halt trace buffer when full ++# When the trace buffer has filled with records it ++# stops recording. Hence only the first ++# CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages will ++# be recorded. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_HALT { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Print trace buffer when full ++# When the trace buffer has filled with records it ++# prints the contents of the buffer. The buffer is then ++# emptied and the system continues. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Print trace buffer on assert fail ++# When an assertion fails the trace buffer will be ++# printed to the default diagnostic device. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT_ON_ASSERT { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Use function names ++# All trace and assert calls within eCos contain a ++# reference to the builtin macro '__PRETTY_FUNCTION__', ++# which evaluates to a string containing ++# the name of the current function. ++# This is useful when reading a trace log. ++# It is possible to suppress the use of the function name ++# by disabling this option. ++# This results in smaller code size, but there is less ++# human-readable information available in the trace output, ++# possibly only filenames and line numbers. ++# ++cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_PSEUDOMACRO { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Startup options ++# Some packages require a startup routine to be called. ++# This can be carried out by application code, by supplying ++# a routine called cyg_package_start() which calls the ++# appropriate package startup routine(s). ++# Alternatively, this routine can be constructed automatically ++# and configured to call the startup routines of your choice. ++# ++cdl_component CYGPKG_INFRA_STARTUP { ++ # There is no associated value. ++}; ++ ++# > ++# Start uITRON subsystem ++# Generate a call to initialize the ++# uITRON compatibility subsystem ++# within the system version of cyg_package_start(). ++# This enables compatibility with uITRON. ++# You must configure uITRON with the correct tasks before ++# starting the uItron subsystem. ++# If this is disabled, and you want to use uITRON, ++# you must call cyg_uitron_start() from your own ++# cyg_package_start() or cyg_userstart(). ++# ++cdl_option CYGSEM_START_UITRON_COMPATIBILITY { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_UITRON ++ # CYGPKG_UITRON (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGPKG_UITRON ++ # CYGPKG_UITRON (unknown) == 0 ++ # --> 0 ++}; ++ ++# < ++# Smaller slower memcpy() ++# Enabling this option causes the implementation of ++# the standard memcpy() routine to reduce code ++# size at the expense of execution speed. This ++# option is automatically enabled with the use of ++# the -Os option to the compiler. Also note that ++# the compiler will try to use its own builtin ++# version of memcpy() if possible, ignoring the ++# implementation in this package, unless given ++# the -fno-builtin compiler option. ++# ++cdl_option CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMCPY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Smaller slower memset() ++# Enabling this option causes the implementation of ++# the standard memset() routine to reduce code ++# size at the expense of execution speed. This ++# option is automatically enabled with the use of ++# the -Os option to the compiler. Also note that ++# the compiler will try to use its own builtin ++# version of memset() if possible, ignoring the ++# implementation in this package, unless given ++# the -fno-builtin compiler option. ++# ++cdl_option CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMSET { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Provide empty C++ delete functions ++# To deal with virtual destructors, where the correct delete() ++# function must be called for the derived class in question, the ++# underlying delete is called when needed, from destructors. This ++# is regardless of whether the destructor is called by delete itself. ++# So there is a reference to delete() from all destructors. The ++# default builtin delete() attempts to call free() if there is ++# one defined. So, if you have destructors, and you have free(), ++# as in malloc() and free(), any destructor counts as a reference ++# to free(). So the dynamic memory allocation code is linked ++# in regardless of whether it gets explicitly called. This ++# increases code and data size needlessly. ++# To defeat this undesirable behaviour, we define empty versions ++# of delete and delete. But doing this prevents proper use ++# of dynamic memory in C++ programs via C++'s new and delete ++# operators. ++# Therefore, this option is provided ++# for explicitly disabling the provision of these empty functions, ++# so that new and delete can be used, if that is what is required. ++# ++cdl_option CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Threshold for valid number of delete calls ++# Some users don't know about the empty delete function and then ++# wonder why their C++ classes are leaking memory. If ++# INFRA_DEBUG is enabled we keep a counter for the number of ++# times delete is called. If it goes above this threshold we throw ++# an assertion failure. This should point heavy users of ++# delete in the right direction without upsetting those who want ++# an empty delete function. ++# ++cdl_option CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_INFRA_DEBUG ++ # CYGPKG_INFRA_DEBUG == 0 ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 100 ++ # value_source default ++ # Default value: 100 ++}; ++ ++# Provide dummy abort() function ++# This option controls the inclusion of a dummy abort() function. ++# Parts of the C and C++ compiler runtime systems contain references ++# to abort(), particulary in the C++ exception handling code. It is ++# not possible to eliminate these references, so this dummy function ++# in included to satisfy them. It is not expected that this function ++# will ever be called, so its current behaviour is to simply loop. ++# ++cdl_option CYGFUN_INFRA_DUMMY_ABORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGINT_ISO_EXIT == 0 ++ # CYGINT_ISO_EXIT == 1 ++ # --> 0 ++ # Requires: !CYGINT_ISO_EXIT ++ # CYGINT_ISO_EXIT == 1 ++ # --> 0 ++}; ++ ++# Reset platform at end of test case execution ++# If this option is set then test case programs will reset the platform ++# when they terminate, as opposed to the default which is to just hang ++# in a loop. ++# ++cdl_option CYGSEM_INFRA_RESET_ON_TEST_EXIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Provide dummy strlen() function ++# This option controls the inclusion of a dummy strlen() function. ++# Parts of the C and C++ compiler runtime systems contain references ++# to strlen(), particulary in the C++ exception handling code. It is ++# not possible to eliminate these references, so this dummy function ++# in included to satisfy them. While it is not expected that this function ++# will ever be called, it is functional but uses the simplest, smallest ++# algorithm. There is a faster version of strlen() in the C library. ++# ++cdl_option CYGFUN_INFRA_DUMMY_STRLEN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGINT_ISO_STRING_STRFUNCS == 0 ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 0 ++ # Requires: !CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 0 ++}; ++ ++# Make all compiler warnings show as errors ++# Enabling this option will cause all compiler warnings to show ++# as errors and bring the library build to a halt. This is used ++# to ensure that the code base is warning free, and thus ensure ++# that newly introduced warnings stand out and get fixed before ++# they show up as weird run-time behavior. ++# ++cdl_option CYGBLD_INFRA_CFLAGS_WARNINGS_AS_ERRORS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: is_substr(CYGBLD_GLOBAL_CFLAGS, " -Werror") ++ # CYGBLD_GLOBAL_CFLAGS == "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" ++ # --> 0 ++}; ++ ++# Make compiler and assembler communicate by pipe ++# Enabling this option will cause the compiler to feed the ++# assembly output the the assembler via a pipe instead of ++# via a temporary file. This normally reduces the build ++# time. ++# ++cdl_option CYGBLD_INFRA_CFLAGS_PIPE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: is_substr(CYGBLD_GLOBAL_CFLAGS, " -pipe") ++ # CYGBLD_GLOBAL_CFLAGS == "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" ++ # --> 0 ++}; ++ ++# Infra build options ++# Package specific build options including control over ++# compiler flags used only in building this package. ++# ++cdl_component CYGPKG_INFRA_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the eCos infra package. These flags are used ++# in addition to the set of global flags. ++# ++cdl_option CYGPKG_INFRA_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the eCos infra package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_INFRA_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed linker flags ++# This option modifies the set of linker flags for ++# building the eCos infra package tests. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_INFRA_LDFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -Wl,--gc-sections ++ # value_source default ++ # Default value: -Wl,--gc-sections ++}; ++ ++# Additional linker flags ++# This option modifies the set of linker flags for ++# building the eCos infra package tests. These flags are added to ++# the set of global flags if present. ++# ++cdl_option CYGPKG_INFRA_LDFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -Wl,--fatal-warnings ++ # value_source default ++ # Default value: -Wl,--fatal-warnings ++}; ++ ++# Infra package tests ++# ++cdl_component CYGPKG_INFRA_TESTS { ++ # Calculated value: "tests/cxxsupp tests/diag_sprintf1 tests/diag_sprintf2" ++ # Flavor: data ++ # Current_value: tests/cxxsupp tests/diag_sprintf1 tests/diag_sprintf2 ++}; ++ ++# > ++# Number of times a test runs ++# This option controls the number of times tests will execute their ++# basic function. Not all tests will honor this setting, but those ++# that do will execute the test N times before terminating. A value ++# less than 0 indicates to run forever. ++# ++cdl_option CYGNUM_TESTS_RUN_COUNT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# < ++# < ++# ISO C and POSIX infrastructure ++# eCos supports implementations of ISO C libraries and POSIX ++# implementations. This package provides infrastructure used by ++# all such implementations. ++# ++cdl_package CYGPKG_ISOINFRA { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # Requires: CYGPKG_ISOINFRA ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # DefaultValue: 0 != CYGPKG_ISOINFRA && 0 != CYGPKG_IO_FILEIO && 0 != CYGINT_ISO_ERRNO_CODES && 0 != CYGINT_ISO_ERRNO ++ # option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_USE_MEMCPY ++ # Requires: CYGPKG_ISOINFRA ++ # option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_USE_MEMCPY ++ # DefaultValue: 0 != CYGPKG_ISOINFRA ++ # component CYGPKG_MEMALLOC_MALLOC_ALLOCATORS ++ # ActiveIf: CYGPKG_ISOINFRA ++ # package CYGPKG_LIBC_TIME ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_LIBC_STDLIB ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_LIBC_I18N ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_LIBC_SETJMP ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_LIBC_STARTUP ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_POSIX ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_IO_FILEIO ++ # Requires: CYGPKG_ISOINFRA ++}; ++ ++# > ++# Startup and termination ++# ++cdl_component CYGPKG_ISO_STARTUP { ++ # There is no associated value. ++}; ++ ++# > ++# main() startup implementations ++# Implementations of this interface arrange for a user-supplied ++# main() to be called in an ISO compatible environment. ++# ++cdl_interface CYGINT_ISO_MAIN_STARTUP { ++ # Implemented by CYGPKG_LIBC_STARTUP, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_MAIN_STARTUP ++ # CYGINT_ISO_MAIN_STARTUP == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_MAIN_STARTUP ++ # Requires: 1 >= CYGINT_ISO_MAIN_STARTUP ++}; ++ ++# environ implementations ++# Implementations of this interface provide the environ ++# variable required by POSIX. ++# ++cdl_interface CYGINT_ISO_ENVIRON { ++ # Implemented by CYGPKG_LIBC_STARTUP, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_ENVIRON ++ # CYGINT_ISO_ENVIRON == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_ENVIRON ++ # Requires: 1 >= CYGINT_ISO_ENVIRON ++}; ++ ++# < ++# ctype.h functions ++# ++cdl_component CYGPKG_ISO_CTYPE_H { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of ctype functions ++# ++cdl_interface CYGINT_ISO_CTYPE { ++ # Implemented by CYGPKG_LIBC_I18N, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_CTYPE ++ # CYGINT_ISO_CTYPE == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_CTYPE ++ # Requires: 1 >= CYGINT_ISO_CTYPE ++ # package CYGPKG_LIBC_STDLIB ++ # Requires: CYGINT_ISO_CTYPE ++ # option CYGFUN_LIBC_STRING_BSD_FUNCS ++ # Requires: CYGINT_ISO_CTYPE ++}; ++ ++# Ctype implementation header ++# ++cdl_option CYGBLD_ISO_CTYPE_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_LIBC_I18N_NEWLIB_CTYPE ++ # Requires: CYGBLD_ISO_CTYPE_HEADER == "" ++ # option CYGIMP_LIBC_I18N_CTYPE_INLINES ++ # Requires: CYGBLD_ISO_CTYPE_HEADER == "" ++}; ++ ++# < ++# Error handling ++# ++cdl_component CYGPKG_ISO_ERRNO { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of error codes ++# ++cdl_interface CYGINT_ISO_ERRNO_CODES { ++ # Implemented by CYGPKG_ERROR, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_ERRNO_CODES ++ # CYGINT_ISO_ERRNO_CODES == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_ERRNO_CODES ++ # Requires: 1 >= CYGINT_ISO_ERRNO_CODES ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # Requires: CYGINT_ISO_ERRNO_CODES ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # DefaultValue: 0 != CYGPKG_ISOINFRA && 0 != CYGPKG_IO_FILEIO && 0 != CYGINT_ISO_ERRNO_CODES && 0 != CYGINT_ISO_ERRNO ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGINT_ISO_ERRNO_CODES ++ # package CYGPKG_POSIX ++ # Requires: CYGINT_ISO_ERRNO_CODES ++ # package CYGPKG_IO_FILEIO ++ # Requires: CYGINT_ISO_ERRNO_CODES ++}; ++ ++# Error codes implementation header ++# ++cdl_option CYGBLD_ISO_ERRNO_CODES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_ERROR ++ # Requires: CYGBLD_ISO_ERRNO_CODES_HEADER == "" ++}; ++ ++# Number of implementations of errno variable ++# ++cdl_interface CYGINT_ISO_ERRNO { ++ # Implemented by CYGPKG_ERROR_ERRNO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_ERRNO ++ # CYGINT_ISO_ERRNO == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_ERRNO ++ # Requires: 1 >= CYGINT_ISO_ERRNO ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # Requires: CYGINT_ISO_ERRNO ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # DefaultValue: 0 != CYGPKG_ISOINFRA && 0 != CYGPKG_IO_FILEIO && 0 != CYGINT_ISO_ERRNO_CODES && 0 != CYGINT_ISO_ERRNO ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGINT_ISO_ERRNO ++ # package CYGPKG_POSIX ++ # Requires: CYGINT_ISO_ERRNO ++ # component CYGPKG_POSIX_MQUEUES ++ # Requires: CYGINT_ISO_ERRNO ++ # package CYGPKG_IO_FILEIO ++ # Requires: CYGINT_ISO_ERRNO ++}; ++ ++# errno variable implementation header ++# ++cdl_option CYGBLD_ISO_ERRNO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_ERROR_ERRNO ++ # Requires: CYGBLD_ISO_ERRNO_HEADER == "" ++}; ++ ++# < ++# Locale-related functions ++# ++cdl_component CYGPKG_ISO_LOCALE { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of locale functions ++# ++cdl_interface CYGINT_ISO_LOCALE { ++ # Implemented by CYGPKG_LIBC_I18N, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_LOCALE ++ # CYGINT_ISO_LOCALE == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_LOCALE ++ # Requires: 1 >= CYGINT_ISO_LOCALE ++}; ++ ++# Locale implementation header ++# ++cdl_option CYGBLD_ISO_LOCALE_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Standard I/O-related functionality ++# ++cdl_component CYGPKG_ISO_STDIO { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of stdio file types ++# ++cdl_interface CYGINT_ISO_STDIO_FILETYPES { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILETYPES ++ # CYGINT_ISO_STDIO_FILETYPES == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FILETYPES ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILETYPES ++}; ++ ++# Stdio file types implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_FILETYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_FILETYPES_HEADER == "" ++}; ++ ++# Stdio standard streams implementations ++# ++cdl_interface CYGINT_ISO_STDIO_STREAMS { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_STREAMS ++ # CYGINT_ISO_STDIO_STREAMS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_STREAMS ++ # Requires: 1 >= CYGINT_ISO_STDIO_STREAMS ++}; ++ ++# Stdio standard streams implementation header ++# This header file must define stdin, stdout ++# and stderr. ++# ++cdl_option CYGBLD_ISO_STDIO_STREAMS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_STREAMS_HEADER == "" ++}; ++ ++# Number of implementations of stdio file operations ++# ++cdl_interface CYGINT_ISO_STDIO_FILEOPS { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEOPS ++ # CYGINT_ISO_STDIO_FILEOPS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FILEOPS ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEOPS ++}; ++ ++# Stdio file operations implementation header ++# This header controls the file system operations on a file ++# such as remove(), rename(), tmpfile(), tmpnam() and associated ++# constants. ++# ++cdl_option CYGBLD_ISO_STDIO_FILEOPS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_FILEOPS_HEADER == "" ++}; ++ ++# Number of implementations of stdio file access functionals ++# ++cdl_interface CYGINT_ISO_STDIO_FILEACCESS { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEACCESS ++ # CYGINT_ISO_STDIO_FILEACCESS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FILEACCESS ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEACCESS ++ # option CYGSEM_LIBC_EXIT_CALLS_FFLUSH ++ # Requires: CYGINT_ISO_STDIO_FILEACCESS ++ # option CYGSEM_LIBC_EXIT_CALLS_FFLUSH ++ # DefaultValue: 0 != CYGINT_ISO_STDIO_FILEACCESS ++}; ++ ++# Stdio file access implementation header ++# This header controls the file access operations ++# such as fclose(), fflush(), fopen(), freopen(), setbuf(), ++# setvbuf(), and associated constants. ++# ++cdl_option CYGBLD_ISO_STDIO_FILEACCESS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_FILEACCESS_HEADER == "" ++}; ++ ++# Number of implementations of stdio formatted I/O ++# ++cdl_interface CYGINT_ISO_STDIO_FORMATTED_IO { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FORMATTED_IO ++ # CYGINT_ISO_STDIO_FORMATTED_IO == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FORMATTED_IO ++ # Requires: 1 >= CYGINT_ISO_STDIO_FORMATTED_IO ++}; ++ ++# Stdio formatted I/O implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_FORMATTED_IO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_FORMATTED_IO_HEADER == "" ++}; ++ ++# Number of implementations of stdio character I/O ++# ++cdl_interface CYGINT_ISO_STDIO_CHAR_IO { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_CHAR_IO ++ # CYGINT_ISO_STDIO_CHAR_IO == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_CHAR_IO ++ # Requires: 1 >= CYGINT_ISO_STDIO_CHAR_IO ++}; ++ ++# Stdio character I/O implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_CHAR_IO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_CHAR_IO_HEADER == "" ++}; ++ ++# Number of implementations of stdio direct I/O ++# ++cdl_interface CYGINT_ISO_STDIO_DIRECT_IO { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_DIRECT_IO ++ # CYGINT_ISO_STDIO_DIRECT_IO == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_DIRECT_IO ++ # Requires: 1 >= CYGINT_ISO_STDIO_DIRECT_IO ++}; ++ ++# Stdio direct I/O implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_DIRECT_IO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_DIRECT_IO_HEADER == "" ++}; ++ ++# Number of implementations of stdio file positioning ++# ++cdl_interface CYGINT_ISO_STDIO_FILEPOS { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEPOS ++ # CYGINT_ISO_STDIO_FILEPOS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FILEPOS ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEPOS ++}; ++ ++# Stdio file positioning implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_FILEPOS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_FILEPOS_HEADER == "" ++}; ++ ++# Number of implementations of stdio error handling ++# ++cdl_interface CYGINT_ISO_STDIO_ERROR { ++ # Implemented by CYGPKG_LIBC_STDIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_ERROR ++ # CYGINT_ISO_STDIO_ERROR == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_ERROR ++ # Requires: 1 >= CYGINT_ISO_STDIO_ERROR ++}; ++ ++# Stdio error handling implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_ERROR_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGBLD_ISO_STDIO_ERROR_HEADER == "" ++}; ++ ++# POSIX fd-related function implementations ++# ++cdl_interface CYGINT_ISO_STDIO_POSIX_FDFUNCS { ++ # Implemented by CYGFUN_LIBC_STDIO_OPEN_POSIX_FDFUNCS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STDIO_POSIX_FDFUNCS ++ # CYGINT_ISO_STDIO_POSIX_FDFUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_POSIX_FDFUNCS ++ # Requires: 1 >= CYGINT_ISO_STDIO_POSIX_FDFUNCS ++}; ++ ++# POSIX fd-related function implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_POSIX_FDFUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Standard general utility functions ++# ++cdl_component CYGPKG_ISO_STDLIB { ++ # There is no associated value. ++}; ++ ++# > ++# String conversion function implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_STRCONV { ++ # Implemented by CYGPKG_LIBC_STDLIB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_STRCONV ++ # CYGINT_ISO_STDLIB_STRCONV == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_STRCONV ++ # Requires: 1 >= CYGINT_ISO_STDLIB_STRCONV ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGINT_ISO_STDLIB_STRCONV ++}; ++ ++# String conversion function implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_STRCONV_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGIMP_LIBC_STDLIB_INLINE_ATOX ++ # Requires: CYGBLD_ISO_STDLIB_STRCONV_HEADER == "" ++}; ++ ++# String to FP conversion function implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_STRCONV_FLOAT { ++ # Implemented by CYGFUN_LIBC_strtod, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_STRCONV_FLOAT ++ # CYGINT_ISO_STDLIB_STRCONV_FLOAT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_STRCONV_FLOAT ++ # Requires: 1 >= CYGINT_ISO_STDLIB_STRCONV_FLOAT ++ # option CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT ++ # Requires: CYGINT_ISO_STDLIB_STRCONV_FLOAT ++ # option CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT ++ # DefaultValue: 0 != CYGPKG_LIBM && ++ # 0 != CYGINT_ISO_STDLIB_STRCONV_FLOAT ++}; ++ ++# String to FP conversion function implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_STRCONV_FLOAT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Random number generator implementations ++# ++cdl_interface CYGINT_ISO_RAND { ++ # Implemented by CYGIMP_LIBC_RAND_SIMPLEST, active, disabled ++ # Implemented by CYGIMP_LIBC_RAND_SIMPLE1, active, enabled ++ # Implemented by CYGIMP_LIBC_RAND_KNUTH1, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_RAND ++ # CYGINT_ISO_RAND == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_RAND ++ # Requires: 1 >= CYGINT_ISO_RAND ++}; ++ ++# Random number generator implementation header ++# ++cdl_option CYGBLD_ISO_RAND_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Malloc implementations ++# ++cdl_interface CYGINT_ISO_MALLOC { ++ # Implemented by CYGPKG_MEMALLOC_MALLOC_ALLOCATORS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_MALLOC ++ # Requires: 1 >= CYGINT_ISO_MALLOC ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # Requires: CYGINT_ISO_MALLOC ++ # option CYGFUN_LIBC_STRING_STRDUP ++ # ActiveIf: CYGINT_ISO_MALLOC ++ # option CYGSEM_LIBC_STDIO_SETVBUF_MALLOC ++ # Requires: CYGINT_ISO_MALLOC ++ # option CYGSEM_LIBC_STDIO_SETVBUF_MALLOC ++ # DefaultValue: 0 != CYGINT_ISO_MALLOC ++ # component CYGPKG_LIBC_STDIO_OPEN ++ # Requires: CYGINT_ISO_MALLOC ++ # component CYGPKG_LIBC_STDIO_OPEN ++ # DefaultValue: 0 != CYGINT_ISO_MALLOC ++ # component CYGPKG_POSIX_MQUEUES ++ # Requires: CYGINT_ISO_MALLOC ++ # component CYGPKG_IO_FILEIO_INODE ++ # Requires: CYGINT_ISO_MALLOC ++}; ++ ++# Malloc implementation header ++# ++cdl_option CYGBLD_ISO_MALLOC_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Mallinfo() implementations ++# ++cdl_interface CYGINT_ISO_MALLINFO { ++ # Implemented by CYGPKG_MEMALLOC_MALLOC_ALLOCATORS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_MALLINFO ++ # CYGINT_ISO_MALLINFO == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_MALLINFO ++ # Requires: 1 >= CYGINT_ISO_MALLINFO ++}; ++ ++# Mallinfo() implementation header ++# ++cdl_option CYGBLD_ISO_MALLINFO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Program exit functionality implementations ++# ++cdl_interface CYGINT_ISO_EXIT { ++ # Implemented by CYGPKG_LIBC_STARTUP, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_EXIT ++ # CYGINT_ISO_EXIT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_EXIT ++ # Requires: 1 >= CYGINT_ISO_EXIT ++ # option CYGFUN_INFRA_DUMMY_ABORT ++ # Requires: !CYGINT_ISO_EXIT ++ # option CYGFUN_INFRA_DUMMY_ABORT ++ # DefaultValue: CYGINT_ISO_EXIT == 0 ++}; ++ ++# Program exit functionality implementation header ++# ++cdl_option CYGBLD_ISO_EXIT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Program environment implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_ENVIRON { ++ # Implemented by CYGPKG_LIBC_STDLIB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_ENVIRON ++ # CYGINT_ISO_STDLIB_ENVIRON == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_ENVIRON ++ # Requires: 1 >= CYGINT_ISO_STDLIB_ENVIRON ++}; ++ ++# Program environment implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_ENVIRON_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# system() implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_SYSTEM { ++ # Implemented by CYGPKG_LIBC_STDLIB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_SYSTEM ++ # CYGINT_ISO_STDLIB_SYSTEM == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_SYSTEM ++ # Requires: 1 >= CYGINT_ISO_STDLIB_SYSTEM ++}; ++ ++# system() implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_SYSTEM_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# bsearch() implementations ++# ++cdl_interface CYGINT_ISO_BSEARCH { ++ # Implemented by CYGPKG_LIBC_STDLIB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_BSEARCH ++ # CYGINT_ISO_BSEARCH == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_BSEARCH ++ # Requires: 1 >= CYGINT_ISO_BSEARCH ++}; ++ ++# bsearch() implementation header ++# ++cdl_option CYGBLD_ISO_BSEARCH_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# qsort() implementations ++# ++cdl_interface CYGINT_ISO_QSORT { ++ # Implemented by CYGPKG_LIBC_STDLIB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_QSORT ++ # CYGINT_ISO_STDLIB_QSORT (unknown) == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# qsort() implementation header ++# ++cdl_option CYGBLD_ISO_QSORT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# abs()/labs() implementations ++# ++cdl_interface CYGINT_ISO_ABS { ++ # Implemented by CYGPKG_LIBC_STDLIB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_ABS ++ # CYGINT_ISO_STDLIB_ABS (unknown) == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_TIME ++ # Requires: CYGINT_ISO_ABS ++}; ++ ++# abs()/labs() implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_ABS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGIMP_LIBC_STDLIB_INLINE_ABS ++ # Requires: CYGBLD_ISO_STDLIB_ABS_HEADER == "" ++}; ++ ++# div()/ldiv() implementations ++# ++cdl_interface CYGINT_ISO_DIV { ++ # Implemented by CYGPKG_LIBC_STDLIB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_DIV ++ # CYGINT_ISO_STDLIB_DIV (unknown) == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_TIME ++ # Requires: CYGINT_ISO_DIV ++}; ++ ++# div()/ldiv() implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_DIV_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGIMP_LIBC_STDLIB_INLINE_DIV ++ # Requires: CYGBLD_ISO_STDLIB_DIV_HEADER == "" ++}; ++ ++# Header defining the implementation's MB_CUR_MAX ++# ++cdl_option CYGBLD_ISO_STDLIB_MB_CUR_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_LIBC_I18N_MB_REQUIRED ++ # Requires: CYGBLD_ISO_STDLIB_MB_CUR_MAX_HEADER == "" ++}; ++ ++# Multibyte character implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_MULTIBYTE { ++ # Implemented by CYGPKG_LIBC_I18N, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_MULTIBYTE ++ # CYGINT_ISO_STDLIB_MULTIBYTE == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_MULTIBYTE ++ # Requires: 1 >= CYGINT_ISO_STDLIB_MULTIBYTE ++}; ++ ++# Multibyte character implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_MULTIBYTE_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# String functions ++# ++cdl_component CYGPKG_ISO_STRING { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of strerror() function ++# ++cdl_interface CYGINT_ISO_STRERROR { ++ # Implemented by CYGPKG_ERROR_STRERROR, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRERROR ++ # CYGINT_ISO_STRERROR == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRERROR ++ # Requires: 1 >= CYGINT_ISO_STRERROR ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGINT_ISO_STRERROR ++}; ++ ++# strerror() implementation header ++# ++cdl_option CYGBLD_ISO_STRERROR_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_ERROR_STRERROR ++ # Requires: CYGBLD_ISO_STRERROR_HEADER == "" ++}; ++ ++# memcpy() implementation header ++# ++cdl_option CYGBLD_ISO_MEMCPY_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# memset() implementation header ++# ++cdl_option CYGBLD_ISO_MEMSET_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of strtok_r() function ++# ++cdl_interface CYGINT_ISO_STRTOK_R { ++ # Implemented by CYGPKG_LIBC_STRING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRTOK_R ++ # CYGINT_ISO_STRTOK_R == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRTOK_R ++ # Requires: 1 >= CYGINT_ISO_STRTOK_R ++}; ++ ++# strtok_r() implementation header ++# ++cdl_option CYGBLD_ISO_STRTOK_R_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGBLD_ISO_STRTOK_R_HEADER == "" ++}; ++ ++# Number of implementations of locale-specific string functions ++# This covers locale-dependent string functions such as strcoll() ++# and strxfrm(). ++# ++cdl_interface CYGINT_ISO_STRING_LOCALE_FUNCS { ++ # Implemented by CYGPKG_LIBC_STRING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRING_LOCALE_FUNCS ++ # CYGINT_ISO_STRING_LOCALE_FUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRING_LOCALE_FUNCS ++ # Requires: 1 >= CYGINT_ISO_STRING_LOCALE_FUNCS ++}; ++ ++# Locale-specific string functions' implementation header ++# This covers locale-dependent string functions such as strcoll() ++# and strxfrm(). ++# ++cdl_option CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER == "" ++}; ++ ++# Number of implementations of BSD string functions ++# ++cdl_interface CYGINT_ISO_STRING_BSD_FUNCS { ++ # Implemented by CYGFUN_LIBC_STRING_BSD_FUNCS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRING_BSD_FUNCS ++ # CYGINT_ISO_STRING_BSD_FUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRING_BSD_FUNCS ++ # Requires: 1 >= CYGINT_ISO_STRING_BSD_FUNCS ++ # option CYGFUN_LIBC_TIME_POSIX ++ # Requires: CYGINT_ISO_STRING_BSD_FUNCS ++}; ++ ++# BSD string functions' implementation header ++# ++cdl_option CYGBLD_ISO_STRING_BSD_FUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGFUN_LIBC_STRING_BSD_FUNCS ++ # Requires: CYGBLD_ISO_STRING_BSD_FUNCS_HEADER == "" ++}; ++ ++# Number of implementations of other mem*() functions ++# ++cdl_interface CYGINT_ISO_STRING_MEMFUNCS { ++ # Implemented by CYGPKG_LIBC_STRING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRING_MEMFUNCS ++ # CYGINT_ISO_STRING_MEMFUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRING_MEMFUNCS ++ # Requires: 1 >= CYGINT_ISO_STRING_MEMFUNCS ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGINT_ISO_STRING_MEMFUNCS ++ # component CYGPKG_IO_ETH_DRIVERS_STAND_ALONE ++ # Requires: CYGINT_ISO_STRING_MEMFUNCS ++}; ++ ++# Other mem*() functions' implementation header ++# ++cdl_option CYGBLD_ISO_STRING_MEMFUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGBLD_ISO_STRING_MEMFUNCS_HEADER == "" ++}; ++ ++# Number of implementations of other ISO C str*() functions ++# This covers the other str*() functions defined by ISO C. ++# ++cdl_interface CYGINT_ISO_STRING_STRFUNCS { ++ # Implemented by CYGPKG_LIBC_STRING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRING_STRFUNCS ++ # Requires: 1 >= CYGINT_ISO_STRING_STRFUNCS ++ # option CYGFUN_INFRA_DUMMY_STRLEN ++ # Requires: !CYGINT_ISO_STRING_STRFUNCS ++ # option CYGFUN_INFRA_DUMMY_STRLEN ++ # DefaultValue: CYGINT_ISO_STRING_STRFUNCS == 0 ++ # package CYGPKG_LIBC_STDLIB ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # component CYGPKG_POSIX_MQUEUES ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # package CYGPKG_IO_FILEIO ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # component CYGPKG_IO_ETH_DRIVERS_NET ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++}; ++ ++# Other ISO C str*() functions' implementation header ++# This covers the other str*() functions defined by ISO C. ++# ++cdl_option CYGBLD_ISO_STRING_STRFUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGBLD_ISO_STRING_STRFUNCS_HEADER == "" ++}; ++ ++# < ++# Clock and time functionality ++# ++cdl_component CYGPKG_ISO_TIME { ++ # There is no associated value. ++}; ++ ++# > ++# time_t implementation header ++# ++cdl_option CYGBLD_ISO_TIME_T_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# clock_t implementation header ++# ++cdl_option CYGBLD_ISO_CLOCK_T_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# struct timeval implementation header ++# ++cdl_option CYGBLD_ISO_STRUCTTIMEVAL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_CLOCKS ++ # Requires: CYGBLD_ISO_STRUCTTIMEVAL_HEADER == "" ++}; ++ ++# Number of implementations of POSIX timer types ++# ++cdl_interface CYGINT_ISO_POSIX_TIMER_TYPES { ++ # Implemented by CYGPKG_POSIX_TIMERS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMER_TYPES ++ # CYGINT_ISO_POSIX_TIMER_TYPES == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_TIMER_TYPES ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMER_TYPES ++}; ++ ++# POSIX timer types implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_TIMER_TYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_TIMERS ++ # Requires: CYGBLD_ISO_POSIX_TIMER_TYPES_HEADER == "" ++}; ++ ++# Number of implementations of POSIX clock types ++# ++cdl_interface CYGINT_ISO_POSIX_CLOCK_TYPES { ++ # Implemented by CYGPKG_POSIX_CLOCKS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_POSIX_CLOCK_TYPES ++ # CYGINT_ISO_POSIX_CLOCK_TYPES == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_CLOCK_TYPES ++ # Requires: 1 >= CYGINT_ISO_POSIX_CLOCK_TYPES ++}; ++ ++# POSIX clock types implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_CLOCK_TYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_CLOCKS ++ # Requires: CYGBLD_ISO_POSIX_CLOCK_TYPES_HEADER == "" ++}; ++ ++# Number of implementations of ISO C types ++# ++cdl_interface CYGINT_ISO_C_TIME_TYPES { ++ # Implemented by CYGPKG_LIBC_TIME, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_C_TIME_TYPES ++ # CYGINT_ISO_C_TIME_TYPES == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_C_TIME_TYPES ++ # Requires: 1 >= CYGINT_ISO_C_TIME_TYPES ++}; ++ ++# ISO C time types implementation header ++# ++cdl_option CYGBLD_ISO_C_TIME_TYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_TIME ++ # Requires: CYGBLD_ISO_C_TIME_TYPES_HEADER == "" ++}; ++ ++# Number of implementations of POSIX timers ++# ++cdl_interface CYGINT_ISO_POSIX_TIMERS { ++ # Implemented by CYGPKG_POSIX_TIMERS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMERS ++ # CYGINT_ISO_POSIX_TIMERS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_TIMERS ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMERS ++}; ++ ++# POSIX timer implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_TIMERS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_TIMERS ++ # Requires: CYGBLD_ISO_POSIX_TIMERS_HEADER == "" ++}; ++ ++# Number of implementations of POSIX clocks ++# ++cdl_interface CYGINT_ISO_POSIX_CLOCKS { ++ # Implemented by CYGPKG_POSIX_CLOCKS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_POSIX_CLOCKS ++ # CYGINT_ISO_POSIX_CLOCKS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_CLOCKS ++ # Requires: 1 >= CYGINT_ISO_POSIX_CLOCKS ++ # option CYGPKG_POSIX_TIMERS ++ # Requires: CYGINT_ISO_POSIX_CLOCKS ++}; ++ ++# POSIX clocks implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_CLOCKS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_CLOCKS ++ # Requires: CYGBLD_ISO_POSIX_CLOCKS_HEADER == "" ++}; ++ ++# Number of implementations of ISO C clock functions ++# ++cdl_interface CYGINT_ISO_C_CLOCK_FUNCS { ++ # Implemented by CYGPKG_LIBC_TIME, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_C_CLOCK_FUNCS ++ # CYGINT_ISO_C_CLOCK_FUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_C_CLOCK_FUNCS ++ # Requires: 1 >= CYGINT_ISO_C_CLOCK_FUNCS ++}; ++ ++# ISO C clock functions' implementation header ++# ++cdl_option CYGBLD_ISO_C_CLOCK_FUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_TIME ++ # Requires: CYGBLD_ISO_C_CLOCK_FUNCS_HEADER == "" ++}; ++ ++# Number of implementations of tzset() function ++# ++cdl_interface CYGINT_ISO_TZSET { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_TZSET ++ # CYGINT_ISO_TZSET == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_TZSET ++ # Requires: 1 >= CYGINT_ISO_TZSET ++}; ++ ++# tzset() implementation header ++# ++cdl_option CYGBLD_ISO_TZSET_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Signal functionality ++# ++cdl_component CYGPKG_ISO_SIGNAL { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of signal numbers ++# ++cdl_interface CYGINT_ISO_SIGNAL_NUMBERS { ++ # Implemented by CYGPKG_POSIX_SIGNALS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_SIGNAL_NUMBERS ++ # CYGINT_ISO_SIGNAL_NUMBERS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SIGNAL_NUMBERS ++ # Requires: 1 >= CYGINT_ISO_SIGNAL_NUMBERS ++ # option CYGSEM_IO_SERIAL_TERMIOS_USE_SIGNALS ++ # Requires: CYGINT_ISO_SIGNAL_NUMBERS ++ # option CYGSEM_IO_SERIAL_TERMIOS_USE_SIGNALS ++ # DefaultValue: CYGINT_ISO_SIGNAL_NUMBERS != 0 && CYGINT_ISO_SIGNAL_IMPL != 0 ++}; ++ ++# Signal numbering implementation header ++# This header provides the mapping of signal ++# names (e.g. SIGBUS) to numbers. ++# ++cdl_option CYGBLD_ISO_SIGNAL_NUMBERS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_POSIX_SIGNALS ++ # Requires: CYGBLD_ISO_SIGNAL_NUMBERS_HEADER == "" ++}; ++ ++# Number of signal implementations ++# ++cdl_interface CYGINT_ISO_SIGNAL_IMPL { ++ # Implemented by CYGPKG_POSIX_SIGNALS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_SIGNAL_IMPL ++ # CYGINT_ISO_SIGNAL_IMPL == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SIGNAL_IMPL ++ # Requires: 1 >= CYGINT_ISO_SIGNAL_IMPL ++ # option CYGSEM_IO_SERIAL_TERMIOS_USE_SIGNALS ++ # Requires: CYGINT_ISO_SIGNAL_IMPL ++ # option CYGSEM_IO_SERIAL_TERMIOS_USE_SIGNALS ++ # DefaultValue: CYGINT_ISO_SIGNAL_NUMBERS != 0 && CYGINT_ISO_SIGNAL_IMPL != 0 ++}; ++ ++# Signals implementation header ++# ++cdl_option CYGBLD_ISO_SIGNAL_IMPL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_POSIX_SIGNALS ++ # Requires: CYGBLD_ISO_SIGNAL_IMPL_HEADER == "" ++}; ++ ++# POSIX real time signals feature test macro ++# This defines the POSIX feature test macro ++# that indicates that the POSIX real time signals ++# are present. ++# ++cdl_interface CYGINT_POSIX_REALTIME_SIGNALS { ++ # Implemented by CYGPKG_POSIX_SIGNALS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_POSIX_REALTIME_SIGNALS ++ # CYGINT_POSIX_REALTIME_SIGNALS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_POSIX_REALTIME_SIGNALS ++ # Requires: 1 >= CYGINT_POSIX_REALTIME_SIGNALS ++}; ++ ++# < ++# Non-local jumps functionality ++# ++cdl_component CYGPKG_ISO_SETJMP { ++ # There is no associated value. ++}; ++ ++# > ++# setjmp() / longjmp() implementations ++# ++cdl_interface CYGINT_ISO_SETJMP { ++ # Implemented by CYGPKG_LIBC_SETJMP, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_SETJMP ++ # CYGINT_ISO_SETJMP == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SETJMP ++ # Requires: 1 >= CYGINT_ISO_SETJMP ++}; ++ ++# setjmp() / longjmp() implementation header ++# ++cdl_option CYGBLD_ISO_SETJMP_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_SETJMP ++ # Requires: CYGBLD_ISO_SETJMP_HEADER == "" ++}; ++ ++# sigsetjmp() / siglongjmp() implementations ++# ++cdl_interface CYGINT_ISO_SIGSETJMP { ++ # Implemented by CYGPKG_POSIX_SIGNALS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_SIGSETJMP ++ # CYGINT_ISO_SIGSETJMP == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SIGSETJMP ++ # Requires: 1 >= CYGINT_ISO_SIGSETJMP ++}; ++ ++# sigsetjmp() / siglongjmp() implementation header ++# ++cdl_option CYGBLD_ISO_SIGSETJMP_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_POSIX_SIGNALS ++ # Requires: CYGBLD_ISO_SIGSETJMP_HEADER == "" ++}; ++ ++# < ++# Assertions implementation header ++# ++cdl_option CYGBLD_ISO_ASSERT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX file control ++# This covers the POSIX file control definitions, ++# normally found in ++# ++cdl_component CYGPKG_ISO_POSIX_FCNTL { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX open flags implementation header ++# ++cdl_option CYGBLD_ISO_OFLAG_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX fcntl() implementations ++# ++cdl_interface CYGINT_ISO_FCNTL { ++ # Implemented by CYGPKG_IO_FILEIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_FCNTL ++ # CYGINT_ISO_FCNTL == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_FCNTL ++ # Requires: 1 >= CYGINT_ISO_FCNTL ++}; ++ ++# POSIX fcntl() implementation header ++# ++cdl_option CYGBLD_ISO_FCNTL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX file open implementations ++# ++cdl_interface CYGINT_ISO_OPEN { ++ # Implemented by CYGPKG_IO_FILEIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_OPEN ++ # CYGINT_ISO_OPEN == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_OPEN ++ # Requires: 1 >= CYGINT_ISO_OPEN ++}; ++ ++# POSIX file open implementation header ++# ++cdl_option CYGBLD_ISO_OPEN_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# definitions implementation header ++# ++cdl_option CYGBLD_ISO_STAT_DEFS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX directory reading implementation ++# ++cdl_interface CYGINT_ISO_DIRENT { ++ # Implemented by CYGPKG_IO_FILEIO, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_DIRENT ++ # CYGINT_ISO_DIRENT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_DIRENT ++ # Requires: 1 >= CYGINT_ISO_DIRENT ++}; ++ ++# definitions implementation header ++# ++cdl_option CYGBLD_ISO_DIRENT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_FILEIO ++ # Requires: CYGBLD_ISO_DIRENT_HEADER == "" ++}; ++ ++# POSIX contents ++# This covers the types required by POSIX to be in ++# ++# ++cdl_component CYGPKG_ISO_POSIX_TYPES { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX thread types implementations ++# ++cdl_interface CYGINT_ISO_PTHREADTYPES { ++ # Implemented by CYGPKG_POSIX_PTHREAD_REQUIREMENTS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_PTHREADTYPES ++ # CYGINT_ISO_PTHREADTYPES == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_PTHREADTYPES ++ # Requires: 1 >= CYGINT_ISO_PTHREADTYPES ++ # interface CYGINT_ISO_PMUTEXTYPES ++ # Requires: 1 >= CYGINT_ISO_PTHREADTYPES ++}; ++ ++# POSIX thread types implementation header ++# ++cdl_option CYGBLD_ISO_PTHREADTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_PTHREAD_REQUIREMENTS ++ # Requires: CYGBLD_ISO_PTHREADTYPES_HEADER == "" ++}; ++ ++# POSIX mutex types implementations ++# ++cdl_interface CYGINT_ISO_PMUTEXTYPES { ++ # Implemented by CYGPKG_POSIX_PTHREAD_MUTEX, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_PTHREADTYPES ++ # CYGINT_ISO_PTHREADTYPES == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# POSIX mutex types implementation header ++# ++cdl_option CYGBLD_ISO_PMUTEXTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_POSIX ++ # Requires: CYGBLD_ISO_PMUTEXTYPES_HEADER == "" ++}; ++ ++# ssize_t implementation header ++# ++cdl_option CYGBLD_ISO_SSIZE_T_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Filesystem types implementation header ++# ++cdl_option CYGBLD_ISO_FSTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# gid_t, pid_t, uid_t implementation header ++# ++cdl_option CYGBLD_ISO_SCHEDTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Non-POSIX contents ++# This covers the extra types required by non-POSIX ++# packages to be in . These would normally ++# only be visible if _POSIX_SOURCE is not defined. ++# ++cdl_component CYGPKG_ISO_EXTRA_TYPES { ++ # There is no associated value. ++}; ++ ++# > ++# BSD compatible types ++# ++cdl_interface CYGINT_ISO_BSDTYPES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_BSDTYPES ++ # CYGINT_ISO_BSDTYPES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_BSDTYPES ++ # Requires: 1 >= CYGINT_ISO_BSDTYPES ++}; ++ ++# BSD types header ++# ++cdl_option CYGBLD_ISO_BSDTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++}; ++ ++# < ++# Utsname structure ++# ++cdl_component CYGPKG_ISO_UTSNAME { ++ # There is no associated value. ++}; ++ ++# > ++# Utsname header ++# ++cdl_option CYGBLD_ISO_UTSNAME_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_POSIX_UTSNAME ++ # Requires: CYGBLD_ISO_UTSNAME_HEADER == "" ++}; ++ ++# < ++# POSIX scheduler ++# ++cdl_component CYGPKG_ISO_SCHED { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX scheduler implementations ++# ++cdl_interface CYGINT_ISO_SCHED_IMPL { ++ # Implemented by CYGPKG_POSIX_SCHED, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_SCHED_IMPL ++ # CYGINT_ISO_SCHED_IMPL == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SCHED_IMPL ++ # Requires: 1 >= CYGINT_ISO_SCHED_IMPL ++}; ++ ++# POSIX scheduler implementation header ++# ++cdl_option CYGBLD_ISO_SCHED_IMPL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# POSIX semaphores ++# ++cdl_component CYGPKG_ISO_SEMAPHORES { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX semaphore implementations ++# ++cdl_interface CYGINT_ISO_SEMAPHORES { ++ # Implemented by CYGPKG_POSIX_SEMAPHORES, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_SEMAPHORES ++ # CYGINT_ISO_SEMAPHORES == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SEMAPHORES ++ # Requires: 1 >= CYGINT_ISO_SEMAPHORES ++}; ++ ++# POSIX semaphore implementation header ++# ++cdl_option CYGBLD_ISO_SEMAPHORES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_SEMAPHORES ++ # Requires: CYGBLD_ISO_SEMAPHORES_HEADER == "" ++}; ++ ++# < ++# POSIX message queues ++# ++cdl_component CYGPKG_ISO_MQUEUE { ++ # There is no associated value. ++}; ++ ++# > ++# Implementations ++# ++cdl_interface CYGINT_ISO_MQUEUE { ++ # Implemented by CYGPKG_POSIX_MQUEUES, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_MQUEUE ++ # CYGINT_ISO_MQUEUE == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_MQUEUE ++ # Requires: 1 >= CYGINT_ISO_MQUEUE ++ # option CYGNUM_ISO_MQUEUE_OPEN_MAX ++ # ActiveIf: CYGINT_ISO_MQUEUE ++ # option CYGNUM_ISO_MQUEUE_PRIO_MAX ++ # ActiveIf: CYGINT_ISO_MQUEUE ++}; ++ ++# Implementation header ++# ++cdl_option CYGBLD_ISO_MQUEUE_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Maximum number of open message queues ++# ++cdl_option CYGNUM_ISO_MQUEUE_OPEN_MAX { ++ # ActiveIf constraint: CYGINT_ISO_MQUEUE ++ # CYGINT_ISO_MQUEUE == 1 ++ # --> 1 ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 8 ++ # value_source default ++ # Default value: CYGNUM_POSIX_MQUEUE_OPEN_MAX > 0 ? CYGNUM_POSIX_MQUEUE_OPEN_MAX : 0 ++ # CYGNUM_POSIX_MQUEUE_OPEN_MAX == 8 ++ # CYGNUM_POSIX_MQUEUE_OPEN_MAX == 8 ++ # --> 1 8 ++}; ++ ++# Maximum number of message priorities ++# ++cdl_option CYGNUM_ISO_MQUEUE_PRIO_MAX { ++ # ActiveIf constraint: CYGINT_ISO_MQUEUE ++ # CYGINT_ISO_MQUEUE == 1 ++ # --> 1 ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 65535 ++ # value_source default ++ # Default value: 1 65535 ++}; ++ ++# < ++# POSIX threads ++# ++cdl_component CYGPKG_ISO_PTHREAD { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX pthread implementations ++# ++cdl_interface CYGINT_ISO_PTHREAD_IMPL { ++ # Implemented by CYGPKG_POSIX_PTHREAD_REQUIREMENTS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_PTHREAD_IMPL ++ # CYGINT_ISO_PTHREAD_IMPL == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_PTHREAD_IMPL ++ # Requires: 1 >= CYGINT_ISO_PTHREAD_IMPL ++}; ++ ++# POSIX pthread implementation header ++# ++cdl_option CYGBLD_ISO_PTHREAD_IMPL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_PTHREAD_REQUIREMENTS ++ # Requires: CYGBLD_ISO_PTHREAD_IMPL_HEADER == "" ++}; ++ ++# POSIX mutex/cond var implementations ++# ++cdl_interface CYGINT_ISO_PTHREAD_MUTEX { ++ # Implemented by CYGPKG_POSIX_PTHREAD_MUTEX, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_PTHREAD_MUTEX ++ # CYGINT_ISO_PTHREAD_MUTEX == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_PTHREAD_MUTEX ++ # Requires: 1 >= CYGINT_ISO_PTHREAD_MUTEX ++ # component CYGPKG_POSIX_MQUEUES ++ # Requires: CYGINT_ISO_PTHREAD_MUTEX ++}; ++ ++# POSIX mutex/cond var implementation header ++# ++cdl_option CYGBLD_ISO_PTHREAD_MUTEX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_POSIX ++ # Requires: CYGBLD_ISO_PTHREAD_MUTEX_HEADER == "" ++}; ++ ++# < ++# Limits ++# ++cdl_component CYGPKG_ISO_LIMITS { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX pthread limits implementations ++# ++cdl_interface CYGINT_ISO_POSIX_LIMITS { ++ # Implemented by CYGPKG_POSIX, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_POSIX_LIMITS ++ # CYGINT_ISO_POSIX_LIMITS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_LIMITS ++ # Requires: 1 >= CYGINT_ISO_POSIX_LIMITS ++}; ++ ++# POSIX pthread limits implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_LIMITS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_POSIX ++ # Requires: CYGBLD_ISO_POSIX_LIMITS_HEADER == "" ++}; ++ ++# OPEN_MAX implementation header ++# ++cdl_option CYGBLD_ISO_OPEN_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_FILEIO ++ # Requires: CYGBLD_ISO_OPEN_MAX_HEADER == "" ++}; ++ ++# LINK_MAX implementation header ++# ++cdl_option CYGBLD_ISO_LINK_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# NAME_MAX implementation header ++# ++cdl_option CYGBLD_ISO_NAME_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_FILEIO ++ # Requires: CYGBLD_ISO_NAME_MAX_HEADER == "" ++}; ++ ++# PATH_MAX implementation header ++# ++cdl_option CYGBLD_ISO_PATH_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# POSIX termios ++# ++cdl_component CYGPKG_ISO_TERMIOS { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX termios implementations ++# ++cdl_interface CYGINT_ISO_TERMIOS { ++ # Implemented by CYGPKG_IO_SERIAL_TERMIOS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_TERMIOS ++ # CYGINT_ISO_TERMIOS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_TERMIOS ++ # Requires: 1 >= CYGINT_ISO_TERMIOS ++}; ++ ++# POSIX termios implementation header ++# ++cdl_option CYGBLD_ISO_TERMIOS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Dynamic load API ++# ++cdl_component CYGPKG_ISO_DLFCN { ++ # There is no associated value. ++}; ++ ++# > ++# Dynamic load implementations ++# ++cdl_interface CYGINT_ISO_DLFCN { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_DLFCN ++ # CYGINT_ISO_DLFCN == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_DLFCN ++ # Requires: 1 >= CYGINT_ISO_DLFCN ++}; ++ ++# Dynamic load implementation header ++# ++cdl_option CYGBLD_ISO_DLFCN_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# UNIX standard functions ++# ++cdl_component CYGPKG_ISO_UNISTD { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX timer operations implementations ++# ++cdl_interface CYGINT_ISO_POSIX_TIMER_OPS { ++ # Implemented by CYGPKG_POSIX_TIMERS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMER_OPS ++ # CYGINT_ISO_POSIX_TIMER_OPS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_TIMER_OPS ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMER_OPS ++}; ++ ++# POSIX timer operations implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_TIMER_OPS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX sleep() implementations ++# ++cdl_interface CYGINT_ISO_POSIX_SLEEP { ++ # Implemented by CYGPKG_POSIX_CLOCKS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_POSIX_SLEEP ++ # CYGINT_ISO_POSIX_SLEEP == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_SLEEP ++ # Requires: 1 >= CYGINT_ISO_POSIX_SLEEP ++}; ++ ++# POSIX sleep() implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_SLEEP_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# select()/poll() functions ++# ++cdl_component CYGPKG_ISO_SELECT { ++ # There is no associated value. ++}; ++ ++# > ++# select() implementations ++# ++cdl_interface CYGINT_ISO_SELECT { ++ # Implemented by CYGFUN_IO_FILEIO_SELECT, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_SELECT ++ # CYGINT_ISO_SELECT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SELECT ++ # Requires: 1 >= CYGINT_ISO_SELECT ++}; ++ ++# select() implementation header ++# ++cdl_option CYGBLD_ISO_SELECT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# poll() implementations ++# ++cdl_interface CYGINT_ISO_POLL { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_POLL ++ # CYGINT_ISO_POLL == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POLL ++ # Requires: 1 >= CYGINT_ISO_POLL ++}; ++ ++# poll() implementation header ++# ++cdl_option CYGBLD_ISO_POLL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# NetDB utility functions ++# ++cdl_component CYGPKG_ISO_NETDB { ++ # There is no associated value. ++}; ++ ++# > ++# DNS implementations ++# ++cdl_interface CYGINT_ISO_DNS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: bool ++ # Current value: 0 ++ # Requires: 1 >= CYGINT_ISO_DNS ++ # CYGINT_ISO_DNS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_DNS ++ # Requires: 1 >= CYGINT_ISO_DNS ++}; ++ ++# DNS implementation header ++# ++cdl_option CYGBLD_ISO_DNS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++}; ++ ++# Protocol network database implementations ++# ++cdl_interface CYGINT_ISO_NETDB_PROTO { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: bool ++ # Current value: 0 ++ # Requires: 1 >= CYGINT_ISO_NETDB_PROTO ++ # CYGINT_ISO_NETDB_PROTO == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_NETDB_PROTO ++ # Requires: 1 >= CYGINT_ISO_NETDB_PROTO ++}; ++ ++# Protocol network database implementation header ++# ++cdl_option CYGBLD_ISO_NETDB_PROTO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++}; ++ ++# Services network database implementations ++# ++cdl_interface CYGINT_ISO_NETDB_SERV { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: bool ++ # Current value: 0 ++ # Requires: 1 >= CYGINT_ISO_NETDB_SERV ++ # CYGINT_ISO_NETDB_SERV == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_NETDB_SERV ++ # Requires: 1 >= CYGINT_ISO_NETDB_SERV ++}; ++ ++# Services network database implementation header ++# ++cdl_option CYGBLD_ISO_NETDB_SERV_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++}; ++ ++# < ++# Build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_ISOINFRA_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the ISO C and POSIX infrastructure package. ++# These flags are used in addition to the set of global flags. ++# ++cdl_option CYGPKG_ISOINFRA_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the ISO C and POSIX infrastructure package. ++# These flags are removed from the set of global flags ++# if present. ++# ++cdl_option CYGPKG_ISOINFRA_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# < ++# eCos kernel ++# doc: ref/kernel.html ++# This package contains the core functionality of the eCos ++# kernel. It relies on functionality provided by various HAL ++# packages and by the eCos infrastructure. In turn the eCos ++# kernel provides support for other packages such as the device ++# drivers and the uITRON compatibility layer. ++# ++cdl_package CYGPKG_KERNEL { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # option CYGFUN_HAL_COMMON_KERNEL_SUPPORT ++ # Requires: CYGPKG_KERNEL ++ # option CYGFUN_HAL_COMMON_KERNEL_SUPPORT ++ # DefaultValue: CYGPKG_KERNEL ++ # option CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE ++ # DefaultValue: CYGPKG_KERNEL ? 4096 : 32768 ++ # option CYGSEM_MEMALLOC_ALLOCATOR_FIXED_THREADAWARE ++ # ActiveIf: CYGPKG_KERNEL ++ # option CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_THREADAWARE ++ # ActiveIf: CYGPKG_KERNEL ++ # option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_THREADAWARE ++ # ActiveIf: CYGPKG_KERNEL ++ # option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_THREADAWARE ++ # Requires: CYGPKG_KERNEL ++ # option CYGSEM_MEMALLOC_ALLOCATOR_SEPMETA_THREADAWARE ++ # ActiveIf: CYGPKG_KERNEL ++ # option CYGFUN_MEMALLOC_KAPI ++ # ActiveIf: CYGPKG_KERNEL ++ # option CYGSEM_LIBC_STRING_PER_THREAD_STRTOK ++ # ActiveIf: CYGPKG_KERNEL ++ # option CYGSEM_LIBC_I18N_PER_THREAD_MB ++ # ActiveIf: CYGPKG_KERNEL ++ # option CYGSEM_LIBC_STARTUP_MAIN_INITCONTEXT ++ # DefaultValue: 0 == CYGPKG_KERNEL && 0 == ++ # CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # component CYGSEM_LIBC_STARTUP_MAIN_THREAD ++ # Requires: CYGPKG_KERNEL ++ # component CYGSEM_LIBC_STARTUP_MAIN_THREAD ++ # DefaultValue: 0 != CYGPKG_KERNEL && 0 == CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # option CYGSEM_LIBC_EXIT_STOPS_SYSTEM ++ # Requires: CYGPKG_KERNEL ++ # option CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS ++ # ActiveIf: CYGPKG_KERNEL ++ # package CYGPKG_POSIX ++ # Requires: CYGPKG_KERNEL ++ # option CYGPKG_POSIX_CLOCKS ++ # Requires: CYGPKG_KERNEL ++ # option CYGPKG_POSIX_TIMERS ++ # Requires: CYGPKG_KERNEL ++ # component CYGPKG_POSIX_MQUEUES ++ # Requires: CYGPKG_KERNEL ++ # option CYGPKG_WALLCLOCK_EMULATE ++ # Requires: CYGPKG_KERNEL ++ # option CYGIMP_WALLCLOCK_NONE ++ # DefaultValue: !CYGPKG_KERNEL && 0 == CYGINT_WALLCLOCK_HW_IMPLEMENTATIONS ++ # option CYGPKG_IO_WALLCLOCK_TESTS ++ # Calculated: CYGPKG_KERNEL ? "tests/wallclock tests/wallclock2" : "" ++ # option CYGFUN_IO_FILEIO_SELECT ++ # ActiveIf: CYGPKG_KERNEL ++ # option CYGPKG_IO_FILEIO_SOCKET_SUPPORT ++ # ActiveIf: CYGPKG_KERNEL ++}; ++ ++# > ++# Kernel interrupt handling ++# doc: ref/kernel-interrupts.html ++# The majority of configuration options related to interrupt ++# handling are in the HAL packages, since usually the code has ++# to be platform-specific. There are a number of options ++# provided within the kernel related to slightly higher-level ++# concepts, for example Delayed Service Routines. ++# ++cdl_component CYGPKG_KERNEL_INTERRUPTS { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++ # option CYGDBG_KERNEL_INSTRUMENT_INTR ++ # ActiveIf: CYGPKG_KERNEL_INTERRUPTS ++}; ++ ++# > ++# Use delayed service routines (DSRs) ++# In eCos the recommended way to handle device interrupts is to ++# do a minimum amount of work inside the low level interrupt ++# handler itself, and instead do as much as possible in a ++# Delayed Service Routine or DSR. If an application does not ++# make use of DSRs directly or indirectly then it is possible ++# to disable the DSR support completely, which reduces the ++# overheads of context switches and interrupt handling. Note ++# that the kernel real-time clock makes use of DSRs, as do many ++# of the device drivers. ++# ++cdl_component CYGIMP_KERNEL_INTERRUPTS_DSRS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGVAR_KERNEL_COUNTERS_CLOCK ++ # Requires: CYGIMP_KERNEL_INTERRUPTS_DSRS ++}; ++ ++# > ++# ++cdl_interface CYGINT_KERNEL_INTERRUPTS_DSRS { ++ # Implemented by CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST, active, enabled ++ # Implemented by CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 == CYGINT_KERNEL_INTERRUPTS_DSRS ++ # CYGINT_KERNEL_INTERRUPTS_DSRS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_KERNEL_INTERRUPTS_DSRS ++ # Requires: 1 == CYGINT_KERNEL_INTERRUPTS_DSRS ++}; ++ ++# Use linked lists for DSRs ++# When DSR support is enabled the kernel must keep track of all ++# the DSRs that are pending. This information can be kept in a ++# fixed-size table or in a linked list. The list implementation ++# requires that the kernel disable interrupts for a very short ++# period of time outside interrupt handlers, but there is no ++# possibility of a table overflow occurring. ++# ++cdl_component CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Schedule DSRs in FIFO order ++# When this option is set, DSRs are scheduled ++# in the natural FIFO (first in, first out) order, ++# otherwise they are scheduled in LIFO (last in, first ++# out) order. Applications should not rely on any ++# particular order of scheduling of DSRs. LIFO ++# scheduling is kept for backward compatibility only and ++# is not recommended as it may lead to high (up to 2 ++# times higher then FIFO) IRQ-to-DSR latencies at some ++# (typically rare) conditions. If unsure, leave this set. ++# ++cdl_option CYGSEM_KERNEL_INTERRUPTS_DSRS_LIST_FIFO { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Use fixed-size table for DSRs ++# When DSR support is enabled the kernel must keep track of all ++# the DSRs that are pending. This information can be kept in a ++# fixed-size table or in a linked list. The table ++# implementation involves a very small risk of overflow at ++# run-time if a given interrupt source is able to have more ++# than one pending DSR. However it has the advantage that ++# the kernel does not need to disable interrupts outside ++# interrupt handlers. ++# ++cdl_component CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Number of entries in fixed-size DSR table ++# When DSR support is enabled the kernel must keep track of all ++# the DSRs that are pending. One approach involves a fixed-size ++# table, which involves a very small risk of overflow at ++# run-time. By increasing the table size it is possible to reduce ++# this risk. ++# ++cdl_option CYGNUM_KERNEL_INTERRUPTS_DSRS_TABLE_SIZE { ++ # This option is not active ++ # The parent CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: 32 ++ # Legal values: 2 to 1024 ++}; ++ ++# < ++# Chain all interrupts together ++# Interrupts can be attached to vectors either singly, or be ++# chained together. The latter is necessary if there is no way ++# of discovering which device has interrupted without ++# inspecting the device itself. It can also reduce the amount ++# of RAM needed for interrupt decoding tables and code. ++# ++cdl_option CYGIMP_KERNEL_INTERRUPTS_CHAIN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN ++ # CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN == 0 ++ # --> 0 ++}; ++ ++# < ++# < ++# Exception handling ++# doc: ref/kernel-exceptions.html ++# In the context of the eCos kernel exceptions are unexpected ++# events detected by the hardware, for example an attempt to ++# execute an illegal instruction. There is no relation with ++# other forms of exception, for example the catch and throw ++# facilities of languages like C++. It is possible to disable ++# all support for exceptions and thus save some memory. ++# ++cdl_component CYGPKG_KERNEL_EXCEPTIONS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGPKG_HAL_EXCEPTIONS ++ # CYGPKG_HAL_EXCEPTIONS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_HAL_EXCEPTIONS ++ # Requires: CYGPKG_KERNEL_EXCEPTIONS ++ # option CYGPKG_HAL_EXCEPTIONS ++ # DefaultValue: CYGPKG_KERNEL_EXCEPTIONS ++ # component CYGPKG_POSIX_SIGNALS ++ # Requires: CYGPKG_KERNEL_EXCEPTIONS ++}; ++ ++# > ++# Decode exception types in kernel ++# On targets where several different types of exception are ++# possible, for example executing an illegal instruction and ++# division by zero, it is possible for the kernel to do some ++# decoding of the exception type and deliver the different ++# types of exception to different handlers in the application ++# code. Alternatively the kernel can simply pass all ++# exceptions directly to application code, leaving the ++# decoding to be done by the application ++# ++cdl_option CYGSEM_KERNEL_EXCEPTIONS_DECODE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Use global exception handlers ++# In the context of the eCos kernel exceptions are ++# unexpected events detected by the hardware, for ++# example an attempt to execute an illegal ++# instruction. If the kernel is configured ++# to support exceptions then two implementations are ++# possible. The default implementation involves a single set ++# of exception handlers that are in use for the entire ++# system. The alternative implementation allows different ++# exception handlers to be specified for each thread. ++# ++cdl_option CYGSEM_KERNEL_EXCEPTIONS_GLOBAL { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Kernel schedulers ++# doc: ref/kernel-overview.html#KERNEL-OVERVIEW-SCHEDULERS ++# The eCos kernel provides a choice of schedulers. In addition ++# there are a number of configuration options to control the ++# detailed behaviour of these schedulers. ++# ++cdl_component CYGPKG_KERNEL_SCHED { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++ # option CYGDBG_KERNEL_INSTRUMENT_SCHED ++ # ActiveIf: CYGPKG_KERNEL_SCHED ++}; ++ ++# > ++# Number of schedulers in this configuration ++# ++cdl_interface CYGINT_KERNEL_SCHEDULER { ++ # Implemented by CYGSEM_KERNEL_SCHED_MLQUEUE, active, enabled ++ # Implemented by CYGSEM_KERNEL_SCHED_BITMAP, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 == CYGINT_KERNEL_SCHEDULER ++ # CYGINT_KERNEL_SCHEDULER == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_KERNEL_SCHEDULER ++ # Requires: 1 == CYGINT_KERNEL_SCHEDULER ++}; ++ ++# Non-zero if the active schedule only has unique priorities ++# Not all schedulers allow mutiple threads to use the same ++# priority. That property is signalled via this option, allowing ++# scheduler and tests to behave accordingly. ++# ++cdl_interface CYGINT_KERNEL_SCHEDULER_UNIQUE_PRIORITIES { ++ # Implemented by CYGSEM_KERNEL_SCHED_BITMAP, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # component CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL ++ # Requires: CYGINT_KERNEL_SCHEDULER_UNIQUE_PRIORITIES == 0 ++}; ++ ++# Multi-level queue scheduler ++# The multi-level queue scheduler supports multiple priority ++# levels and multiple threads at each priority level. ++# Preemption between priority levels is automatic. Timeslicing ++# within a given priority level is controlled by a separate ++# configuration option. ++# ++cdl_component CYGSEM_KERNEL_SCHED_MLQUEUE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGPRI_KERNEL_SCHED_IMPL_HXX ++ # Calculated: CYGSEM_KERNEL_SCHED_BITMAP ? "" : CYGSEM_KERNEL_SCHED_MLQUEUE ? "" : CYGSEM_KERNEL_SCHED_LOTTERY ? "" : "!!!-- Configuration broken - no scheduler selected --!!!" ++ # component CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL ++ # ActiveIf: CYGSEM_KERNEL_SCHED_MLQUEUE ++ # option _POSIX_PRIORITY_SCHEDULING ++ # Requires: CYGSEM_KERNEL_SCHED_MLQUEUE ++ # option _POSIX_THREAD_PRIORITY_SCHEDULING ++ # Requires: CYGSEM_KERNEL_SCHED_MLQUEUE ++}; ++ ++# > ++# Output timeslices when tracing ++# When tracing is enabled, output trace messages every ++# timeslice. This can be quite verbose so is disabled by ++# default. ++# ++cdl_option CYGDBG_KERNEL_TRACE_TIMESLICE { ++ # This option is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: !CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE ++ # CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE == 0 ++ # --> 1 ++ # Requires: !CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY ++ # CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY == 0 ++ # --> 1 ++}; ++ ++# < ++# Bitmap scheduler ++# The bitmap scheduler supports multiple priority levels but ++# only one thread can exist at each priority level. This means ++# that scheduling decisions are very simple and hence the ++# scheduler is efficient. Preemption between priority levels is ++# automatic. Timeslicing within a given priority level is ++# irrelevant since there can be only one thread at each ++# priority level. ++# ++cdl_option CYGSEM_KERNEL_SCHED_BITMAP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: !CYGPKG_KERNEL_SMP_SUPPORT ++ # CYGPKG_KERNEL_SMP_SUPPORT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGPRI_KERNEL_SCHED_IMPL_HXX ++ # Calculated: CYGSEM_KERNEL_SCHED_BITMAP ? "" : CYGSEM_KERNEL_SCHED_MLQUEUE ? "" : CYGSEM_KERNEL_SCHED_LOTTERY ? "" : "!!!-- Configuration broken - no scheduler selected --!!!" ++ # component CYGSEM_KERNEL_SCHED_TIMESLICE ++ # Requires: !CYGSEM_KERNEL_SCHED_BITMAP ++}; ++ ++# Scheduler header file ++# This option sets a preprocessor symbol which names the header ++# file for the selected scheduler. It is used internally by the ++# common scheduler code to include the correct header file. ++# ++cdl_option CYGPRI_KERNEL_SCHED_IMPL_HXX { ++ # Calculated value: CYGSEM_KERNEL_SCHED_BITMAP ? "" : CYGSEM_KERNEL_SCHED_MLQUEUE ? "" : CYGSEM_KERNEL_SCHED_LOTTERY ? "" : "!!!-- Configuration broken - no scheduler selected --!!!" ++ # CYGSEM_KERNEL_SCHED_BITMAP == 0 ++ # CYGSEM_KERNEL_SCHED_MLQUEUE == 1 ++ # CYGSEM_KERNEL_SCHED_LOTTERY (unknown) == 0 ++ # Flavor: data ++ # Current_value: ++}; ++ ++# Number of priority levels ++# This option controls the number of priority levels that are ++# available. For some types of scheduler including the bitmap ++# scheduler this may impose an upper bound on the number of ++# threads in the system. For other schedulers such as the ++# mlqueue scheduler the number of threads is independent from ++# the number of priority levels. Note that the lowest priority ++# level is normally used only by the idle thread, although ++# application threads can run at this priority if necessary. ++# ++cdl_component CYGNUM_KERNEL_SCHED_PRIORITIES { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: 32 ++ # Legal values: 1 to 32 ++ ++ # The following properties are affected by this value ++ # option CYGIMP_IDLE_THREAD_YIELD ++ # ActiveIf: (CYGNUM_KERNEL_SCHED_PRIORITIES == 1) ++ # option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DEFAULT_PRIORITY ++ # LegalValues: 0 to CYGNUM_KERNEL_SCHED_PRIORITIES - 1 ++}; ++ ++# > ++# Bitmap size ++# This option automatically defines the size of bitmap ++# used to track occupied priority levels. ++# ++cdl_option CYGNUM_KERNEL_SCHED_BITMAP_SIZE { ++ # Calculated value: "CYGNUM_KERNEL_SCHED_PRIORITIES" ++ # Flavor: data ++ # Current_value: CYGNUM_KERNEL_SCHED_PRIORITIES ++}; ++ ++# Dequeue highest priority threads first ++# With this option enabled, threads queued in a thread queue ++# will be dequeued in priority order, rather than first in, ++# first out (FIFO). Threads of equal priority are dequeued ++# oldest first. The only exception is the scheduler run ++# queues where order is less important as each is already ++# sorted by priority. Note that this makes the thread queueing ++# less deterministic. ++# ++cdl_option CYGIMP_KERNEL_SCHED_SORTED_QUEUES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_POSIX ++ # Requires: CYGIMP_KERNEL_SCHED_SORTED_QUEUES ++}; ++ ++# < ++# Scheduler timeslicing ++# Some schedulers including the mlqueue scheduler support ++# timeslicing. This means that the kernel will check regularly ++# whether or not there is another runnable thread with the ++# same priority, and if there is such a thread there will be ++# an automatic context switch. Not all applications require ++# timeslicing, for example because every thread performs a ++# blocking operation regularly. For these applications it is ++# possible to disable timeslicing, which reduces the overheads ++# associated with timer interrupts. ++# ++cdl_component CYGSEM_KERNEL_SCHED_TIMESLICE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: !CYGSEM_KERNEL_SCHED_BITMAP ++ # CYGSEM_KERNEL_SCHED_BITMAP == 0 ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option _POSIX_THREADS ++ # Requires: CYGSEM_KERNEL_SCHED_TIMESLICE ++}; ++ ++# > ++# Number of clock ticks between timeslices ++# Assuming timeslicing is enabled, how frequently should it ++# take place? The value of this option corresponds to the ++# number of clock ticks that should occur before a timeslice ++# takes place, so increasing the value reduces the frequency ++# of timeslices. ++# ++cdl_option CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 5 ++ # value_source default ++ # Default value: 5 ++ # Legal values: 1 to 65535 ++}; ++ ++# Support runtime enable of timeslice per-thread ++# This option makes timslicing a per-thread runtime ++# option. When enabled, threads may have timeslicing ++# turned on or off dynamically. This is generally used ++# by higher level APIs (such as POSIX) to implement ++# differing scheduling policies. ++# ++cdl_option CYGSEM_KERNEL_SCHED_TIMESLICE_ENABLE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: false ++ # false (unknown) == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_PTHREAD_REQUIREMENTS ++ # Requires: CYGSEM_KERNEL_SCHED_TIMESLICE_ENABLE ++}; ++ ++# < ++# Enable ASR support ++# This component controls support for Asynchronous Service ++# Routines (ASRs). This is a function that may be called ++# from the scheduler when it has just exited the scheduler ++# lock. This is primarily for use by API compatibility layers. ++# ++cdl_component CYGSEM_KERNEL_SCHED_ASR_SUPPORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: false ++ # false (unknown) == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_PTHREAD_REQUIREMENTS ++ # Requires: CYGSEM_KERNEL_SCHED_ASR_SUPPORT ++}; ++ ++# > ++# Make ASR function global ++# This option controls whether the ASR function is shared by ++# all threads, or whether each thread may have its own ASR ++# function. ++# ++cdl_option CYGSEM_KERNEL_SCHED_ASR_GLOBAL { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: true ++ # true (unknown) == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_PTHREAD_REQUIREMENTS ++ # Requires: CYGSEM_KERNEL_SCHED_ASR_GLOBAL ++}; ++ ++# Make ASR data global ++# This option controls whether the ASR data is shared by ++# all threads, or whether each thread may have its own ASR ++# data. This is independent of the previous option because ++# it may be useful to pass per-thread data to a shared ASR ++# function. ++# ++cdl_option CYGSEM_KERNEL_SCHED_ASR_DATA_GLOBAL { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: true ++ # true (unknown) == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_PTHREAD_REQUIREMENTS ++ # Requires: !CYGSEM_KERNEL_SCHED_ASR_DATA_GLOBAL ++}; ++ ++# < ++# < ++# SMP support ++# ++cdl_component CYGPKG_KERNEL_SMP_SUPPORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGPKG_HAL_SMP_SUPPORT ++ # CYGPKG_HAL_SMP_SUPPORT == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_KERNEL_SCHED_BITMAP ++ # Requires: !CYGPKG_KERNEL_SMP_SUPPORT ++ # option CYGPKG_KERNEL_TESTS ++ # Calculated: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++}; ++ ++# Counters and clocks ++# doc: ref/kernel-counters.html ++# The counter objects provided by the kernel provide an ++# abstraction of the clock facility that is generally provided. ++# Application code can associate alarms with counters, where an ++# alarm is identified by the number of ticks until it triggers, ++# the action to be taken on triggering, and whether or not the ++# alarm should be repeated. ++# ++cdl_component CYGPKG_KERNEL_COUNTERS { ++ # There is no associated value. ++}; ++ ++# > ++# Provide real-time clock ++# On all current target systems the kernel can provide a ++# real-time clock. This clock serves two purposes. First it is ++# necessary to support clock and alarm related functions. ++# Second it is needed to implement timeslicing in some of the ++# schedulers including the mlqueue scheduler. If the ++# application does not require any of these facilities then it ++# is possible to disable the real time clock support ++# completely. ++# ++cdl_option CYGVAR_KERNEL_COUNTERS_CLOCK { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGIMP_KERNEL_INTERRUPTS_DSRS ++ # CYGIMP_KERNEL_INTERRUPTS_DSRS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGSEM_KERNEL_SCHED_TIMESLICE ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGNUM_KERNEL_COUNTERS_CLOCK_ISR_PRIORITY ++ # ActiveIf: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGFUN_KERNEL_THREADS_TIMER ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGDBG_KERNEL_INSTRUMENT_CLOCK ++ # ActiveIf: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGDBG_KERNEL_INSTRUMENT_ALARM ++ # ActiveIf: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGDBG_KERNEL_INSTRUMENT_SMP ++ # ActiveIf: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGFUN_HAL_I386_PCMB_GPROF_SUPPORT ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # component CYGPKG_HAL_TESTS ++ # Calculated: "tests/context tests/basic" ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES) ? " tests/cache" : "") ++ # . ((CYGPKG_HAL_BUILD_COMPILER_TESTS) ? " tests/cpp1 tests/vaargs" : "") ++ # . ((!CYGVAR_KERNEL_COUNTERS_CLOCK) ? " tests/intr" : "") ++ # option CYGSEM_LIBC_TIME_CLOCK_WORKING ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGPKG_POSIX_CLOCKS ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGPKG_POSIX_TIMERS ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # option CYGPKG_WATCHDOG_EMULATE ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++}; ++ ++# Interrupt priority for the real-time clock ++# The implementation of the kernel's real-time clock typically ++# involves installing an interrupt handler on a suitable hardware ++# timer. This option controls the priority level used for that ++# interrupt. On most platforms the value is not important because ++# the clock ISR leaves most of the work to be done by the DSR. ++# However some processors have interrupt controllers with special ++# requirements for the interrupt priorities, in which case ++# application developers must be able to manipulate the clock's ++# priority. ++# ++cdl_option CYGNUM_KERNEL_COUNTERS_CLOCK_ISR_PRIORITY { ++ # ActiveIf constraint: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: is_loaded(CYGNUM_HAL_KERNEL_COUNTERS_CLOCK_ISR_DEFAULT_PRIORITY) ? ++ # CYGNUM_HAL_KERNEL_COUNTERS_CLOCK_ISR_DEFAULT_PRIORITY : 1 ++ # CYGNUM_HAL_KERNEL_COUNTERS_CLOCK_ISR_DEFAULT_PRIORITY (unknown) == 0 ++ # CYGNUM_HAL_KERNEL_COUNTERS_CLOCK_ISR_DEFAULT_PRIORITY (unknown) == 0 ++ # --> 1 ++}; ++ ++# ++cdl_interface CYGINT_KERNEL_COUNTERS { ++ # Implemented by CYGIMP_KERNEL_COUNTERS_SINGLE_LIST, active, enabled ++ # Implemented by CYGIMP_KERNEL_COUNTERS_MULTI_LIST, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 == CYGINT_KERNEL_COUNTERS ++ # CYGINT_KERNEL_COUNTERS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_KERNEL_COUNTERS ++ # Requires: 1 == CYGINT_KERNEL_COUNTERS ++}; ++ ++# Implement counters using a single list ++# There are two different implementations of the counter ++# objects. The first implementation stores all alarms in a ++# single linked list. The alternative implementation uses a ++# table of linked lists. A single list is more efficient in ++# terms of memory usage and is generally adequate when the ++# application only makes use of a small number of alarms. ++# ++cdl_option CYGIMP_KERNEL_COUNTERS_SINGLE_LIST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Implement counters using a table of lists ++# There are two different implementations of the counter ++# objects. The first implementation stores all alarms in a ++# single linked list. The alternative implementation uses a ++# table of linked lists, with the size of the table being a ++# separate configurable option. For more complicated ++# operations it is better to have a table of lists since this ++# reduces the amount of computation whenever the timer goes ++# off. Assuming a table size of 8 (the default value) on ++# average the timer code will only need to check 1/8 of the ++# pending alarms instead of all of them. ++# ++cdl_component CYGIMP_KERNEL_COUNTERS_MULTI_LIST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Size of counter list table ++# If counters are implemented using an array of linked lists ++# then this option controls the size of the array. A larger ++# size reduces the amount of computation that needs to take ++# place whenever the timer goes off, but requires extra ++# memory. ++# ++cdl_option CYGNUM_KERNEL_COUNTERS_MULTI_LIST_SIZE { ++ # This option is not active ++ # The parent CYGIMP_KERNEL_COUNTERS_MULTI_LIST is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++ # Legal values: 1 to 1024 ++}; ++ ++# < ++# Sort the counter list ++# Sorting the counter lists reduces the amount of work that ++# has to be done when a counter tick is processed, since the ++# next alarm to expire is always at the front of the list. ++# However, it makes adding an alarm to the list more expensive ++# since a search must be done for the correct place to put it. ++# Many alarms are used to implement timeouts, which seldom trigger, ++# so it is worthwhile optimizing this case. For this reason ++# sorted list are disabled by default. ++# ++cdl_option CYGIMP_KERNEL_COUNTERS_SORT_LIST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Measure real-time [clock] interrupt latency ++# Measure the interrupt latency as seen by the real-time clock ++# timer interrupt. This requires hardware support, defined by ++# the HAL_CLOCK_LATENCY() macro. ++# ++cdl_option CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGVAR_KERNEL_COUNTERS_CLOCK_DSR_LATENCY ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY ++ # option CYGVAR_KERNEL_COUNTERS_CLOCK_DSR_LATENCY ++ # DefaultValue: CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY ++}; ++ ++# Measure real-time [clock] DSR latency ++# Measure the DSR latency as seen by the real-time clock ++# timer interrupt. This requires hardware support, defined by ++# the HAL_CLOCK_LATENCY() macro. ++# ++cdl_option CYGVAR_KERNEL_COUNTERS_CLOCK_DSR_LATENCY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY ++ # CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY == 0 ++ # --> 0 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY ++ # CYGVAR_KERNEL_COUNTERS_CLOCK_LATENCY == 0 ++ # --> 0 ++}; ++ ++# RTC resolution ++# This option automatically defines the tuple which is used to ++# initialize the RTC resolution, consisting of a numerator and ++# denominator. The values of the numerator and denominator are ++# defined by the HAL. ++# ++cdl_option CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION { ++ # Calculated value: "{CYGNUM_HAL_RTC_NUMERATOR, CYGNUM_HAL_RTC_DENOMINATOR}" ++ # Flavor: data ++ # Current_value: {CYGNUM_HAL_RTC_NUMERATOR, CYGNUM_HAL_RTC_DENOMINATOR} ++}; ++ ++# RTC period ++# This option defines the RTC period to be used in ++# setting the system clock hardware. It is essentially ++# an alias for CYGNUM_HAL_RTC_PERIOD, which is defined ++# in the HAL. ++# ++cdl_option CYGNUM_KERNEL_COUNTERS_RTC_PERIOD { ++ # Calculated value: "CYGNUM_HAL_RTC_PERIOD" ++ # Flavor: data ++ # Current_value: CYGNUM_HAL_RTC_PERIOD ++}; ++ ++# < ++# Thread-related options ++# There are a number of configuration options related to the ++# implementation of threads, for example whether or not the ++# eCos kernel supports per-thread data. ++# ++cdl_component CYGPKG_KERNEL_THREADS { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++ # option CYGDBG_KERNEL_INSTRUMENT_THREAD ++ # ActiveIf: CYGPKG_KERNEL_THREADS ++}; ++ ++# > ++# Allow per-thread timers ++# This option controls whether or not the kernel should support ++# per-thread clock and alarm related functions. Also some of ++# the synchronization primitives such as semaphore and ++# condition variable timed wait operations require per-thread ++# timer support. If none of these facilities are required then ++# the option can be disabled. ++# ++cdl_option CYGFUN_KERNEL_THREADS_TIMER { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGMFN_KERNEL_SYNCH_CONDVAR_TIMED_WAIT ++ # Requires: CYGFUN_KERNEL_THREADS_TIMER ++ # option CYGSEM_LIBC_TIME_CLOCK_WORKING ++ # Requires: CYGFUN_KERNEL_THREADS_TIMER ++}; ++ ++# Support optional name for each thread ++# Threads may optionally be supplied with a name string that is ++# used to identify them during debugging. This name is only ++# present if `this option is defined. Disabling it reduces both ++# code and data size. ++# ++cdl_option CYGVAR_KERNEL_THREADS_NAME { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Keep track of all threads using a linked list ++# Threads may optionally be placed on a housekeeping list so ++# that all threads may be located easily. This is useful mainly ++# in conjunction with source-level debugging. ++# ++cdl_option CYGVAR_KERNEL_THREADS_LIST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGFUN_KERNEL_ALL_THREADS_STACK_CHECKING ++ # Requires: CYGVAR_KERNEL_THREADS_LIST ++ # option CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT ++ # Requires: CYGVAR_KERNEL_THREADS_LIST ++}; ++ ++# Keep track of the base of each thread's stack ++# This option makes the kernel keep track of the lower limit on ++# each thread's stack. It allows the kernel to adjust the lower ++# limit, thus making space for per-thread data. Note that it ++# does not imply any form of run-time stack overflow checking. ++# ++cdl_option CYGFUN_KERNEL_THREADS_STACK_LIMIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGVAR_KERNEL_THREADS_DATA ++ # Requires: CYGFUN_KERNEL_THREADS_STACK_LIMIT ++ # option CYGPKG_POSIX_PTHREAD_REQUIREMENTS ++ # Requires: CYGFUN_KERNEL_THREADS_STACK_LIMIT ++}; ++ ++# Check thread stacks for overflows ++# This option enables a variety of checks for stack overflow ++# including signatures at the top and base of thread stacks, ++# which are asserted for correctness whenever a thread switches. ++# ++cdl_component CYGFUN_KERNEL_THREADS_STACK_CHECKING { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_INFRA_DEBUG ++ # CYGPKG_INFRA_DEBUG == 0 ++ # --> 0 ++ # ActiveIf constraint: CYGDBG_USE_ASSERTS ++ # CYGDBG_USE_ASSERTS == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Check all threads whenever possible ++# This option enables more active checking of all threads for ++# wrongdoing. In theory, checking threads other than the old and new ++# executing threads in a thread-switch is pointless, because no other ++# thread has run, so no other stack can be exceeded. But errors such ++# as memory scribbling, dangling pointers, overlapping use of store ++# or errors accessing objects adjacent to a stack which can be very ++# hard to find can be detected this way, saving debug time. ++# ++cdl_option CYGFUN_KERNEL_ALL_THREADS_STACK_CHECKING { ++ # This option is not active ++ # The parent CYGFUN_KERNEL_THREADS_STACK_CHECKING is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGVAR_KERNEL_THREADS_LIST ++ # CYGVAR_KERNEL_THREADS_LIST == 1 ++ # --> 1 ++}; ++ ++# Signature size in bytes, at stack top and bottom ++# This is the size of the area reserved for a signature at the top ++# and bottom of all stacks. It also provides a buffer zone for ++# detecting overflow before external objects are corrupted, hence the ++# ability to vary it here. But if you are short of stack, increasing ++# this value will make the overflow more, not less likely, of course. ++# ++cdl_option CYGNUM_KERNEL_THREADS_STACK_CHECK_DATA_SIZE { ++ # This option is not active ++ # The parent CYGFUN_KERNEL_THREADS_STACK_CHECKING is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: 32 ++ # Legal values: 8 to 512 ++}; ++ ++# < ++# Measure stack usage ++# This option allows measurement of each thread's stack by initializing ++# it to a predefined value at thread creation time. Later use of the ++# cyg_thread_measure_stack_usage() function allows the maximum stack ++# usage of the thread so far to be obtained. Note that this is not ++# necessarily the true maximum stack usage that the thread will ever ++# use since all that has been measured is the stack usage corresponding ++# to the code path followed this time, and not the code path that may ++# be followed in future. ++# ++cdl_component CYGFUN_KERNEL_THREADS_STACK_MEASUREMENT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 != CYGPKG_INFRA_DEBUG ++ # CYGPKG_INFRA_DEBUG == 0 ++ # --> 0 ++}; ++ ++# > ++# Output stack usage on thread exit ++# This will output the measured stack usage on the diagnostic ++# output when a thread exits. ++# ++cdl_option CYGDBG_KERNEL_THREADS_STACK_MEASUREMENT_VERBOSE_EXIT { ++ # This option is not active ++ # The parent CYGFUN_KERNEL_THREADS_STACK_MEASUREMENT is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Support for per-thread data ++# doc: ref/kernel-thread-data.html ++# It is possible for the kernel to support per-thread data, in ++# other words an area of memory specific to each thread which ++# can be used to store data for that thread. This per-thread ++# data can be used by applications or by other packages such as ++# the ISO C library. ++# ++cdl_component CYGVAR_KERNEL_THREADS_DATA { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGFUN_KERNEL_THREADS_STACK_LIMIT ++ # CYGFUN_KERNEL_THREADS_STACK_LIMIT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_LIBC_PER_THREAD_RAND ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # option CYGSEM_LIBC_STRING_PER_THREAD_STRTOK ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # option CYGSEM_LIBC_STRING_PER_THREAD_STRTOK ++ # DefaultValue: CYGVAR_KERNEL_THREADS_DATA ++ # option CYGSEM_LIBC_I18N_PER_THREAD_MB ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # option CYGSEM_LIBC_I18N_PER_THREAD_MB ++ # DefaultValue: CYGVAR_KERNEL_THREADS_DATA != 0 ++ # option CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # option CYGSEM_LIBM_THREAD_SAFE_GAMMA_FUNCTIONS ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # option _POSIX_THREADS ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # option CYGSEM_ERROR_PER_THREAD_ERRNO ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++}; ++ ++# > ++# Number of words of per-thread data ++# It is possible for the kernel to support per-thread data, in ++# other words an area of memory specific to each thread which ++# can be used to store data for that thread. This per-thread ++# data can be used by applications or by other packages such as ++# the ISO C library. This configuration option controls the ++# number of words of per-thread data that the kernel will ++# allow. In the current implementation a bitmask is used to identify ++# used per-thread data slots and so the maximum legal value must ++# remain 32. ++# ++cdl_option CYGNUM_KERNEL_THREADS_DATA_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 6 ++ # value_source default ++ # Default value: 6 ++ # Legal values: 4 to 32 ++}; ++ ++# Bitmap of preallocated slots of thread data ++# Per thread data options. Per thread data support is based loosely ++# on that defined by POSIX. Each thread has an array of slots, up to ++# CYGNUM_KERNEL_THREADS_DATA_MAX, that may contain data. Some of the ++# slots have been preallocated to specific packages. Others may be ++# allocated dynamically. ++# ++cdl_component CYGNUM_KERNEL_THREADS_DATA_ALL { ++ # Calculated value: 15 ++ # Flavor: data ++ # Current_value: 15 ++}; ++ ++# > ++# Slot 0 preallocated for the kernel ++# This option defines the index of a per-thread data ++# slot which is reserved by ++# the eCos kernel ++# for private use. ++# ++cdl_option CYGNUM_KERNEL_THREADS_DATA_KERNEL { ++ # Calculated value: 0 ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Slot 1 preallocated for uITRON ++# This option defines the index of a per-thread data ++# slot which is reserved by ++# the uITRON compatibility layer ++# for private use. ++# ++cdl_option CYGNUM_KERNEL_THREADS_DATA_ITRON { ++ # Calculated value: 1 ++ # Flavor: data ++ # Current_value: 1 ++}; ++ ++# Slot 2 preallocated for errno ++# This option defines the index of a per-thread data ++# slot which is reserved for use by an errno variable. ++# ++cdl_option CYGNUM_KERNEL_THREADS_DATA_ERRNO { ++ # Calculated value: 2 ++ # Flavor: data ++ # Current_value: 2 ++}; ++ ++# Slot 3 preallocated for POSIX ++# This option defines the index of a per-thread data ++# slot which is reserved by ++# POSIX ++# for private use. ++# ++cdl_option CYGNUM_KERNEL_THREADS_DATA_POSIX { ++ # Calculated value: 3 ++ # Flavor: data ++ # Current_value: 3 ++}; ++ ++# < ++# < ++# Thread destructors ++# doc: ref/kernel-thread-destructors.html ++# This option enables support for registered destructor functions to ++# be called on thread exit. ++# ++cdl_component CYGPKG_KERNEL_THREADS_DESTRUCTORS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 ++}; ++ ++# > ++# Number of possible destructors ++# This option gives the number of possible destructors allowed. ++# Increasing this will increase the size of every ++# thread control structure if per-thread destructors are ++# enabled. ++# ++cdl_option CYGNUM_KERNEL_THREADS_DESTRUCTORS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++ # Legal values: 1 to 65535 ++}; ++ ++# Per-thread destructors ++# Enabling this option makes the thread destructors a per-thread ++# property, with each thread having its own list of destructors. ++# Disabling this option makes the thread destructor list ++# global so all threads have the same destructors. ++# ++cdl_option CYGSEM_KERNEL_THREADS_DESTRUCTORS_PER_THREAD { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Stack size for the idle thread ++# This configuration option specifies the stack size in bytes ++# for the idle thread. Unless the HAL is configured to use a ++# separate interrupt stack this size must be sufficient to meet ++# the requirements of all interrupt handlers - these ++# requirements are cumulative if nested interrupted are ++# enabled. Depending on the target architecture, the stack size ++# typically has to be a multiple of eight or sixteen bytes. ++# This will be overridden where it is used if the ++# architectural HAL requires a minimum stack size ++# to handle interrupts correctly. ++# ++cdl_option CYGNUM_KERNEL_THREADS_IDLE_STACK_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 2048 ++ # value_source default ++ # Default value: 2048 ++ # Legal values: 512 to 65536 ++}; ++ ++# Maximal suspend count ++# This option provides for an assertion that the count value for ++# counted thread suspends do not exceed set limits. This is to help ++# with debugging, to allow a runaway loop, for example, to be ++# detected more easily. ++# If the option is not defined, no assert is included. Whether asserts ++# are themselves included depends on infrastructure configury in ++# infra.h ++# ++cdl_option CYGNUM_KERNEL_MAX_SUSPEND_COUNT_ASSERT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 500 ++ # value_source default ++ # Default value: 500 ++}; ++ ++# Maximal wake count ++# This option provides for an assertion that the count value for ++# counted thread wakeups do not exceed set limits. This is to ++# help with debugging, to allow a runaaway loop, for example, to ++# be detected more easily. ++# If the option is not defined, no assert is included. Whether asserts ++# are themselves included depends on infrastructure configury in ++# infra.h ++# ++cdl_option CYGNUM_KERNEL_MAX_COUNTED_WAKE_COUNT_ASSERT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 500 ++ # value_source default ++ # Default value: 500 ++}; ++ ++# Idle thread must always yield ++# If the scheduler configuration only has a single priority ++# level, then the idle thread must yield each time around its loop. ++# ++cdl_option CYGIMP_IDLE_THREAD_YIELD { ++ # This option is not active ++ # ActiveIf constraint: (CYGNUM_KERNEL_SCHED_PRIORITIES == 1) ++ # CYGNUM_KERNEL_SCHED_PRIORITIES == 32 ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# < ++# Synchronization primitives ++# The eCos kernel supports a number of different ++# synchronization primitives such as mutexes, semaphores, ++# condition variables, and message boxes. There are ++# configuration options to control the exact behaviour of some ++# of these synchronization primitives. ++# ++cdl_component CYGPKG_KERNEL_SYNCH { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++ # option CYGDBG_KERNEL_INSTRUMENT_MUTEX ++ # ActiveIf: CYGPKG_KERNEL_SYNCH ++ # option CYGDBG_KERNEL_INSTRUMENT_CONDVAR ++ # ActiveIf: CYGPKG_KERNEL_SYNCH ++ # option CYGDBG_KERNEL_INSTRUMENT_BINSEM ++ # ActiveIf: CYGPKG_KERNEL_SYNCH ++ # option CYGDBG_KERNEL_INSTRUMENT_CNTSEM ++ # ActiveIf: CYGPKG_KERNEL_SYNCH ++ # option CYGDBG_KERNEL_INSTRUMENT_MBOXT ++ # ActiveIf: CYGPKG_KERNEL_SYNCH ++}; ++ ++# > ++# Priority inversion protection protocols ++# doc: ref/kernel-mutexes.html ++# This component controls the protocols used to protect mutexes against ++# priority inversion. If this option is enabled it defines which ++# algorithm is used to implement this protection. At present only ++# one such algorithm is defined: "SIMPLE". The implementation ++# will only work in the mlqueue scheduler, and it does not handle the ++# rare case of nested mutexes completely correctly. However it is ++# both fast and deterministic. ++# ++cdl_component CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL { ++ # ActiveIf constraint: CYGSEM_KERNEL_SCHED_MLQUEUE ++ # CYGSEM_KERNEL_SCHED_MLQUEUE == 1 ++ # --> 1 ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 SIMPLE ++ # value_source default ++ # Default value: 1 SIMPLE ++ # Legal values: "SIMPLE" ++ # Requires: CYGINT_KERNEL_SCHEDULER_UNIQUE_PRIORITIES == 0 ++ # CYGINT_KERNEL_SCHEDULER_UNIQUE_PRIORITIES == 0 ++ # --> 1 ++}; ++ ++# > ++# Enable priority inheritance protocol ++# This option enables priority inheritance protocol. This protocol ++# causes the owner of a mutex to be executed at the highest priority ++# of the threads waiting for access to the mutex. ++# ++cdl_option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DEFAULT ++ # DefaultValue: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT ? ++ # "INHERIT" : ++ # CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING ? ++ # "CEILING" : "NONE" ++ # option _POSIX_THREAD_PRIO_INHERIT ++ # Requires: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT ++}; ++ ++# Enable priority ceiling protocol ++# This option enables priority ceiling protocol. This protocol ++# causes the owner of a mutex to be executed at a priority ++# associated with the mutex. ++# ++cdl_component CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DEFAULT_PRIORITY ++ # ActiveIf: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING ++ # option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DEFAULT ++ # DefaultValue: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT ? ++ # "INHERIT" : ++ # CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING ? ++ # "CEILING" : "NONE" ++ # option _POSIX_THREAD_PRIO_PROTECT ++ # Requires: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING ++}; ++ ++# > ++# Default priority ceiling ++# This option defines the default priority ceiling to be ++# used if the chosen default priority inversion protocol is ++# priority ceoptioniling protocol. The default value for this is zero, ++# making all such mutexes boost threads to the maximum priority. ++# ++cdl_option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DEFAULT_PRIORITY { ++ # ActiveIf constraint: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING ++ # CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING == 1 ++ # --> 1 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to CYGNUM_KERNEL_SCHED_PRIORITIES - 1 ++ # CYGNUM_KERNEL_SCHED_PRIORITIES == 32 ++}; ++ ++# < ++# No priority inversion protocol ++# This option enables the ability to have no priority inversion protocol. ++# It is equivalent to disabling the priority inversion protocol at ++# the top level, but is necessary for the runtime and default ++# selection options. ++# ++cdl_option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_NONE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Default priority inversion protocol ++# This option defines the default inversion protocol used for mutexes that ++# are created without an explicit protocol being specified. The protocol ++# chosen by default is to use priority inheritance if it is present otherwise ++# priority ceiling, or none if neither is present. ++# ++cdl_option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DEFAULT { ++ # ActiveIf constraint: CYGINT_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_COUNT > 1 ++ # CYGINT_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_COUNT == 3 ++ # --> 1 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value INHERIT ++ # value_source default ++ # Default value: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT ? ++ # "INHERIT" : ++ # CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING ? ++ # "CEILING" : "NONE" ++ # CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT == 1 ++ # CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING == 1 ++ # --> INHERIT ++ # Legal values: "INHERIT" "CEILING" "NONE" ++}; ++ ++# Specify mutex priority inversion protocol at runtime ++# This option controls whether the priority inversion protocol used by ++# a mutex can be specified when that mutex is created. ++# ++cdl_option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DYNAMIC { ++ # ActiveIf constraint: CYGINT_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_COUNT > 1 ++ # CYGINT_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_COUNT == 3 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Number of protocols selected ++# ++cdl_interface CYGINT_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_COUNT { ++ # Implemented by CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT, active, enabled ++ # Implemented by CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING, active, enabled ++ # Implemented by CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_NONE, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 3 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DEFAULT ++ # ActiveIf: CYGINT_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_COUNT > 1 ++ # option CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_DYNAMIC ++ # ActiveIf: CYGINT_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_COUNT > 1 ++}; ++ ++# < ++# Use mboxt_plain mbox implementation ++# Use the plain mboxt implementation instead of the mboxt2 ++# implementation. The mboxt2 version is designed to provide ++# semantics compatible with UITRON, the plain implementation ++# is adquate in most other situations. ++# ++cdl_option CYGIMP_MBOX_USE_MBOXT_PLAIN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Message box blocking put support ++# doc: ref/kernel-mail-boxes.html ++# Message boxes can support three different versions of the ++# put-message operation. The first is tryput(), which will fail ++# if the message box is already full. The other two are the ++# ordinary put() function which will block if the message box ++# is full, and a timed put() operation which will block for ++# upto a certain length of time if the message box is currently ++# full. The blocking versions require extra memory in the ++# message box data structure and extra code in the other ++# message box functions, so they can be disabled if the ++# application does not require them. If this option is enabled ++# then the system will always provide the blocking put() ++# function, and it will also provide the timed put() function ++# if thread timers are enabled. ++# ++cdl_option CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Message box queue size ++# doc: ref/kernel-mail-boxes.html ++# This configuration option controls the number of messages ++# that can be queued in a message box before a non-blocking ++# put() operation will fail or a blocking put() operation will ++# block. The cost in memory is one pointer per message box for ++# each possible message. ++# ++cdl_option CYGNUM_KERNEL_SYNCH_MBOX_QUEUE_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 10 ++ # value_source default ++ # Default value: 10 ++ # Legal values: 1 to 65535 ++}; ++ ++# Condition variable timed-wait support ++# doc: ref/kernel-condition-variables.html ++# This option enables the condition variable timed wait ++# facility. ++# ++cdl_option CYGMFN_KERNEL_SYNCH_CONDVAR_TIMED_WAIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGFUN_KERNEL_THREADS_TIMER ++ # CYGFUN_KERNEL_THREADS_TIMER == 1 ++ # --> 1 ++}; ++ ++# Condition variable explicit mutex wait support ++# doc: ref/kernel-condition-variables.html ++# This option enables the condition variable explicit mutex wait ++# facility. By default condition variables in eCos are created with ++# a statically associated mutex. This option permits wait (and timed wait ++# if CYGMFN_KERNEL_SYNCH_CONDVAR_TIMED_WAIT is enabled) to provide a ++# different mutex as an argument. This makes no difference to the semantics ++# the wait operation except that a different mutex will be used during it. ++# ++cdl_option CYGMFN_KERNEL_SYNCH_CONDVAR_WAIT_MUTEX { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Avoid inlines in mqueue implementation ++# With this option disabled, the 'mqueue' message queue implementation ++# provides most of its implementation via inlines. However this can ++# adversely affect code size in application that make lots of mqueue ++# calls from different places, so enabling this option provides ++# non-inline versions to be used instead. ++# ++cdl_option CYGIMP_KERNEL_SYNCH_MQUEUE_NOT_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Kernel instrumentation ++# The current release of the kernel contains an initial version ++# of instrumentation support. The various parts of the kernel ++# will invoke instrumentation routines whenever appropriate ++# events occur, and these will be stored in a circular buffer ++# for later reference. ++# ++cdl_component CYGPKG_KERNEL_INSTRUMENT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_KERNEL_TESTS ++ # Calculated: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++}; ++ ++# > ++# Use buffer provided by the application ++# In most circumstances the kernel should provide the ++# instrumentation circular buffer itself. Occasionally ++# application code may wish to provide the buffer instead, ++# giving the application code more convenient access to the ++# buffer. This also makes it possible to put the circular ++# buffer in special areas of memory, for example a region that ++# is shared with the host. ++# ++cdl_option CYGVAR_KERNEL_INSTRUMENT_EXTERNAL_BUFFER { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Size of instrumentation buffer size ++# If kernel instrumentation is enabled then the instrumentation ++# data goes into a circular buffer. A larger buffer allows ++# more data to be stored, but at a significant cost in memory. ++# The value of this option corresponds to the number of entries ++# in the table, and typically each entry will require 16 bytes ++# of memory. ++# ++cdl_option CYGNUM_KERNEL_INSTRUMENT_BUFFER_SIZE { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 256 ++ # value_source default ++ # Default value: 256 ++ # Legal values: 16 to 0x100000 ++}; ++ ++# Wrap instrument buffer ++# When the instrumentation buffer is full it can either be restarted ++# from the beginning, overwriting older data, or it can stop at the ++# end. The former is useful if you want to look at the last entries ++# made while the latter is useful if you want to look at the first ++# few. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_BUFFER_WRAP { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Perform selective instrumentation ++# The kernel can either collect all instrumentation events, or ++# it can filter out events at runtime based on a set of flags. ++# For example it would be possible to decide at runtime that ++# only scheduler and interrupt instrumentation flags are of ++# interest and that all other flags should be ignored. This ++# flag mechanism involves extra code and processor cycle ++# overhead in the instrumentation code, so it can be disabled ++# if the application developer is interested in all ++# instrumentation events. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_FLAGS { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument the scheduler ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the scheduling code. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_SCHED { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGPKG_KERNEL_SCHED ++ # CYGPKG_KERNEL_SCHED == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument thread operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the code that manipulates threads. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_THREAD { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGPKG_KERNEL_THREADS ++ # CYGPKG_KERNEL_THREADS == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument interrupts ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the interrupt handling code. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_INTR { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGPKG_KERNEL_INTERRUPTS ++ # CYGPKG_KERNEL_INTERRUPTS == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument mutex operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the mutex code. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_MUTEX { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGPKG_KERNEL_SYNCH ++ # CYGPKG_KERNEL_SYNCH == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument condition variable operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the condition variable code. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_CONDVAR { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGPKG_KERNEL_SYNCH ++ # CYGPKG_KERNEL_SYNCH == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument binary semaphore operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the binary semaphore code. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_BINSEM { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGPKG_KERNEL_SYNCH ++ # CYGPKG_KERNEL_SYNCH == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument counting semaphore operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the counting semaphore code. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_CNTSEM { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGPKG_KERNEL_SYNCH ++ # CYGPKG_KERNEL_SYNCH == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument message box operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the message box code. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_MBOXT { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGPKG_KERNEL_SYNCH ++ # CYGPKG_KERNEL_SYNCH == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument clock operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the real-time clock code. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_CLOCK { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument alarm-related operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the code related to alarm operations. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_ALARM { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Instrument SMP-related operations ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not instrumentation support is compiled into ++# the code related to SMP operations. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_SMP { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ # ActiveIf constraint: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Support application-level instrumentation ++# It is possible to perform selective instrumentation at ++# run-time. It is also possible to disable instrumentation ++# in various kernel components at compile-time, thus ++# reducing the code size overheads. This option controls ++# whether or not application-level instrumentation gets ++# compiled in. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_USER { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Print user friendly instrument messages ++# Include code which will convert the instrument type field ++# into a more human understandable string ++# ++cdl_component CYGDBG_KERNEL_INSTRUMENT_MSGS { ++ # This option is not active ++ # The parent CYGPKG_KERNEL_INSTRUMENT is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Rebuild the header file ++# Make (using a shell script) include/cyg/kernel/instrument_desc.h in ++# your build tree; this is normally simply copied from the repository. ++# If you make a permanent change to include/instrmnt.h, such that ++# instrument_desc.h needs updating, it's up to you to first delete the ++# master file ++# ECOS_REPOSITORY/kernel/VERSION/include/instrument_desc.h ++# in your source repository, make the new version by enabling this ++# option then copy the new file ++# back from your build place to its source in ++# ECOS_REPOSITORY/kernel/VERSION/include/instrument_desc.h ++# and/or commit this to any version control system that you use. ++# ++cdl_option CYGDBG_KERNEL_INSTRUMENT_MSGS_BUILD_HEADERFILE { ++ # This option is not active ++ # The parent CYGDBG_KERNEL_INSTRUMENT_MSGS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Build the host tool to print out a dump ++# Generate a host program which can dump the instrumentation ++# data in a human readable format. You have to somehow get the ++# instrumentation buffer into a file on the host. 'Exercise for ++# the reader' as university lecturers tend to say. ++# ++cdl_component CYGDBG_KERNEL_INSTRUMENT_BUILD_HOST_DUMP { ++ # This option is not active ++ # The parent CYGDBG_KERNEL_INSTRUMENT_MSGS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# < ++# Source-level debugging support ++# If the source level debugger gdb is to be used for debugging ++# application code then it may be necessary to configure in support ++# for this in the kernel. ++# ++cdl_component CYGPKG_KERNEL_DEBUG { ++ # There is no associated value. ++}; ++ ++# > ++# Include GDB multi-threading debug support ++# This option enables some extra kernel code which is needed ++# to support multi-threaded source level debugging. ++# ++cdl_option CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGVAR_KERNEL_THREADS_LIST ++ # CYGVAR_KERNEL_THREADS_LIST == 1 ++ # --> 1 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # ActiveIf: CYGSEM_HAL_ROM_MONITOR || CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT ++}; ++ ++# < ++# Kernel APIs ++# The eCos kernel is implemented in C++, so a C++ interface ++# to the kernel is always available. There is also an optional ++# C API. Additional API's may be provided in future versions. ++# ++cdl_component CYGPKG_KERNEL_API { ++ # There is no associated value. ++}; ++ ++# > ++# Provide C API ++# The eCos kernel is implemented in C++, but there is an ++# optional C API for use by application code. This C API can be ++# disabled if the application code does not invoke the kernel ++# directly, but instead uses higher level code such as the ++# uITRON compatibility layer. ++# ++cdl_option CYGFUN_KERNEL_API_C { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_KERNEL_TESTS ++ # Calculated: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++ # option CYGPKG_KERNEL_TESTS ++ # Calculated: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++ # option CYGPKG_KERNEL_TESTS ++ # Calculated: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++ # option CYGPKG_KERNEL_TESTS ++ # Calculated: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++ # option CYGFUN_MEMALLOC_KAPI ++ # DefaultValue: CYGFUN_KERNEL_API_C ++}; ++ ++# < ++# Kernel build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_KERNEL_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the eCos kernel. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_KERNEL_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the eCos kernel. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_KERNEL_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Kernel tests ++# This option specifies the set of tests for the eCos kernel. ++# ++cdl_option CYGPKG_KERNEL_TESTS { ++ # Calculated value: ++ # "tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2" ++ # . ((CYGFUN_KERNEL_API_C) ? " tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0" : "") ++ # . ((!CYGPKG_INFRA_DEBUG && !CYGPKG_KERNEL_INSTRUMENT && CYGFUN_KERNEL_API_C) ? " tests/dhrystone" : "") ++ # . ((CYGPKG_KERNEL_SMP_SUPPORT && CYGFUN_KERNEL_API_C) ? " tests/smp" : "") ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES && CYGFUN_KERNEL_API_C) ? " tests/kcache1 tests/kcache2" : "") ++ # ++ # CYGFUN_KERNEL_API_C == 1 ++ # CYGPKG_INFRA_DEBUG == 0 ++ # CYGPKG_KERNEL_INSTRUMENT == 0 ++ # CYGFUN_KERNEL_API_C == 1 ++ # CYGPKG_KERNEL_SMP_SUPPORT == 0 ++ # CYGFUN_KERNEL_API_C == 1 ++ # CYGINT_HAL_TESTS_NO_CACHES == 0 ++ # CYGFUN_KERNEL_API_C == 1 ++ # Flavor: data ++ # Current_value: tests/bin_sem0 tests/bin_sem1 tests/bin_sem2 tests/bin_sem3 tests/clock0 tests/clock1 tests/clockcnv tests/clocktruth tests/cnt_sem0 tests/cnt_sem1 tests/except1 tests/flag0 tests/flag1 tests/intr0 tests/kill tests/mbox1 tests/mqueue1 tests/mutex0 tests/mutex1 tests/mutex2 tests/mutex3 tests/release tests/sched1 tests/sync2 tests/sync3 tests/thread0 tests/thread1 tests/thread2 tests/kclock0 tests/kclock1 tests/kexcept1 tests/kflag0 tests/kflag1 tests/kintr0 tests/klock tests/kmbox1 tests/kmutex0 tests/kmutex1 tests/kmutex3 tests/kmutex4 tests/ksched1 tests/ksem0 tests/ksem1 tests/kthread0 tests/kthread1 tests/stress_threads tests/thread_gdb tests/timeslice tests/tm_basic tests/fptest tests/kalarm0 tests/dhrystone tests/kcache1 tests/kcache2 ++}; ++ ++# < ++# < ++# Dynamic memory allocation ++# doc: ref/memalloc.html ++# This package provides memory allocator infrastructure required for ++# dynamic memory allocators, including the ISO standard malloc ++# interface. It also contains some sample implementations. ++# ++cdl_package CYGPKG_MEMALLOC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# > ++# Memory allocator implementations ++# This component contains configuration options related to the ++# various memory allocators available. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATORS { ++ # There is no associated value. ++}; ++ ++# > ++# Fixed block allocator ++# This component contains configuration options related to the ++# fixed block memory allocator. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATOR_FIXED { ++ # There is no associated value. ++}; ++ ++# > ++# Make thread safe ++# With this option enabled, this allocator will be ++# made thread-safe. Additionally allocation functions ++# are made available that allow a thread to wait ++# until memory is available. ++# ++cdl_option CYGSEM_MEMALLOC_ALLOCATOR_FIXED_THREADAWARE { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Simple variable block allocator ++# This component contains configuration options related to the ++# simple variable block memory allocator. This allocator is not ++# very fast, and in particular does not scale well with large ++# numbers of allocations. It is however very compact in terms of ++# code size and does not have very much overhead per allocation. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATOR_VARIABLE { ++ # There is no associated value. ++}; ++ ++# > ++# Make thread safe ++# With this option enabled, this allocator will be ++# made thread-safe. Additionally allocation functions ++# are added that allow a thread to wait until memory ++# are made available that allow a thread to wait ++# until memory is available. ++# ++cdl_option CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_THREADAWARE { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Coalesce memory ++# The variable-block memory allocator can perform coalescing ++# of memory whenever the application code releases memory back ++# to the pool. This coalescing reduces the possibility of ++# memory fragmentation problems, but involves extra code and ++# processor cycles. ++# ++cdl_option CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGIMP_MEMALLOC_MALLOC_VARIABLE_SIMPLE ++ # Requires: CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE ++}; ++ ++# < ++# Doug Lea's malloc ++# This component contains configuration options related to the ++# port of Doug Lea's memory allocator, normally known as ++# dlmalloc. dlmalloc has a reputation for being both fast ++# and space-conserving, as well as resisting fragmentation well. ++# It is a common choice for a general purpose allocator and ++# has been used in both newlib and Linux glibc. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATOR_DLMALLOC { ++ # There is no associated value. ++}; ++ ++# > ++# Debug build ++# Doug Lea's malloc implementation has substantial amounts ++# of internal checking in order to verify the operation ++# and consistency of the allocator. However this imposes ++# substantial overhead on each operation. Therefore this ++# checking may be individually disabled. ++# ++cdl_option CYGDBG_MEMALLOC_ALLOCATOR_DLMALLOC_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 != CYGDBG_USE_ASSERTS ++ # CYGDBG_USE_ASSERTS == 0 ++ # --> 0 ++ # Requires: CYGDBG_USE_ASSERTS ++ # CYGDBG_USE_ASSERTS == 0 ++ # --> 0 ++}; ++ ++# Make thread safe ++# With this option enabled, this allocator will be ++# made thread-safe. Additionally allocation functions ++# are made available that allow a thread to wait ++# until memory is available. ++# ++cdl_option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_THREADAWARE { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++}; ++ ++# Support more than one instance ++# Having this option disabled allows important ++# implementation structures to be declared as a single ++# static instance, allowing faster access. However this ++# would fail if there is more than one instance of ++# the dlmalloc allocator class. Therefore this option can ++# be enabled if multiple instances are required. Note: as ++# a special case, if this allocator is used as the ++# implementation of malloc, and it can be determined there ++# is more than one malloc pool, then this option will be ++# silently enabled. ++# ++cdl_option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_SAFE_MULTIPLE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Use system memcpy() and memset() ++# This may be used to control whether memset() and memcpy() ++# are used within the implementation. The alternative is ++# to use some macro equivalents, which some people report ++# are faster in some circumstances. ++# ++cdl_option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_USE_MEMCPY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++}; ++ ++# Minimum alignment of allocated blocks ++# This option controls the minimum alignment that the ++# allocated memory blocks are aligned on, specified as ++# 2^N. Note that using large mininum alignments can lead ++# to excessive memory wastage. ++# ++cdl_option CYGNUM_MEMALLOC_ALLOCATOR_DLMALLOC_ALIGNMENT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 3 ++ # value_source default ++ # Default value: 3 ++ # Legal values: 3 to 10 ++}; ++ ++# < ++# Variable block allocator with separate metadata ++# This component contains configuration options related to the ++# variable block memory allocator with separate metadata. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATOR_SEPMETA { ++ # There is no associated value. ++}; ++ ++# > ++# Make thread safe ++# With this option enabled, this allocator will be ++# made thread-safe. Additionally allocation functions ++# are made available that allow a thread to wait ++# until memory is available. ++# ++cdl_option CYGSEM_MEMALLOC_ALLOCATOR_SEPMETA_THREADAWARE { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# < ++# Kernel C API support for memory allocation ++# This option must be enabled to provide the extensions required ++# to support integration into the kernel C API. ++# ++cdl_option CYGFUN_MEMALLOC_KAPI { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGFUN_KERNEL_API_C ++ # CYGFUN_KERNEL_API_C == 1 ++ # --> 1 ++}; ++ ++# malloc(0) returns NULL ++# This option controls the behavior of malloc(0) ( or calloc with ++# either argument 0 ). It is permitted by the standard to return ++# either a NULL pointer or a unique pointer. Enabling this option ++# forces a NULL pointer to be returned. ++# ++cdl_option CYGSEM_MEMALLOC_MALLOC_ZERO_RETURNS_NULL { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Breakpoint site when running out of memory ++# Whenever the system runs out of memory, it invokes this function ++# before either going to sleep waiting for memory to become ++# available or returning failure. ++# ++cdl_option CYGSEM_MEMALLOC_INVOKE_OUT_OF_MEMORY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# malloc() and supporting allocators ++# This component enables support for dynamic memory ++# allocation as supplied by the functions malloc(), ++# free(), calloc() and realloc(). As these ++# functions are often used, but can have quite an ++# overhead, disabling them here can ensure they ++# cannot even be used accidentally when static ++# allocation is preferred. Within this component are ++# various allocators that can be selected for use ++# as the underlying implementation of the dynamic ++# allocation functions. ++# ++cdl_component CYGPKG_MEMALLOC_MALLOC_ALLOCATORS { ++ # ActiveIf constraint: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Use external heap definition ++# This option allows other components in the ++# system to override the default system ++# provision of heap memory pools. This should ++# be set to a header which provides the equivalent ++# definitions to . ++# ++cdl_component CYGBLD_MEMALLOC_MALLOC_EXTERNAL_HEAP_H { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# malloc() allocator implementations ++# ++cdl_interface CYGINT_MEMALLOC_MALLOC_ALLOCATORS { ++ # Implemented by CYGIMP_MEMALLOC_MALLOC_VARIABLE_SIMPLE, active, disabled ++ # Implemented by CYGIMP_MEMALLOC_MALLOC_DLMALLOC, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: CYGINT_MEMALLOC_MALLOC_ALLOCATORS == 1 ++ # CYGINT_MEMALLOC_MALLOC_ALLOCATORS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_MEMALLOC_MALLOC_ALLOCATORS ++ # Requires: CYGINT_MEMALLOC_MALLOC_ALLOCATORS == 1 ++}; ++ ++# malloc() implementation instantiation data ++# Memory allocator implementations that are capable of being ++# used underneath malloc() must be instantiated. The code ++# to do this is set in this option. It is only intended to ++# be set by the implementation, not the user. ++# ++cdl_option CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value ++ # value_source default ++ # Default value: ++ ++ # The following properties are affected by this value ++ # option CYGIMP_MEMALLOC_MALLOC_VARIABLE_SIMPLE ++ # Requires: CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == "" ++ # option CYGIMP_MEMALLOC_MALLOC_DLMALLOC ++ # Requires: CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == "" ++}; ++ ++# Simple variable block implementation ++# This causes malloc() to use the simple ++# variable block allocator. ++# ++cdl_option CYGIMP_MEMALLOC_MALLOC_VARIABLE_SIMPLE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == "" ++ # CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == ++ # --> 0 ++ # Requires: CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE ++ # CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE == 1 ++ # --> 1 ++}; ++ ++# Doug Lea's malloc implementation ++# This causes malloc() to use a version of Doug Lea's ++# malloc (dlmalloc) as the underlying implementation. ++# ++cdl_option CYGIMP_MEMALLOC_MALLOC_DLMALLOC { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == "" ++ # CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == ++ # --> 1 ++}; ++ ++# < ++# Size of the fallback dynamic memory pool in bytes ++# If *no* heaps are configured in your memory layout, ++# dynamic memory allocation by ++# malloc() and calloc() must be from a fixed-size, ++# contiguous memory pool (note here that it is the ++# pool that is of a fixed size, but malloc() is still ++# able to allocate variable sized chunks of memory ++# from it). This option is the size ++# of that pool, in bytes. Note that not all of ++# this is available for programs to ++# use - some is needed for internal information ++# about memory regions, and some may be lost to ++# ensure that memory allocation only returns ++# memory aligned on word (or double word) ++# boundaries - a very common architecture ++# constraint. ++# ++cdl_option CYGNUM_MEMALLOC_FALLBACK_MALLOC_POOL_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16384 ++ # value_source default ++ # Default value: 16384 ++ # Legal values: 32 to 0x7fffffff ++}; ++ ++# Common memory allocator package build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_MEMALLOC_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_MEMALLOC_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_MEMALLOC_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Tests ++# This option specifies the set of tests for this package. ++# ++cdl_option CYGPKG_MEMALLOC_TESTS { ++ # Calculated value: "tests/dlmalloc1 tests/dlmalloc2 tests/heaptest tests/kmemfix1 tests/kmemvar1 tests/malloc1 tests/malloc2 tests/malloc3 tests/malloc4 tests/memfix1 tests/memfix2 tests/memvar1 tests/memvar2 tests/realloc tests/sepmeta1 tests/sepmeta2" ++ # Flavor: data ++ # Current_value: tests/dlmalloc1 tests/dlmalloc2 tests/heaptest tests/kmemfix1 tests/kmemvar1 tests/malloc1 tests/malloc2 tests/malloc3 tests/malloc4 tests/memfix1 tests/memfix2 tests/memvar1 tests/memvar2 tests/realloc tests/sepmeta1 tests/sepmeta2 ++}; ++ ++# < ++# < ++# ISO C library ++# doc: ref/libc.html ++# The packages under this package enable compatibility with the ISO C ++# standard - ISO/IEC 9899:1990. This allows the user application to use ++# well known standard C library functions, and in eCos starts a thread ++# to invoke the user function main(). This package is a top-level placeholder ++# to contain the implementations. ++# ++cdl_package CYGPKG_LIBC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # component CYGNUM_LIBM_COMPATIBILITY ++ # Requires: CYGPKG_LIBC ++}; ++ ++# > ++# ISO C library date and time functions ++# doc: ref/libc.html ++# This package provides time functions specified by the ++# ISO C standard - ISO/IEC 9899:1990. ++# ++cdl_package CYGPKG_LIBC_TIME { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGBLD_ISO_C_TIME_TYPES_HEADER == "" ++ # CYGBLD_ISO_C_TIME_TYPES_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_C_CLOCK_FUNCS_HEADER == "" ++ # CYGBLD_ISO_C_CLOCK_FUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGINT_ISO_DIV ++ # CYGINT_ISO_DIV == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_ABS ++ # CYGINT_ISO_ABS == 1 ++ # --> 1 ++}; ++ ++# > ++# Working clock() function ++# This option controls whether clock() will ++# actually try and determine the process time ++# usage. With this option disabled, clock() does ++# not disappear, but will permanently return ++# (clock_t)-1 as mandated by the ISO C standard. ++# ++cdl_option CYGSEM_LIBC_TIME_CLOCK_WORKING { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGFUN_KERNEL_THREADS_TIMER ++ # CYGFUN_KERNEL_THREADS_TIMER == 1 ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++}; ++ ++# Working time() function ++# This option controls whether time() will ++# actually try and determine the current calendar ++# time. With this option disabled, time() does ++# not disappear, but will permanently return ++# (time_t)-1 as mandated by the ISO C standard. ++# ++cdl_option CYGSEM_LIBC_TIME_TIME_WORKING { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGPKG_IO_WALLCLOCK ++ # CYGPKG_IO_WALLCLOCK == current ++ # --> 1 ++}; ++ ++# Working cyg_libc_time_settime() function ++# This option controls whether cyg_libc_time_settime() ++# will actually try and set the current calendar ++# time. With this option disabled, ++# cyg_libc_time_settime() does not disappear, but ++# will permanently return an error. ++# ++cdl_option CYGSEM_LIBC_TIME_SETTIME_WORKING { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGPKG_IO_WALLCLOCK ++ # CYGPKG_IO_WALLCLOCK == current ++ # --> 1 ++}; ++ ++# POSIX time functions ++# Enabling this option allows the use of the ++# following functions defined in POSIX 1003.1: ++# asctime_r(), ctime_r(), gmtime_r(), strptime(), and ++# localtime_r(). ++# ++cdl_option CYGFUN_LIBC_TIME_POSIX { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGINT_ISO_STRING_BSD_FUNCS ++ # CYGINT_ISO_STRING_BSD_FUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGIMP_LIBC_TIME_ASCTIME_R_INLINE ++ # Requires: CYGFUN_LIBC_TIME_POSIX ++ # option CYGIMP_LIBC_TIME_CTIME_R_INLINE ++ # Requires: CYGFUN_LIBC_TIME_POSIX ++ # option CYGIMP_LIBC_TIME_GMTIME_R_INLINE ++ # Requires: CYGFUN_LIBC_TIME_POSIX ++ # option CYGIMP_LIBC_TIME_LOCALTIME_R_INLINE ++ # Requires: CYGFUN_LIBC_TIME_POSIX ++ # option CYGPKG_LIBC_TIME_TESTS ++ # Calculated: ++ # "tests/asctime tests/clock tests/ctime tests/gmtime tests/localtime tests/mktime tests/strftime tests/time " ++ # . (CYGFUN_LIBC_TIME_POSIX ? "tests/strptime" : "") ++ # ++}; ++ ++# Single UNIX extensions ++# Enabling this option allows the use of ++# certain additional conversion specifiers ++# in the strftime function. ++# ++cdl_option CYGFUN_LIBC_TIME_SUS_EXTNS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Time zone offsets ++# These options control the default STandarD (STD) ++# and Daylight Savings Time (DST) ++# time offsets so that dates can be set correctly ++# for the local environment. ++# ++cdl_component CYGPKG_LIBC_TIME_ZONES { ++ # There is no associated value. ++}; ++ ++# > ++# Default Daylight Savings Time state ++# This option controls whether the initial ++# time environment is set up as STD, DST or ++# unknown. Use the value 1 for DST, 0 for STD, ++# and (-1) for unknown. This can also be set at ++# runtime using the cyg_libc_time_setdst() ++# function. ++# ++cdl_option CYGNUM_LIBC_TIME_DST_DEFAULT_STATE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -1 ++ # value_source default ++ # Default value: -1 ++ # Legal values: -1 to 1 ++}; ++ ++# Default Standard Time offset ++# This option controls the offset from UTC in ++# seconds when in local Standard Time. This ++# value can be positive or negative. It ++# can also be set at run time using the ++# cyg_libc_time_setzoneoffsets() function. ++# ++cdl_option CYGNUM_LIBC_TIME_STD_DEFAULT_OFFSET { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: -90000 to 90000 ++}; ++ ++# Default Daylight Savings Time offset ++# This option controls the offset from UTC in ++# seconds when in local Daylight Savings Time. This ++# value can be positive or negative. It ++# can also be set at run time using the ++# cyg_libc_time_setzoneoffsets() function. ++# ++cdl_option CYGNUM_LIBC_TIME_DST_DEFAULT_OFFSET { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 3600 ++ # value_source default ++ # Default value: 3600 ++ # Legal values: -90000 to 90000 ++}; ++ ++# < ++# Inline functions ++# These options control whether certain functions ++# are available in inline form. This may lead to ++# faster code at the expense of code space. But for ++# some functions, or some functions with constant ++# arguments, it may in fact lead to smaller code. ++# ++cdl_component CYGPKG_LIBC_TIME_INLINES { ++ # There is no associated value. ++}; ++ ++# > ++# asctime() ++# Allow the asctime() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_ASCTIME_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# ctime() ++# Allow the ctime() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_CTIME_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# difftime() ++# Allow the difftime() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_DIFFTIME_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# gmtime() ++# Allow the gmtime() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_GMTIME_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# localtime() ++# Allow the localtime() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_LOCALTIME_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# mktime() ++# Allow the mktime() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_MKTIME_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# asctime_r() ++# Allow the asctime_r() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_ASCTIME_R_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGFUN_LIBC_TIME_POSIX ++ # CYGFUN_LIBC_TIME_POSIX == 1 ++ # --> 1 ++}; ++ ++# ctime_r() ++# Allow the ctime_r() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_CTIME_R_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGFUN_LIBC_TIME_POSIX ++ # CYGFUN_LIBC_TIME_POSIX == 1 ++ # --> 1 ++}; ++ ++# gmtime_r() ++# Allow the gmtime_r() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_GMTIME_R_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGFUN_LIBC_TIME_POSIX ++ # CYGFUN_LIBC_TIME_POSIX == 1 ++ # --> 1 ++}; ++ ++# localtime_r() ++# Allow the localtime_r() function to be inlined ++# ++cdl_option CYGIMP_LIBC_TIME_LOCALTIME_R_INLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGFUN_LIBC_TIME_POSIX ++ # CYGFUN_LIBC_TIME_POSIX == 1 ++ # --> 1 ++}; ++ ++# < ++# clock() tracing level ++# Trace verbosity level for debugging the clock() ++# function. Increase this value to get ++# additional trace output when tracing is enabled. ++# ++cdl_option CYGNUM_LIBC_TIME_CLOCK_TRACE_LEVEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++}; ++ ++# C library time functions build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBC_TIME_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBC_TIME_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -Wno-format ++ # value_source default ++ # Default value: -Wno-format ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBC_TIME_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# C library time and date function tests ++# This option specifies the set of tests for the C library ++# time and date functions. ++# ++cdl_option CYGPKG_LIBC_TIME_TESTS { ++ # Calculated value: ++ # "tests/asctime tests/clock tests/ctime tests/gmtime tests/localtime tests/mktime tests/strftime tests/time " ++ # . (CYGFUN_LIBC_TIME_POSIX ? "tests/strptime" : "") ++ # ++ # CYGFUN_LIBC_TIME_POSIX == 1 ++ # Flavor: data ++ # Current_value: tests/asctime tests/clock tests/ctime tests/gmtime tests/localtime tests/mktime tests/strftime tests/time tests/strptime ++}; ++ ++# < ++# < ++# ISO C library general utility functions ++# doc: ref/libc.html ++# This package provides general utility functions in ++# as specified by the ISO C standard - ISO/IEC 9899:1990. ++# ++cdl_package CYGPKG_LIBC_STDLIB { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGINT_ISO_CTYPE ++ # CYGINT_ISO_CTYPE == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++}; ++ ++# > ++# Inline versions of functions ++# This option chooses whether some of the ++# particularly simple standard utility functions ++# from are available as inline ++# functions. This may improve performance, and as ++# the functions are small, may even improve code ++# size. ++# ++cdl_component CYGIMP_LIBC_STDLIB_INLINES { ++ # There is no associated value. ++}; ++ ++# > ++# abs() / labs() ++# ++cdl_option CYGIMP_LIBC_STDLIB_INLINE_ABS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_STDLIB_ABS_HEADER == "" ++ # CYGBLD_ISO_STDLIB_ABS_HEADER == ++ # --> 1 ++}; ++ ++# div() / ldiv() ++# ++cdl_option CYGIMP_LIBC_STDLIB_INLINE_DIV { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_STDLIB_DIV_HEADER == "" ++ # CYGBLD_ISO_STDLIB_DIV_HEADER == ++ # --> 1 ++}; ++ ++# atof() / atoi() / atol() ++# ++cdl_option CYGIMP_LIBC_STDLIB_INLINE_ATOX { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_STDLIB_STRCONV_HEADER == "" ++ # CYGBLD_ISO_STDLIB_STRCONV_HEADER == ++ # --> 1 ++}; ++ ++# < ++# Random number generation ++# These options control the behaviour of the ++# functions rand(), srand() and rand_r() ++# ++cdl_component CYGPKG_LIBC_RAND { ++ # There is no associated value. ++}; ++ ++# > ++# Per-thread random seed ++# doc: ref/libc-thread-safety.html ++# This option controls whether the pseudo-random ++# number generation functions rand() and srand() ++# have their state recorded on a per-thread ++# basis rather than global. If this option is ++# disabled, some per-thread space can be saved. ++# Note there is also a POSIX-standard rand_r() ++# function to achieve a similar effect with user ++# support. Enabling this option will use one slot ++# of kernel per-thread data. You should ensure you ++# have enough slots configured for all your ++# per-thread data. ++# ++cdl_option CYGSEM_LIBC_PER_THREAD_RAND { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++}; ++ ++# Random number seed ++# This selects the initial random number seed for ++# rand()'s pseudo-random number generator. For ++# strict ISO standard compliance, this should be 1, ++# as per section 7.10.2.2 of the standard. ++# ++cdl_option CYGNUM_LIBC_RAND_SEED { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Legal values: 0 to 0x7fffffff ++}; ++ ++# Tracing level ++# Trace verbosity level for debugging the rand(), ++# srand() and rand_r() functions. Increase this ++# value to get additional trace output. ++# ++cdl_option CYGNUM_LIBC_RAND_TRACE_LEVEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++}; ++ ++# Simplest implementation ++# This provides a very simple implementation of rand() ++# that does not perform well with randomness in the ++# lower significant bits. However it is exceptionally ++# fast. It uses the sample algorithm from the ISO C ++# standard itself. ++# ++cdl_option CYGIMP_LIBC_RAND_SIMPLEST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Simple implementation #1 ++# This provides a very simple implementation of rand() ++# based on the simplest implementation above. However ++# it does try to work around the lack of randomness ++# in the lower significant bits, at the expense of a ++# little speed. ++# ++cdl_option CYGIMP_LIBC_RAND_SIMPLE1 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Knuth implementation #1 ++# This implements a slightly more complex algorithm ++# published in Donald E. Knuth's Art of Computer ++# Programming Vol.2 section 3.6 (p.185 in the 3rd ed.). ++# This produces better random numbers than the ++# simplest approach but is slower. ++# ++cdl_option CYGIMP_LIBC_RAND_KNUTH1 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Provides strtod() ++# This option allows use of the utility function ++# strtod() (and consequently atof()) to convert ++# from string to double precision floating point ++# numbers. Disabling this option removes the ++# dependency on the math library package. ++# ++cdl_option CYGFUN_LIBC_strtod { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGPKG_LIBM ++ # CYGPKG_LIBM == current ++ # --> 1 ++ # Requires: CYGPKG_LIBM ++ # CYGPKG_LIBM == current ++ # --> 1 ++}; ++ ++# Provides long long conversion functions ++# Enabling this option will provide support for the strtoll(), ++# strtoull() and atoll() conversion functions, which are ++# the long long variants of the standard versions of these ++# functions. Supporting this requires extra code and compile ++# time. ++# ++cdl_option CYGFUN_LIBC_STDLIB_CONV_LONGLONG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGFUN_LIBC_STDIO_LONGLONG ++ # Requires: CYGFUN_LIBC_STDLIB_CONV_LONGLONG ++}; ++ ++# bsearch() tracing level ++# Trace verbosity level for debugging the ++# binary search function bsearch(). Increase this ++# value to get additional trace output. ++# ++cdl_option CYGNUM_LIBC_BSEARCH_TRACE_LEVEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++}; ++ ++# qsort() tracing level ++# Trace verbosity level for debugging the ++# quicksort function qsort(). Increase this value ++# to get additional trace output. ++# ++cdl_option CYGNUM_LIBC_QSORT_TRACE_LEVEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++}; ++ ++# C library stdlib build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBC_STDLIB_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBC_STDLIB_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBC_STDLIB_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# C library stdlib tests ++# This option specifies the set of tests for this package. ++# ++cdl_option CYGPKG_LIBC_STDLIB_TESTS { ++ # Calculated value: "tests/abs tests/atoi tests/atol tests/bsearch tests/div tests/getenv tests/labs tests/ldiv tests/qsort tests/rand1 tests/rand2 tests/rand3 tests/rand4 tests/srand tests/strtol tests/strtoul" ++ # Flavor: data ++ # Current_value: tests/abs tests/atoi tests/atol tests/bsearch tests/div tests/getenv tests/labs tests/ldiv tests/qsort tests/rand1 tests/rand2 tests/rand3 tests/rand4 tests/srand tests/strtol tests/strtoul ++}; ++ ++# < ++# < ++# ISO C library string functions ++# doc: ref/libc.html ++# This package provides string functions specified by the ++# ISO C standard - ISO/IEC 9899:1990. ++# ++cdl_package CYGPKG_LIBC_STRING { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER == "" ++ # CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STRING_MEMFUNCS_HEADER == "" ++ # CYGBLD_ISO_STRING_MEMFUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STRING_STRFUNCS_HEADER == "" ++ # CYGBLD_ISO_STRING_STRFUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STRTOK_R_HEADER == "" ++ # CYGBLD_ISO_STRTOK_R_HEADER == ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++}; ++ ++# > ++# Inline versions of functions ++# This option chooses whether some of the ++# particularly simple string functions from ++# are available as inline ++# functions. This may improve performance, and as ++# the functions are small, may even improve code ++# size. ++# ++cdl_option CYGIMP_LIBC_STRING_INLINES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Optimize string functions for code size ++# This option tries to reduce string function ++# code size at the expense of execution speed. The ++# same effect can be produced if the code is ++# compiled with the -Os option to the compiler. ++# ++cdl_option CYGIMP_LIBC_STRING_PREFER_SMALL_TO_FAST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Provide BSD compatibility functions ++# Enabling this option causes various compatibility functions ++# commonly found in the BSD UNIX operating system to be included. ++# These are functions such as bzero, bcmp, bcopy, bzero, strcasecmp, ++# strncasecmp, index, rindex and swab. ++# ++cdl_option CYGFUN_LIBC_STRING_BSD_FUNCS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_STRING_BSD_FUNCS_HEADER == "" ++ # CYGBLD_ISO_STRING_BSD_FUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGINT_ISO_CTYPE ++ # CYGINT_ISO_CTYPE == 1 ++ # --> 1 ++}; ++ ++# strtok ++# These options control the behaviour of the ++# strtok() and strtok_r() string tokenization ++# functions. ++# ++cdl_component CYGPKG_LIBC_STRING_STRTOK { ++ # There is no associated value. ++}; ++ ++# > ++# Per-thread strtok() ++# This option controls whether the string function ++# strtok() has its state recorded on a per-thread ++# basis rather than global. If this option is ++# disabled, some per-thread space can be saved. ++# Note there is also a POSIX-standard strtok_r() ++# function to achieve a similar effect with user ++# support. Enabling this option will use one slot ++# of kernel per-thread data. You should ensure you ++# have enough slots configured for all your ++# per-thread data. ++# ++cdl_option CYGSEM_LIBC_STRING_PER_THREAD_STRTOK { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++}; ++ ++# Tracing level ++# Trace verbosity level for debugging the ++# functions strtok() and strtok_r(). Increase this ++# value to get additional trace output. ++# ++cdl_option CYGNUM_LIBC_STRING_STRTOK_TRACE_LEVEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++}; ++ ++# < ++# strdup ++# This option indicates whether strdup() is to be supported. ++# ++cdl_option CYGFUN_LIBC_STRING_STRDUP { ++ # ActiveIf constraint: CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# C library string functions build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBC_STRING_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBC_STRING_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBC_STRING_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# C library string function tests ++# This option specifies the set of tests for the C library ++# string functions. ++# ++cdl_option CYGPKG_LIBC_STRING_TESTS { ++ # Calculated value: "tests/memchr tests/memcmp1 tests/memcmp2 tests/memcpy1 tests/memcpy2 tests/memmove1 tests/memmove2 tests/memset tests/strcat1 tests/strcat2 tests/strchr tests/strcmp1 tests/strcmp2 tests/strcoll1 tests/strcoll2 tests/strcpy1 tests/strcpy2 tests/strcspn tests/strcspn tests/strlen tests/strncat1 tests/strncat2 tests/strncpy1 tests/strncpy2 tests/strpbrk tests/strrchr tests/strspn tests/strstr tests/strtok tests/strxfrm1 tests/strxfrm2" ++ # Flavor: data ++ # Current_value: tests/memchr tests/memcmp1 tests/memcmp2 tests/memcpy1 tests/memcpy2 tests/memmove1 tests/memmove2 tests/memset tests/strcat1 tests/strcat2 tests/strchr tests/strcmp1 tests/strcmp2 tests/strcoll1 tests/strcoll2 tests/strcpy1 tests/strcpy2 tests/strcspn tests/strcspn tests/strlen tests/strncat1 tests/strncat2 tests/strncpy1 tests/strncpy2 tests/strpbrk tests/strrchr tests/strspn tests/strstr tests/strtok tests/strxfrm1 tests/strxfrm2 ++}; ++ ++# < ++# < ++# ISO C library internationalization functions ++# doc: ref/libc.html ++# This package provides internationalization functions specified by the ++# ISO C standard - ISO/IEC 9899:1990. These include locale-related ++# functionality and functionality. ++# ++cdl_package CYGPKG_LIBC_I18N { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: CYGPKG_LIBC_I18N ++}; ++ ++# > ++# Supported locales ++# These options determine which locales other than the "C" locale ++# are supported and hence contribute to the size of the executable. ++# ++cdl_component CYGPKG_LIBC_I18N_LOCALES { ++ # There is no associated value. ++}; ++ ++# > ++# Support for multiple locales required ++# ++cdl_interface CYGINT_LIBC_I18N_MB_REQUIRED { ++ # Implemented by CYGFUN_LIBC_I18N_LOCALE_C_SJIS, active, disabled ++ # Implemented by CYGFUN_LIBC_I18N_LOCALE_C_JIS, active, disabled ++ # Implemented by CYGFUN_LIBC_I18N_LOCALE_C_EUCJP, active, disabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: CYGBLD_ISO_STDLIB_MB_CUR_MAX_HEADER == "" ++ # CYGBLD_ISO_STDLIB_MB_CUR_MAX_HEADER == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++}; ++ ++# C-SJIS locale support ++# This option controls if the "C-SJIS" locale will be ++# supported by setlocale(). The locale is a hybrid locale ++# that is mostly the "C" locale with Japanese SJIS multibyte ++# support added. ++# ++cdl_option CYGFUN_LIBC_I18N_LOCALE_C_SJIS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE ++ # LegalValues: (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 : (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) to 0x7fffffff ++ # option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE ++ # DefaultValue: (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 : (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) ++}; ++ ++# C-JIS locale support ++# This option controls if the "C-JIS" locale will be ++# supported by setlocale(). The locale is a hybrid locale ++# that is mostly the "C" locale with Japanese JIS multibyte ++# support added. ++# ++cdl_option CYGFUN_LIBC_I18N_LOCALE_C_JIS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE ++ # LegalValues: (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 : (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) to 0x7fffffff ++ # option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE ++ # DefaultValue: (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 : (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) ++}; ++ ++# C-EUCJP locale support ++# This option controls if the "C-EUCJP" locale will be ++# supported by setlocale(). The locale is a hybrid locale ++# that is mostly the "C" locale with Japanese EUCJP multibyte ++# support added. ++# ++cdl_option CYGFUN_LIBC_I18N_LOCALE_C_EUCJP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE ++ # LegalValues: (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 : (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) to 0x7fffffff ++ # option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE ++ # DefaultValue: (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 : (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) ++}; ++ ++# < ++# Newlib's ctype implementation ++# This option enables the implementation of the ctype functions ++# that comes with newlib. It is table driven and therefore ++# exhibits different performance characteristics. It also offers ++# a limited amount of binary compatibility ++# with newlib so that programs linked against newlib ctype/locale ++# do not need to be recompiled when linked with eCos. ++# ++cdl_option CYGPKG_LIBC_I18N_NEWLIB_CTYPE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGBLD_ISO_CTYPE_HEADER == "" ++ # CYGBLD_ISO_CTYPE_HEADER == ++ # --> 0 ++}; ++ ++# Per-thread multibyte state ++# This option controls whether the multibyte character ++# handling functions mblen(), mbtowc(), and wctomb(), ++# have their state recorded on a per-thread ++# basis rather than global. If this option is ++# disabled, some per-thread space can be saved. ++# Enabling this option will use three slots ++# of kernel per-thread data. You should ensure you ++# have enough slots configured for all your ++# per-thread data. ++# ++cdl_option CYGSEM_LIBC_I18N_PER_THREAD_MB { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGVAR_KERNEL_THREADS_DATA != 0 ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++}; ++ ++# Size of locale name strings ++# This option controls the maximum size of ++# locale names and is used, among other things ++# to instantiate a static string used ++# as a return value from the ++# setlocale() function. When requesting the ++# current locale settings with LC_ALL, a string ++# must be constructed to contain this data, rather ++# than just returning a constant string. This ++# string data is stored in the static string. ++# This depends on the length of locale names, ++# hence this option. If just the C locale is ++# present, this option can be set as low as 2. ++# ++cdl_option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 2 ++ # value_source default ++ # Default value: (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 : (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) ++ # CYGFUN_LIBC_I18N_LOCALE_C_EUCJP == 0 ++ # CYGFUN_LIBC_I18N_LOCALE_C_SJIS == 0 ++ # CYGFUN_LIBC_I18N_LOCALE_C_JIS == 0 ++ # --> 2 ++ # Legal values: (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 : (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) to 0x7fffffff ++ # CYGFUN_LIBC_I18N_LOCALE_C_EUCJP == 0 ++ # CYGFUN_LIBC_I18N_LOCALE_C_SJIS == 0 ++ # CYGFUN_LIBC_I18N_LOCALE_C_JIS == 0 ++}; ++ ++# Inline versions of functions ++# This option chooses whether the simple character ++# classification and conversion functions (e.g. ++# isupper(), isalpha(), toupper(), etc.) ++# from are available as inline ++# functions. This may improve performance and as ++# the functions are small, may even improve code ++# size. ++# ++cdl_option CYGIMP_LIBC_I18N_CTYPE_INLINES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_CTYPE_HEADER == "" ++ # CYGBLD_ISO_CTYPE_HEADER == ++ # --> 1 ++}; ++ ++# C library i18n functions build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBC_I18N_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBC_I18N_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBC_I18N_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# C library i18n function tests ++# This option specifies the set of tests for the C library ++# i18n functions. ++# ++cdl_option CYGPKG_LIBC_I18N_TESTS { ++ # Calculated value: "tests/ctype tests/setlocale tests/i18nmb" ++ # Flavor: data ++ # Current_value: tests/ctype tests/setlocale tests/i18nmb ++}; ++ ++# < ++# < ++# ISO C library setjmp/longjmp functions ++# doc: ref/libc.html ++# This package provides non-local jumps based on setjmp() and ++# longjmp() in as specified by the ISO C ++# standard - ISO/IEC 9899:1990. ++# ++cdl_package CYGPKG_LIBC_SETJMP { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGBLD_ISO_SETJMP_HEADER == "" ++ # CYGBLD_ISO_SETJMP_HEADER == ++ # --> 1 ++}; ++ ++# > ++# C library setjmp build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBC_SETJMP_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBC_SETJMP_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBC_SETJMP_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# C library setjmp tests ++# This option specifies the set of tests for this package. ++# ++cdl_option CYGPKG_LIBC_SETJMP_TESTS { ++ # Calculated value: "tests/setjmp" ++ # Flavor: data ++ # Current_value: tests/setjmp ++}; ++ ++# < ++# < ++# ISO environment startup/termination ++# doc: ref/c-library-startup.html ++# This package manages the control of the ++# environment (in the general sense) that an ++# application would require for full ISO C / POSIX ++# compatibility, including a main() entry point ++# supplied with arguments and an environment ++# (as retrievable by the getenv() function). ++# It also includes at the other end of things, ++# what happens when main() returns or exit() is ++# called. ++# ++cdl_package CYGPKG_LIBC_STARTUP { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGINT_LIBC_STARTUP_CONTEXT == 1 ++ # CYGINT_LIBC_STARTUP_CONTEXT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_POSIX_MAIN_THREAD ++ # Requires: 0 != CYGPKG_LIBC_STARTUP ++}; ++ ++# > ++# main() can be invoked elsewhere ++# Implementors of this interface show that they ++# allow main() to be invoked elsewhere. ++# ++cdl_interface CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE { ++ # Implemented by CYGPKG_POSIX_MAIN_THREAD, active, enabled ++ # This value cannot be modified here. ++ # Flavor: bool ++ # Current value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_LIBC_STARTUP_MAIN_INITCONTEXT ++ # DefaultValue: 0 == CYGPKG_KERNEL && 0 == ++ # CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # component CYGSEM_LIBC_STARTUP_MAIN_THREAD ++ # DefaultValue: 0 != CYGPKG_KERNEL && 0 == CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # option CYGSEM_LIBC_STARTUP_MAIN_OTHER ++ # DefaultValue: 0 != CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # option CYGSEM_LIBC_STARTUP_MAIN_OTHER ++ # Requires: CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++}; ++ ++# Arguments to main() ++# This option allows the setting of the arguments ++# to the main function. This only has any effect ++# when cyg_iso_c_start() is used to start the ++# ISO C compatibility. This will automatically ++# invoke main() in an ISO C compatible fashion. ++# This option is in fact used as argv, and so is ++# an n-tuple of string constants. The final ++# entry must be NULL. Conventionally if argv[0] ++# is supplied, it is used to inform the program ++# of its name. ++# ++cdl_option CYGDAT_LIBC_ARGUMENTS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "{\"\", NULL}" ++ # value_source default ++ # Default value: "{\"\", NULL}" ++}; ++ ++# Startup context for main() ++# This component describes the options available for ++# what context main() is invoked in, such as in a thread ++# etc. ++# ++cdl_component CYGPKG_LIBC_STARTUP_CONTEXT { ++ # There is no associated value. ++}; ++ ++# > ++# Startup context implementors ++# ++cdl_interface CYGINT_LIBC_STARTUP_CONTEXT { ++ # Implemented by CYGSEM_LIBC_STARTUP_MAIN_INITCONTEXT, active, disabled ++ # Implemented by CYGSEM_LIBC_STARTUP_MAIN_THREAD, active, disabled ++ # Implemented by CYGSEM_LIBC_STARTUP_MAIN_OTHER, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STARTUP ++ # Requires: CYGINT_LIBC_STARTUP_CONTEXT == 1 ++}; ++ ++# Invoked from initialization context ++# With this option selected, main() will be ++# called via cyg_user_start() (unless the program ++# overrides the default cyg_user_start()). This ++# means it is run in the context of the system ++# initialization code, without the eCos kernel ++# scheduler running, and using the startup stack. ++# This means that any functions that may require ++# interactions with a running kernel will not ++# work (including libc functions, if configured ++# to be thread safe for example), so you should ++# restrict yourself to only calling fully ++# re-entrant functions from within main() in ++# this case. ++# ++cdl_option CYGSEM_LIBC_STARTUP_MAIN_INITCONTEXT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 == CYGPKG_KERNEL && 0 == ++ # CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # CYGPKG_KERNEL == current ++ # CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE == 1 ++ # --> 0 ++}; ++ ++# Invoked as eCos thread ++# With this option selected, main() is invoked from an eCos ++# thread. ++# ++cdl_component CYGSEM_LIBC_STARTUP_MAIN_THREAD { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 != CYGPKG_KERNEL && 0 == CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # CYGPKG_KERNEL == current ++ # CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE == 1 ++ # --> 0 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS ++ # Requires: CYGSEM_LIBC_STARTUP_MAIN_THREAD || (CYGSEM_LIBC_STARTUP_MAIN_OTHER && CYGPKG_POSIX_PTHREAD) ++}; ++ ++# > ++# System provides stack for main()'s thread ++# This option controls whether the stack of ++# main()'s thread is provided by the application or ++# provided by the system. When disabled, the ++# application must declare a pointer variable ++# cyg_libc_main_stack which is a pointer to an ++# appropriately aligned region of memory. The ++# application must also declare a variable of ++# type `int' called cyg_libc_main_stack_size ++# which contains the size of the stack in bytes. ++# This must be a multiple of 8. ++# ++cdl_option CYGSEM_LIBC_MAIN_STACK_FROM_SYSTEM { ++ # This option is not active ++ # The parent CYGSEM_LIBC_STARTUP_MAIN_THREAD is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Priority of main()'s thread ++# This option is used to provide the thread ++# priority which main()'s thread runs at. Be ++# sure to check that this number is appropriate ++# for the kernel scheduler chosen. Different ++# kernel schedulers impose different restrictions ++# on the usable priorities. ++# ++cdl_option CYGNUM_LIBC_MAIN_THREAD_PRIORITY { ++ # This option is not active ++ # The parent CYGSEM_LIBC_STARTUP_MAIN_THREAD is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 10 ++ # value_source default ++ # Default value: 10 ++ # Legal values: 0 to 0x7fffffff ++}; ++ ++# < ++# Invoked elsewhere ++# With this option selected, main() must be ++# invoked by a separate package, or by the user. ++# ++cdl_option CYGSEM_LIBC_STARTUP_MAIN_OTHER { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE == 1 ++ # --> 1 ++ # Requires: CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE ++ # CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS ++ # Requires: CYGSEM_LIBC_STARTUP_MAIN_THREAD || (CYGSEM_LIBC_STARTUP_MAIN_OTHER && CYGPKG_POSIX_PTHREAD) ++ # component CYGPKG_POSIX_MAIN_THREAD ++ # Requires: CYGSEM_LIBC_STARTUP_MAIN_OTHER ++}; ++ ++# < ++# Don't allow main()'s stack size to be set ++# This interface describes whether the stack size ++# value set in this package is supported by the ++# implementation that invokes main. If not, that ++# option is disabled. ++# ++cdl_interface CYGINT_LIBC_STARTUP_MAIN_NO_STACK_SIZE { ++ # Implemented by CYGSEM_LIBC_STARTUP_MAIN_INITCONTEXT, active, disabled ++ # This value cannot be modified here. ++ # Flavor: bool ++ # Current value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_LIBC_MAIN_DEFAULT_STACK_SIZE ++ # ActiveIf: !CYGINT_LIBC_STARTUP_MAIN_NO_STACK_SIZE ++}; ++ ++# main()'s default thread stack size ++# This option sets the size of the stack used ++# in the context that invokes main(). For example, ++# with an eCos kernel, when the cyg_iso_c_start() ++# function is used to invoke the user-supplied ++# main() function in an ISO C compatible fashion, ++# a separate thread is created to call main(). ++# This option controls the size of that thread's ++# stack, which is allocated in the BSS. It ++# must be a multiple of 8. Note, a low number ++# here may be overriden by the HAL if there is ++# a minimum requirement to process interrupts ++# etc. This option cannot be set if the implementation ++# that invokes main() does not use it. ++# ++cdl_option CYGNUM_LIBC_MAIN_DEFAULT_STACK_SIZE { ++ # ActiveIf constraint: !CYGINT_LIBC_STARTUP_MAIN_NO_STACK_SIZE ++ # CYGINT_LIBC_STARTUP_MAIN_NO_STACK_SIZE == 0 ++ # --> 1 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8192 ++ # value_source default ++ # Default value: 8192 ++ # Legal values: 16 to 0x7fffffff ++}; ++ ++# Include atexit() function ++# This option enables the use of the atexit() ++# function, and ensure that the atexit handlers ++# are invoked from within exit() as defined in ++# the ISO C standard. ++# ++cdl_component CYGFUN_LIBC_ATEXIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Number of functions atexit() supports ++# This option sets the number of functions ++# that atexit() has room for. In other words, ++# the number of separate atexit() calls that ++# can be made before calling exit() or returning ++# from main() ( in an environment controlled by ++# cyg_iso_c_start() ). For strict compliance ++# with the ISO C standard this should be at ++# least 32. ++# ++cdl_option CYGNUM_LIBC_ATEXIT_HANDLERS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: 32 ++ # Legal values: 1 to 0x7fffffff ++}; ++ ++# < ++# Make exit() call fflush() ++# This option will ensure that all output ++# streams are flushed when exitting using ++# exit() as prescribed by the ISO C standard. ++# ++cdl_option CYGSEM_LIBC_EXIT_CALLS_FFLUSH { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGINT_ISO_STDIO_FILEACCESS ++ # CYGINT_ISO_STDIO_FILEACCESS == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STDIO_FILEACCESS ++ # CYGINT_ISO_STDIO_FILEACCESS == 1 ++ # --> 1 ++}; ++ ++# _exit() stops all threads ++# If this option is enabled then _exit(), ++# which is called from exit() which itself is ++# called on return from main(), stops the eCos ++# scheduler. For strict POSIX 1003.1 ++# compatibility this would be the normal ++# behaviour. To allow the thread to simply ++# exit, without affecting other threads, simply ++# leave this option disabled. If there is no eCos ++# scheduler, then _exit() simply loops ++# irrespective of the setting of this option. ++# ++cdl_option CYGSEM_LIBC_EXIT_STOPS_SYSTEM { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++}; ++ ++# Default environment ++# This option allows the setting of the default ++# contents of the environment. This is in fact ++# the contents of the global environment pointer ++# char **environ defined by POSIX 1003.1. Strings ++# must be of the form NAME=VALUE, and the final ++# entry must be NULL. ++# ++cdl_option CYGDAT_LIBC_DEFAULT_ENVIRONMENT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "{ NULL }" ++ # value_source default ++ # Default value: "{ NULL }" ++}; ++ ++# Invoke default static constructors ++# This option causes the C library to call ++# static constructors with default priority ++# from within the context of the main() thread, ++# working with the co-operation of the HAL. ++# This may be needed for environments that ++# expect static constructors to be run in a ++# thread context. Note that this uses an object ++# with priority 65534. Therefore do not use ++# priority 65534 for any other static objects ++# with this option enabled. ++# ++cdl_option CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG ++ # CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG == 0 ++ # --> 0 ++ # Requires: CYGSEM_LIBC_STARTUP_MAIN_THREAD || (CYGSEM_LIBC_STARTUP_MAIN_OTHER && CYGPKG_POSIX_PTHREAD) ++ # CYGSEM_LIBC_STARTUP_MAIN_THREAD == 0 ++ # CYGSEM_LIBC_STARTUP_MAIN_OTHER == 1 ++ # CYGPKG_POSIX_PTHREAD == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG ++ # Requires: CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS ++}; ++ ++# ISO environment startup/termination build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBC_STARTUP_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBC_STARTUP_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBC_STARTUP_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# ISO environment startup/termination tests ++# This option specifies the set of tests for this package. ++# ++cdl_option CYGPKG_LIBC_STARTUP_TESTS { ++ # Calculated value: "tests/atexit" ++ # Flavor: data ++ # Current_value: tests/atexit ++}; ++ ++# < ++# < ++# ISO C library standard input/output functions ++# doc: ref/libc.html ++# This package provides standard input/output functions associated ++# with the header file as specified by the ++# ISO C standard - ISO/IEC 9899:1990. ++# ++cdl_package CYGPKG_LIBC_STDIO { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_IO ++ # CYGPKG_IO == current ++ # --> 1 ++ # Requires: CYGPKG_LIBC_I18N ++ # CYGPKG_LIBC_I18N == current ++ # --> 1 ++ # Requires: (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE == "\"/dev/ttydiag\"" ? CYGPKG_IO_SERIAL_HALDIAG : 1) ++ # CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE == "\"/dev/ttydiag\"" ++ # CYGPKG_IO_SERIAL_HALDIAG == 1 ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_FILETYPES_HEADER == "" ++ # CYGBLD_ISO_STDIO_FILETYPES_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_FILEACCESS_HEADER == "" ++ # CYGBLD_ISO_STDIO_FILEACCESS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_FILEPOS_HEADER == "" ++ # CYGBLD_ISO_STDIO_FILEPOS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_FILEOPS_HEADER == "" ++ # CYGBLD_ISO_STDIO_FILEOPS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_FORMATTED_IO_HEADER == "" ++ # CYGBLD_ISO_STDIO_FORMATTED_IO_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_CHAR_IO_HEADER == "" ++ # CYGBLD_ISO_STDIO_CHAR_IO_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_DIRECT_IO_HEADER == "" ++ # CYGBLD_ISO_STDIO_DIRECT_IO_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_ERROR_HEADER == "" ++ # CYGBLD_ISO_STDIO_ERROR_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STDIO_STREAMS_HEADER == "" ++ # CYGBLD_ISO_STDIO_STREAMS_HEADER == ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO_CODES ++ # CYGINT_ISO_ERRNO_CODES == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO ++ # CYGINT_ISO_ERRNO == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRERROR ++ # CYGINT_ISO_STRERROR == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRING_MEMFUNCS ++ # CYGINT_ISO_STRING_MEMFUNCS == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STDLIB_STRCONV ++ # CYGINT_ISO_STDLIB_STRCONV == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_LIBM_USE_STDERR ++ # Requires: CYGPKG_LIBC_STDIO ++}; ++ ++# > ++# Inline versions of functions ++# This option chooses whether some of the ++# particularly simple functions from ++# are available as inline ++# functions. This may improve performance, and as ++# the functions are small, may even improve code ++# size. ++# ++cdl_option CYGIMP_LIBC_STDIO_INLINES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Permitted number of open files ++# This option controls the guaranteed minimum ++# number of simultaneously open files. The ISO ++# C standard requires it to be defined (para ++# 7.9.1), and if strictly compliant, it must be ++# at least 8 (para 7.9.3). In practice it can be ++# as low as 3 - for stdin, stdout and stderr. ++# ++cdl_option FOPEN_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++ # Legal values: 3 to 0x7fffffff ++}; ++ ++# Maximum length of filename ++# This option defines the maximum allowed size of ++# a filename in characters. The ISO C standard ++# requires it to be defined (para 7.9.1). ++# ++cdl_option FILENAME_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++ # Legal values: 1 to 0x7fffffff ++}; ++ ++# Maximum length of filenames for temporary files ++# This option defines the maximum allowed size of ++# filenames for temporary files as generated by ++# tmpnam(). It is measured in characters, and the ++# ISO C standard requires it to be defined (para ++# 7.9.1). ++# ++cdl_option L_tmpnam { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++ # Legal values: 4 to 0x7fffffff ++}; ++ ++# Unique file names generated by tmpnam() ++# This option defines the minimum number of ++# unique file names generated by tmpnam(). The ++# ISO C standard requires it to be defined (para ++# 7.9.1) and for ISO compliance it should be at least ++# 25. Note that TMP_MAX names may not be generated ++# if L_tmpnam is too small. ++# ++cdl_option TMP_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 25 ++ # value_source default ++ # Default value: 25 ++ # Legal values: 1 to 0x7fffffff ++}; ++ ++# Buffered I/O ++# This option controls whether input/output ++# through the functions is buffered. ++# This may save some memory per file. It ++# is equivalent to putting every file into ++# non-buffered mode (_IONBF) through setvbuf(), ++# except now it can never be altered back to ++# buffered mode. Disabling buffering is strictly ++# non-compliant with the ISO C standard. ++# ++cdl_component CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option BUFSIZ ++ # Calculated: CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO ? CYGNUM_LIBC_STDIO_BUFSIZE : 0 ++ # option CYGPKG_LIBC_STDIO_FILEIO ++ # Requires: CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO ++}; ++ ++# > ++# Default buffer size ++# This option defines the default size of buffer ++# used with calls to setbuf(), and is the default ++# size for buffered streams that have not had ++# either setbuf() or setvbuf() invoked on them. ++# It is exactly equivalent to the standard ++# constant BUFSIZ, except that it is 0 if ++# CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO is disabled. ++# The ISO C standard requires this to be defined ++# (para 7.9.1), and says it must be at least 256 ++# (para 7.9.2). ++# ++cdl_option CYGNUM_LIBC_STDIO_BUFSIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 256 ++ # value_source default ++ # Default value: 256 ++ # Legal values: 1 to 0x7fffffff ++ ++ # The following properties are affected by this value ++ # option BUFSIZ ++ # Calculated: CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO ? CYGNUM_LIBC_STDIO_BUFSIZE : 0 ++}; ++ ++# setbuf()/setvbuf() allows dynamic setting ++# This option controls whether I/O buffers are ++# implemented dynamically within the stdio ++# implementation. Otherwise they will be static, ++# and cannot be changed by setbuf()/setvbuf(). If ++# they are static (i.e. this option is disabled), ++# any attempt to use an arbitrary buffer size, or ++# to pass a user-supplied buffer to setbuf() or ++# setvbuf() will fail - the buffer is implemented ++# internally as a static array taking the size ++# of the configuration option BUFSIZ. The only ++# exception is if a user buffer is not supplied, ++# and the buffer size requested is less than ++# BUFSIZ. In this case, the buffer will ++# be configured to only use that amount of ++# buffering. However the unused memory left over ++# will NOT be freed. If this option is enabled, ++# then setvbuf() can be used to assign a user supplied ++# buffer to the stream. ++# Either setting can be considered to ++# be compliant with the ISO C standard. ++# ++cdl_option CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_LIBC_STDIO_SETVBUF_MALLOC ++ # Requires: CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF ++ # option CYGPKG_LIBC_STDIO_FILEIO ++ # Requires: CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF ++}; ++ ++# setbuf()/setvbuf() uses malloc() ++# This option controls whether buffers set by setbuf() and ++# setvbuf() may be allocated using malloc(). ++# ++cdl_option CYGSEM_LIBC_STDIO_SETVBUF_MALLOC { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ # Requires: CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF ++ # CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF == 1 ++ # --> 1 ++}; ++ ++# < ++# Default buffer size (BUFSIZ) ++# ++cdl_option BUFSIZ { ++ # Calculated value: CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO ? CYGNUM_LIBC_STDIO_BUFSIZE : 0 ++ # CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO == 1 ++ # CYGNUM_LIBC_STDIO_BUFSIZE == 256 ++ # Flavor: data ++ # Current_value: 256 ++}; ++ ++# Support for ungetc() ++# This option controls whether ungetc() is ++# supported. If not, then some space can be ++# saved, and speed is improved. Note that you ++# MUST have this defined if you want to use the ++# scanf() family of functions. ++# ++cdl_option CYGFUN_LIBC_STDIO_ungetc { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Dynamic opening/closing of files ++# fopen() and fclose() use dynamic memory ++# allocation routines to allocate memory for ++# new FILE structure pointers. If a malloc ++# implementation is available, this option ++# may be enabled to use ++# fopen() and fclose(). If disabled, only the ++# default console streams - stdin, stdout and ++# stderr - will be available. ++# ++cdl_component CYGPKG_LIBC_STDIO_OPEN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++}; ++ ++# > ++# POSIX fdopen/fileno functions ++# This identifies to the rest of the system ++# whether the POSIX fdopen() and ++# fileno() functions are implemented. ++# ++cdl_option CYGFUN_LIBC_STDIO_OPEN_POSIX_FDFUNCS { ++ # ActiveIf constraint: CYGPKG_LIBC_STDIO_FILEIO ++ # CYGPKG_LIBC_STDIO_FILEIO == 1 ++ # --> 1 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# < ++# Default console device ++# This option allows you to choose the ++# default console device. In the current ++# implementation, all these devices begin ++# with the prefix /dev/ and are followed by ++# the name of a device. The name of the device ++# depends on the device drivers you have ++# configured in your system. For example, ++# /dev/ttydiag could be the HAL diagnostic output ++# pseudo-device, or /dev/tty0 could be your ++# first serial driver, depending on your ++# configuration. ++# ++cdl_option CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE { ++ # Flavor: data ++ user_value "\"/dev/ttydiag\"" ++ # value_source user ++ # Default value: CYGDAT_IO_SERIAL_TTY_CONSOLE ? CYGDAT_IO_SERIAL_TTY_CONSOLE : "\"/dev/null\"" ++ # CYGDAT_IO_SERIAL_TTY_CONSOLE == "\"/dev/ttydiag\"" ++ # CYGDAT_IO_SERIAL_TTY_CONSOLE == "\"/dev/ttydiag\"" ++ # --> "\"/dev/ttydiag\"" ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STDIO ++ # Requires: (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE == "\"/dev/ttydiag\"" ? CYGPKG_IO_SERIAL_HALDIAG : 1) ++}; ++ ++# Floating point support ++# This component allows floating point support ++# to be enabled in certain standard I/O ++# functions. ++# ++cdl_component CYGPKG_LIBC_STDIO_FLOATING_POINT { ++ # There is no associated value. ++}; ++ ++# > ++# printf() family ++# This option enables the use of floating point ++# number output in the printf() family (i.e. ++# printf(), sprintf(), vprintf(), etc.) of ++# functions. A substantial amount of code space ++# can be saved if this option is disabled. If it ++# is disabled then floating point specifiers ++# (%e, %f, %g) are ignored, and nothing is ++# output. ++# ++cdl_option CYGSEM_LIBC_STDIO_PRINTF_FLOATING_POINT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGPKG_LIBM ++ # CYGPKG_LIBM == current ++ # --> 1 ++ # Requires: CYGPKG_LIBM ++ # CYGPKG_LIBM == current ++ # --> 1 ++}; ++ ++# scanf() family ++# This option enables the use of floating point ++# number conversion in the scanf() family (i.e. ++# scanf(), sscanf(), vscanf(), etc.) of ++# functions. A substantial amount of code space ++# can be saved if this option is disabled. If it ++# is disabled then floating point specifiers ++# (%e, %f, %g) are ignored, and nothing is ++# converted. ++# ++cdl_option CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGPKG_LIBM && ++ # 0 != CYGINT_ISO_STDLIB_STRCONV_FLOAT ++ # CYGPKG_LIBM == current ++ # CYGINT_ISO_STDLIB_STRCONV_FLOAT == 1 ++ # --> 1 ++ # Requires: CYGPKG_LIBM ++ # CYGPKG_LIBM == current ++ # --> 1 ++ # Requires: CYGINT_ISO_STDLIB_STRCONV_FLOAT ++ # CYGINT_ISO_STDLIB_STRCONV_FLOAT == 1 ++ # --> 1 ++}; ++ ++# < ++# Long long support ++# This option allows various functions in the C Standard I/O ++# library to support the 'long long' datatype. Doing so ++# will come with a noticeable code size penalty however. ++# ++cdl_option CYGFUN_LIBC_STDIO_LONGLONG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGFUN_LIBC_STDLIB_CONV_LONGLONG ++ # CYGFUN_LIBC_STDLIB_CONV_LONGLONG == 1 ++ # --> 1 ++}; ++ ++# Thread safe I/O streams ++# doc: ref/libc-thread-safety.html ++# This option controls whether standard I/O streams ++# are thread-safe. Having this option set allows ++# the streams to be locked when accessed by ++# multiple threads simultaneously. ++# ++cdl_option CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Enable use of FILEIO package for IO operations. ++# This CDL exists to control how the standard I/O functions ++# interface to the underlying I/O system. Either using the ++# File I/O package, or the generic I/O package which is used ++# by fewer devices. ++# ++cdl_option CYGPKG_LIBC_STDIO_FILEIO { ++ # ActiveIf constraint: CYGPKG_IO_FILEIO ++ # CYGPKG_IO_FILEIO == current ++ # --> 1 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ # Requires: CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO ++ # CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO == 1 ++ # --> 1 ++ # Requires: CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF ++ # CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGFUN_LIBC_STDIO_OPEN_POSIX_FDFUNCS ++ # ActiveIf: CYGPKG_LIBC_STDIO_FILEIO ++}; ++ ++# C library stdio functions build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBC_STDIO_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBC_STDIO_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBC_STDIO_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# C library stdio function tests ++# This option specifies the set of tests for the C library ++# stdio functions. ++# ++cdl_option CYGPKG_LIBC_STDIO_TESTS { ++ # Calculated value: ++ # "tests/sprintf1 tests/sprintf2 tests/sscanf tests/stdiooutput " ++ # . ((CYGPKG_IO_FILEIO && CYGPKG_FS_RAM) ? "tests/fileio " : "") ++ # ++ # CYGPKG_IO_FILEIO == current ++ # CYGPKG_FS_RAM (unknown) == 0 ++ # Flavor: data ++ # Current_value: tests/sprintf1 tests/sprintf2 tests/sscanf tests/stdiooutput ++}; ++ ++# < ++# < ++# < ++# Math library ++# doc: ref/libc.html ++# ISO standard floating point mathematical library ++# containing many useful functions for mathematical ++# calculations. ++# ++cdl_package CYGPKG_LIBM { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # option CYGFUN_LIBC_strtod ++ # Requires: CYGPKG_LIBM ++ # option CYGFUN_LIBC_strtod ++ # DefaultValue: 0 != CYGPKG_LIBM ++ # option CYGSEM_LIBC_STDIO_PRINTF_FLOATING_POINT ++ # Requires: CYGPKG_LIBM ++ # option CYGSEM_LIBC_STDIO_PRINTF_FLOATING_POINT ++ # DefaultValue: 0 != CYGPKG_LIBM ++ # option CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT ++ # Requires: CYGPKG_LIBM ++ # option CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT ++ # DefaultValue: 0 != CYGPKG_LIBM && ++ # 0 != CYGINT_ISO_STDLIB_STRCONV_FLOAT ++}; ++ ++# > ++# Compatibility mode ++# These options deal with behaviour related to ++# the various compatibility modes - POSIX, IEEE, ++# X/OPEN and SVID. ++# ++cdl_component CYGPKG_LIBM_COMPATIBILITY { ++ # There is no associated value. ++}; ++ ++# > ++# ++cdl_interface CYGINT_LIBM_COMPAT { ++ # Implemented by CYGSEM_LIBM_COMPAT_IEEE_ONLY, active, disabled ++ # Implemented by CYGNUM_LIBM_COMPATIBILITY, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 == CYGINT_LIBM_COMPAT ++ # CYGINT_LIBM_COMPAT == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_LIBM_COMPAT ++ # Requires: 1 == CYGINT_LIBM_COMPAT ++}; ++ ++# IEEE-only ++# The math library can be hard-coded to only ++# behave in one compatibility mode - IEEE. This ++# cannot be changed at run-time. IEEE mode is the ++# most minimal of the compatibility modes, and so ++# this will best help code size and speed, as well ++# as omitting the code for other compatibility ++# modes. If not defined, the math library can be ++# set at run-time to any of the supported ++# compatibility modes. ++# ++cdl_option CYGSEM_LIBM_COMPAT_IEEE_ONLY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_LIBM_USE_STDERR ++ # Requires: !CYGSEM_LIBM_COMPAT_IEEE_ONLY ++ # option CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE ++ # Requires: !CYGSEM_LIBM_COMPAT_IEEE_ONLY ++}; ++ ++# Default mode ++# If you want to have support for more than one ++# compatibility mode settable at run-time, rather ++# than hard-coded IEEE mode, this component lets ++# you choose which mode should be the default. ++# ++cdl_component CYGNUM_LIBM_COMPATIBILITY { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 POSIX ++ # value_source default ++ # Default value: 1 POSIX ++ # Legal values: "POSIX" "IEEE" "XOPEN" "SVID" ++ # Requires: CYGPKG_LIBC ++ # CYGPKG_LIBC == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_LIBM_COMPAT_DEFAULT ++ # Calculated: CYGNUM_LIBM_COMPATIBILITY == "POSIX" ? "CYGNUM_LIBM_COMPAT_POSIX" : CYGNUM_LIBM_COMPATIBILITY == "IEEE" ? "CYGNUM_LIBM_COMPAT_IEEE" : CYGNUM_LIBM_COMPATIBILITY == "XOPEN" ? "CYGNUM_LIBM_COMPAT_XOPEN" : CYGNUM_LIBM_COMPATIBILITY == "SVID" ? "CYGNUM_LIBM_COMPAT_SVID" : "" ++ # option CYGNUM_LIBM_COMPAT_DEFAULT ++ # Calculated: CYGNUM_LIBM_COMPATIBILITY == "POSIX" ? "CYGNUM_LIBM_COMPAT_POSIX" : CYGNUM_LIBM_COMPATIBILITY == "IEEE" ? "CYGNUM_LIBM_COMPAT_IEEE" : CYGNUM_LIBM_COMPATIBILITY == "XOPEN" ? "CYGNUM_LIBM_COMPAT_XOPEN" : CYGNUM_LIBM_COMPATIBILITY == "SVID" ? "CYGNUM_LIBM_COMPAT_SVID" : "" ++ # option CYGNUM_LIBM_COMPAT_DEFAULT ++ # Calculated: CYGNUM_LIBM_COMPATIBILITY == "POSIX" ? "CYGNUM_LIBM_COMPAT_POSIX" : CYGNUM_LIBM_COMPATIBILITY == "IEEE" ? "CYGNUM_LIBM_COMPAT_IEEE" : CYGNUM_LIBM_COMPATIBILITY == "XOPEN" ? "CYGNUM_LIBM_COMPAT_XOPEN" : CYGNUM_LIBM_COMPATIBILITY == "SVID" ? "CYGNUM_LIBM_COMPAT_SVID" : "" ++ # option CYGNUM_LIBM_COMPAT_DEFAULT ++ # Calculated: CYGNUM_LIBM_COMPATIBILITY == "POSIX" ? "CYGNUM_LIBM_COMPAT_POSIX" : CYGNUM_LIBM_COMPATIBILITY == "IEEE" ? "CYGNUM_LIBM_COMPAT_IEEE" : CYGNUM_LIBM_COMPATIBILITY == "XOPEN" ? "CYGNUM_LIBM_COMPAT_XOPEN" : CYGNUM_LIBM_COMPATIBILITY == "SVID" ? "CYGNUM_LIBM_COMPAT_SVID" : "" ++}; ++ ++# > ++# Numeric representation ++# This option automatically defines the default compatibility ++# mode for numeric representation in terms of the values used ++# to set that mode at run-time. ++# ++cdl_option CYGNUM_LIBM_COMPAT_DEFAULT { ++ # Calculated value: CYGNUM_LIBM_COMPATIBILITY == "POSIX" ? "CYGNUM_LIBM_COMPAT_POSIX" : CYGNUM_LIBM_COMPATIBILITY == "IEEE" ? "CYGNUM_LIBM_COMPAT_IEEE" : CYGNUM_LIBM_COMPATIBILITY == "XOPEN" ? "CYGNUM_LIBM_COMPAT_XOPEN" : CYGNUM_LIBM_COMPATIBILITY == "SVID" ? "CYGNUM_LIBM_COMPAT_SVID" : "" ++ # CYGNUM_LIBM_COMPATIBILITY == POSIX ++ # CYGNUM_LIBM_COMPATIBILITY == POSIX ++ # CYGNUM_LIBM_COMPATIBILITY == POSIX ++ # CYGNUM_LIBM_COMPATIBILITY == POSIX ++ # Flavor: data ++ # Current_value: CYGNUM_LIBM_COMPAT_POSIX ++}; ++ ++# < ++# SVID3-style scalb() ++# SVID3 defined the scalb() function as double ++# scalb(double, double) rather than double ++# scalb(double, int) which is used by IBM, DEC, and ++# probably others. Enabling this option chooses ++# the (double, double) version. Note there is a ++# function double scalbn(double, int) which is ++# unaffected by this choice. ++# ++cdl_option CYGFUN_LIBM_SVID3_scalb { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Reduce namespace pollution ++# If you do not want to use either the X/Open or ++# SVID3 compatibility modes, you may want to define ++# this option to reduce the chance of namespace ++# pollution. This is particularly likely to occur ++# here as these standards define symbols with ++# names that often appear in applications, such as ++# exception, DOMAIN, OVERFLOW, etc. If your ++# application also used these names, it may cause ++# problems. ++# ++cdl_option CYGSYM_LIBM_NO_XOPEN_SVID_NAMESPACE_POLLUTION { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Output to stderr for math errors ++# The SVID3 standard says that error ++# messages should be output on the stderr console ++# output stream. This option allows this ability ++# to be explicitly controlled. However, this still ++# only has an effect in SVID3 compatibility mode. ++# ++cdl_option CYGSEM_LIBM_USE_STDERR { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: !CYGSEM_LIBM_COMPAT_IEEE_ONLY ++ # CYGSEM_LIBM_COMPAT_IEEE_ONLY == 0 ++ # --> 1 ++ # Requires: CYGPKG_LIBC_STDIO ++ # CYGPKG_LIBC_STDIO == current ++ # --> 1 ++}; ++ ++# < ++# Thread safety ++# This option controls whether the C library has ++# support for thread safe operation in general. ++# This requires eCos kernel support for per-thread ++# data, and adjustment of the stack limit. ++# ++cdl_component CYGPKG_LIBM_THREAD_SAFETY { ++ # There is no associated value. ++}; ++ ++# > ++# Compatibility mode setting ++# This option makes the setting of the compatiblity ++# mode be a per-thread property. This directly ++# implies that it also becomes thread-safe. ++# ++cdl_option CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: !CYGSEM_LIBM_COMPAT_IEEE_ONLY ++ # CYGSEM_LIBM_COMPAT_IEEE_ONLY == 0 ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_LIBM_COMPATMODE_TRACE_LEVEL ++ # Requires: CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE ++}; ++ ++# gamma() and lgamma() ++# This option makes the gamma() and lgamma() ++# functions be thread-safe. Note that these ++# functions are identical - they take the log of ++# the absolute value of their argument. The sign ++# of the argument is stored in a variable called ++# signgam. Enabling this option makes signgam ++# a per-thread variable. Note there are also ++# gamma_r() and lgamma_r() alternatives that ++# allow signgam to be passed in by reference as ++# an argument. ++# ++cdl_option CYGSEM_LIBM_THREAD_SAFE_GAMMA_FUNCTIONS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_LIBM_SIGNGAM_TRACE_LEVEL ++ # Requires: CYGSEM_LIBM_THREAD_SAFE_GAMMA_FUNCTIONS ++}; ++ ++# < ++# Tracing output levels in math library ++# Tracing support is useful for debugging. Some ++# Math library modules can be configured with ++# different levels of tracing verbosity. These ++# levels can be configured here. ++# ++cdl_component CYGPKG_LIBM_TRACE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++}; ++ ++# > ++# Compatibility mode get/set ++# Trace level for debugging the getting and ++# setting of the compatibility mode when it is ++# configured to be thread-safe. ++# ++cdl_option CYGNUM_LIBM_COMPATMODE_TRACE_LEVEL { ++ # This option is not active ++ # The parent CYGPKG_LIBM_TRACE is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++ # Requires: CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE ++ # CYGSEM_LIBM_THREAD_SAFE_COMPAT_MODE == 0 ++ # --> 0 ++}; ++ ++# signgam variable access ++# Trace level for debugging all accesses to the ++# signgam variable in thread-safe mode. ++# ++cdl_option CYGNUM_LIBM_SIGNGAM_TRACE_LEVEL { ++ # This option is not active ++ # The parent CYGPKG_LIBM_TRACE is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++ # Requires: CYGSEM_LIBM_THREAD_SAFE_GAMMA_FUNCTIONS ++ # CYGSEM_LIBM_THREAD_SAFE_GAMMA_FUNCTIONS == 0 ++ # --> 0 ++}; ++ ++# < ++# Bessel function limit of significance ++# For the Bessel functions (j0(), j1(), jn(), ++# y0(), y1(), yn()) this option defines the ++# maximum absolute value of the ordinate ++# before we assume total loss of significance. ++# This number must be a floating-point number (e.g. ++# contains a decimal point), and should be ++# large. ++# ++cdl_option X_TLOSS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1.41484755040569E+16 ++ # value_source default ++ # Default value: 1.41484755040569E+16 ++ # Legal values: 1 to 1e308 ++}; ++ ++# Math library build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBM_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the math library. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBM_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -ffloat-store ++ # value_source default ++ # Default value: ((0 == CYGPKG_HAL_I386) && (0 == CYGPKG_HAL_SYNTH_I386)) ? "" : "-ffloat-store" ++ # CYGPKG_HAL_I386 == current ++ # CYGPKG_HAL_SYNTH_I386 (unknown) == 0 ++ # --> -ffloat-store ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the math library. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBM_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Math library tests ++# This option specifies the set of tests for the math library. ++# ++cdl_option CYGPKG_LIBM_TESTS { ++ # Calculated value: "tests/vectors/acos tests/vectors/asin tests/vectors/atan tests/vectors/atan2 tests/vectors/ceil tests/vectors/cos tests/vectors/cosh tests/vectors/exp tests/vectors/fabs tests/vectors/floor tests/vectors/fmod tests/vectors/frexp tests/vectors/ldexp tests/vectors/log tests/vectors/log10 tests/vectors/modf tests/vectors/pow tests/vectors/sin tests/vectors/sinh tests/vectors/sqrt tests/vectors/tan tests/vectors/tanh" ++ # Flavor: data ++ # Current_value: tests/vectors/acos tests/vectors/asin tests/vectors/atan tests/vectors/atan2 tests/vectors/ceil tests/vectors/cos tests/vectors/cosh tests/vectors/exp tests/vectors/fabs tests/vectors/floor tests/vectors/fmod tests/vectors/frexp tests/vectors/ldexp tests/vectors/log tests/vectors/log10 tests/vectors/modf tests/vectors/pow tests/vectors/sin tests/vectors/sinh tests/vectors/sqrt tests/vectors/tan tests/vectors/tanh ++}; ++ ++# < ++# < ++# POSIX compatibility layer ++# doc: ref/posix-compatibility.html ++# This package enables the POSIX compatibility ++# layer that implements IEEE 1003.1. ++# ++cdl_package CYGPKG_POSIX { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGPKG_ERROR ++ # CYGPKG_ERROR == current ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO ++ # CYGINT_ISO_ERRNO == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO_CODES ++ # CYGINT_ISO_ERRNO_CODES == 1 ++ # --> 1 ++ # Requires: CYGIMP_KERNEL_SCHED_SORTED_QUEUES ++ # CYGIMP_KERNEL_SCHED_SORTED_QUEUES == 1 ++ # --> 1 ++ # Requires: CYGBLD_ISO_POSIX_LIMITS_HEADER == "" ++ # CYGBLD_ISO_POSIX_LIMITS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_PMUTEXTYPES_HEADER == "" ++ # CYGBLD_ISO_PMUTEXTYPES_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_PTHREAD_MUTEX_HEADER == "" ++ # CYGBLD_ISO_PTHREAD_MUTEX_HEADER == ++ # --> 1 ++}; ++ ++# > ++# POSIX pthread mutexes ++# This component provides support for POSIX pthreads ++# mutexes. ++# ++cdl_component CYGPKG_POSIX_PTHREAD_MUTEX { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++}; ++ ++# > ++# POSIX mutex priority inheritance feature test macro ++# This option defines the POSIX feature test macro for ++# supporting priority inheritance protocol in mutexes. ++# ++cdl_option _POSIX_THREAD_PRIO_INHERIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT ++ # CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT == 1 ++ # --> 1 ++}; ++ ++# POSIX mutex priority ceiling feature test macro ++# This option defines the POSIX feature test macro for ++# supporting priority ceiling protocol in mutexes. ++# ++cdl_option _POSIX_THREAD_PRIO_PROTECT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING ++ # CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING == 1 ++ # --> 1 ++}; ++ ++# < ++# POSIX scheduling configuration ++# This component provides controls over scheduling in POSIX. ++# ++cdl_component CYGPKG_POSIX_SCHED { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGPKG_POSIX_CLOCKS ++ # CYGPKG_POSIX_CLOCKS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_PTHREAD_REQUIREMENTS ++ # Requires: CYGPKG_POSIX_SCHED ++}; ++ ++# > ++# POSIX priority scheduling feature test macro ++# This option defines the POSIX feature test macro that ++# indicates that priority scheduling is present. This ++# should not be undefined. ++# ++cdl_option _POSIX_PRIORITY_SCHEDULING { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ # Requires: CYGSEM_KERNEL_SCHED_MLQUEUE ++ # CYGSEM_KERNEL_SCHED_MLQUEUE == 1 ++ # --> 1 ++}; ++ ++# < ++# POSIX pthread configuration ++# This component provides configuration controls for the ++# POSIX pthreads package. ++# ++cdl_component CYGPKG_POSIX_PTHREAD { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_TIMERS ++ # Requires: CYGPKG_POSIX_PTHREAD ++ # component CYGPKG_POSIX_SIGNALS ++ # Requires: CYGPKG_POSIX_PTHREAD ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++ # option CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS ++ # Requires: CYGSEM_LIBC_STARTUP_MAIN_THREAD || (CYGSEM_LIBC_STARTUP_MAIN_OTHER && CYGPKG_POSIX_PTHREAD) ++}; ++ ++# > ++# Generic requirements of pthread package ++# This option exists merely to carry the pthread ++# package requirements. ++# ++cdl_option CYGPKG_POSIX_PTHREAD_REQUIREMENTS { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ # Requires: CYGPKG_POSIX_SCHED ++ # CYGPKG_POSIX_SCHED == 1 ++ # --> 1 ++ # Requires: CYGSEM_KERNEL_SCHED_TIMESLICE_ENABLE ++ # CYGSEM_KERNEL_SCHED_TIMESLICE_ENABLE == 1 ++ # --> 1 ++ # Requires: CYGSEM_KERNEL_SCHED_ASR_SUPPORT ++ # CYGSEM_KERNEL_SCHED_ASR_SUPPORT == 1 ++ # --> 1 ++ # Requires: CYGSEM_KERNEL_SCHED_ASR_GLOBAL ++ # CYGSEM_KERNEL_SCHED_ASR_GLOBAL == 1 ++ # --> 1 ++ # Requires: !CYGSEM_KERNEL_SCHED_ASR_DATA_GLOBAL ++ # CYGSEM_KERNEL_SCHED_ASR_DATA_GLOBAL == 0 ++ # --> 1 ++ # Requires: CYGFUN_KERNEL_THREADS_STACK_LIMIT ++ # CYGFUN_KERNEL_THREADS_STACK_LIMIT == 1 ++ # --> 1 ++ # Requires: CYGBLD_ISO_PTHREADTYPES_HEADER == "" ++ # CYGBLD_ISO_PTHREADTYPES_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_PTHREAD_IMPL_HEADER == "" ++ # CYGBLD_ISO_PTHREAD_IMPL_HEADER == ++ # --> 1 ++}; ++ ++# Constant values used in pthread package ++# These are values that are either configurable, or derived ++# from system parameters. ++# ++cdl_component CYGPKG_POSIX_PTHREAD_VALUES { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# > ++# Maximum number of iterations of key destructors ++# Maximum number of iterations of key destructors allowed. ++# ++cdl_option CYGNUM_POSIX_PTHREAD_DESTRUCTOR_ITERATIONS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4 ++ # value_source default ++ # Default value: 4 ++ # Legal values: 4 to 100 ++}; ++ ++# Maximum number of per-thread data keys allowed ++# Number of per-thread data keys supported. ++# ++cdl_option CYGNUM_POSIX_PTHREAD_KEYS_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 128 ++ # value_source default ++ # Default value: 128 ++ # Legal values: 128 to 65535 ++}; ++ ++# Maximum number of threads allowed ++# Maximum number of threads supported. ++# ++cdl_option CYGNUM_POSIX_PTHREAD_THREADS_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 64 ++ # value_source default ++ # Default value: 64 ++ # Legal values: 64 to 1024 ++}; ++ ++# < ++# Fixed Feature test macros for POSIX ++# These options define POSIX feature test macros that ++# describe the eCos implementation of pthreads. These ++# are not changeable configuration options. ++# ++cdl_component CYGPKG_POSIX_PTHREAD_FEATURES { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# > ++# POSIX thread support feature test macro ++# This option defines the POSIX feature test macro ++# for thread support. ++# ++cdl_option _POSIX_THREADS { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ # Requires: CYGSEM_KERNEL_SCHED_TIMESLICE ++ # CYGSEM_KERNEL_SCHED_TIMESLICE == 1 ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option _POSIX_THREAD_PRIORITY_SCHEDULING ++ # Requires: _POSIX_THREADS ++}; ++ ++# POSIX thread priority scheduling feature test macro ++# This option defines the POSIX feature test macro ++# for thread priority scheduling support. ++# ++cdl_option _POSIX_THREAD_PRIORITY_SCHEDULING { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ # Requires: CYGSEM_KERNEL_SCHED_MLQUEUE ++ # CYGSEM_KERNEL_SCHED_MLQUEUE == 1 ++ # --> 1 ++ # Requires: _POSIX_THREADS ++ # _POSIX_THREADS == 1 ++ # --> 1 ++}; ++ ++# POSIX stack address attribute feature test macro ++# This option defines the POSIX feature test macro ++# for supporting the thread stack address in the thread ++# attribute object. ++# ++cdl_option _POSIX_THREAD_ATTR_STACKADDR { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# POSIX stack size attribute feature test macro ++# This option defines the POSIX feature test macro ++# for supporting the thread stack size in the thread ++# attribute object. ++# ++cdl_option _POSIX_THREAD_ATTR_STACKSIZE { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# POSIX process shared attribute feature test macro ++# This option defines the POSIX feature test macro ++# for supporting process shared mutexes. Since eCos ++# does not have processes, this attribute is undefined. ++# ++cdl_option _POSIX_THREAD_PROCESS_SHARED { ++ # Calculated value: 0 ++ # Flavor: bool ++ # Current value: 0 ++}; ++ ++# < ++# Main thread configuration ++# These options control the thread used to ++# run the main() application entry routine. ++# ++cdl_component CYGPKG_POSIX_MAIN_THREAD { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ # Requires: 0 != CYGPKG_LIBC_STARTUP ++ # CYGPKG_LIBC_STARTUP == current ++ # --> 1 ++ # Requires: CYGSEM_LIBC_STARTUP_MAIN_OTHER ++ # CYGSEM_LIBC_STARTUP_MAIN_OTHER == 1 ++ # --> 1 ++}; ++ ++# > ++# main()'s default thread priority ++# POSIX compatibility requires that the application's ++# main() function be invoked in a thread. ++# This option controls the priority of that thread. This ++# priority is the POSIX priority and is NOT the same as ++# an eCos thread priority. With POSIX thread priorities, ++# lower numbers are lower priority, and higher numbers are ++# higher priority. ++# ++cdl_option CYGNUM_POSIX_MAIN_DEFAULT_PRIORITY { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++ # Legal values: 0 to 31 ++}; ++ ++# < ++# < ++# POSIX clocks ++# This component provides configuration controls for ++# the POSIX clocks and the sleep(), nanosleep() and ++# gettimeofday() functions. ++# ++cdl_option CYGPKG_POSIX_CLOCKS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_POSIX_CLOCK_TYPES_HEADER == "" ++ # CYGBLD_ISO_POSIX_CLOCK_TYPES_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_POSIX_CLOCKS_HEADER == "" ++ # CYGBLD_ISO_POSIX_CLOCKS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STRUCTTIMEVAL_HEADER == "" ++ # CYGBLD_ISO_STRUCTTIMEVAL_HEADER == ++ # --> 1 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_POSIX_SCHED ++ # Requires: CYGPKG_POSIX_CLOCKS ++ # component CYGPKG_POSIX_MQUEUES ++ # Requires: CYGPKG_POSIX_CLOCKS ++}; ++ ++# POSIX timers ++# This component provides configuration controls for ++# the POSIX timers. ++# ++cdl_option CYGPKG_POSIX_TIMERS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_POSIX_TIMER_TYPES_HEADER == "" ++ # CYGBLD_ISO_POSIX_TIMER_TYPES_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_POSIX_TIMERS_HEADER == "" ++ # CYGBLD_ISO_POSIX_TIMERS_HEADER == ++ # --> 1 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++ # Requires: CYGPKG_POSIX_PTHREAD ++ # CYGPKG_POSIX_PTHREAD == 1 ++ # --> 1 ++ # Requires: CYGPKG_POSIX_SIGNALS ++ # CYGPKG_POSIX_SIGNALS == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_POSIX_CLOCKS ++ # CYGINT_ISO_POSIX_CLOCKS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_POSIX_SIGNALS ++ # Requires: CYGPKG_POSIX_TIMERS ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++}; ++ ++# POSIX semaphores ++# This component provides configuration controls for ++# POSIX semaphores. ++# ++cdl_option CYGPKG_POSIX_SEMAPHORES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_SEMAPHORES_HEADER == "" ++ # CYGBLD_ISO_SEMAPHORES_HEADER == ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++}; ++ ++# POSIX message queues ++# This component provides configuration controls for ++# POSIX message queues. ++# ++cdl_component CYGPKG_POSIX_MQUEUES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ # Requires: CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO ++ # CYGINT_ISO_ERRNO == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_PTHREAD_MUTEX ++ # CYGINT_ISO_PTHREAD_MUTEX == 1 ++ # --> 1 ++ # Requires: CYGPKG_POSIX_CLOCKS ++ # CYGPKG_POSIX_CLOCKS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++}; ++ ++# > ++# Maximum number of message queues ++# ++cdl_option CYGNUM_POSIX_MQUEUE_OPEN_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++ # Legal values: 1 to 999999 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_ISO_MQUEUE_OPEN_MAX ++ # DefaultValue: CYGNUM_POSIX_MQUEUE_OPEN_MAX > 0 ? CYGNUM_POSIX_MQUEUE_OPEN_MAX : 0 ++ # option CYGNUM_ISO_MQUEUE_OPEN_MAX ++ # DefaultValue: CYGNUM_POSIX_MQUEUE_OPEN_MAX > 0 ? CYGNUM_POSIX_MQUEUE_OPEN_MAX : 0 ++}; ++ ++# Validate queue descriptors ++# This option turns on checking that message queue descriptors ++# (of type mqd_t) passed into mq_* functions are valid. If so, ++# the functions will fail with EBADF, as POSIX 1003.1 mandates. ++# If this option is disabled, if an invalid descriptor is used, ++# random corruption may occur, or the system may crash. If ++# you are confident invalid descriptors will not be used, ++# you may wish to be disable this to save some per-instance ++# memory and execution time. ++# ++cdl_option CYGIMP_POSIX_MQUEUE_VALIDATE_DESCRIPTOR { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Allow empty queue notification ++# Enabling this option adds the function mq_notify() to the ++# API. Without it, some code and per-message queue descriptor ++# space is saved, as well as no longer requiring POSIX realtime ++# signal support. ++# ++cdl_option CYGFUN_POSIX_MQUEUE_NOTIFY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGPKG_POSIX_SIGNALS ++ # CYGPKG_POSIX_SIGNALS == 1 ++ # --> 1 ++ # Requires: CYGPKG_POSIX_SIGNALS ++ # CYGPKG_POSIX_SIGNALS == 1 ++ # --> 1 ++}; ++ ++# < ++# POSIX signals configuration ++# This component provides configuration controls for ++# the POSIX signals. ++# ++cdl_component CYGPKG_POSIX_SIGNALS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGPKG_KERNEL_EXCEPTIONS ++ # CYGPKG_KERNEL_EXCEPTIONS == 1 ++ # --> 1 ++ # Requires: CYGPKG_POSIX_PTHREAD ++ # CYGPKG_POSIX_PTHREAD == 1 ++ # --> 1 ++ # Requires: CYGPKG_POSIX_TIMERS ++ # CYGPKG_POSIX_TIMERS == 1 ++ # --> 1 ++ # Requires: CYGBLD_ISO_SIGSETJMP_HEADER == "" ++ # CYGBLD_ISO_SIGSETJMP_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_SIGNAL_NUMBERS_HEADER == "" ++ # CYGBLD_ISO_SIGNAL_NUMBERS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_SIGNAL_IMPL_HEADER == "" ++ # CYGBLD_ISO_SIGNAL_IMPL_HEADER == ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_POSIX_TIMERS ++ # Requires: CYGPKG_POSIX_SIGNALS ++ # option CYGFUN_POSIX_MQUEUE_NOTIFY ++ # Requires: CYGPKG_POSIX_SIGNALS ++ # option CYGFUN_POSIX_MQUEUE_NOTIFY ++ # DefaultValue: CYGPKG_POSIX_SIGNALS ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++ # option CYGPKG_POSIX_TESTS ++ # Calculated: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++}; ++ ++# POSIX utsname configuration ++# This component provides configuration controls for ++# the POSIX utsname structure and the uname() function. ++# ++cdl_component CYGPKG_POSIX_UTSNAME { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_UTSNAME_HEADER == "" ++ # CYGBLD_ISO_UTSNAME_HEADER == ++ # --> 1 ++}; ++ ++# > ++# Length of name strings in utsname structure ++# ++cdl_option CYG_POSIX_UTSNAME_LENGTH { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 65 ++ # value_source default ++ # Default value: 65 ++ # Legal values: 1 to 99999999 ++ ++ # The following properties are affected by this value ++ # option CYG_POSIX_UTSNAME_NODENAME_LENGTH ++ # DefaultValue: CYG_POSIX_UTSNAME_LENGTH ++}; ++ ++# Length of nodename string in utsname structure ++# ++cdl_option CYG_POSIX_UTSNAME_NODENAME_LENGTH { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 65 ++ # value_source default ++ # Default value: CYG_POSIX_UTSNAME_LENGTH ++ # CYG_POSIX_UTSNAME_LENGTH == 65 ++ # --> 65 ++ # Legal values: 1 to 99999999 ++}; ++ ++# < ++# POSIX tests ++# This option specifies the set of tests for the POSIX package. ++# ++cdl_option CYGPKG_POSIX_TESTS { ++ # Calculated value: ++ # (CYGPKG_POSIX_PTHREAD ? "tests/pthread1 tests/pthread2 tests/pthread3 " ++ # : "") . ++ # (CYGPKG_POSIX_PTHREAD_MUTEX ? "tests/mutex3 " : "") . ++ # (CYGPKG_POSIX_MQUEUES ? "tests/mqueue1 tests/mqueue2 " : "") . ++ # (CYGPKG_POSIX_SIGNALS ? "tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/timer1 " : "") . ++ # ((CYGPKG_POSIX_SIGNALS && ++ # CYGPKG_POSIX_TIMERS && ++ # CYGPKG_POSIX_PTHREAD && ++ # CYGPKG_POSIX_SEMAPHORES) ? "tests/tm_basic " : "") ++ # ++ # CYGPKG_POSIX_PTHREAD == 1 ++ # CYGPKG_POSIX_PTHREAD_MUTEX == 1 ++ # CYGPKG_POSIX_MQUEUES == 1 ++ # CYGPKG_POSIX_SIGNALS == 1 ++ # CYGPKG_POSIX_SIGNALS == 1 ++ # CYGPKG_POSIX_TIMERS == 1 ++ # CYGPKG_POSIX_SEMAPHORES == 1 ++ # CYGPKG_POSIX_SIGNALS == 1 ++ # CYGPKG_POSIX_TIMERS == 1 ++ # CYGPKG_POSIX_PTHREAD == 1 ++ # CYGPKG_POSIX_SEMAPHORES == 1 ++ # Flavor: data ++ # Current_value: tests/pthread1 tests/pthread2 tests/pthread3 tests/mutex3 tests/mqueue1 tests/mqueue2 tests/signal1 tests/signal2 tests/signal3 tests/sigsetjmp tests/timer1 tests/tm_basic ++}; ++ ++# < ++# Watchdog IO device ++# The watchdog IO device allows applications to make use of a ++# timer facility. Depending on the underlying hardware device ++# driver, a watchdog timeout will either cause a board reset ++# or an action routine to be called. The application must call ++# the watchdog reset function at regular intervals, or else the ++# device will timeout. The assumption is that the watchdog timer ++# should never trigger unless there has been a serious fault in ++# either the hardware or the software. ++# ++cdl_package CYGPKG_IO_WATCHDOG { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: 1 == CYGINT_WATCHDOG_IMPLEMENTATIONS ++ # CYGINT_WATCHDOG_IMPLEMENTATIONS == 1 ++ # --> 1 ++}; ++ ++# > ++# Number of watchdog hardware implementations ++# ++cdl_interface CYGINT_WATCHDOG_HW_IMPLEMENTATIONS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_WATCHDOG_EMULATE ++ # DefaultValue: 0 == CYGINT_WATCHDOG_HW_IMPLEMENTATIONS ++}; ++ ++# Number of watchdog implementations ++# ++cdl_interface CYGINT_WATCHDOG_IMPLEMENTATIONS { ++ # Implemented by CYGPKG_WATCHDOG_EMULATE, active, enabled ++ # Implemented by CYGIMP_WATCHDOG_NONE, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_WATCHDOG ++ # Requires: 1 == CYGINT_WATCHDOG_IMPLEMENTATIONS ++}; ++ ++# Watchdog implementation ++# Implementations of the watchdog device. ++# ++cdl_component CYGPKG_IO_WATCHDOG_IMPLEMENTATION { ++ # There is no associated value. ++}; ++ ++# > ++# Watchdog emulator ++# When this option is enabled, a watchdog device will be ++# emulated using the kernel real-time clock. ++# ++cdl_option CYGPKG_WATCHDOG_EMULATE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 == CYGINT_WATCHDOG_HW_IMPLEMENTATIONS ++ # CYGINT_WATCHDOG_HW_IMPLEMENTATIONS == 0 ++ # --> 1 ++ # Requires: CYGVAR_KERNEL_COUNTERS_CLOCK ++ # CYGVAR_KERNEL_COUNTERS_CLOCK == 1 ++ # --> 1 ++}; ++ ++# No watchdog ++# Disables the watchdog. ++# ++cdl_option CYGIMP_WATCHDOG_NONE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Set if device causes a reset on timeout ++# ++cdl_interface CYGINT_WATCHDOG_RESETS_ON_TIMEOUT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ++ # Calculated: CYGINT_WATCHDOG_RESETS_ON_TIMEOUT == 1 ++}; ++ ++# Set if device causes a reset on timeout ++# Some watchdog devices reset the board on timeout - for these ++# implementations it does not make sense to register timeout ++# actions so the code gets disabled when this option is set. ++# When this option is not set, it is the application's ++# responsibility to register an action handler which can force ++# a board reset when it gets called. ++# ++cdl_option CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT { ++ # Calculated value: CYGINT_WATCHDOG_RESETS_ON_TIMEOUT == 1 ++ # CYGINT_WATCHDOG_RESETS_ON_TIMEOUT == 0 ++ # Flavor: bool ++ # Current value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_IO_WATCHDOG_TESTS ++ # Calculated: CYGPKG_IO_WATCHDOG_BUILD_INTERACTIVE_TEST ? ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ? "tests/watchdog2 tests/watchdog_reset" : "tests/watchdog tests/watchdog2 tests/watchdog_reset" : ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ? "tests/watchdog2" : "tests/watchdog tests/watchdog2" ++ # option CYGPKG_IO_WATCHDOG_TESTS ++ # Calculated: CYGPKG_IO_WATCHDOG_BUILD_INTERACTIVE_TEST ? ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ? "tests/watchdog2 tests/watchdog_reset" : "tests/watchdog tests/watchdog2 tests/watchdog_reset" : ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ? "tests/watchdog2" : "tests/watchdog tests/watchdog2" ++}; ++ ++# Build interactive watchdog test ++# This option enables the building of a watchdog test ++# which can be used to test that the board resets on ++# watchdog timeout. This test is built separately since ++# it only makes sense to use interactively. ++# ++cdl_option CYGPKG_IO_WATCHDOG_BUILD_INTERACTIVE_TEST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_IO_WATCHDOG_TESTS ++ # Calculated: CYGPKG_IO_WATCHDOG_BUILD_INTERACTIVE_TEST ? ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ? "tests/watchdog2 tests/watchdog_reset" : "tests/watchdog tests/watchdog2 tests/watchdog_reset" : ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ? "tests/watchdog2" : "tests/watchdog tests/watchdog2" ++}; ++ ++# Watchdog build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_WATCHDOG_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the watchdog IO device. These flags are used ++# in addition to the set of global flags. ++# ++cdl_option CYGPKG_IO_WATCHDOG_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the watchdog IO device. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_IO_WATCHDOG_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Watchdog tests ++# This option specifies the set of tests for the ++# watchdog IO device. ++# ++cdl_option CYGPKG_IO_WATCHDOG_TESTS { ++ # Calculated value: CYGPKG_IO_WATCHDOG_BUILD_INTERACTIVE_TEST ? ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ? "tests/watchdog2 tests/watchdog_reset" : "tests/watchdog tests/watchdog2 tests/watchdog_reset" : ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT ? "tests/watchdog2" : "tests/watchdog tests/watchdog2" ++ # CYGPKG_IO_WATCHDOG_BUILD_INTERACTIVE_TEST == 0 ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT == 0 ++ # CYGSEM_WATCHDOG_RESETS_ON_TIMEOUT == 0 ++ # Flavor: data ++ # Current_value: tests/watchdog tests/watchdog2 ++}; ++ ++# < ++# < ++# Wallclock device ++# The wallclock device provides real time stamps, as opposed ++# to the eCos kernel timers which typically just count the ++# number of clock ticks since the hardware was powered up. ++# Depending on the target platform this device may involve ++# interacting with a suitable clock chip, or it may be ++# emulated by using the kernel timers. ++# ++cdl_package CYGPKG_IO_WALLCLOCK { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 ++ # ActiveIf: CYGPKG_IO_WALLCLOCK ++ # package CYGPKG_DEVICES_WALLCLOCK_I386_PC ++ # ActiveIf: CYGPKG_IO_WALLCLOCK ++ # option CYGSEM_LIBC_TIME_TIME_WORKING ++ # Requires: CYGPKG_IO_WALLCLOCK ++ # option CYGSEM_LIBC_TIME_SETTIME_WORKING ++ # Requires: CYGPKG_IO_WALLCLOCK ++}; ++ ++# > ++# Number of wallclock hardware implementations ++# ++cdl_interface CYGINT_WALLCLOCK_HW_IMPLEMENTATIONS { ++ # Implemented by CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_WALLCLOCK_EMULATE ++ # DefaultValue: 0 == CYGINT_WALLCLOCK_HW_IMPLEMENTATIONS ++ # option CYGIMP_WALLCLOCK_NONE ++ # DefaultValue: !CYGPKG_KERNEL && 0 == CYGINT_WALLCLOCK_HW_IMPLEMENTATIONS ++}; ++ ++# Number of wallclock implementations ++# ++cdl_interface CYGINT_WALLCLOCK_IMPLEMENTATIONS { ++ # Implemented by CYGPKG_WALLCLOCK_EMULATE, active, disabled ++ # Implemented by CYGIMP_WALLCLOCK_NONE, active, disabled ++ # Implemented by CYGIMP_WALLCLOCK_HARDWARE, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 == CYGINT_WALLCLOCK_IMPLEMENTATIONS ++ # CYGINT_WALLCLOCK_IMPLEMENTATIONS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_WALLCLOCK_IMPLEMENTATIONS ++ # Requires: 1 == CYGINT_WALLCLOCK_IMPLEMENTATIONS ++}; ++ ++# Wallclock driver supports set/get mode ++# ++cdl_interface CYGINT_WALLCLOCK_SET_GET_MODE_SUPPORTED { ++ # Implemented by CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_WALLCLOCK_MODE ++ # DefaultValue: CYGINT_WALLCLOCK_SET_GET_MODE_SUPPORTED ? "set_get" : "init_get" ++ # option CYGSEM_WALLCLOCK_MODE ++ # Requires: CYGINT_WALLCLOCK_SET_GET_MODE_SUPPORTED || CYGSEM_WALLCLOCK_MODE == "init_get" ++}; ++ ++# Wallclock mode ++# The wallclock driver can be used in one of two ++# modes. Set/get mode allows time to be kept during power ++# off (assuming there's a battery backed clock). Init/get ++# mode is slightly smaller and can be used when there is no ++# battery backed clock - in this mode time 0 is the time of ++# the board power up. ++# ++cdl_option CYGSEM_WALLCLOCK_MODE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value set_get ++ # value_source default ++ # Default value: CYGINT_WALLCLOCK_SET_GET_MODE_SUPPORTED ? "set_get" : "init_get" ++ # CYGINT_WALLCLOCK_SET_GET_MODE_SUPPORTED == 1 ++ # --> set_get ++ # Legal values: "init_get" "set_get" ++ # Requires: CYGINT_WALLCLOCK_SET_GET_MODE_SUPPORTED || CYGSEM_WALLCLOCK_MODE == "init_get" ++ # CYGINT_WALLCLOCK_SET_GET_MODE_SUPPORTED == 1 ++ # CYGSEM_WALLCLOCK_MODE == set_get ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_WALLCLOCK_MODE ++ # Requires: CYGINT_WALLCLOCK_SET_GET_MODE_SUPPORTED || CYGSEM_WALLCLOCK_MODE == "init_get" ++ # option CYGSEM_WALLCLOCK_SET_GET_MODE ++ # Calculated: CYGSEM_WALLCLOCK_MODE == "set_get" ? 1 : 0 ++}; ++ ++# Wallclock set/get mode ++# ++cdl_option CYGSEM_WALLCLOCK_SET_GET_MODE { ++ # Calculated value: CYGSEM_WALLCLOCK_MODE == "set_get" ? 1 : 0 ++ # CYGSEM_WALLCLOCK_MODE == set_get ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# Wallclock implementation ++# Implementations of the wallclock device. ++# ++cdl_component CYGPKG_IO_WALLCLOCK_IMPLEMENTATION { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Wallclock emulator ++# When this option is enabled, a wallclock device will be ++# emulated using the kernel real-time clock. ++# ++cdl_option CYGPKG_WALLCLOCK_EMULATE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 == CYGINT_WALLCLOCK_HW_IMPLEMENTATIONS ++ # CYGINT_WALLCLOCK_HW_IMPLEMENTATIONS == 1 ++ # --> 0 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++}; ++ ++# No wallclock ++# Disables the wallclock. ++# ++cdl_option CYGIMP_WALLCLOCK_NONE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: !CYGPKG_KERNEL && 0 == CYGINT_WALLCLOCK_HW_IMPLEMENTATIONS ++ # CYGPKG_KERNEL == current ++ # CYGINT_WALLCLOCK_HW_IMPLEMENTATIONS == 1 ++ # --> 0 ++}; ++ ++# Hardware wallclock ++# ++cdl_option CYGIMP_WALLCLOCK_HARDWARE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 ++ # ActiveIf: CYGIMP_WALLCLOCK_HARDWARE ++}; ++ ++# < ++# Wallclock build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_WALLCLOCK_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the wallclock device. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_IO_WALLCLOCK_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the wallclock device. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_IO_WALLCLOCK_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Wallclock tests ++# This option specifies the set of tests for the ++# wallclock device. ++# ++cdl_option CYGPKG_IO_WALLCLOCK_TESTS { ++ # Calculated value: CYGPKG_KERNEL ? "tests/wallclock tests/wallclock2" : "" ++ # CYGPKG_KERNEL == current ++ # Flavor: data ++ # Current_value: tests/wallclock tests/wallclock2 ++}; ++ ++# < ++# Wallclock device driver for Dallas 12887 ++# This package provides a file with init, get and set functions ++# for the Dallas 12887 clock part. ++# ++cdl_package CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO_WALLCLOCK ++ # CYGPKG_IO_WALLCLOCK == current ++ # --> 1 ++ # ActiveIf constraint: CYGIMP_WALLCLOCK_HARDWARE ++ # CYGIMP_WALLCLOCK_HARDWARE == 1 ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVICES_WALLCLOCK_I386_PC ++ # Requires: CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 ++}; ++ ++# > ++# DS12887 wallclock build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the wallclock device. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the wallclock device. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# < ++# PC board RTC Driver ++# RTC driver for PC. ++# ++cdl_package CYGPKG_DEVICES_WALLCLOCK_I386_PC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO_WALLCLOCK ++ # CYGPKG_IO_WALLCLOCK == current ++ # --> 1 ++ # ActiveIf constraint: CYGPKG_HAL_I386_PC ++ # CYGPKG_HAL_I386_PC == current ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 ++ # CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 == current ++ # --> 1 ++}; ++ ++# > ++# IO port address of the ADDRESS register ++# This option sets the io address of the address port for ++# accessing the PC RTC ++# ++cdl_option CYGDAT_DEVS_WALLCLOCK_I386_PC_RTC_ADDRESS_PORT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x00000070 ++ # value_source default ++ # Default value: 0x00000070 ++}; ++ ++# IO port address of the DATA register ++# This option sets the io address of the data port for ++# accessing the PC RTC ++# ++cdl_option CYGDAT_DEVS_WALLCLOCK_I386_PC_RTC_DATA_PORT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x00000071 ++ # value_source default ++ # Default value: 0x00000071 ++}; ++ ++# < ++# < ++# Common error code support ++# This package contains the common list of error and ++# status codes. It is held centrally to allow ++# packages to interchange error codes and status ++# codes in a common way, rather than each package ++# having its own conventions for error/status ++# reporting. The error codes are modelled on the ++# POSIX style naming e.g. EINVAL etc. This package ++# also provides the standard strerror() function to ++# convert error codes to textual representation, as ++# well as an implementation of the errno idiom. ++# ++cdl_package CYGPKG_ERROR { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGBLD_ISO_ERRNO_CODES_HEADER == "" ++ # CYGBLD_ISO_ERRNO_CODES_HEADER == ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_SERIAL_GENERIC_16X5X ++ # Requires: CYGPKG_ERROR ++ # package CYGPKG_IO_SERIAL_I386_PC ++ # Requires: CYGPKG_ERROR ++ # package CYGPKG_IO ++ # Requires: CYGPKG_ERROR ++ # package CYGPKG_IO_SERIAL ++ # Requires: CYGPKG_ERROR ++ # package CYGPKG_POSIX ++ # Requires: CYGPKG_ERROR ++ # package CYGPKG_IO_FILEIO ++ # Requires: CYGPKG_ERROR ++}; ++ ++# > ++# errno variable ++# This package controls the behaviour of the ++# errno variable (or more strictly, expression) ++# from . ++# ++cdl_component CYGPKG_ERROR_ERRNO { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_ERRNO_HEADER == "" ++ # CYGBLD_ISO_ERRNO_HEADER == ++ # --> 1 ++}; ++ ++# > ++# Per-thread errno ++# This option controls whether the standard error ++# code reporting variable errno is a per-thread ++# variable, rather than global. ++# ++cdl_option CYGSEM_ERROR_PER_THREAD_ERRNO { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA == 1 ++ # --> 1 ++}; ++ ++# Tracing level ++# Trace verbosity level for debugging the errno ++# retrieval mechanism in errno.cxx. Increase this ++# value to get additional trace output. ++# ++cdl_option CYGNUM_ERROR_ERRNO_TRACE_LEVEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++}; ++ ++# < ++# strerror function ++# This package controls the presence and behaviour of the ++# strerror() function from ++# ++cdl_option CYGPKG_ERROR_STRERROR { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_STRERROR_HEADER == "" ++ # CYGBLD_ISO_STRERROR_HEADER == ++ # --> 1 ++}; ++ ++# Error package build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_ERROR_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the error package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_ERROR_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the error package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_ERROR_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# < ++# POSIX File IO compatibility layer ++# doc: ref/fileio.html ++# This package enables the POSIX compatibility ++# layer that implements IEEE 1003.1 file IO. ++# ++cdl_package CYGPKG_IO_FILEIO { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGPKG_ERROR ++ # CYGPKG_ERROR == current ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO ++ # CYGINT_ISO_ERRNO == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_ERRNO_CODES ++ # CYGINT_ISO_ERRNO_CODES == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++ # Requires: CYGBLD_ISO_DIRENT_HEADER == "" ++ # CYGBLD_ISO_DIRENT_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_OPEN_MAX_HEADER == "" ++ # CYGBLD_ISO_OPEN_MAX_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_NAME_MAX_HEADER == "" ++ # CYGBLD_ISO_NAME_MAX_HEADER == ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_IO_FILE_SUPPORT ++ # ActiveIf: !CYGPKG_IO_FILEIO ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # Requires: CYGPKG_IO_FILEIO ++ # component CYGPKG_IO_SERIAL_TERMIOS ++ # DefaultValue: 0 != CYGPKG_ISOINFRA && 0 != CYGPKG_IO_FILEIO && 0 != CYGINT_ISO_ERRNO_CODES && 0 != CYGINT_ISO_ERRNO ++ # option CYGPKG_IO_SERIAL_SELECT_SUPPORT ++ # ActiveIf: CYGPKG_IO_FILEIO ++ # option CYGPKG_LIBC_STDIO_FILEIO ++ # ActiveIf: CYGPKG_IO_FILEIO ++ # option CYGPKG_LIBC_STDIO_TESTS ++ # Calculated: ++ # "tests/sprintf1 tests/sprintf2 tests/sscanf tests/stdiooutput " ++ # . ((CYGPKG_IO_FILEIO && CYGPKG_FS_RAM) ? "tests/fileio " : "") ++ # ++}; ++ ++# > ++# Filesystems interfacing to FILEIO ++# Each filesystem driver which FILEIO can use implements ++# this interface. You can use this to determine if there are ++# any filesystems configured in the system. ++# ++cdl_interface CYGINT_IO_FILEIO_FS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Enable support for select() ++# This option enables support for select(). ++# ++cdl_option CYGFUN_IO_FILEIO_SELECT { ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_IO_SERIAL_SELECT_SUPPORT ++ # Requires: CYGFUN_IO_FILEIO_SELECT == 1 ++}; ++ ++# Enable devfs support ++# This option enables support for the devfs file system. ++# ++cdl_option CYGPKG_IO_FILEIO_DEVFS_SUPPORT { ++ # ActiveIf constraint: CYGPKG_IO ++ # CYGPKG_IO == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGPKG_REDBOOT ? 0 : 1 ++ # CYGPKG_REDBOOT (unknown) == 0 ++ # --> 1 ++}; ++ ++# Enable socket support ++# This option enables support for the socket interface. It is ++# only present if the NET package is included. ++# ++cdl_option CYGPKG_IO_FILEIO_SOCKET_SUPPORT { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 0 ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Maximum number of open files ++# This option controls the number of open files ++# that are allowed for all filesystems. ++# ++cdl_option CYGNUM_FILEIO_NFILE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++ # Legal values: 1 to 9999999 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_FILEIO_NFD ++ # LegalValues: CYGNUM_FILEIO_NFILE to 9999999 ++}; ++ ++# Maximum number of open file descriptors ++# This option controls the number of open file descriptors ++# that are allowed for all filesystems. ++# ++cdl_option CYGNUM_FILEIO_NFD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++ # Legal values: CYGNUM_FILEIO_NFILE to 9999999 ++ # CYGNUM_FILEIO_NFILE == 16 ++}; ++ ++# Maximum number of installed filesystems ++# This option controls the maximum number of filesystems ++# that can be handled by the fileio system. ++# ++cdl_option CYGNUM_FILEIO_FSTAB_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4 ++ # value_source default ++ # Default value: 4 ++ # Legal values: 1 to 9999999 ++}; ++ ++# Maximum number of mounted filesystems ++# This option controls the maximum number of mounted ++# filesystems that can be handled by the fileio system. ++# ++cdl_option CYGNUM_FILEIO_MTAB_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++ # Legal values: CYGNUM_FILEIO_MTAB_EXTRA to 9999999 ++ # CYGNUM_FILEIO_MTAB_EXTRA == 8 ++}; ++ ++# Number of dynamically mounted filesystems ++# This option controls the number of mounted ++# filesystems that can be created dynamically. ++# ++cdl_option CYGNUM_FILEIO_MTAB_EXTRA { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++ # Legal values: 0 to 9999999 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_FILEIO_MTAB_MAX ++ # LegalValues: CYGNUM_FILEIO_MTAB_EXTRA to 9999999 ++}; ++ ++# Maximum number of installed network stacks ++# This option controls the maximum number of installed ++# network stacks that can be handled by the fileio system. ++# ++cdl_option CYGNUM_FILEIO_NSTAB_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Legal values: 1 to 9999999 ++}; ++ ++# Enable current directory tracking ++# This option enables tracking of the name of the current ++# directory in the FILEIO package, to support the getcwd() ++# function. When this option is enabled the FILEIO package ++# will attempt to maintain a string that names the current ++# directory. It does this textually, dealing with "." and ++# ".." entries by textual manipulation. While this should ++# always provide a path for the current directory, it may not ++# be the best, if symbolic links are present. This tracked CWD ++# is only used if a filesystem does not support the ++# FS_INFO_GETCWD key. ++# ++cdl_option CYGPKG_IO_FILEIO_TRACK_CWD { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Generic inode support ++# This option enables generic inode support useful to ++# some filesystems. Not all filesystems require this ++# so it is not enabled by default. ++# ++cdl_component CYGPKG_IO_FILEIO_INODE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++}; ++ ++# > ++# Maximum space for unused cached inodes ++# The inode cache allows a maximum limit to be set ++# for the number of unused inodes still in the ++# cache before they are freed. It may be set to 0 ++# to indicate no dead inode caching should be ++# provided. ++# ++cdl_option CYGNUM_IO_FILEIO_MAX_INODE_CACHE_DEAD { ++ # This option is not active ++ # The parent CYGPKG_IO_FILEIO_INODE is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 10 ++ # value_source default ++ # Default value: 10 ++}; ++ ++# < ++# Maximum size of iovec used by readv/writev ++# This option controls the maximum size of the iovec ++# structure that can be used by readv()/writev(). This ++# limit is required because the iovec structure must be ++# invariant (to the user), thus a copy needs to be made ++# by the interface routines. The limit is merely a ++# control over the amount of stack space used by the ++# readv()/writev() functions. ++# ++cdl_option CYGNUM_FILEIO_IOVEC_MAX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++ # Legal values: 1 to 9999999 ++}; ++ ++# cyg_fs_getinfo call for disk usage ++# Enabling this option includes code in some filesystems to ++# implement a call using cyg_fs_getinfo to return the current ++# filesystem block usage. ++# ++cdl_option CYGSEM_FILEIO_INFO_DISK_USAGE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Fileio tests ++# This option specifies the set of tests for the FileIO package. ++# ++cdl_option CYGPKG_IO_FILEIO_TESTS { ++ # Calculated value: "tests/fileio1 tests/socket tests/select tests/stdio tests/pselect" ++ # Flavor: data ++ # Current_value: tests/fileio1 tests/socket tests/select tests/stdio tests/pselect ++}; ++ ++# < ++# EtherCAT Master ++# EtherCAT Master protocol stack ++# ++cdl_package CYGPKG_NET_ETHERCATMASTER { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_IO_ETH_DRIVERS ++ # CYGPKG_IO_ETH_DRIVERS == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_IO_ETH_DRIVERS_ETHERCATMASTER ++ # ActiveIf: CYGPKG_NET_ETHERCATMASTER ++}; ++ ++# > ++# EtherCAT Master log level ++# "Verbosity of logging information messages. Log level ++# 0 prevents anything from being logged. Level 1 will ++# only show fatal errors, level 2 shows all errors. Level ++# 3 adds warnings, end, level 4 finally also shows mere ++# informational messages." ++# ++cdl_option CYGNUM_ETHERCATMASTER_LOG_LEVEL { ++ # Flavor: data ++ user_value 3 ++ # value_source user ++ # Default value: 0 ++ # Legal values: 0 1 2 3 4 ++}; ++ ++# Delivery thread stack size ++# The EtherCAT ethernet device driver implements a delivery thread ++# which responds to incoming packets and sends out queued packets ++# as soon as the device is available again. This option determines ++# the stack size of this delivery thread. ++# ++cdl_option CYGNUM_ETHERCATMASTER_DELIVERY_STACK_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16384 ++ # value_source default ++ # Default value: 16384 ++}; ++ ++# Delivery thread priority ++# The EtherCAT ethernet device driver implements a delivery thread ++# which responds to incoming packets and sends out queued packets ++# as soon as the device is available again. This option determines ++# the priority of this delivery thread. ++# ++cdl_option CYGNUM_ETHERCATMASTER_DELIVERY_PRIORITY { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++ # Legal values: 0 to 31 ++}; ++ ++# Ethernet device ++# Ethernet device to be used by the EtherCAT master ++# ++cdl_option CYGDAT_ETHERCATMASTER_ETH_DEVICE { ++ # Flavor: data ++ user_value "\"eth1\"" ++ # value_source user ++ # Default value: "\"eth0\"" ++}; ++ ++# Timeout value ++# Due to its implementation where slaves process ++# the EtherCAT frames on-the-fly, EtherCAT frames ++# should return to the master 'instantaneously'. ++# Due to hardware problems (e.g. disconnecting a ++# slave from the logical ring, sometimes frames ++# don't get back. For this reason, a the rx part ++# implements a timeout after which it gives up. ++# This option determines the value of this ++# timeout, expressed in nanoseconds. ++# ++cdl_option CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 20000000 ++ # value_source default ++ # Default value: 20000000 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY_TICKS ++ # Calculated: ((CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++}; ++ ++# Timeout value in ticks ++# ++cdl_option CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY_TICKS { ++ # Calculated value: ((CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++ # CYGNUM_ETHERCATMASTER_TIMEOUT_DELAY == 20000000 ++ # CYGNUM_HAL_RTC_DENOMINATOR == 100 ++ # CYGNUM_HAL_RTC_NUMERATOR == 1000000000 ++ # Flavor: data ++ # Current_value: 2 ++}; ++ ++# Route thread stack size ++# The EtherCAT ethernet device driver implements a ++# periodic route thread which is used to check if any ++# of the EtherCAT slaves has posted something in its ++# mailbox. This option determines the stack size of this ++# thread. ++# ++cdl_option CYGNUM_ETHERCATMASTER_ROUTE_STACK_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16384 ++ # value_source default ++ # Default value: 16384 ++}; ++ ++# Route thread priority ++# The EtherCAT ethernet device driver implements a period ++# route thread which is used to check if any of the ++# EtherCAT slaves has posted something in its mailbox. ++# This option determines the thread priority of this ++# thread. ++# ++cdl_option CYGNUM_ETHERCATMASTER_ROUTE_PRIORITY { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 10 ++ # value_source default ++ # Default value: 10 ++ # Legal values: 0 to 31 ++}; ++ ++# Route thread period ++# The EtherCAT ethernet device driver implements a period ++# route thread which is used to check if any of the ++# EtherCAT slaves has posted something in its mailbox. ++# This option determines the period of this thread (and ++# thus the responsiveness of ROUTE commands) ++# expressed in nanoseconds. ++# ++cdl_option CYGNUM_ETHERCATMASTER_ROUTE_PERIOD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 100000000 ++ # value_source default ++ # Default value: 100000000 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_ETHERCATMASTER_ROUTE_PERIOD_TICKS ++ # Calculated: ((CYGNUM_ETHERCATMASTER_ROUTE_PERIOD * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++}; ++ ++# Route thread period in ticks ++# ++cdl_option CYGNUM_ETHERCATMASTER_ROUTE_PERIOD_TICKS { ++ # Calculated value: ((CYGNUM_ETHERCATMASTER_ROUTE_PERIOD * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR) ++ # CYGNUM_ETHERCATMASTER_ROUTE_PERIOD == 100000000 ++ # CYGNUM_HAL_RTC_DENOMINATOR == 100 ++ # CYGNUM_HAL_RTC_NUMERATOR == 1000000000 ++ # Flavor: data ++ # Current_value: 10 ++}; ++ ++# < ++# < ++ +diff --git a/tests/ecos/ecos-i386/redboot/redboot.ecc ./tests/ecos/ecos-i386/redboot/redboot.ecc +new file mode 100644 +index 0000000..c4c8a13 +--- /dev/null ++++ ./tests/ecos/ecos-i386/redboot/redboot.ecc +@@ -0,0 +1,9312 @@ ++# eCos saved configuration ++ ++# ---- commands -------------------------------------------------------- ++# This section contains information about the savefile format. ++# It should not be edited. Any modifications made to this section ++# may make it impossible for the configuration tools to read ++# the savefile. ++ ++cdl_savefile_version 1; ++cdl_savefile_command cdl_savefile_version {}; ++cdl_savefile_command cdl_savefile_command {}; ++cdl_savefile_command cdl_configuration { description hardware template package }; ++cdl_savefile_command cdl_package { value_source user_value wizard_value inferred_value }; ++cdl_savefile_command cdl_component { value_source user_value wizard_value inferred_value }; ++cdl_savefile_command cdl_option { value_source user_value wizard_value inferred_value }; ++cdl_savefile_command cdl_interface { value_source user_value wizard_value inferred_value }; ++ ++# ---- toplevel -------------------------------------------------------- ++# This section defines the toplevel configuration object. The only ++# values that can be changed are the name of the configuration and ++# the description field. It is not possible to modify the target, ++# the template or the set of packages simply by editing the lines ++# below because these changes have wide-ranging effects. Instead ++# the appropriate tools should be used to make such modifications. ++ ++cdl_configuration eCos { ++ description "" ; ++ ++ # These fields should not be modified. ++ hardware pc_rltk8139 ; ++ template redboot ; ++ package -hardware CYGPKG_HAL_I386 current ; ++ package -hardware CYGPKG_HAL_I386_GENERIC current ; ++ package -hardware CYGPKG_HAL_I386_PC current ; ++ package -hardware CYGPKG_HAL_I386_PCMB current ; ++ package -hardware CYGPKG_IO_PCI current ; ++ package -hardware CYGPKG_IO_SERIAL_GENERIC_16X5X current ; ++ package -hardware CYGPKG_IO_SERIAL_I386_PC current ; ++ package -hardware CYGPKG_DEVS_ETH_RLTK_8139 current ; ++ package -hardware CYGPKG_DEVS_ETH_I386_PC_RLTK8139 current ; ++ package -hardware CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 current ; ++ package -hardware CYGPKG_DEVICES_WALLCLOCK_I386_PC current ; ++ package CYGPKG_HAL current ; ++ package CYGPKG_INFRA current ; ++ package CYGPKG_REDBOOT current ; ++ package CYGPKG_ISOINFRA current ; ++ package CYGPKG_LIBC_STRING current ; ++ package CYGPKG_CRC current ; ++ package CYGPKG_IO_ETH_DRIVERS current ; ++ package CYGPKG_COMPRESS_ZLIB current ; ++ package CYGPKG_NS_DNS current ; ++ package CYGPKG_MEMALLOC current ; ++}; ++ ++# ---- conflicts ------------------------------------------------------- ++# There are no conflicts. ++ ++# ---- contents -------------------------------------------------------- ++# > ++# > ++# Global build options ++# Global build options including control over ++# compiler flags, linker flags and choice of toolchain. ++# ++cdl_component CYGBLD_GLOBAL_OPTIONS { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Global command prefix ++# This option specifies the command prefix used when ++# invoking the build tools. If your host operating system ++# is Linux you can set this to empty to use your native tools. ++# If so, your native gcc must be gcc-2.95.2 or later, and ++# "ld -v" must report a version more recent than 2.9.1. ++# ++cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value i386-elf ++ # value_source default ++ # Default value: i386-elf ++}; ++ ++# Global compiler flags ++# This option controls the global compiler flags which ++# are used to compile all packages by ++# default. Individual packages may define ++# options which override these global flags. ++# ++cdl_option CYGBLD_GLOBAL_CFLAGS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" ++ # value_source default ++ # Default value: "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" ++ ++ # The following properties are affected by this value ++ # option CYGBLD_INFRA_CFLAGS_WARNINGS_AS_ERRORS ++ # Requires: is_substr(CYGBLD_GLOBAL_CFLAGS, " -Werror") ++ # option CYGBLD_INFRA_CFLAGS_PIPE ++ # Requires: is_substr(CYGBLD_GLOBAL_CFLAGS, " -pipe") ++}; ++ ++# Global linker flags ++# This option controls the global linker flags. Individual ++# packages may define options which override these global flags. ++# ++cdl_option CYGBLD_GLOBAL_LDFLAGS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "-g -nostdlib -Wl,--gc-sections -Wl,-static" ++ # value_source default ++ # Default value: "-g -nostdlib -Wl,--gc-sections -Wl,-static" ++}; ++ ++# Build GDB stub loader image ++# This option enables the building of the GDB stubs for the ++# board. The common HAL controls takes care of most of the ++# build process, but the final conversion from ELF image to ++# binary data is handled by the platform CDL, allowing ++# relocation of the data if necessary. ++# ++cdl_option CYGBLD_BUILD_GDB_STUBS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "GRUB" ++ # CYG_HAL_STARTUP == GRUB ++ # CYG_HAL_STARTUP == GRUB ++ # --> 1 ++ # Requires: CYGSEM_HAL_ROM_MONITOR ++ # CYGSEM_HAL_ROM_MONITOR == 1 ++ # --> 1 ++ # Requires: CYGBLD_BUILD_COMMON_GDB_STUBS ++ # CYGBLD_BUILD_COMMON_GDB_STUBS == 0 ++ # --> 0 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT == 1 ++ # --> 0 ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT == 0 ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT == 1 ++ # --> 0 ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++ # CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT == 0 ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++ # CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM == 0 ++ # --> 1 ++}; ++ ++# Build common GDB stub ROM image ++# Unless a target board has specific requirements to the ++# stub implementation, it can use a simple common stub. ++# This option, which gets enabled by platform HALs as ++# appropriate, controls the building of the common stub. ++# ++cdl_option CYGBLD_BUILD_COMMON_GDB_STUBS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYGBLD_BUILD_COMMON_GDB_STUBS ++}; ++ ++# < ++# PCI configuration library ++# doc: ref/io-pci.html ++# The PCI configuration library provides initialization of devices ++# on the PCI bus. Functions to find and access these devices are ++# also provided. ++# ++cdl_package CYGPKG_IO_PCI { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# > ++# PCI build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_PCI_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the PCI configuration library. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_IO_PCI_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the PCI configuration library. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_IO_PCI_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Enable debugging. ++# This option enables minimal debugging of the PCI library. ++# In particular, it will print information about devices as the ++# PCI bus is being scanned/searched. ++# ++cdl_option CYGPKG_IO_PCI_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# PCI tests ++# This option specifies the set of tests for the PCI configuration library. ++# ++cdl_option CYGPKG_IO_PCI_TESTS { ++ # Calculated value: "tests/pci1 tests/pci2" ++ # Flavor: data ++ # Current_value: tests/pci1 tests/pci2 ++}; ++ ++# Writeback Interrupt Line register. ++# This option causes a PCI device interrupt vector to be ++# written to the Interrupt Line register in config space. ++# This is traditionally done by a BIOS so that device ++# drivers can read the interrupt vector directly from ++# device configuration space. ++# ++cdl_option CYGPKG_IO_PCI_CONFIGURE_INTLINE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# < ++# 16x5x generic serial device drivers ++# This option enables the serial device drivers for the ++# 16x5x compatiple controllers. ++# ++cdl_package CYGPKG_IO_SERIAL_GENERIC_16X5X { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_IO_SERIAL ++ # CYGPKG_IO_SERIAL (unknown) == 0 ++ # --> 0 ++ # ActiveIf constraint: CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED ++ # CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED == 0 ++ # --> 0 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ERROR ++ # CYGPKG_ERROR (unknown) == 0 ++ # --> 0 ++}; ++ ++# > ++# 16x5x FIFO support ++# Options to configure the FIFO on a 16550 (or above) variant. ++# ++cdl_component CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_GENERIC_16X5X is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Threshold for RX interrupt on 16550 FIFO ++# This options configures the threshold value at which ++# the RX interrupt occurs when a FIFO is used. (16550 and ++# above only), this may be after 1, 4, 8 or 14 characters. ++# ++cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO_RX_THRESHOLD { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Legal values: 14 8 4 1 ++}; ++ ++# < ++# Serial device driver build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_SERIAL_GENERIC_16X5X_OPTIONS { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_GENERIC_16X5X is not active ++ ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building these serial device drivers. These flags are ++# used in addition to the set of global flags. ++# ++cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_CFLAGS_ADD { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_GENERIC_16X5X_OPTIONS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building these serial device drivers. These flags are ++# removed from the set of global flags if present. ++# ++cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_CFLAGS_REMOVE { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_GENERIC_16X5X_OPTIONS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# < ++# PC serial device drivers ++# This option enables the serial device drivers for the ++# PC. ++# ++cdl_package CYGPKG_IO_SERIAL_I386_PC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_IO_SERIAL ++ # CYGPKG_IO_SERIAL (unknown) == 0 ++ # --> 0 ++ # ActiveIf constraint: CYGPKG_HAL_I386_PCMB ++ # CYGPKG_HAL_I386_PCMB == current ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ERROR ++ # CYGPKG_ERROR (unknown) == 0 ++ # --> 0 ++}; ++ ++# > ++# Generic 16x5x serial driver required ++# ++cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED { ++ # Implemented by CYGPKG_IO_SERIAL_I386_PC_SERIAL0, inactive, enabled ++ # Implemented by CYGPKG_IO_SERIAL_I386_PC_SERIAL1, inactive, enabled ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC is not active ++ ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_SERIAL_GENERIC_16X5X ++ # ActiveIf: CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED ++}; ++ ++# PC serial port 0 driver ++# This option includes the serial device driver for port 0 on the ++# PC. ++# ++cdl_component CYGPKG_IO_SERIAL_I386_PC_SERIAL0 { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_IO_SERIAL_I386_PC_TESTING ++ # ActiveIf: CYGPKG_IO_SERIAL_I386_PC_SERIAL0 ++}; ++ ++# > ++# Device name for PC serial port 0 ++# This option specifies the device name port 0 on the PC. ++# ++cdl_option CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL0 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser0\"" ++ # value_source default ++ # Default value: "\"/dev/ser0\"" ++ ++ # The following properties are affected by this value ++ # option CYGPRI_SER_TEST_SER_DEV ++ # DefaultValue: CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME ++}; ++ ++# Baud rate for the PC serial port 0 driver ++# This option specifies the default baud rate (speed) for the ++# PC port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_BAUD { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL0 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 38400 ++ # value_source default ++ # Default value: 38400 ++ # Legal values: 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600 ++ # 4800 7200 9600 14400 19200 38400 57600 115200 230400 ++ # ++}; ++ ++# Buffer size for the PC serial port 0 driver ++# This option specifies the size of the internal buffers used ++# for the PC port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_BUFSIZE { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL0 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 128 ++ # value_source default ++ # Default value: 128 ++ # Legal values: 0 to 8192 ++}; ++ ++# I/O base address for the i386-PC serial port 0 ++# This option specifies the I/O address of the 8250 or 16550 for serial port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IOBASE { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL0 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x000003F8 ++ # value_source default ++ # Default value: 0x000003F8 ++ # Legal values: 0 to 0xFF8 ++}; ++ ++# IRQ for the i386-PC serial port 0 ++# This option specifies the IRQ of the 8250 or 16550 for serial port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IRQ { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL0 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4 ++ # value_source default ++ # Default value: 4 ++ # Legal values: 0 to 15 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_INT ++ # DefaultValue: CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IRQ + 32 ++}; ++ ++# INT for the i386-PC serial port 0 ++# This option specifies the interrupt vector of the 8250 or 16550 for serial port 0. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL0_INT { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL0 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IRQ + 32 ++ # CYGNUM_IO_SERIAL_I386_PC_SERIAL0_IRQ == 0 ++ # --> 32 ++ # Legal values: 32 to 47 ++}; ++ ++# < ++# PC serial port 1 driver ++# This option includes the serial device driver for port 1 on ++# the PC. ++# ++cdl_component CYGPKG_IO_SERIAL_I386_PC_SERIAL1 { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Device name for PC serial port 1 ++# This option specifies the device name port 1 on the PC. ++# ++cdl_option CYGDAT_IO_SERIAL_I386_PC_SERIAL1_NAME { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL1 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"/dev/ser1\"" ++ # value_source default ++ # Default value: "\"/dev/ser1\"" ++}; ++ ++# Baud rate for the PC serial port 1 driver ++# This option specifies the default baud rate (speed) for the ++# PC port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_BAUD { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL1 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 38400 ++ # value_source default ++ # Default value: 38400 ++ # Legal values: 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600 ++ # 4800 7200 9600 14400 19200 38400 57600 115200 230400 ++ # ++}; ++ ++# Buffer size for the PC serial port 1 driver ++# This option specifies the size of the internal buffers used ++# for the PC port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_BUFSIZE { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL1 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 128 ++ # value_source default ++ # Default value: 128 ++ # Legal values: 0 to 8192 ++}; ++ ++# I/O base address for the i386-PC serial port 1 ++# This option specifies the I/O address of the 8250 or 16550 for serial port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IOBASE { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL1 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x000002F8 ++ # value_source default ++ # Default value: 0x000002F8 ++ # Legal values: 0 to 0xFF8 ++}; ++ ++# IRQ for the i386-PC serial port 1 ++# This option specifies the IRQ of the 8250 or 16550 for serial port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IRQ { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL1 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 3 ++ # value_source default ++ # Default value: 3 ++ # Legal values: 0 to 15 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_INT ++ # DefaultValue: CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IRQ + 32 ++}; ++ ++# INT for the i386-PC serial port 1 ++# This option specifies the interrupt vector of the 8250 or 16550 for serial port 1. ++# ++cdl_option CYGNUM_IO_SERIAL_I386_PC_SERIAL1_INT { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_SERIAL1 is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IRQ + 32 ++ # CYGNUM_IO_SERIAL_I386_PC_SERIAL1_IRQ == 0 ++ # --> 32 ++ # Legal values: 32 to 47 ++}; ++ ++# < ++# Serial device driver build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_IO_SERIAL_I386_PC_OPTIONS { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC is not active ++ ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building these serial device drivers. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_IO_SERIAL_I386_PC_CFLAGS_ADD { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_OPTIONS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building these serial device drivers. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_IO_SERIAL_I386_PC_CFLAGS_REMOVE { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_OPTIONS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# Testing parameters ++# ++cdl_component CYGPKG_IO_SERIAL_I386_PC_TESTING { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC is not active ++ # ActiveIf constraint: CYGPKG_IO_SERIAL_I386_PC_SERIAL0 ++ # CYGPKG_IO_SERIAL_I386_PC_SERIAL0 == 0 ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# > ++# Serial device used for testing ++# ++cdl_option CYGPRI_SER_TEST_SER_DEV { ++ # This option is not active ++ # The parent CYGPKG_IO_SERIAL_I386_PC_TESTING is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME ++ # CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME == 0 ++ # --> 0 ++}; ++ ++# < ++# < ++# Wallclock device driver for Dallas 12887 ++# This package provides a file with init, get and set functions ++# for the Dallas 12887 clock part. ++# ++cdl_package CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_IO_WALLCLOCK ++ # CYGPKG_IO_WALLCLOCK (unknown) == 0 ++ # --> 0 ++ # ActiveIf constraint: CYGIMP_WALLCLOCK_HARDWARE ++ # CYGIMP_WALLCLOCK_HARDWARE == 1 ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVICES_WALLCLOCK_I386_PC ++ # Requires: CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 ++}; ++ ++# > ++# DS12887 wallclock build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887_OPTIONS { ++ # This option is not active ++ # The parent CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 is not active ++ ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the wallclock device. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887_CFLAGS_ADD { ++ # This option is not active ++ # The parent CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887_OPTIONS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the wallclock device. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887_CFLAGS_REMOVE { ++ # This option is not active ++ # The parent CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887_OPTIONS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# < ++# Hardware wallclock ++# ++cdl_option CYGIMP_WALLCLOCK_HARDWARE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 ++ # ActiveIf: CYGIMP_WALLCLOCK_HARDWARE ++}; ++ ++# PC board RTC Driver ++# RTC driver for PC. ++# ++cdl_package CYGPKG_DEVICES_WALLCLOCK_I386_PC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_IO_WALLCLOCK ++ # CYGPKG_IO_WALLCLOCK (unknown) == 0 ++ # --> 0 ++ # ActiveIf constraint: CYGPKG_HAL_I386_PC ++ # CYGPKG_HAL_I386_PC == current ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 ++ # CYGPKG_DEVICES_WALLCLOCK_DALLAS_DS12887 == 0 ++ # --> 0 ++}; ++ ++# > ++# IO port address of the ADDRESS register ++# This option sets the io address of the address port for ++# accessing the PC RTC ++# ++cdl_option CYGDAT_DEVS_WALLCLOCK_I386_PC_RTC_ADDRESS_PORT { ++ # This option is not active ++ # The parent CYGPKG_DEVICES_WALLCLOCK_I386_PC is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x00000070 ++ # value_source default ++ # Default value: 0x00000070 ++}; ++ ++# IO port address of the DATA register ++# This option sets the io address of the data port for ++# accessing the PC RTC ++# ++cdl_option CYGDAT_DEVS_WALLCLOCK_I386_PC_RTC_DATA_PORT { ++ # This option is not active ++ # The parent CYGPKG_DEVICES_WALLCLOCK_I386_PC is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x00000071 ++ # value_source default ++ # Default value: 0x00000071 ++}; ++ ++# < ++# ISO C library string functions ++# doc: ref/libc.html ++# This package provides string functions specified by the ++# ISO C standard - ISO/IEC 9899:1990. ++# ++cdl_package CYGPKG_LIBC_STRING { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER == "" ++ # CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STRING_MEMFUNCS_HEADER == "" ++ # CYGBLD_ISO_STRING_MEMFUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STRING_STRFUNCS_HEADER == "" ++ # CYGBLD_ISO_STRING_STRFUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGBLD_ISO_STRTOK_R_HEADER == "" ++ # CYGBLD_ISO_STRTOK_R_HEADER == ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++}; ++ ++# > ++# Inline versions of functions ++# This option chooses whether some of the ++# particularly simple string functions from ++# are available as inline ++# functions. This may improve performance, and as ++# the functions are small, may even improve code ++# size. ++# ++cdl_option CYGIMP_LIBC_STRING_INLINES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Optimize string functions for code size ++# This option tries to reduce string function ++# code size at the expense of execution speed. The ++# same effect can be produced if the code is ++# compiled with the -Os option to the compiler. ++# ++cdl_option CYGIMP_LIBC_STRING_PREFER_SMALL_TO_FAST { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Provide BSD compatibility functions ++# Enabling this option causes various compatibility functions ++# commonly found in the BSD UNIX operating system to be included. ++# These are functions such as bzero, bcmp, bcopy, bzero, strcasecmp, ++# strncasecmp, index, rindex and swab. ++# ++cdl_option CYGFUN_LIBC_STRING_BSD_FUNCS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # The inferred value should not be edited directly. ++ inferred_value 0 ++ # value_source inferred ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_STRING_BSD_FUNCS_HEADER == "" ++ # CYGBLD_ISO_STRING_BSD_FUNCS_HEADER == ++ # --> 1 ++ # Requires: CYGINT_ISO_CTYPE ++ # CYGINT_ISO_CTYPE == 0 ++ # --> 0 ++}; ++ ++# strtok ++# These options control the behaviour of the ++# strtok() and strtok_r() string tokenization ++# functions. ++# ++cdl_component CYGPKG_LIBC_STRING_STRTOK { ++ # There is no associated value. ++}; ++ ++# > ++# Per-thread strtok() ++# This option controls whether the string function ++# strtok() has its state recorded on a per-thread ++# basis rather than global. If this option is ++# disabled, some per-thread space can be saved. ++# Note there is also a POSIX-standard strtok_r() ++# function to achieve a similar effect with user ++# support. Enabling this option will use one slot ++# of kernel per-thread data. You should ensure you ++# have enough slots configured for all your ++# per-thread data. ++# ++cdl_option CYGSEM_LIBC_STRING_PER_THREAD_STRTOK { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA (unknown) == 0 ++ # --> 0 ++ # Requires: CYGVAR_KERNEL_THREADS_DATA ++ # CYGVAR_KERNEL_THREADS_DATA (unknown) == 0 ++ # --> 0 ++}; ++ ++# Tracing level ++# Trace verbosity level for debugging the ++# functions strtok() and strtok_r(). Increase this ++# value to get additional trace output. ++# ++cdl_option CYGNUM_LIBC_STRING_STRTOK_TRACE_LEVEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to 1 ++}; ++ ++# < ++# strdup ++# This option indicates whether strdup() is to be supported. ++# ++cdl_option CYGFUN_LIBC_STRING_STRDUP { ++ # ActiveIf constraint: CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# C library string functions build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_LIBC_STRING_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_LIBC_STRING_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the C library. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_LIBC_STRING_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# C library string function tests ++# This option specifies the set of tests for the C library ++# string functions. ++# ++cdl_option CYGPKG_LIBC_STRING_TESTS { ++ # Calculated value: "tests/memchr tests/memcmp1 tests/memcmp2 tests/memcpy1 tests/memcpy2 tests/memmove1 tests/memmove2 tests/memset tests/strcat1 tests/strcat2 tests/strchr tests/strcmp1 tests/strcmp2 tests/strcoll1 tests/strcoll2 tests/strcpy1 tests/strcpy2 tests/strcspn tests/strcspn tests/strlen tests/strncat1 tests/strncat2 tests/strncpy1 tests/strncpy2 tests/strpbrk tests/strrchr tests/strspn tests/strstr tests/strtok tests/strxfrm1 tests/strxfrm2" ++ # Flavor: data ++ # Current_value: tests/memchr tests/memcmp1 tests/memcmp2 tests/memcpy1 tests/memcpy2 tests/memmove1 tests/memmove2 tests/memset tests/strcat1 tests/strcat2 tests/strchr tests/strcmp1 tests/strcmp2 tests/strcoll1 tests/strcoll2 tests/strcpy1 tests/strcpy2 tests/strcspn tests/strcspn tests/strlen tests/strncat1 tests/strncat2 tests/strncpy1 tests/strncpy2 tests/strpbrk tests/strrchr tests/strspn tests/strstr tests/strtok tests/strxfrm1 tests/strxfrm2 ++}; ++ ++# < ++# < ++# Common ethernet support ++# doc: ref/io-eth-drv-generic.html ++# Platform independent ethernet drivers ++# ++cdl_package CYGPKG_IO_ETH_DRIVERS { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVS_ETH_RLTK_8139 ++ # ActiveIf: CYGPKG_IO_ETH_DRIVERS ++ # package CYGPKG_DEVS_ETH_I386_PC_RLTK8139 ++ # ActiveIf: CYGPKG_IO_ETH_DRIVERS ++ # component CYGPKG_REDBOOT_NETWORKING ++ # ActiveIf: CYGPKG_IO_ETH_DRIVERS ++}; ++ ++# > ++# Network drivers ++# ++cdl_interface CYGHWR_NET_DRIVERS { ++ # Implemented by CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH0, active, enabled ++ # Implemented by CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH1, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE ++ # ActiveIf: !CYGSEM_REDBOOT_FLASH_CONFIG && CYGHWR_NET_DRIVERS > 1 ++ # option CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE ++ # LegalValues: 0 to CYGHWR_NET_DRIVERS-1 ++ # option CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE ++ # ActiveIf: CYGHWR_NET_DRIVERS > 1 ++}; ++ ++# Driver supports multicast addressing ++# This interface defines whether or not a driver can handle ++# requests for multicast addressing. ++# ++cdl_interface CYGINT_IO_ETH_MULTICAST { ++ # Implemented by CYGPKG_DEVS_ETH_RLTK_8139, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# Support printing driver debug information ++# Selecting this option will include code to allow the driver to ++# print lots of information on diagnostic output such as full ++# packet dumps. ++# ++cdl_component CYGDBG_IO_ETH_DRIVERS_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Driver debug output verbosity ++# The value of this option indicates the default verbosity ++# level of debugging output. 0 means no debugging output ++# is made by default. Higher values indicate higher verbosity. ++# The verbosity level may also be changed at run time by ++# changing the variable cyg_io_eth_net_debug. ++# ++cdl_option CYGDBG_IO_ETH_DRIVERS_DEBUG_VERBOSITY { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Size of scatter-gather I/O lists ++# A scatter-gather list is used to pass requests to/from ++# the physical device driver. This list can typically be ++# small, as the data is normally already packed into reasonable ++# chunks. ++# ++cdl_option CYGNUM_IO_ETH_DRIVERS_SG_LIST_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: 32 ++}; ++ ++# Support for standard eCos TCP/IP stack. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_NET { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++}; ++ ++# > ++# Warn when there are no more mbufs ++# Warnings about running out of mbufs are printed to the ++# diagnostic output channel via diag_printf() if this option ++# is enabled. Mbufs are the network stack's basic dynamic ++# memory objects that hold all packets in transit; running ++# out is bad for performance but not fatal, not a crash. ++# You might want to turn off the warnings to preserve realtime ++# properties of the system even in extremis. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_NET is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Simulate network failures for testing ++# This package contains a suite of simulated failure modes ++# for the ethernet device layer, including dropping and/or ++# corrupting received packets, dropping packets queued for ++# transmission, and simulating a complete network break. ++# It requires the kernel as a source of time information. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_NET is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Drop incoming packets (percentage) ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_DROP_RX { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is disabled ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 10 ++ # value_source default ++ # Default value: 1 10 ++ # Legal values: 10 50 80 ++}; ++ ++# Corrupt incoming packets (percentage) ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_CORRUPT_RX { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is disabled ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 10 ++ # value_source default ++ # Default value: 1 10 ++ # Legal values: 10 50 80 ++}; ++ ++# Drop outgoing packets (percentage) ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_DROP_TX { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is disabled ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 10 ++ # value_source default ++ # Default value: 1 10 ++ # Legal values: 10 50 80 ++}; ++ ++# Simulate a line cut from time to time ++# This option causes the system to drop all packets for a ++# short random period (10s of seconds), and then act ++# normally for up to 4 times that long. This simulates your ++# sysadmin fiddling with plugs in the network switch ++# cupboard. ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_SIMULATE_LINE_CUT { ++ # This option is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is not active ++ # The parent CYGPKG_IO_ETH_DRIVERS_SIMULATED_FAILURES is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# < ++# Support for stand-alone network stack. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_STAND_ALONE { ++ # ActiveIf constraint: !CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGINT_ISO_STRING_MEMFUNCS ++ # CYGINT_ISO_STRING_MEMFUNCS == 1 ++ # --> 1 ++}; ++ ++# > ++# Pass packets to an alternate stack ++# Define this to allow packets seen by this layer to be ++# passed on to the previous logical layer, i.e. when ++# stand-alone processing replaces system (eCos) processing. ++# ++cdl_option CYGSEM_IO_ETH_DRIVERS_PASS_PACKETS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGPKG_REDBOOT_NETWORKING ++ # CYGPKG_REDBOOT_NETWORKING == 1 ++ # --> 1 ++}; ++ ++# Number of [network] buffers ++# This option is used to allocate space to buffer incoming network ++# packets. These buffers are used to hold data until they can be ++# logically processed by higher layers. ++# ++cdl_option CYGNUM_IO_ETH_DRIVERS_NUM_PKT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4 ++ # value_source default ++ # Default value: 4 ++ # Legal values: 2 to 32 ++}; ++ ++# Show driver warnings ++# Selecting this option will allows the stand-alone ethernet driver ++# to display warnings on the system console when incoming network ++# packets are being discarded due to lack of buffer space. ++# ++cdl_option CYGSEM_IO_ETH_DRIVERS_WARN { ++ # ActiveIf constraint: CYGPKG_REDBOOT ++ # CYGPKG_REDBOOT == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Support for lwIP network stack. ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_LWIP { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NET_LWIP ++ # CYGPKG_NET_LWIP (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: !CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 1 ++}; ++ ++# Interrupt support required ++# This interface is used to indicate to the low ++# level device drivers that interrupt driven operation ++# is required by higher layers. ++# ++cdl_interface CYGINT_IO_ETH_INT_SUPPORT_REQUIRED { ++ # Implemented by CYGPKG_IO_ETH_DRIVERS_NET, inactive, enabled ++ # Implemented by CYGPKG_IO_ETH_DRIVERS_LWIP, inactive, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ ++ # The following properties are affected by this value ++}; ++ ++# Common ethernet support build options ++# ++cdl_component CYGPKG_IO_ETH_DRIVERS_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the common ethernet support package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_IO_ETH_DRIVERS_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "-D_KERNEL -D__ECOS" ++ # value_source default ++ # Default value: "-D_KERNEL -D__ECOS" ++}; ++ ++# < ++# RealTek 8139 ethernet driver ++# Ethernet driver for RealTek 8139 controller. ++# ++cdl_package CYGPKG_DEVS_ETH_RLTK_8139 { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO_ETH_DRIVERS ++ # CYGPKG_IO_ETH_DRIVERS == current ++ # --> 1 ++ # ActiveIf constraint: CYGINT_DEVS_ETH_RLTK_8139_REQUIRED ++ # CYGINT_DEVS_ETH_RLTK_8139_REQUIRED == 1 ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# > ++# Share interrupt with other devices ++# If this option is enabled, the driver does not assume that it is ++# in sole possession of the interrupt pin used by the 8139. ++# ++cdl_component CYGPKG_DEVS_ETH_RLTK_8139_SHARE_INTERRUPTS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Mask 8139 interrupts on chip ++# If this option is enabled, the driver masks interrupts in the 8139's ++# status register, and does not mask the interrupt vector. This is ++# only useful if the 8139 must share it's interrupt line with other ++# devices. ++# ++cdl_option CYGPKG_DEVS_ETH_RLTK_8139_MASK_INTERRUPTS_IN_8139 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Print debugging messages ++# If this option is set, a lot of debugging messages are printed ++# to the console to help debug the driver. ++# ++cdl_option CYGDBG_DEVS_ETH_RLTK_8139_CHATTER { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Size of the receive ring ++# The 8139 stores all received packets in a single 'rx ring' ++# located somewhere in physical memory. The size of this ring ++# can be varied from ~8k to ~64k; however the driver currently ++# supports a maximum buffer size of only ~32k (so we can use ++# the 8139's WRAP mode). The actual buffer size is ++# 8192< 0 ++ # Legal values: 0 to 2 ++}; ++ ++# RealTek 8139 ethernet driver build options ++# ++cdl_component CYGPKG_DEVS_ETH_RLTK_8139_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the RealTek 8139 ethernet driver package. These ++# flags are used in addition to the set of global flags. ++# ++cdl_option CYGPKG_DEVS_ETH_RLTK_8139_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "-D_KERNEL -D__ECOS" ++ # value_source default ++ # Default value: "-D_KERNEL -D__ECOS" ++}; ++ ++# < ++# < ++# PC RealTek 8139 ethernet driver ++# Ethernet driver for standard PC's. ++# ++cdl_package CYGPKG_DEVS_ETH_I386_PC_RLTK8139 { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # ActiveIf constraint: CYGPKG_IO_ETH_DRIVERS ++ # CYGPKG_IO_ETH_DRIVERS == current ++ # --> 1 ++ # ActiveIf constraint: CYGPKG_HAL_I386_PC ++ # CYGPKG_HAL_I386_PC == current ++ # --> 1 ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# > ++# RealTek 8139 ethernet driver required ++# ++cdl_interface CYGINT_DEVS_ETH_RLTK_8139_REQUIRED { ++ # Implemented by CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH0, active, enabled ++ # Implemented by CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH1, active, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVS_ETH_RLTK_8139 ++ # ActiveIf: CYGINT_DEVS_ETH_RLTK_8139_REQUIRED ++}; ++ ++# Ethernet port 0 driver ++# ++cdl_component CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH0 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Device name for the ETH0 ethernet port 0 driver ++# This option sets the name of the ethernet device for the ++# RealTek 8139 ethernet port 0. ++# ++cdl_option CYGDAT_DEVS_ETH_I386_PC_RLTK8139_ETH0_NAME { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"eth0\"" ++ # value_source default ++ # Default value: "\"eth0\"" ++}; ++ ++# < ++# Ethernet port 1 driver ++# ++cdl_component CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH1 { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Device name for the ETH1 ethernet port 1 driver ++# This option sets the name of the ethernet device for the ++# RealTek 8139 ethernet port 1. ++# ++cdl_option CYGDAT_DEVS_ETH_I386_PC_RLTK8139_ETH1_NAME { ++ # This option is not active ++ # The parent CYGPKG_DEVS_ETH_I386_PC_RLTK8139_ETH1 is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "\"eth1\"" ++ # value_source default ++ # Default value: "\"eth1\"" ++}; ++ ++# < ++# < ++# < ++# < ++# eCos HAL ++# doc: ref/the-ecos-hardware-abstraction-layer.html ++# The eCos HAL package provide a porting layer for ++# higher-level parts of the system such as the kernel and the ++# C library. Each installation should have HAL packages for ++# one or more architectures, and for each architecture there ++# may be one or more supported platforms. It is necessary to ++# select one target architecture and one platform for that ++# architecture. There are also a number of configuration ++# options that are common to all HAL packages. ++# ++cdl_package CYGPKG_HAL { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_INFRA ++ # CYGPKG_INFRA == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Platform-independent HAL options ++# A number of configuration options are common to most or all ++# HAL packages, for example options controlling how much state ++# should be saved during a context switch. The implementations ++# of these options will vary from architecture to architecture. ++# ++cdl_component CYGPKG_HAL_COMMON { ++ # There is no associated value. ++}; ++ ++# > ++# Provide eCos kernel support ++# The HAL can be configured to either support the full eCos ++# kernel, or to support only very simple applications which do ++# not require a full kernel. If kernel support is not required ++# then some of the startup, exception, and interrupt handling ++# code can be eliminated. ++# ++cdl_option CYGFUN_HAL_COMMON_KERNEL_SUPPORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++}; ++ ++# HAL exception support ++# When a processor exception occurs, for example an attempt to ++# execute an illegal instruction or to perform a divide by ++# zero, this exception may be handled in a number of different ++# ways. If the target system has gdb support then typically ++# the exception will be handled by gdb code. Otherwise if the ++# HAL exception support is enabled then the HAL will invoke a ++# routine deliver_exception(). Typically this routine will be ++# provided by the eCos kernel, but it is possible for ++# application code to provide its own implementation. If the ++# HAL exception support is not enabled and a processor ++# exception occurs then the behaviour of the system is ++# undefined. ++# ++cdl_option CYGPKG_HAL_EXCEPTIONS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGPKG_KERNEL_EXCEPTIONS ++ # CYGPKG_KERNEL_EXCEPTIONS (unknown) == 0 ++ # --> 0 ++ # Requires: CYGPKG_KERNEL_EXCEPTIONS ++ # CYGPKG_KERNEL_EXCEPTIONS (unknown) == 0 ++ # --> 0 ++}; ++ ++# Stop calling constructors early ++# This option supports environments where some constructors ++# must be run in the context of a thread rather than at ++# simple system startup time. A boolean flag named ++# cyg_hal_stop_constructors is set to 1 when constructors ++# should no longer be invoked. It is up to some other ++# package to deal with the rest of the constructors. ++# In the current version this is only possible with the ++# C library. ++# ++cdl_option CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS ++ # CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS (unknown) == 0 ++ # --> 0 ++}; ++ ++# HAL uses the MMU and allows for CDL manipulation of it's use ++# ++cdl_interface CYGINT_HAL_SUPPORTS_MMU_TABLES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_INSTALL_MMU_TABLES ++ # ActiveIf: CYGINT_HAL_SUPPORTS_MMU_TABLES ++}; ++ ++# Install MMU tables. ++# This option controls whether this application installs ++# its own Memory Management Unit (MMU) tables, or relies on the ++# existing environment to run. ++# ++cdl_option CYGSEM_HAL_INSTALL_MMU_TABLES { ++ # This option is not active ++ # ActiveIf constraint: CYGINT_HAL_SUPPORTS_MMU_TABLES ++ # CYGINT_HAL_SUPPORTS_MMU_TABLES == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYG_HAL_STARTUP != "RAM" ++ # CYG_HAL_STARTUP == GRUB ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_STATIC_MMU_TABLES ++ # Requires: CYGSEM_HAL_INSTALL_MMU_TABLES ++}; ++ ++# Use static MMU tables. ++# This option defines an environment where any Memory ++# Management Unit (MMU) tables are constant. Normally used by ROM ++# based environments, this provides a way to save RAM usage which ++# would otherwise be required for these tables. ++# ++cdl_option CYGSEM_HAL_STATIC_MMU_TABLES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGSEM_HAL_INSTALL_MMU_TABLES ++ # CYGSEM_HAL_INSTALL_MMU_TABLES == 0 ++ # --> 0 ++}; ++ ++# Route diagnostic output to debug channel ++# If not inheriting the console setup from the ROM monitor, ++# it is possible to redirect diagnostic output to the debug ++# channel by enabling this option. Depending on the debugger ++# used it may also be necessary to select a mangler for the ++# output to be displayed by the debugger. ++# ++cdl_component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN { ++ # ActiveIf constraint: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE == 0 ++ # --> 1 ++ # ActiveIf constraint: CYGPKG_HAL_ARM || CYGPKG_HAL_POWERPC_MPC8xx || CYGPKG_HAL_V85X_V850 || CYGSEM_HAL_VIRTUAL_VECTOR_DIAG ++ # CYGPKG_HAL_ARM (unknown) == 0 ++ # CYGPKG_HAL_POWERPC_MPC8xx (unknown) == 0 ++ # CYGPKG_HAL_V85X_V850 (unknown) == 0 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_DIAG == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS || CYG_HAL_STARTUP == "RAM") ? 1 : 0 ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # CYG_HAL_STARTUP == GRUB ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE ++ # Calculated: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE && !CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++}; ++ ++# > ++# Mangler used on diag output ++# It is sometimes necessary to mangle (encode) the ++# diag ASCII text output in order for it to show up at the ++# other end. In particular, GDB may silently ignore raw ++# ASCII text. ++# ++cdl_option CYGSEM_HAL_DIAG_MANGLER { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value GDB ++ # value_source default ++ # Default value: GDB ++ # Legal values: "GDB" "None" ++}; ++ ++# < ++# < ++# HAL interrupt handling ++# A number of configuration options related to interrupt ++# handling are common to most or all HAL packages, even though ++# the implementations will vary from architecture to ++# architecture. ++# ++cdl_component CYGPKG_HAL_COMMON_INTERRUPTS { ++ # There is no associated value. ++}; ++ ++# > ++# Use separate stack for interrupts ++# When an interrupt occurs this interrupt can be handled either ++# on the current stack or on a separate stack maintained by the ++# HAL. Using a separate stack requires a small number of extra ++# instructions in the interrupt handling code, but it has the ++# advantage that it is no longer necessary to allow extra space ++# in every thread stack for the interrupt handlers. The amount ++# of extra space required depends on the interrupt handlers ++# that are being used. ++# ++cdl_option CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_REDBOOT ++ # Requires: CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK == 0 ++}; ++ ++# Interrupt stack size ++# This configuration option specifies the stack size in bytes ++# for the interrupt stack. Typically this should be a multiple ++# of 16, but the exact requirements will vary from architecture ++# to architecture. The interrupt stack serves two separate ++# purposes. It is used as the stack during system ++# initialization. In addition, if the interrupt system is ++# configured to use a separate stack then all interrupts will ++# be processed on this stack. The exact memory requirements ++# will vary from application to application, and will depend ++# heavily on whether or not other interrupt-related options, ++# for example nested interrupts, are enabled. On most targets, ++# in a configuration with no kernel this stack will also be ++# the stack used to invoke the application, and must obviously ++# be appropriately large in that case. ++# ++cdl_option CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE { ++ # Flavor: data ++ user_value 4096 ++ # value_source user ++ # Default value: CYGPKG_KERNEL ? 4096 : 32768 ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 32768 ++ # Legal values: 128 to 1048576 ++}; ++ ++# Allow nested interrupts ++# When an interrupt occurs the HAL interrupt handling code can ++# either leave interrupts disabled for the duration of the ++# interrupt handling code, or by doing some extra work it can ++# reenable interrupts before invoking the interrupt handler and ++# thus allow nested interrupts to happen. If all the interrupt ++# handlers being used are small and do not involve any loops ++# then it is usually better to disallow nested interrupts. ++# However if any of the interrupt handlers are more complicated ++# than nested interrupts will usually be required. ++# ++cdl_option CYGSEM_HAL_COMMON_INTERRUPTS_ALLOW_NESTING { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Save minimum context on interrupt ++# The HAL interrupt handling code can exploit the calling conventions ++# defined for a given architecture to reduce the amount of state ++# that has to be saved. Generally this improves performance and ++# reduces code size. However it can make source-level debugging ++# more difficult. ++# ++cdl_option CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++}; ++ ++# Chain all interrupts together ++# Interrupts can be attached to vectors either singly, or be ++# chained together. The latter is necessary if there is no way ++# of discovering which device has interrupted without ++# inspecting the device itself. It can also reduce the amount ++# of RAM needed for interrupt decoding tables and code. ++# ++cdl_option CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Ignore spurious [fleeting] interrupts ++# On some hardware, interrupt sources may not be de-bounced or ++# de-glitched. Rather than try to handle these interrupts (no ++# handling may be possible), this option allows the HAL to simply ++# ignore them. In most cases, if the interrupt is real it will ++# reoccur in a detectable form. ++# ++cdl_option CYGIMP_HAL_COMMON_INTERRUPTS_IGNORE_SPURIOUS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# HAL context switch support ++# A number of configuration options related to thread contexts ++# are common to most or all HAL packages, even though the ++# implementations will vary from architecture to architecture. ++# ++cdl_component CYGPKG_HAL_COMMON_CONTEXT { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Use minimum thread context ++# The thread context switch code can exploit the calling ++# conventions defined for a given architecture to reduce the ++# amount of state that has to be saved during a context ++# switch. Generally this improves performance and reduces ++# code size. However it can make source-level debugging more ++# difficult. ++# ++cdl_option CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM { ++ # Flavor: bool ++ user_value 0 ++ # The inferred value should not be edited directly. ++ inferred_value 0 ++ # value_source user ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++}; ++ ++# < ++# Explicit control over cache behaviour ++# These options let the default behaviour of the caches ++# be easily configurable. ++# ++cdl_component CYGPKG_HAL_CACHE_CONTROL { ++ # There is no associated value. ++}; ++ ++# > ++# Enable DATA cache on startup ++# Enabling this option will cause the data cache to be enabled ++# as soon as practicable when eCos starts up. One would choose ++# to disable this if the data cache cannot safely be turned on, ++# such as a case where the cache(s) require additional platform ++# specific setup. ++# ++cdl_component CYGSEM_HAL_ENABLE_DCACHE_ON_STARTUP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# DATA cache mode on startup ++# This option controls the mode the cache will be set to ++# when enabled on startup. ++# ++cdl_option CYGSEM_HAL_DCACHE_STARTUP_MODE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value COPYBACK ++ # value_source default ++ # Default value: COPYBACK ++ # Legal values: "COPYBACK" "WRITETHRU" ++}; ++ ++# < ++# Enable INSTRUCTION cache on startup ++# Enabling this option will cause the instruction cache to be enabled ++# as soon as practicable when eCos starts up. One would choose ++# to disable this if the instruction cache cannot safely be turned on, ++# such as a case where the cache(s) require additional platform ++# specific setup. ++# ++cdl_option CYGSEM_HAL_ENABLE_ICACHE_ON_STARTUP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Source-level debugging support ++# If the source level debugger gdb is to be used for debugging ++# application code then it may be necessary to configure in support ++# for this in the HAL. ++# ++cdl_component CYGPKG_HAL_DEBUG { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Support for GDB stubs ++# The HAL implements GDB stubs for the target. ++# ++cdl_interface CYGINT_HAL_DEBUG_GDB_STUBS { ++ # Implemented by CYGPKG_HAL_I386_PC, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # ActiveIf: CYGINT_HAL_DEBUG_GDB_STUBS ++ # option CYGBLD_BUILD_REDBOOT_WITH_GDB ++ # ActiveIf: CYGINT_HAL_DEBUG_GDB_STUBS ++}; ++ ++# Include GDB stubs in HAL ++# This option causes a set of GDB stubs to be included into the ++# system. On some target systems the GDB support will be ++# provided by other means, for example by a ROM monitor. On ++# other targets, especially when building a ROM-booting system, ++# the necessary support has to go into the target library ++# itself. When GDB stubs are include in a configuration, HAL ++# serial drivers must also be included. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS { ++ # ActiveIf constraint: CYGINT_HAL_DEBUG_GDB_STUBS ++ # CYGINT_HAL_DEBUG_GDB_STUBS == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 ++ # Requires: ! CYGSEM_HAL_USE_ROM_MONITOR ++ # CYGSEM_HAL_USE_ROM_MONITOR == 0 ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++ # CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT == 0 ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++ # CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM == 0 ++ # --> 1 ++ # Requires: !CYGSEM_HAL_VIRTUAL_VECTOR_DIAG || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_DIAG == 1 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # DefaultValue: (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS || CYG_HAL_STARTUP == "RAM") ? 1 : 0 ++ # option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # DefaultValue: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # ActiveIf: CYGSEM_HAL_USE_ROM_MONITOR || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # DefaultValue: !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGBLD_BUILD_COMMON_GDB_STUBS ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGPKG_HAL_GDB_FILEIO ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGDBG_HAL_DEBUG_GDB_INITIAL_BREAK ++ # ActiveIf: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGBLD_BUILD_REDBOOT_WITH_GDB ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++}; ++ ++# Support for external break support in GDB stubs ++# The HAL implements external break (or asynchronous interrupt) ++# in the GDB stubs for the target. ++# ++cdl_interface CYGINT_HAL_DEBUG_GDB_STUBS_BREAK { ++ # Implemented by CYGPKG_HAL_I386_PC, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # ActiveIf: CYGINT_HAL_DEBUG_GDB_STUBS_BREAK ++}; ++ ++# Include GDB external break support for stubs ++# This option causes the GDB stub to add a serial interrupt handler ++# which will listen for GDB break packets. This lets you stop the ++# target asynchronously when using GDB, usually by hitting Control+C ++# or pressing the STOP button. This option differs from ++# CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT in that it is used when ++# GDB stubs are present. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT { ++ # ActiveIf constraint: CYGINT_HAL_DEBUG_GDB_STUBS_BREAK ++ # CYGINT_HAL_DEBUG_GDB_STUBS_BREAK == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # Requires: !CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # option CYGBLD_BUILD_REDBOOT_WITH_GDB ++ # Requires: CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++}; ++ ++# Platform does not support CTRLC ++# ++cdl_interface CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # ActiveIf: CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 ++}; ++ ++# Include GDB external break support when no stubs ++# This option adds an interrupt handler for the GDB serial line ++# which will listen for GDB break packets. This lets you stop the ++# target asynchronously when using GDB, usually by hitting Control+C ++# or pressing the STOP button. This option differs from ++# CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT in that it is used when the GDB ++# stubs are NOT present. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT { ++ # ActiveIf constraint: CYGSEM_HAL_USE_ROM_MONITOR || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGSEM_HAL_USE_ROM_MONITOR == 0 ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++ # ActiveIf constraint: CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 ++ # CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 0 ++ # Requires: !CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT == 1 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++}; ++ ++# Include GDB multi-threading debug support ++# This option enables some extra HAL code which is needed ++# to support multi-threaded source level debugging. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT { ++ # ActiveIf constraint: CYGSEM_HAL_ROM_MONITOR || CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT ++ # CYGSEM_HAL_ROM_MONITOR == 1 ++ # CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT (unknown) == 0 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # option CYGBLD_BUILD_REDBOOT_WITH_THREADS ++ # Requires: CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++}; ++ ++# Number of times to retry sending a $O packet ++# This option controls the number of attempts that eCos programs ++# will make to send a $O packet to a host GDB process. If it is ++# set non-zero, then the target process will attempt to resend the ++# $O packet data up to this number of retries. Caution: use of ++# this option is not recommended as it can thoroughly confuse the ++# host GDB process. ++# ++cdl_option CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Timeout period for GDB packets ++# This option controls the time (in milliseconds) that eCos programs ++# will wait for a response when sending packets to a host GDB process. ++# If this time elapses, then the packet will be resent, up to some ++# maximum number of times (CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES). ++# ++cdl_option CYGNUM_HAL_DEBUG_GDB_PROTOCOL_TIMEOUT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 500 ++ # value_source default ++ # Default value: 500 ++}; ++ ++# Location of CRC32 table ++# The stubs use a 1 kilobyte CRC table that can either be pregenerated ++# and placed in ROM, or generated at runtime in RAM. Depending on ++# your memory constraints, one of these options may be better. ++# ++cdl_option CYGDBG_HAL_CRCTABLE_LOCATION { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value RAM ++ # value_source default ++ # Default value: RAM ++ # Legal values: "ROM" "RAM" ++}; ++ ++# Enable initial breakpoint ++# This option causes an application that has GDB stubs built in ++# to take a breakpoint immediately before calling cyg_start(). ++# This gives the developer a chance to set any breakpoints or ++# inspect the system state before it proceeds. ++# ++cdl_option CYGDBG_HAL_DEBUG_GDB_INITIAL_BREAK { ++ # ActiveIf constraint: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: !CYGPKG_REDBOOT ++ # CYGPKG_REDBOOT == current ++ # --> 0 ++}; ++ ++# < ++# ROM monitor support ++# Support for ROM monitors can be built in to your application. ++# It may also be relevant to build your application as a ROM monitor ++# itself. Such options are contained here if relevant for your chosen ++# platform. The options and ROM monitors available to choose are ++# platform-dependent. ++# ++cdl_component CYGPKG_HAL_ROM_MONITOR { ++ # There is no associated value. ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# Target has virtual vector support ++# ++cdl_interface CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT { ++ # Implemented by CYGPKG_HAL_I386_PC, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT ++ # ActiveIf: CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT ++}; ++ ++# Target supports baud rate control via vectors ++# Whether this target supports the __COMMCTL_GETBAUD ++# and __COMMCTL_SETBAUD virtual vector comm control operations. ++# ++cdl_interface CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_REDBOOT_VARIABLE_BAUD_RATE ++ # ActiveIf: CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT ++}; ++ ++# Enable use of virtual vector calling interface ++# Virtual vector support allows the HAL to let the ROM ++# monitor handle certain operations. The virtual vector table ++# defines a calling interface between applications running in ++# RAM and the ROM monitor. ++# ++cdl_component CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT { ++ # ActiveIf constraint: CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT ++ # CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT == 1 ++ # --> 1 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT ++}; ++ ++# > ++# Inherit console settings from ROM monitor ++# When this option is set, the application will inherit ++# the console as set up by the ROM monitor. This means ++# that the application will use whatever channel and ++# mangling style was used by the ROM monitor when ++# the application was launched. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE { ++ # This option is not active ++ # ActiveIf constraint: CYGSEM_HAL_USE_ROM_MONITOR ++ # CYGSEM_HAL_USE_ROM_MONITOR == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: !CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS == 1 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # ActiveIf: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE ++ # option CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE ++ # Calculated: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE && !CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++}; ++ ++# Debug channel is configurable ++# This option is a configuration hint - it is enabled ++# when the HAL initialization code will make use ++# of the debug channel configuration option. ++# ++cdl_option CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE { ++ # Calculated value: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS == 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# Console channel is configurable ++# This option is a configuration hint - it is enabled ++# when the HAL initialization code will make use ++# of the console channel configuration option. ++# ++cdl_option CYGPRI_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_CONFIGURABLE { ++ # Calculated value: !CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE && !CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE == 0 ++ # CYGDBG_HAL_DIAG_TO_DEBUG_CHAN == 1 ++ # Flavor: bool ++ # Current value: 0 ++}; ++ ++# Initialize whole of virtual vector table ++# This option will cause the whole of the virtual ++# vector table to be initialized with dummy values on ++# startup. When this option is enabled, all the ++# options below must also be enabled - or the ++# table would be empty when the application ++# launches. ++# On targets where older ROM monitors without ++# virtual vector support may still be in use, it is ++# necessary for RAM applictions to initialize the ++# table (since all HAL diagnostics and debug IO ++# happens via the table). ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: CYG_HAL_STARTUP != "RAM" || !CYGSEM_HAL_USE_ROM_MONITOR ++ # CYG_HAL_STARTUP == GRUB ++ # CYGSEM_HAL_USE_ROM_MONITOR == 0 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET == 1 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US == 1 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE == 1 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA == 1 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # ActiveIf: !CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_VERSION ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++}; ++ ++# Claim virtual vector table entries by default ++# By default most virtual vectors will be claimed by ++# RAM startup configurations, meaning that the RAM ++# application will provide the services. The ++# exception is COMMS support (HAL ++# diagnostics/debugging IO) which is left in the ++# control of the ROM monitor. ++# The reasoning behind this is to get as much of the ++# code exercised during regular development so it ++# is known to be working the few times a new ROM ++# monitor or a ROM production configuration is used ++# - COMMS are excluded only by necessity in order to ++# avoid breaking an existing debugger connections ++# (there may be ways around this). ++# For production RAM configurations this option can ++# be switched off, causing the appliction to rely on ++# the ROM monitor for these services, thus ++# saving some space. ++# Individual vectors may also be left unclaimed, ++# controlled by the below options (meaning that the ++# associated service provided by the ROM monitor ++# will be used). ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT { ++ # This option is not active ++ # ActiveIf constraint: !CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 1 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA ++ # DefaultValue: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++}; ++ ++# Claim reset virtual vectors ++# This option will cause the reset and kill_by_reset ++# virtual vectors to be claimed. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 1 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_RESET ++}; ++ ++# Claim version virtual vectors ++# This option will cause the version ++# virtual vectors to be claimed. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_VERSION { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 1 ++ # --> 1 ++}; ++ ++# Claim delay_us virtual vector ++# This option will cause the delay_us ++# virtual vector to be claimed. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 1 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DELAY_US ++}; ++ ++# Claim cache virtual vectors ++# This option will cause the cache virtual vectors ++# to be claimed. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 1 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_CACHE ++}; ++ ++# Claim data virtual vectors ++# This option will cause the data virtual vectors ++# to be claimed. At present there is only one, used ++# by the RedBoot ethernet driver to share diag output. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 1 ++ # CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DEFAULT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_DATA ++}; ++ ++# Claim comms virtual vectors ++# This option will cause the communication tables ++# that are part of the virtual vectors mechanism to ++# be claimed. Note that doing this may cause an ++# existing ROM monitor communication connection to ++# be closed. For this reason, the option is disabled ++# per default for normal application ++# configurations. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE == 1 ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: !CYGSEM_HAL_VIRTUAL_VECTOR_DIAG || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE ++ # DefaultValue: !CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # option CYGPRI_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_CONFIGURABLE ++ # Calculated: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++}; ++ ++# Do diagnostic IO via virtual vector table ++# All HAL IO happens via the virtual vector table / comm ++# tables when those tables are supported by the HAL. ++# If so desired, the low-level IO functions can ++# still be provided by the RAM application by ++# enabling the CLAIM_COMMS option. ++# ++cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_DIAG { ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # ActiveIf: CYGPKG_HAL_ARM || CYGPKG_HAL_POWERPC_MPC8xx || CYGPKG_HAL_V85X_V850 || CYGSEM_HAL_VIRTUAL_VECTOR_DIAG ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: !CYGSEM_HAL_VIRTUAL_VECTOR_DIAG || CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_COMMS ++}; ++ ++# < ++# Behave as a ROM monitor ++# Enable this option if this program is to be used as a ROM monitor, ++# i.e. applications will be loaded into RAM on the board, and this ++# ROM monitor may process exceptions or interrupts generated from the ++# application. This enables features such as utilizing a separate ++# interrupt stack when exceptions are generated. ++# ++cdl_option CYGSEM_HAL_ROM_MONITOR { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "GRUB" ++ # CYG_HAL_STARTUP == GRUB ++ # CYG_HAL_STARTUP == GRUB ++ # CYG_HAL_STARTUP == GRUB ++ # --> 1 ++ # Requires: !CYGHWR_HAL_I386_FPU_SWITCH_LAZY ++ # CYGHWR_HAL_I386_FPU_SWITCH_LAZY == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYGSEM_HAL_ROM_MONITOR ++ # option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # ActiveIf: CYGSEM_HAL_ROM_MONITOR || CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT ++ # option CYGPRI_REDBOOT_ROM_MONITOR ++ # Requires: CYGSEM_HAL_ROM_MONITOR ++}; ++ ++# Work with a ROM monitor ++# Support can be enabled for different varieties of ROM monitor. ++# This support changes various eCos semantics such as the encoding ++# of diagnostic output, or the overriding of hardware interrupt ++# vectors. ++# Firstly there is "Generic" support which prevents the HAL ++# from overriding the hardware vectors that it does not use, to ++# instead allow an installed ROM monitor to handle them. This is ++# the most basic support which is likely to be common to most ++# implementations of ROM monitor. ++# "GDB_stubs" provides support when GDB stubs are included in ++# the ROM monitor or boot ROM. ++# ++cdl_option CYGSEM_HAL_USE_ROM_MONITOR { ++ # Flavor: booldata ++ user_value 0 0 ++ # value_source user ++ # Default value: CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 ++ # CYG_HAL_STARTUP == GRUB ++ # --> 0 0 ++ # Legal values: "Generic" "GDB_stubs" ++ # Requires: CYG_HAL_STARTUP == "RAM" ++ # CYG_HAL_STARTUP == GRUB ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # Requires: ! CYGSEM_HAL_USE_ROM_MONITOR ++ # option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # ActiveIf: CYGSEM_HAL_USE_ROM_MONITOR || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE ++ # ActiveIf: CYGSEM_HAL_USE_ROM_MONITOR ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # DefaultValue: CYG_HAL_STARTUP != "RAM" || !CYGSEM_HAL_USE_ROM_MONITOR ++}; ++ ++# < ++# Platform defined I/O channels. ++# Platforms which provide additional I/O channels can implement ++# this interface, indicating that the function plf_if_init() ++# needs to be called. ++# ++cdl_interface CYGINT_HAL_PLF_IF_INIT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++}; ++ ++# Platform IDE I/O support. ++# Platforms which provide IDE controllers can implement ++# this interface, indicating that IDE I/O macros are ++# available. ++# ++cdl_interface CYGINT_HAL_PLF_IF_IDE { ++ # Implemented by CYGPKG_HAL_I386_PCMB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGSEM_REDBOOT_DISK_IDE ++ # ActiveIf: CYGINT_HAL_PLF_IF_IDE != 0 ++}; ++ ++# File I/O operations via GDB ++# This option enables support for various file I/O ++# operations using the GDB remote protocol to communicate ++# with GDB. The operations are then performed on the ++# debugging host by proxy. These operations are only ++# currently available by using a system call interface ++# to RedBoot. This may change in the future. ++# ++cdl_option CYGPKG_HAL_GDB_FILEIO { ++ # ActiveIf constraint: CYGSEM_REDBOOT_BSP_SYSCALLS ++ # CYGSEM_REDBOOT_BSP_SYSCALLS == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++}; ++ ++# Build Compiler sanity checking tests ++# Enabling this option causes compiler tests to be built. ++# ++cdl_option CYGPKG_HAL_BUILD_COMPILER_TESTS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_HAL_TESTS ++ # Calculated: "tests/context tests/basic" ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES) ? " tests/cache" : "") ++ # . ((CYGPKG_HAL_BUILD_COMPILER_TESTS) ? " tests/cpp1 tests/vaargs" : "") ++ # . ((!CYGVAR_KERNEL_COUNTERS_CLOCK) ? " tests/intr" : "") ++}; ++ ++# Common HAL tests ++# This option specifies the set of tests for the common HAL. ++# ++cdl_component CYGPKG_HAL_TESTS { ++ # Calculated value: "tests/context tests/basic" ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES) ? " tests/cache" : "") ++ # . ((CYGPKG_HAL_BUILD_COMPILER_TESTS) ? " tests/cpp1 tests/vaargs" : "") ++ # . ((!CYGVAR_KERNEL_COUNTERS_CLOCK) ? " tests/intr" : "") ++ # CYGINT_HAL_TESTS_NO_CACHES == 0 ++ # CYGPKG_HAL_BUILD_COMPILER_TESTS == 0 ++ # CYGVAR_KERNEL_COUNTERS_CLOCK (unknown) == 0 ++ # Flavor: data ++ # Current_value: tests/context tests/basic tests/cache tests/intr ++}; ++ ++# > ++# Interface for cache presence ++# Some architectures and/or platforms do not have caches. By ++# implementing this interface, these can disable the various ++# cache-related tests. ++# ++cdl_interface CYGINT_HAL_TESTS_NO_CACHES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_HAL_TESTS ++ # Calculated: "tests/context tests/basic" ++ # . ((!CYGINT_HAL_TESTS_NO_CACHES) ? " tests/cache" : "") ++ # . ((CYGPKG_HAL_BUILD_COMPILER_TESTS) ? " tests/cpp1 tests/vaargs" : "") ++ # . ((!CYGVAR_KERNEL_COUNTERS_CLOCK) ? " tests/intr" : "") ++}; ++ ++# < ++# i386 architecture ++# The i386 architecture HAL package provides generic ++# support for this processor architecture. It is also ++# necessary to select a specific target platform HAL ++# package. ++# ++cdl_package CYGPKG_HAL_I386 { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++}; ++ ++# > ++# SMP support ++# ++cdl_component CYGPKG_HAL_SMP_SUPPORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGHWR_HAL_I386_FPU_SWITCH_LAZY == 0 ++ # CYGHWR_HAL_I386_FPU_SWITCH_LAZY == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_HAL_I386_PCMB_SMP_SUPPORT ++ # ActiveIf: CYGPKG_HAL_SMP_SUPPORT ++ # component CYGPKG_HAL_I386_PCMB_SMP_SUPPORT ++ # Calculated: CYGPKG_HAL_SMP_SUPPORT ++}; ++ ++# > ++# Max number of CPUs supported ++# ++cdl_option CYGPKG_HAL_SMP_CPU_MAX { ++ # This option is not active ++ # The parent CYGPKG_HAL_SMP_SUPPORT is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 2 ++ # value_source default ++ # Default value: 2 ++}; ++ ++# < ++# Enable I386 FPU support ++# This component enables support for the ++# I386 floating point unit. ++# ++cdl_component CYGHWR_HAL_I386_FPU { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Use lazy FPU state switching ++# This option enables lazy FPU state switching. ++# The default behaviour for eCos is to save and ++# restore FPU state on every thread switch, interrupt ++# and exception. While simple and deterministic, this ++# approach can be expensive if the FPU is not used by ++# all threads. The alternative, enabled by this option, ++# is to use hardware features that allow the FPU state ++# of a thread to be left in the FPU after it has been ++# descheduled, and to allow the state to be switched to ++# a new thread only if it actually uses the FPU. Where ++# only one or two threads use the FPU this can avoid a ++# lot of unnecessary state switching. ++# ++cdl_option CYGHWR_HAL_I386_FPU_SWITCH_LAZY { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_HAL_SMP_SUPPORT ++ # Requires: CYGHWR_HAL_I386_FPU_SWITCH_LAZY == 0 ++ # option CYGSEM_HAL_ROM_MONITOR ++ # Requires: !CYGHWR_HAL_I386_FPU_SWITCH_LAZY ++}; ++ ++# < ++# Enable Pentium class CPU features ++# This component enables support for various ++# features of Pentium class CPUs. ++# ++cdl_component CYGHWR_HAL_I386_PENTIUM { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Save/Restore SSE registers on context switch ++# This option enables SSE state switching. The default ++# behaviour for eCos is to ignore the SSE registers. ++# Enabling this option adds SSE state information to ++# every thread context. ++# ++cdl_option CYGHWR_HAL_I386_PENTIUM_SSE { ++ # This option is not active ++ # The parent CYGHWR_HAL_I386_PENTIUM is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Support extra Pentium registers in GDB stub ++# This option enables support for extra Pentium registers ++# in the GDB stub. These are registers such as CR0-CR4, and ++# all MSRs. Not all GDBs support these registers, so the ++# default behaviour for eCos is to not include them in the ++# GDB stub support code. ++# ++cdl_option CYGHWR_HAL_I386_PENTIUM_GDB_REGS { ++ # This option is not active ++ # The parent CYGHWR_HAL_I386_PENTIUM is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Linker script ++# ++cdl_option CYGBLD_LINKER_SCRIPT { ++ # Calculated value: "src/i386.ld" ++ # Flavor: data ++ # Current_value: src/i386.ld ++}; ++ ++# Implementations of hal_i386_mem_real_region_top() ++# ++cdl_interface CYGINT_HAL_I386_MEM_REAL_REGION_TOP { ++ # Implemented by CYGPKG_HAL_I386_PCMB, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++}; ++ ++# i386 generic target ++# This package provides support for generic IA32 CPU variants. ++# Any CPU from an 80386 to the latest Pentium/Athlon should work ++# with this variant HAL. Essentially this variant is empty, it ++# just avoids providing any configuration to the generic architecture ++# support in the architecture HAL. ++# ++cdl_package CYGPKG_HAL_I386_GENERIC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++}; ++ ++# i386 PC Target ++# The i386 PC Target HAL package provides the ++# support needed to run eCos binaries on an i386 PC. ++# ++cdl_package CYGPKG_HAL_I386_PC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_DEVS_ETH_I386_PC_RLTK8139 ++ # ActiveIf: CYGPKG_HAL_I386_PC ++ # package CYGPKG_DEVICES_WALLCLOCK_I386_PC ++ # ActiveIf: CYGPKG_HAL_I386_PC ++}; ++ ++# > ++# Startup type ++# It is possible to configure eCos for the PC target to build for: ++# RAM startup (generally when being run under an existing ++# Monitor program like RedBoot); FLOPPY startup (for writing ++# to a floppy disk, which can then be used for booting ++# on PCs with a standard BIOS), GRUB startup (for being booted ++# by the GRUB bootloader) ROM startup (for writing ++# straight to a boot ROM/Flash). ROM startup is experimental ++# at this time. ++# ++cdl_component CYG_HAL_STARTUP { ++ # Flavor: data ++ user_value GRUB ++ # value_source user ++ # Default value: RAM ++ # Legal values: "RAM" "FLOPPY" "ROM" "GRUB" ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_I386_ROMBOOT ++ # Calculated: CYG_HAL_STARTUP == "ROM" ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGBLD_BUILD_GDB_STUBS ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGHWR_HAL_I386_PC_LOAD_HIGH ++ # Requires: CYG_HAL_STARTUP == "RAM" ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? "i386_pc_grub" : "i386_pc_floppy" ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? "i386_pc_grub" : "i386_pc_floppy" ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? "i386_pc_grub" : "i386_pc_floppy" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # option CYGSEM_HAL_ROM_MONITOR ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGSEM_HAL_ROM_MONITOR ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGSEM_HAL_ROM_MONITOR ++ # Requires: CYG_HAL_STARTUP == "FLOPPY" || CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "GRUB" ++ # option CYGSEM_HAL_USE_ROM_MONITOR ++ # DefaultValue: CYG_HAL_STARTUP == "RAM" ? "GDB_stubs" : 0 ++ # option CYGSEM_HAL_USE_ROM_MONITOR ++ # Requires: CYG_HAL_STARTUP == "RAM" ++ # option CYGBLD_BUILD_REDBOOT_BIN_FLOPPY ++ # ActiveIf: CYG_HAL_STARTUP == "FLOPPY" ++ # option CYGBLD_BUILD_REDBOOT_BIN_ROM ++ # ActiveIf: CYG_HAL_STARTUP == "ROM" ++ # option CYGSEM_HAL_INSTALL_MMU_TABLES ++ # DefaultValue: CYG_HAL_STARTUP != "RAM" ++ # component CYGDBG_HAL_DIAG_TO_DEBUG_CHAN ++ # DefaultValue: (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS || CYG_HAL_STARTUP == "RAM") ? 1 : 0 ++ # option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE ++ # DefaultValue: CYG_HAL_STARTUP != "RAM" || !CYGSEM_HAL_USE_ROM_MONITOR ++ # option CYGBLD_BUILD_REDBOOT_WITH_THREADS ++ # ActiveIf: CYG_HAL_STARTUP != "RAM" ++ # option CYGPRI_REDBOOT_ROM_MONITOR ++ # ActiveIf: CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" ++ # option CYGPRI_REDBOOT_ROM_MONITOR ++ # ActiveIf: CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" ++}; ++ ++# Build ROM bootstrap code ++# ++cdl_option CYGBLD_BUILD_I386_ROMBOOT { ++ # Calculated value: CYG_HAL_STARTUP == "ROM" ++ # CYG_HAL_STARTUP == GRUB ++ # Flavor: bool ++ # Current value: 0 ++}; ++ ++# Diagnostic serial port baud rate ++# This option selects the baud rate used for the diagnostic port. ++# Note: this should match the value chosen for the GDB port if the ++# diagnostic and GDB port are the same. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 38400 ++ # value_source default ++ # Default value: 38400 ++ # Legal values: 9600 19200 38400 57600 115200 ++}; ++ ++# GDB serial port baud rate ++# This option controls the baud rate used for the GDB connection. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL_BAUD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 38400 ++ # value_source default ++ # Default value: 38400 ++ # Legal values: 9600 19200 38400 57600 115200 ++}; ++ ++# Number of communication channels on the board ++# This define the number of serial ports that will be used by the HAL. ++# Ports 0 and 1 equate to COM1 and COM2 and port 2 is the PC screen and ++# keyboard. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 3 ++ # value_source default ++ # Default value: CYGSEM_HAL_I386_PC_DIAG_SCREEN ? 3 : 2 ++ # CYGSEM_HAL_I386_PC_DIAG_SCREEN == 1 ++ # --> 3 ++ # Legal values: 1 to 3 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL ++ # LegalValues: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT ++ # LegalValues: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL ++ # LegalValues: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++}; ++ ++# Debug serial port ++# On PCs with two serial ports, this option ++# chooses which port will be used to connect to a host ++# running GDB. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS == 3 ++}; ++ ++# Default console channel. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS == 3 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL ++ # DefaultValue: CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT ++}; ++ ++# Diagnostic serial port ++# On PCs with two serial ports, this option ++# chooses which port will be used for diagnostic output. ++# Selecting port 2 will cause the PC screen to be used. ++# ++cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT ++ # CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT == 0 ++ # --> 0 ++ # Legal values: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1 ++ # CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS == 3 ++}; ++ ++# Output to PC screen ++# This option enables use of the PC screen and keyboard as a ++# third virtual serial device. ++# ++cdl_option CYGSEM_HAL_I386_PC_DIAG_SCREEN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS ++ # DefaultValue: CYGSEM_HAL_I386_PC_DIAG_SCREEN ? 3 : 2 ++ # option CYGNUM_HAL_I386_PC_STARTUP_VIDEO_MODE ++ # Requires: !CYGSEM_HAL_I386_PC_DIAG_SCREEN ++}; ++ ++# Load into higher memory (2MB) ++# This option enables building RAM applications ++# which have a start address outside of the area ++# used by redboot_GRUB. ++# ++cdl_option CYGHWR_HAL_I386_PC_LOAD_HIGH { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYG_HAL_STARTUP == "RAM" ++ # CYG_HAL_STARTUP == GRUB ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # component CYGHWR_MEMORY_LAYOUT ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? "i386_pc_grub" : "i386_pc_floppy" ++ # option CYGHWR_MEMORY_LAYOUT_LDI ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # option CYGHWR_MEMORY_LAYOUT_H ++ # Calculated: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++}; ++ ++# Memory layout ++# ++cdl_component CYGHWR_MEMORY_LAYOUT { ++ # Calculated value: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "i386_pc_ram_hi" : "i386_pc_ram") : CYG_HAL_STARTUP == "ROM" ? "i386_pc_rom" : CYG_HAL_STARTUP == "GRUB" ? "i386_pc_grub" : "i386_pc_floppy" ++ # CYG_HAL_STARTUP == GRUB ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 0 ++ # CYG_HAL_STARTUP == GRUB ++ # CYG_HAL_STARTUP == GRUB ++ # Flavor: data ++ # Current_value: i386_pc_grub ++}; ++ ++# > ++# Memory layout linker script fragment ++# ++cdl_option CYGHWR_MEMORY_LAYOUT_LDI { ++ # Calculated value: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # CYG_HAL_STARTUP == GRUB ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 0 ++ # CYG_HAL_STARTUP == GRUB ++ # CYG_HAL_STARTUP == GRUB ++ # Flavor: data ++ # Current_value: ++}; ++ ++# Memory layout header file ++# ++cdl_option CYGHWR_MEMORY_LAYOUT_H { ++ # Calculated value: CYG_HAL_STARTUP == "RAM" ? (CYGHWR_HAL_I386_PC_LOAD_HIGH ? "" : "") : CYG_HAL_STARTUP == "ROM" ? "" : CYG_HAL_STARTUP == "GRUB" ? "" : "" ++ # CYG_HAL_STARTUP == GRUB ++ # CYGHWR_HAL_I386_PC_LOAD_HIGH == 0 ++ # CYG_HAL_STARTUP == GRUB ++ # CYG_HAL_STARTUP == GRUB ++ # Flavor: data ++ # Current_value: ++}; ++ ++# < ++# < ++# i386 PC Motherboard Support ++# The i386 PC Motherboard HAL package provides the ++# support needed to run eCos binaries on an i386 PC ++# using a standard motherboard. This package provides ++# support for the standard PC devices: timers, interrupt ++# controller, serial ports, ASCII display, keyboard, PCI ++# bus etc. that are found on all PC compatible platforms. ++# It does not provide support for devices that may also be ++# found on modern motherboards, such as ethernet, sound and ++# video devices. These are supported by drivers elsewhere. ++# ++cdl_package CYGPKG_HAL_I386_PCMB { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_IO_SERIAL_I386_PC ++ # ActiveIf: CYGPKG_HAL_I386_PCMB ++}; ++ ++# > ++# Real-time clock constants. ++# The RTC period is based on the clock input ++# to the 8254, which is 1193180 Hz. ++# CYGNUM_HAL_RTC_PERIOD is set for 100 ticks ++# per second. ++# ++cdl_component CYGNUM_HAL_RTC_CONSTANTS { ++ # There is no associated value. ++}; ++ ++# > ++# Real-time clock numerator ++# ++cdl_option CYGNUM_HAL_RTC_NUMERATOR { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1000000000 ++ # value_source default ++ # Default value: 1000000000 ++}; ++ ++# Real-time clock denominator ++# ++cdl_option CYGNUM_HAL_RTC_DENOMINATOR { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 100 ++ # value_source default ++ # Default value: 100 ++}; ++ ++# Real-time clock period ++# ++cdl_option CYGNUM_HAL_RTC_PERIOD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 11932 ++ # value_source default ++ # Default value: 11932 ++}; ++ ++# < ++# How to discover the size of available RAM. ++# It is possible for the HAL to discover the ++# size of RAM In several ways. Currently this ++# can be done by querying the BIOS or by ++# hardcoding the values into the executable. ++# ++cdl_component CYGPKG_HAL_I386_PCMB_MEMSIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value BIOS ++ # value_source default ++ # Default value: BIOS ++ # Legal values: "BIOS" "HARDCODE" ++ ++ # The following properties are affected by this value ++ # option CYGNUM_HAL_I386_PCMB_MEMSIZE_BASE ++ # ActiveIf: CYGPKG_HAL_I386_PCMB_MEMSIZE == "HARDCODE" ++ # option CYGNUM_HAL_I386_PCMB_MEMSIZE_EXTENDED ++ # ActiveIf: CYGPKG_HAL_I386_PCMB_MEMSIZE == "HARDCODE" ++}; ++ ++# > ++# Amount of Base RAM available. ++# ++cdl_option CYGNUM_HAL_I386_PCMB_MEMSIZE_BASE { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_HAL_I386_PCMB_MEMSIZE == "HARDCODE" ++ # CYGPKG_HAL_I386_PCMB_MEMSIZE == BIOS ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x000F0000 ++ # value_source default ++ # Default value: 0x000F0000 ++}; ++ ++# Amount of Extended RAM available. ++# ++cdl_option CYGNUM_HAL_I386_PCMB_MEMSIZE_EXTENDED { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_HAL_I386_PCMB_MEMSIZE == "HARDCODE" ++ # CYGPKG_HAL_I386_PCMB_MEMSIZE == BIOS ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x00100000 ++ # value_source default ++ # Default value: 0x00100000 ++}; ++ ++# < ++# Search entire PCI space ++# This option enables searching the entire PCI address space, including ++# up to 256 busses, etc. Probably only useful when there are bridges or ++# other PCI expanding devices (such as a board with it's own PCI bus) ++# in the system. If disabled, the system will revert to the default ++# PCI space size (typically 8 busses). ++# ++cdl_option CYGSEM_HAL_I386_PC_LARGE_PCI_SPACE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Switch the display to an alternative video mode ++# This option can be used when building RedBoot to switch ++# the display to a suitable mode, typically before running ++# an eCos graphical application. The mode switch involves ++# calling the PC Video BIOS, so needs to happen while the ++# processor is still running in real mode. Some information ++# about the video BIOS, the current mode, and the available ++# modes will be written to video memory so that the eCos ++# application knows what happened. ++# Different graphics cards use different numbers for the ++# various modes, so there is no simple way of knowing which ++# mode should be specified to achieve the desired resolution. ++# Instead RedBoot can be built with a suitable default, for ++# example 0x0100, and then a simple eCos application can be ++# built using an appropriate eCos configuration and ++# run to find out about all the available mode. RedBoot can ++# then be reconfigured and rebuilt to use a suitable mode. ++# The PC motherboard support package comes with a simple ++# eCos program gfxmode.c which can be used for this. ++# ++cdl_option CYGNUM_HAL_I386_PC_STARTUP_VIDEO_MODE { ++ # ActiveIf constraint: CYGPKG_REDBOOT ++ # CYGPKG_REDBOOT == current ++ # --> 1 ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++ # Requires: !CYGSEM_HAL_I386_PC_DIAG_SCREEN ++ # CYGSEM_HAL_I386_PC_DIAG_SCREEN == 1 ++ # --> 0 ++}; ++ ++# ++cdl_component CYGPKG_HAL_I386_PCMB_SMP_SUPPORT { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_HAL_SMP_SUPPORT ++ # CYGPKG_HAL_SMP_SUPPORT == 0 ++ # --> 0 ++ ++ # Calculated value: CYGPKG_HAL_SMP_SUPPORT ++ # CYGPKG_HAL_SMP_SUPPORT == 0 ++ # Flavor: bool ++ # Current value: 0 ++}; ++ ++# Enable PC screen support ++# This option enables support for the PC screen and ++# keyboard. These are combined into a virtual serial ++# device that may be used for diagnostic output. ++# Note that there is little point in trying to use it ++# as a debug channel. ++# ++cdl_interface CYGINT_HAL_I386_PCMB_SCREEN_SUPPORT { ++ # Implemented by CYGSEM_HAL_I386_PC_DIAG_SCREEN, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGHWR_REDBOOT_I386_TRAMPOLINE_ADDRESS ++ # Requires: CYGINT_HAL_I386_PCMB_SCREEN_SUPPORT ++}; ++ ++# < ++# < ++# < ++# Infrastructure ++# Common types and useful macros. ++# Tracing and assertion facilities. ++# Package startup options. ++# ++cdl_package CYGPKG_INFRA { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_HAL ++ # Requires: CYGPKG_INFRA ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: CYGPKG_INFRA ++}; ++ ++# > ++# Asserts & Tracing ++# The eCos source code contains a significant amount of ++# internal debugging support, in the form of assertions and ++# tracing. ++# Assertions check at runtime that various conditions are as ++# expected; if not, execution is halted. ++# Tracing takes the form of text messages that are output ++# whenever certain events occur, or whenever functions are ++# called or return. ++# The most important property of these checks and messages is ++# that they are not required for the program to run. ++# It is prudent to develop software with assertions enabled, ++# but disable them when making a product release, thus ++# removing the overhead of that checking. ++# It is possible to enable assertions and tracing ++# independently. ++# There are also options controlling the exact behaviour of ++# the assertion and tracing facilities, thus giving users ++# finer control over the code and data size requirements. ++# ++cdl_component CYGPKG_INFRA_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Use asserts ++# If this option is defined, asserts in the code are tested. ++# Assert functions (CYG_ASSERT()) are defined in ++# 'include/cyg/infra/cyg_ass.h' within the 'install' tree. ++# If it is not defined, these result in no additional ++# object code and no checking of the asserted conditions. ++# ++cdl_component CYGDBG_USE_ASSERTS { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL ++ # CYGINT_INFRA_DEBUG_TRACE_IMPL == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_MEMALLOC_ALLOCATOR_DLMALLOC_DEBUG ++ # Requires: CYGDBG_USE_ASSERTS ++ # option CYGDBG_MEMALLOC_ALLOCATOR_DLMALLOC_DEBUG ++ # DefaultValue: 0 != CYGDBG_USE_ASSERTS ++}; ++ ++# > ++# Preconditions ++# This option allows individual control of preconditions. ++# A precondition is one type of assert, which it is ++# useful to control separately from more general asserts. ++# The function is CYG_PRECONDITION(condition,msg). ++# ++cdl_option CYGDBG_INFRA_DEBUG_PRECONDITIONS { ++ # This option is not active ++ # The parent CYGDBG_USE_ASSERTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Postconditions ++# This option allows individual control of postconditions. ++# A postcondition is one type of assert, which it is ++# useful to control separately from more general asserts. ++# The function is CYG_POSTCONDITION(condition,msg). ++# ++cdl_option CYGDBG_INFRA_DEBUG_POSTCONDITIONS { ++ # This option is not active ++ # The parent CYGDBG_USE_ASSERTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Loop invariants ++# This option allows individual control of loop invariants. ++# A loop invariant is one type of assert, which it is ++# useful to control separately from more general asserts, ++# particularly since a loop invariant is typically evaluated ++# a great many times when used correctly. ++# The function is CYG_LOOP_INVARIANT(condition,msg). ++# ++cdl_option CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS { ++ # This option is not active ++ # The parent CYGDBG_USE_ASSERTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Use assert text ++# All assertions within eCos contain a text message ++# which should give some information about the condition ++# being tested. ++# These text messages will end up being embedded in the ++# application image and hence there is a significant penalty ++# in terms of image size. ++# It is possible to suppress the use of these messages by ++# disabling this option. ++# This results in smaller code size, but there is less ++# human-readable information if an assertion actually gets ++# triggered. ++# ++cdl_option CYGDBG_INFRA_DEBUG_ASSERT_MESSAGE { ++ # This option is not active ++ # The parent CYGDBG_USE_ASSERTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Use tracing ++# If this option is defined, tracing operations ++# result in output or logging, depending on other options. ++# This may have adverse effects on performance, if the time ++# taken to output message overwhelms the available CPU ++# power or output bandwidth. ++# Trace functions (CYG_TRACE()) are defined in ++# 'include/cyg/infra/cyg_trac.h' within the 'install' tree. ++# If it is not defined, these result in no additional ++# object code and no trace information. ++# ++cdl_component CYGDBG_USE_TRACING { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL ++ # CYGINT_INFRA_DEBUG_TRACE_IMPL == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_WRAP ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_HALT ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT ++ # ActiveIf: CYGDBG_USE_TRACING ++ # option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT_ON_ASSERT ++ # ActiveIf: CYGDBG_USE_TRACING ++}; ++ ++# > ++# Trace function reports ++# This option allows individual control of ++# function entry/exit tracing, independent of ++# more general tracing output. ++# This may be useful to remove clutter from a ++# trace log. ++# ++cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS { ++ # This option is not active ++ # The parent CYGDBG_USE_TRACING is not active ++ # The parent CYGDBG_USE_TRACING is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Use trace text ++# All trace calls within eCos contain a text message ++# which should give some information about the circumstances. ++# These text messages will end up being embedded in the ++# application image and hence there is a significant penalty ++# in terms of image size. ++# It is possible to suppress the use of these messages by ++# disabling this option. ++# This results in smaller code size, but there is less ++# human-readable information available in the trace output, ++# possibly only filenames and line numbers. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_MESSAGE { ++ # This option is not active ++ # The parent CYGDBG_USE_TRACING is not active ++ # The parent CYGDBG_USE_TRACING is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Trace output implementations ++# ++cdl_interface CYGINT_INFRA_DEBUG_TRACE_IMPL { ++ # Implemented by CYGDBG_INFRA_DEBUG_TRACE_ASSERT_NULL, inactive, disabled ++ # Implemented by CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE, inactive, disabled ++ # Implemented by CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY, inactive, disabled ++ # Implemented by CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER, inactive, enabled ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # component CYGDBG_USE_ASSERTS ++ # Requires: 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL ++ # component CYGDBG_USE_TRACING ++ # Requires: 1 == CYGINT_INFRA_DEBUG_TRACE_IMPL ++}; ++ ++# Null output ++# A null output module which is useful when ++# debugging interactively; the output routines ++# can be breakpointed rather than have them actually ++# 'print' something. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_NULL { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Simple output ++# An output module which produces simple output ++# from tracing and assertion events. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_SIMPLE { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Fancy output ++# An output module which produces fancy output ++# from tracing and assertion events. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_ASSERT_FANCY { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Buffered tracing ++# An output module which buffers output ++# from tracing and assertion events. The stored ++# messages are output when an assert fires, or ++# CYG_TRACE_PRINT() (defined in ) ++# is called. ++# Of course, there will only be stored messages ++# if tracing per se (CYGDBG_USE_TRACING) ++# is enabled above. ++# ++cdl_component CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Trace buffer size ++# The size of the trace buffer. This counts the number ++# of trace records stored. When the buffer fills it ++# either wraps, stops recording, or generates output. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 32 ++ # value_source default ++ # Default value: 32 ++ # Legal values: 5 to 65535 ++}; ++ ++# Wrap trace buffer when full ++# When the trace buffer has filled with records it ++# starts again at the beginning. Hence only the last ++# CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages will ++# be recorded. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_WRAP { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Halt trace buffer when full ++# When the trace buffer has filled with records it ++# stops recording. Hence only the first ++# CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE messages will ++# be recorded. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_HALT { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Print trace buffer when full ++# When the trace buffer has filled with records it ++# prints the contents of the buffer. The buffer is then ++# emptied and the system continues. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Print trace buffer on assert fail ++# When an assertion fails the trace buffer will be ++# printed to the default diagnostic device. ++# ++cdl_option CYGDBG_INFRA_DEBUG_TRACE_BUFFER_PRINT_ON_ASSERT { ++ # This option is not active ++ # The parent CYGDBG_INFRA_DEBUG_TRACE_ASSERT_BUFFER is not active ++ # ActiveIf constraint: CYGDBG_USE_TRACING ++ # CYGDBG_USE_TRACING == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Use function names ++# All trace and assert calls within eCos contain a ++# reference to the builtin macro '__PRETTY_FUNCTION__', ++# which evaluates to a string containing ++# the name of the current function. ++# This is useful when reading a trace log. ++# It is possible to suppress the use of the function name ++# by disabling this option. ++# This results in smaller code size, but there is less ++# human-readable information available in the trace output, ++# possibly only filenames and line numbers. ++# ++cdl_option CYGDBG_INFRA_DEBUG_FUNCTION_PSEUDOMACRO { ++ # This option is not active ++ # The parent CYGPKG_INFRA_DEBUG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Startup options ++# Some packages require a startup routine to be called. ++# This can be carried out by application code, by supplying ++# a routine called cyg_package_start() which calls the ++# appropriate package startup routine(s). ++# Alternatively, this routine can be constructed automatically ++# and configured to call the startup routines of your choice. ++# ++cdl_component CYGPKG_INFRA_STARTUP { ++ # There is no associated value. ++}; ++ ++# > ++# Start uITRON subsystem ++# Generate a call to initialize the ++# uITRON compatibility subsystem ++# within the system version of cyg_package_start(). ++# This enables compatibility with uITRON. ++# You must configure uITRON with the correct tasks before ++# starting the uItron subsystem. ++# If this is disabled, and you want to use uITRON, ++# you must call cyg_uitron_start() from your own ++# cyg_package_start() or cyg_userstart(). ++# ++cdl_option CYGSEM_START_UITRON_COMPATIBILITY { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_UITRON ++ # CYGPKG_UITRON (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGPKG_UITRON ++ # CYGPKG_UITRON (unknown) == 0 ++ # --> 0 ++}; ++ ++# < ++# Smaller slower memcpy() ++# Enabling this option causes the implementation of ++# the standard memcpy() routine to reduce code ++# size at the expense of execution speed. This ++# option is automatically enabled with the use of ++# the -Os option to the compiler. Also note that ++# the compiler will try to use its own builtin ++# version of memcpy() if possible, ignoring the ++# implementation in this package, unless given ++# the -fno-builtin compiler option. ++# ++cdl_option CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMCPY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Smaller slower memset() ++# Enabling this option causes the implementation of ++# the standard memset() routine to reduce code ++# size at the expense of execution speed. This ++# option is automatically enabled with the use of ++# the -Os option to the compiler. Also note that ++# the compiler will try to use its own builtin ++# version of memset() if possible, ignoring the ++# implementation in this package, unless given ++# the -fno-builtin compiler option. ++# ++cdl_option CYGIMP_INFRA_PREFER_SMALL_TO_FAST_MEMSET { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Provide empty C++ delete functions ++# To deal with virtual destructors, where the correct delete() ++# function must be called for the derived class in question, the ++# underlying delete is called when needed, from destructors. This ++# is regardless of whether the destructor is called by delete itself. ++# So there is a reference to delete() from all destructors. The ++# default builtin delete() attempts to call free() if there is ++# one defined. So, if you have destructors, and you have free(), ++# as in malloc() and free(), any destructor counts as a reference ++# to free(). So the dynamic memory allocation code is linked ++# in regardless of whether it gets explicitly called. This ++# increases code and data size needlessly. ++# To defeat this undesirable behaviour, we define empty versions ++# of delete and delete. But doing this prevents proper use ++# of dynamic memory in C++ programs via C++'s new and delete ++# operators. ++# Therefore, this option is provided ++# for explicitly disabling the provision of these empty functions, ++# so that new and delete can be used, if that is what is required. ++# ++cdl_option CYGFUN_INFRA_EMPTY_DELETE_FUNCTIONS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Provide dummy abort() function ++# This option controls the inclusion of a dummy abort() function. ++# Parts of the C and C++ compiler runtime systems contain references ++# to abort(), particulary in the C++ exception handling code. It is ++# not possible to eliminate these references, so this dummy function ++# in included to satisfy them. It is not expected that this function ++# will ever be called, so its current behaviour is to simply loop. ++# ++cdl_option CYGFUN_INFRA_DUMMY_ABORT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGINT_ISO_EXIT == 0 ++ # CYGINT_ISO_EXIT == 0 ++ # --> 1 ++ # Requires: !CYGINT_ISO_EXIT ++ # CYGINT_ISO_EXIT == 0 ++ # --> 1 ++}; ++ ++# Reset platform at end of test case execution ++# If this option is set then test case programs will reset the platform ++# when they terminate, as opposed to the default which is to just hang ++# in a loop. ++# ++cdl_option CYGSEM_INFRA_RESET_ON_TEST_EXIT { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Provide dummy strlen() function ++# This option controls the inclusion of a dummy strlen() function. ++# Parts of the C and C++ compiler runtime systems contain references ++# to strlen(), particulary in the C++ exception handling code. It is ++# not possible to eliminate these references, so this dummy function ++# in included to satisfy them. While it is not expected that this function ++# will ever be called, it is functional but uses the simplest, smallest ++# algorithm. There is a faster version of strlen() in the C library. ++# ++cdl_option CYGFUN_INFRA_DUMMY_STRLEN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGINT_ISO_STRING_STRFUNCS == 0 ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 0 ++ # Requires: !CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 0 ++}; ++ ++# Make all compiler warnings show as errors ++# Enabling this option will cause all compiler warnings to show ++# as errors and bring the library build to a halt. This is used ++# to ensure that the code base is warning free, and thus ensure ++# that newly introduced warnings stand out and get fixed before ++# they show up as weird run-time behavior. ++# ++cdl_option CYGBLD_INFRA_CFLAGS_WARNINGS_AS_ERRORS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: is_substr(CYGBLD_GLOBAL_CFLAGS, " -Werror") ++ # CYGBLD_GLOBAL_CFLAGS == "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" ++ # --> 0 ++}; ++ ++# Make compiler and assembler communicate by pipe ++# Enabling this option will cause the compiler to feed the ++# assembly output the the assembler via a pipe instead of ++# via a temporary file. This normally reduces the build ++# time. ++# ++cdl_option CYGBLD_INFRA_CFLAGS_PIPE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: is_substr(CYGBLD_GLOBAL_CFLAGS, " -pipe") ++ # CYGBLD_GLOBAL_CFLAGS == "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" ++ # --> 0 ++}; ++ ++# Infra build options ++# Package specific build options including control over ++# compiler flags used only in building this package. ++# ++cdl_component CYGPKG_INFRA_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the eCos infra package. These flags are used ++# in addition to the set of global flags. ++# ++cdl_option CYGPKG_INFRA_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the eCos infra package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_INFRA_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed linker flags ++# This option modifies the set of linker flags for ++# building the eCos infra package tests. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_INFRA_LDFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -Wl,--gc-sections ++ # value_source default ++ # Default value: -Wl,--gc-sections ++}; ++ ++# Additional linker flags ++# This option modifies the set of linker flags for ++# building the eCos infra package tests. These flags are added to ++# the set of global flags if present. ++# ++cdl_option CYGPKG_INFRA_LDFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -Wl,--fatal-warnings ++ # value_source default ++ # Default value: -Wl,--fatal-warnings ++}; ++ ++# Infra package tests ++# ++cdl_component CYGPKG_INFRA_TESTS { ++ # Calculated value: "tests/cxxsupp tests/diag_sprintf1 tests/diag_sprintf2" ++ # Flavor: data ++ # Current_value: tests/cxxsupp tests/diag_sprintf1 tests/diag_sprintf2 ++}; ++ ++# > ++# Number of times a test runs ++# This option controls the number of times tests will execute their ++# basic function. Not all tests will honor this setting, but those ++# that do will execute the test N times before terminating. A value ++# less than 0 indicates to run forever. ++# ++cdl_option CYGNUM_TESTS_RUN_COUNT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# < ++# < ++# Redboot ROM monitor ++# doc: ref/redboot.html ++# This package supports the Redboot [stand-alone debug monitor] ++# using eCos as the underlying board support mechanism. ++# ++cdl_package CYGPKG_REDBOOT { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK == 0 ++ # CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGDBG_HAL_DEBUG_GDB_INITIAL_BREAK ++ # DefaultValue: !CYGPKG_REDBOOT ++ # component CYGPKG_REDBOOT_HAL_OPTIONS ++ # ActiveIf: CYGPKG_REDBOOT ++ # option CYGNUM_HAL_I386_PC_STARTUP_VIDEO_MODE ++ # ActiveIf: CYGPKG_REDBOOT ++ # option CYGNUM_DEVS_ETH_RLTK_8139_RX_BUF_LEN_IDX ++ # DefaultValue: CYGPKG_REDBOOT ? 0 : 2 ++ # option CYGSEM_IO_ETH_DRIVERS_WARN ++ # ActiveIf: CYGPKG_REDBOOT ++}; ++ ++# > ++# Include support for ELF file format ++# ++cdl_component CYGSEM_REDBOOT_ELF { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Use the virtual address in the ELF headers ++# The ELF headers contain both a virtual and a physical address ++# for where code/data should be loaded. By default the physical ++# address is used but sometimes it is necassary to use the ++# virtual address because of bugy toolchains ++# ++cdl_option CYGOPT_REDBOOT_ELF_VIRTUAL_ADDRESS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Methods of loading images using redboot ++# ++cdl_interface CYGINT_REDBOOT_LOAD_METHOD { ++ # Implemented by CYGBLD_BUILD_REDBOOT_WITH_XYZMODEM, active, enabled ++ # Implemented by CYGPKG_REDBOOT_NETWORKING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 2 ++ ++ # The following properties are affected by this value ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: CYGINT_REDBOOT_LOAD_METHOD ++}; ++ ++# Build Redboot ROM ELF image ++# This option enables the building of the Redboot ELF image. ++# The image may require further relocation or symbol ++# stripping before being converted to a binary image. ++# This is handled by a rule in the target CDL. ++# ++cdl_component CYGBLD_BUILD_REDBOOT { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++ # Requires: CYGPKG_INFRA ++ # CYGPKG_INFRA == current ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT == 0 ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT ++ # CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT == 0 ++ # --> 1 ++ # Requires: ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM ++ # CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM == 0 ++ # --> 1 ++ # Requires: CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT ++ # CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRING_MEMFUNCS ++ # CYGINT_ISO_STRING_MEMFUNCS == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++ # Requires: CYGINT_REDBOOT_LOAD_METHOD ++ # CYGINT_REDBOOT_LOAD_METHOD == 2 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_BUILD_REDBOOT_BIN_FLOPPY ++ # ActiveIf: CYGBLD_BUILD_REDBOOT ++ # option CYGBLD_BUILD_REDBOOT_BIN_ROM ++ # ActiveIf: CYGBLD_BUILD_REDBOOT ++}; ++ ++# > ++# Include GDB support in RedBoot ++# RedBoot normally includes support for the GDB debugging protocols. ++# This option allows this to be disabled which may yield a substantial ++# savings in terms of code and memory usage by RedBoot. ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_GDB { ++ # ActiveIf constraint: CYGINT_HAL_DEBUG_GDB_STUBS ++ # CYGINT_HAL_DEBUG_GDB_STUBS == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS ++ # CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1 ++ # --> 1 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT == 1 ++ # --> 1 ++}; ++ ++# Threads debugging support ++# Enabling this option will include special code in the GDB stubs to ++# support debugging of threaded programs. In the case of eCos programs, ++# this support allows GDB to have complete access to the eCos threads ++# in the program. ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_THREADS { ++ # ActiveIf constraint: CYG_HAL_STARTUP != "RAM" ++ # CYG_HAL_STARTUP == GRUB ++ # --> 1 ++ ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++ # Requires: CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT ++ # CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT == 1 ++ # --> 1 ++}; ++ ++# Customized version string ++# Use this option to define a customized version "string" for ++# RedBoot. Note: this value is only cosmetic, displayed by the ++# "version" command, but is useful for providing site specific ++# information about the RedBoot configuration. ++# ++cdl_option CYGDAT_REDBOOT_CUSTOM_VERSION { ++ # Flavor: booldata ++ user_value 1 FMTC ++ # value_source user ++ # Default value: 0 0 ++}; ++ ++# Enable command line editing ++# If this option is non-zero, RedBoot will remember the last N command ++# lines. These lines may be reused. Enabling this history will also ++# enable rudimentary editting of the lines themselves. ++# ++cdl_option CYGNUM_REDBOOT_CMD_LINE_EDITING { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16 ++ # value_source default ++ # Default value: 16 ++ ++ # The following properties are affected by this value ++ # option CYGBLD_REDBOOT_CMD_LINE_HISTORY ++ # Requires: CYGNUM_REDBOOT_CMD_LINE_EDITING > 0 ++}; ++ ++# Enable history command and expansion ++# Enabling this option will allow RedBoot to provide a history command ++# to list previous commands. Also enables history expansion via '!' ++# character similar to bash shell. ++# ++cdl_option CYGBLD_REDBOOT_CMD_LINE_HISTORY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGNUM_REDBOOT_CMD_LINE_EDITING > 0 ++ # CYGNUM_REDBOOT_CMD_LINE_EDITING == 16 ++ # --> 1 ++}; ++ ++# Number of unique RAM segments on platform ++# Change this option to be the number of memory segments which are ++# supported by the platform. If the value is greater than 1, then ++# a platform specific function must provide information about the ++# additional segments. ++# ++cdl_option CYGBLD_REDBOOT_MAX_MEM_SEGMENTS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Include support gzip/zlib decompression ++# ++cdl_component CYGBLD_BUILD_REDBOOT_WITH_ZLIB { ++ # ActiveIf constraint: CYGPKG_COMPRESS_ZLIB ++ # CYGPKG_COMPRESS_ZLIB == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGOPT_REDBOOT_FIS_ZLIB_COMMON_BUFFER ++ # ActiveIf: CYGBLD_BUILD_REDBOOT_WITH_ZLIB && CYGOPT_REDBOOT_FIS ++}; ++ ++# > ++# Implement a simple memory management system ++# If enabled, this option will tell Redboot to implement a simple memory ++# allocator that allows using zlib without inclusing the Dynamic ++# Memory Allocation Package. ++# ++cdl_option CYGBLD_REDBOOT_ZLIB_LOCAL_ALLOC { ++ # This option is not active ++ # ActiveIf constraint: !CYGPKG_MEMALLOC ++ # CYGPKG_MEMALLOC == current ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Size of zlib decompression buffer ++# This is the size of the buffer filled with incoming data ++# during load before calls are made to the decompressor ++# function. For ethernet downloads this can be made bigger ++# (at the cost of memory), but for serial downloads on slow ++# processors it may be necessary to reduce the size to ++# avoid serial overruns. zlib appears to bail out if less than ++# five bytes are available initially so this is the minimum. ++# ++cdl_option CYGNUM_REDBOOT_LOAD_ZLIB_BUFFER { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 64 ++ # value_source default ++ # Default value: 64 ++ # Legal values: 5 to 256 ++}; ++ ++# Support compression of Flash images ++# This CDL indicates whether flash images can ++# be decompressed from gzip/zlib format into RAM. ++# ++cdl_option CYGPRI_REDBOOT_ZLIB_FLASH { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_REDBOOT_FLASH ++ # CYGPKG_REDBOOT_FLASH == 0 ++ # --> 0 ++ # ActiveIf constraint: !CYGSEM_IO_FLASH_READ_INDIRECT ++ # CYGSEM_IO_FLASH_READ_INDIRECT (unknown) == 0 ++ # --> 1 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# < ++# Include support for xyzModem downloads ++# doc: ref/download-command.html ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_XYZMODEM { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Include POSIX checksum command ++# doc: ref/cksum-command.html ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_CKSUM { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Include memory fill command ++# doc: ref/mfill-command.html ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_MFILL { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Include memory compare command ++# doc: ref/mcmp-command.html ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_MCMP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Include memory copy command ++# doc: ref/mcopy-command.html ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_MCOPY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Include memory dump command ++# doc: ref/dump-command.html ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_DUMP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Include cache command ++# doc: ref/cache-command.html ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_CACHES { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Include exec command ++# doc: ref/exec-command.html ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_EXEC { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_REDBOOT_I386_LINUX_EXEC ++ # ActiveIf: CYGBLD_BUILD_REDBOOT_WITH_EXEC ++}; ++ ++# Include I/O Memory commands 'iopeek' and 'iopoke' ++# ++cdl_option CYGBLD_BUILD_REDBOOT_WITH_IOMEM { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Granularity of timer/ticks ++# This option controls the granularity of the timers. ++# Faster CPUs can afford higher granularity (lower values) ++# which should give higher network performance since the stack ++# is purely polled. ++# ++cdl_option CYGDBG_REDBOOT_TICK_GRANULARITY { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 250 ++ # value_source default ++ # Default value: 250 ++ # Legal values: 50 100 250 500 1000 ++}; ++ ++# Redboot Networking ++# This option includes networking support in RedBoot. ++# ++cdl_component CYGPKG_REDBOOT_NETWORKING { ++ # ActiveIf constraint: CYGPKG_IO_ETH_DRIVERS ++ # CYGPKG_IO_ETH_DRIVERS == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_IO_ETH_DRIVERS_PASS_PACKETS ++ # DefaultValue: 0 != CYGPKG_REDBOOT_NETWORKING ++}; ++ ++# > ++# Print net debug information ++# This option is overriden by the configuration stored in flash. ++# ++cdl_option CYGDBG_REDBOOT_NET_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Support TFTP for download ++# This option enables the use of the TFTP protocol for download ++# ++cdl_option CYGSEM_REDBOOT_NET_TFTP_DOWNLOAD { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Support HTTP for download ++# This option enables the use of the HTTP protocol for download ++# ++cdl_option CYGSEM_REDBOOT_NET_HTTP_DOWNLOAD { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Default IP address ++# This IP address is the default used by RedBoot if a BOOTP/DHCP ++# server does not respond. The numbers should be separated by ++# *commas*, and not dots. If an IP address is configured into ++# the Flash configuration, that will be used in preference. ++# ++cdl_component CYGDAT_REDBOOT_DEFAULT_IP_ADDR { ++ # Flavor: booldata ++ user_value 1 "192, 168, 246, 5" ++ # value_source user ++ # Default value: CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : "0, 0, 0, 0" ++ # CYGSEM_REDBOOT_FLASH_CONFIG == 0 ++ # --> 1 "0, 0, 0, 0" ++}; ++ ++# > ++# Do not try to use BOOTP ++# By default Redboot tries to use BOOTP to get an IP ++# address. If there's no BOOTP server on your network ++# use this option to avoid to wait until the ++# timeout. This option is overriden by the ++# configuration stored in flash. ++# ++cdl_option CYGSEM_REDBOOT_DEFAULT_NO_BOOTP { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++}; ++ ++# Default bootp server ++# This IP address is the default server ++# address used by RedBoot if a BOOTP/DHCP ++# server does not respond. The numbers should ++# be separated by *commas*, and not dots. If ++# an IP address is configured into the Flash ++# configuration, that will be used in ++# preference. ++# ++cdl_option CYGDAT_REDBOOT_DEFAULT_BOOTP_SERVER_IP_ADDR { ++ # Flavor: booldata ++ user_value 0 "0, 0, 0, 0" ++ # value_source user ++ # Default value: CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : "0, 0, 0, 0" ++ # CYGSEM_REDBOOT_FLASH_CONFIG == 0 ++ # --> 1 "0, 0, 0, 0" ++}; ++ ++# < ++# Use DHCP to get IP information ++# Use DHCP protocol to obtain pertinent IP addresses, such as ++# the client, server, gateway, etc. ++# ++cdl_component CYGSEM_REDBOOT_NETWORKING_DHCP { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY ++ # Requires: CYGSEM_REDBOOT_NETWORKING_DHCP ++}; ++ ++# Use a gateway for non-local IP traffic ++# Enabling this option will allow the RedBoot networking ++# stack to use a [single] gateway to reach a non-local ++# IP address. If disabled, RedBoot will only be able to ++# reach nodes on the same subnet. ++# ++cdl_component CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++ # Requires: CYGSEM_REDBOOT_NETWORKING_DHCP ++ # CYGSEM_REDBOOT_NETWORKING_DHCP == 0 ++ # --> 0 ++}; ++ ++# > ++# Default gateway IP address ++# This IP address is the default used by RedBoot if a BOOTP/DHCP ++# server does not respond. The numbers should be separated by ++# *commas*, and not dots. If an IP address is configured into ++# the Flash configuration, that will be used in preference. ++# ++cdl_component CYGDAT_REDBOOT_DEFAULT_GATEWAY_IP_ADDR { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY is disabled ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 "0, 0, 0, 0" ++ # value_source default ++ # Default value: CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : "0, 0, 0, 0" ++ # CYGSEM_REDBOOT_FLASH_CONFIG == 0 ++ # --> 1 "0, 0, 0, 0" ++}; ++ ++# Default IP address mask ++# This IP address mask is the default used by RedBoot if a BOOTP/DHCP ++# server does not respond. The numbers should be separated by ++# *commas*, and not dots. If an IP address is configured into ++# the Flash configuration, that will be used in preference. ++# ++cdl_component CYGDAT_REDBOOT_DEFAULT_IP_ADDR_MASK { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY is disabled ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 "255, 255, 255, 0" ++ # value_source default ++ # Default value: CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : "255, 255, 255, 0" ++ # CYGSEM_REDBOOT_FLASH_CONFIG == 0 ++ # --> 1 "255, 255, 255, 0" ++}; ++ ++# < ++# TCP port to listen for incoming connections ++# RedBoot will 'listen' on this port for incoming TCP connections. ++# This allows outside connections to be made to the platform, either ++# for GDB or RedBoot commands. ++# ++cdl_option CYGNUM_REDBOOT_NETWORKING_TCP_PORT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 9000 ++ # value_source default ++ # Default value: 9000 ++}; ++ ++# Number of [network] packet buffers ++# RedBoot may need to buffer network data to support various connections. ++# This option allows control over the number of such buffered packets, ++# and in turn, controls the amount of memory used by RedBoot (which ++# is not available to user applications). Each packet buffer takes up ++# about 1514 bytes. Note: there is little need to make this larger ++# than the default. ++# ++cdl_option CYGNUM_REDBOOT_NETWORKING_MAX_PKTBUF { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4 ++ # value_source default ++ # Default value: 4 ++ # Legal values: 3 to 8 ++}; ++ ++# DNS support ++# When this option is enabled, RedBoot will be built with ++# support for DNS, allowing use of hostnames on the command ++# line. ++# ++cdl_component CYGPKG_REDBOOT_NETWORKING_DNS { ++ # ActiveIf constraint: CYGPKG_NS_DNS ++ # CYGPKG_NS_DNS == current ++ # --> 1 ++ ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 1 ++ # Requires: !CYGPKG_NS_DNS_BUILD ++ # CYGPKG_NS_DNS_BUILD == 0 ++ # --> 1 ++}; ++ ++# > ++# Default DNS IP ++# This option sets the IP of the default DNS. The IP can be ++# changed at runtime as well. ++# ++cdl_option CYGPKG_REDBOOT_NETWORKING_DNS_IP { ++ # ActiveIf constraint: !CYGSEM_REDBOOT_FLASH_CONFIG ++ # CYGSEM_REDBOOT_FLASH_CONFIG == 0 ++ # --> 1 ++ ++ # Flavor: data ++ user_value 192.168.246.1 ++ # value_source user ++ # Default value: 0.0.0.0 ++}; ++ ++# Timeout in DNS lookup ++# This option sets the timeout used when looking up an ++# address via the DNS. Default is 10 seconds. ++# ++cdl_option CYGNUM_REDBOOT_NETWORKING_DNS_TIMEOUT { ++ # Flavor: data ++ user_value 10 ++ # value_source user ++ # Default value: 10 ++}; ++ ++# < ++# Default network device driver ++# This is the index of the first network device driver that ++# RedBoot will try to initialize. ++# ++cdl_option CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE { ++ # This option is not active ++ # ActiveIf constraint: !CYGSEM_REDBOOT_FLASH_CONFIG && CYGHWR_NET_DRIVERS > 1 ++ # CYGSEM_REDBOOT_FLASH_CONFIG == 0 ++ # CYGHWR_NET_DRIVERS == 1 ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Legal values: 0 to CYGHWR_NET_DRIVERS-1 ++ # CYGHWR_NET_DRIVERS == 1 ++}; ++ ++# Initialize only one net device ++# This option tells RedBoot to stop initializing network ++# devices when it finds the first device which is ++# successfully initialized. The default behavior causes ++# all network devices to be initialized. ++# ++cdl_option CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE { ++ # This option is not active ++ # ActiveIf constraint: CYGHWR_NET_DRIVERS > 1 ++ # CYGHWR_NET_DRIVERS == 1 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Allow RedBoot to use any I/O channel for its console. ++# If this option is enabled then RedBoot will attempt to use all ++# defined serial I/O channels for its console device. Once input ++# arrives at one of these channels then the console will use only ++# that port. ++# ++cdl_option CYGPKG_REDBOOT_ANY_CONSOLE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Allow RedBoot to adjust the baud rate on the serial console. ++# If this option is enabled then RedBoot will support commands to set ++# and query the baud rate on the selected console. ++# ++cdl_option CYGSEM_REDBOOT_VARIABLE_BAUD_RATE { ++ # This option is not active ++ # ActiveIf constraint: CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT ++ # CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Run a platform specific startup function. ++# If this option is enabled then RedBoot will execute a platform ++# specific startup function before entering into its command line ++# processing. This allows the platform to perform any special ++# setups before RedBoot actually starts running. Note: the entire ++# RedBoot environment will already be initialized at this point. ++# ++cdl_option CYGSEM_REDBOOT_PLF_STARTUP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Run a platform specific ESA validation function. ++# If this option is enabled then RedBoot will execute a platform ++# specific function to validate an ethernet ESA. This would be ++# useful if the address must conform to standards set by the ++# hardware manufacturer, etc. ++# ++cdl_option CYGSEM_REDBOOT_PLF_ESA_VALIDATE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Maximum command line length ++# This option allows control over how long the CLI command line ++# should be. This space will be allocated statically ++# rather than from RedBoot's stack. ++# ++cdl_option CYGPKG_REDBOOT_MAX_CMD_LINE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 256 ++ # value_source default ++ # Default value: 256 ++}; ++ ++# Command processing idle timeout (ms) ++# This option controls the timeout period before the ++# command processing is considered 'idle'. Making this ++# number smaller will cause idle processing to take place ++# more often, etc. The default value of 10ms is a reasonable ++# tradeoff between responsiveness and overhead. ++# ++cdl_option CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 10 ++ # value_source default ++ # Default value: 10 ++}; ++ ++# Dynamic memory pool size ++# Redboot as well as the memalloc packages use the HEAP definition from the ++# memory map as their work memory. This option determines which fraction goes ++# to redboot and which one goes to the dynamic memory allocator. ++# ++cdl_option CYGNUM_REDBOOT_MEMALLOC_POOL_SIZE { ++ # ActiveIf constraint: CYGPKG_MEMALLOC ++ # CYGPKG_MEMALLOC == current ++ # --> 1 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16384 ++ # value_source default ++ # Default value: 16384 ++}; ++ ++# Validate RAM addresses during load ++# This option controls whether or not RedBoot will make sure that ++# memory being used by the "load" command is in fact in user RAM. ++# Leaving the option enabled makes for a safer environment, but this ++# check may not be valid on all platforms, thus the ability to ++# disable it. ** Disable this only with great care ** ++# ++cdl_option CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++}; ++ ++# Allow RedBoot to support FLASH programming ++# If this option is enabled then RedBoot will provide commands ++# to manage images in FLASH memory. These images can be loaded ++# into memory for execution or executed in place. ++# ++cdl_component CYGPKG_REDBOOT_FLASH { ++ # This option is not active ++ # ActiveIf constraint: CYGHWR_IO_FLASH_DEVICE ++ # CYGHWR_IO_FLASH_DEVICE (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGPRI_REDBOOT_ZLIB_FLASH ++ # ActiveIf: CYGPKG_REDBOOT_FLASH ++}; ++ ++# > ++# Byte order used to store info in flash. ++# This option controls the byte ordering used to store ++# the FIS directory info and flash config info. ++# ++cdl_option CYGOPT_REDBOOT_FLASH_BYTEORDER { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FLASH is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value NATURAL ++ # value_source default ++ # Default value: NATURAL ++ # Legal values: "NATURAL" "MSBFIRST" "LSBFIRST" ++}; ++ ++# RedBoot Flash Image System support ++# doc: ref/flash-image-system.html ++# This option enables the Flash Image System commands ++# and support within RedBoot. If disabled, simple Flash ++# access commands such as "fis write" will still exist. ++# This option would be disabled for targets that need simple ++# FLASH manipulation, but do not have the need or space for ++# complete image management. ++# ++cdl_option CYGOPT_REDBOOT_FIS { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FLASH is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_REDBOOT_FIS_CONTENTS ++ # ActiveIf: CYGOPT_REDBOOT_FIS ++ # option CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG ++ # ActiveIf: CYGOPT_REDBOOT_FIS && (CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA == "FLASH") ++ # component CYGOPT_REDBOOT_FIS_ZLIB_COMMON_BUFFER ++ # ActiveIf: CYGBLD_BUILD_REDBOOT_WITH_ZLIB && CYGOPT_REDBOOT_FIS ++}; ++ ++# Max number of chunks of free space to manage ++# If this option is defined then "fis free" will rely on the ++# FIS directory to determine what space is free within the FLASH. ++# This option controls the maximum number of free segment which ++# can be handled (typically this number is small). If this option ++# is not enabled, the the archaic behaviour of actually scanning ++# the FLASH for erased sectors (unreliable) will be used to ++# determine what's free and what's not. ++# ++cdl_option CYGDAT_REDBOOT_FIS_MAX_FREE_CHUNKS { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FLASH is not active ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 32 ++ # value_source default ++ # Default value: 1 32 ++}; ++ ++# Flash Image System default directory contents ++# ++cdl_component CYGPKG_REDBOOT_FIS_CONTENTS { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FLASH is not active ++ # ActiveIf constraint: CYGOPT_REDBOOT_FIS ++ # CYGOPT_REDBOOT_FIS == 0 ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# > ++# Flash block containing the Directory ++# Which block of flash should hold the directory ++# information. Positive numbers are absolute block numbers. ++# Negative block numbers count backwards from the last block. ++# eg 2 means block 2, -2 means the last but one block. ++# ++cdl_option CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -1 ++ # value_source default ++ # Default value: -1 ++}; ++ ++# Pseudo-file to describe reserved area ++# If an area of FLASH is reserved, it is informative to ++# have a fis entry describing it. This option controls ++# creation of such an entry by default in the fis init ++# command. ++# ++cdl_option CYGOPT_REDBOOT_FIS_RESERVED_BASE { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ # ActiveIf constraint: 0 != CYGNUM_REDBOOT_FLASH_RESERVED_BASE ++ # CYGNUM_REDBOOT_FLASH_RESERVED_BASE == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# File to describe RedBoot boot image ++# Normally a ROM-startup RedBoot image is first in the ++# FLASH, and the system boots using that image. This ++# option controls creation of an entry describing it in ++# the fis init command. It might be disabled if a ++# platform has an immutable boot image of its own, where ++# we use a POST-startup RedBoot instead, which performs ++# less board initialization. ++# ++cdl_option CYGOPT_REDBOOT_FIS_REDBOOT { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # component CYGOPT_REDBOOT_FIS_REDBOOT_POST ++ # DefaultValue: !CYGOPT_REDBOOT_FIS_REDBOOT ++ # option CYGBLD_REDBOOT_MIN_IMAGE_SIZE ++ # DefaultValue: CYGOPT_REDBOOT_FIS_REDBOOT ? 0x20000 : 0 ++}; ++ ++# File to describe RedBoot POST-compatible image ++# This option controls creation of an entry describing a ++# POST-startup RedBoot image in the fis init command. ++# Not all platforms support POST-startup. A platform ++# might have both for testing purposes, where the ++# eventual user would substitute their own POST code for ++# the initial ROM-startup RedBoot, and then jump to the ++# POST-compatible RedBoot immediately following. ++# ++cdl_component CYGOPT_REDBOOT_FIS_REDBOOT_POST { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: !CYGOPT_REDBOOT_FIS_REDBOOT ++ # CYGOPT_REDBOOT_FIS_REDBOOT == 0 ++ # --> 1 ++}; ++ ++# > ++# Offset of POST image from FLASH start ++# This option specifies the offset for a POST image from ++# the start of FLASH. If unset, then the fis entry ++# describing the POST image will be placed where ++# convenient. ++# ++cdl_option CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET { ++ # This option is not active ++ # The parent CYGOPT_REDBOOT_FIS_REDBOOT_POST is not active ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++ # Requires: CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET >= CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++ # CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET == 0 ++ # CYGBLD_REDBOOT_FLASH_BOOT_OFFSET == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET ++ # Requires: CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET >= CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++}; ++ ++# < ++# File to describe RedBoot backup image ++# This option controls creation of an entry describing a ++# backup RedBoot image in the fis init command. ++# Conventionally a RAM-startup RedBoot image is kept ++# under this name for use in updating the ROM-based ++# RedBoot that boots the board. ++# ++cdl_option CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Include ARM SIB ID in FIS ++# If set, this option will cause the last 5 words of ++# the FIS to include the special ID needed for the ++# flash to be recognized as a reserved area for RedBoot ++# by an ARM BootRom monitor. ++# ++cdl_option CYGOPT_REDBOOT_FIS_DIRECTORY_ARM_SIB_ID { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Size of FIS directory entry ++# The FIS directory is limited to one single flash ++# sector. If your flash has tiny sectors, you may wish ++# to reduce this value in order to get more slots in ++# the FIS directory. ++# ++cdl_option CYGNUM_REDBOOT_FIS_DIRECTORY_ENTRY_SIZE { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 256 ++ # value_source default ++ # Default value: 256 ++}; ++ ++# Number of FIS directory entries ++# The FIS directory normally occupies a single flash ++# sector. Adjusting this value can allow for more than ++# one flash sector to be used, which is useful if your ++# sectors are very small. ++# ++cdl_option CYGNUM_REDBOOT_FIS_DIRECTORY_ENTRY_COUNT { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++}; ++ ++# Maximum RedBoot image size ++# This option controls the maximum length reserved ++# for the RedBoot boot image in the FIS table. ++# This should be a multiple of the flash's erase ++# block size. ++# ++cdl_option CYGBLD_REDBOOT_MIN_IMAGE_SIZE { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGOPT_REDBOOT_FIS_REDBOOT ? 0x20000 : 0 ++ # CYGOPT_REDBOOT_FIS_REDBOOT == 0 ++ # --> 0 ++}; ++ ++# Offset from start of FLASH to RedBoot boot image ++# This option controls where the RedBoot boot image is located ++# relative to the start of FLASH. ++# ++cdl_option CYGBLD_REDBOOT_FLASH_BOOT_OFFSET { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGNUM_REDBOOT_FLASH_RESERVED_BASE ++ # CYGNUM_REDBOOT_FLASH_RESERVED_BASE == 0 ++ # --> 0 ++ # Requires: CYGNUM_REDBOOT_FLASH_RESERVED_BASE <= CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++ # CYGNUM_REDBOOT_FLASH_RESERVED_BASE == 0 ++ # CYGBLD_REDBOOT_FLASH_BOOT_OFFSET == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET ++ # Requires: CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET >= CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++ # option CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++ # Requires: CYGNUM_REDBOOT_FLASH_RESERVED_BASE <= CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++}; ++ ++# Size of reserved area at start of FLASH ++# This option reserves an area at the start of FLASH where RedBoot ++# will never interfere; it is expected that this area contains ++# (non-RedBoot-based) POST code or some other boot monitor that ++# executes before RedBoot. ++# ++cdl_option CYGNUM_REDBOOT_FLASH_RESERVED_BASE { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FIS_CONTENTS is not active ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGOPT_REDBOOT_FIS_RESERVED_BASE ++ # ActiveIf: 0 != CYGNUM_REDBOOT_FLASH_RESERVED_BASE ++ # option CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++ # DefaultValue: CYGNUM_REDBOOT_FLASH_RESERVED_BASE ++ # option CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++ # Requires: CYGNUM_REDBOOT_FLASH_RESERVED_BASE <= CYGBLD_REDBOOT_FLASH_BOOT_OFFSET ++}; ++ ++# < ++# Keep all RedBoot FLASH data blocks locked. ++# When this option is enabled, RedBoot will keep configuration ++# data and the FIS directory blocks implicitly locked. While ++# this is somewhat safer, it does add overhead during updates. ++# ++cdl_option CYGSEM_REDBOOT_FLASH_LOCK_SPECIAL { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FLASH is not active ++ # ActiveIf constraint: CYGHWR_IO_FLASH_BLOCK_LOCKING != 0 ++ # CYGHWR_IO_FLASH_BLOCK_LOCKING (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Use CRC checksums on FIS images. ++# When this option is enabled, RedBoot will use CRC checksums ++# when reading and writing flash images. ++# ++cdl_option CYGSEM_REDBOOT_FIS_CRC_CHECK { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FLASH is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# ARM FLASH drivers support SIB flash block structure ++# This interface is implemented by a flash driver ++# to indicate that it supports the ARM SIB flash ++# block structure ++# ++cdl_interface CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED { ++ # No options implement this inferface ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FLASH is not active ++ # ActiveIf constraint: CYGPKG_HAL_ARM ++ # CYGPKG_HAL_ARM (unknown) == 0 ++ # --> 0 ++ ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGHWR_REDBOOT_ARM_FLASH_SIB ++ # ActiveIf: CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED ++}; ++ ++# Use ARM SIB flash block structure ++# This option is used to interpret ARM Flash System information ++# blocks. ++# ++cdl_option CYGHWR_REDBOOT_ARM_FLASH_SIB { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FLASH is not active ++ # ActiveIf constraint: CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED ++ # CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Keep RedBoot configuration data in FLASH ++# When this option is enabled, RedBoot will keep configuration ++# data in a separate block of FLASH memory. This data will ++# include such items as the node IP address or startup scripts. ++# ++cdl_component CYGSEM_REDBOOT_FLASH_CONFIG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGPKG_IO_FLASH != 0 ++ # CYGPKG_IO_FLASH (unknown) == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # component CYGDAT_REDBOOT_DEFAULT_IP_ADDR ++ # DefaultValue: CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : "0, 0, 0, 0" ++ # option CYGDAT_REDBOOT_DEFAULT_BOOTP_SERVER_IP_ADDR ++ # DefaultValue: CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : "0, 0, 0, 0" ++ # component CYGDAT_REDBOOT_DEFAULT_GATEWAY_IP_ADDR ++ # DefaultValue: CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : "0, 0, 0, 0" ++ # component CYGDAT_REDBOOT_DEFAULT_IP_ADDR_MASK ++ # DefaultValue: CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : "255, 255, 255, 0" ++ # option CYGPKG_REDBOOT_NETWORKING_DNS_IP ++ # ActiveIf: !CYGSEM_REDBOOT_FLASH_CONFIG ++ # option CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE ++ # ActiveIf: !CYGSEM_REDBOOT_FLASH_CONFIG && CYGHWR_NET_DRIVERS > 1 ++ # option CYGFUN_REDBOOT_BOOT_SCRIPT ++ # ActiveIf: CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT || CYGSEM_REDBOOT_FLASH_CONFIG ++}; ++ ++# > ++# Length of configuration data in FLASH ++# This option is used to control the amount of memory and FLASH ++# to be used for configuration options (persistent storage). ++# ++cdl_option CYGNUM_REDBOOT_FLASH_CONFIG_SIZE { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_FLASH_CONFIG is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 4096 ++ # value_source default ++ # Default value: 4096 ++}; ++ ++# Style of media used for persistent data storage ++# Persistent data storage can either be held in 'norma' FLASH ++# or some other device (represented by the 'EEPROM' choice). ++# The different styles utilize different access methods. ++# ++cdl_option CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_FLASH_CONFIG is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value FLASH ++ # value_source default ++ # Default value: FLASH ++ # Legal values: "FLASH" "EEPROM" ++ ++ # The following properties are affected by this value ++ # option CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG ++ # ActiveIf: CYGOPT_REDBOOT_FIS && (CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA == "FLASH") ++ # option CYGSEM_REDBOOT_FLASH_CONFIG_READONLY_FALLBACK ++ # DefaultValue: (CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA == "FLASH") ++}; ++ ++# Merged config data and FIS directory ++# If this option is set, then the FIS directory and FLASH ++# configuration database will be stored in the same physical ++# FLASH block. ++# ++cdl_option CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_FLASH_CONFIG is disabled ++ # ActiveIf constraint: CYGOPT_REDBOOT_FIS && (CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA == "FLASH") ++ # CYGOPT_REDBOOT_FIS == 0 ++ # CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Which block of flash to use ++# Which block of flash should hold the configuration ++# information. Positive numbers are absolute block numbers. ++# Negative block numbers count backwards from the last block. ++# eg 2 means block 2, -2 means the last but one block. ++# ++cdl_option CYGNUM_REDBOOT_FLASH_CONFIG_BLOCK { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_FLASH_CONFIG is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -2 ++ # value_source default ++ # Default value: -2 ++}; ++ ++# Support simple macros/aliases in FLASH ++# This option is used to allow support for simple text-based ++# macros (aliases). These aliases are kept in the FLASH ++# configuration data (persistent storage). ++# ++cdl_option CYGSEM_REDBOOT_FLASH_ALIASES { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_FLASH_CONFIG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Length of strings in FLASH configuration data ++# This option is used to control the amount of memory and FLASH ++# to be used for string configuration options (persistent storage). ++# ++cdl_option CYGNUM_REDBOOT_FLASH_STRING_SIZE { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_FLASH_CONFIG is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 128 ++ # value_source default ++ # Default value: 128 ++}; ++ ++# Length of configuration script(s) in FLASH ++# This option is used to control the amount of memory and FLASH ++# to be used for configuration options (persistent storage). ++# ++cdl_option CYGNUM_REDBOOT_FLASH_SCRIPT_SIZE { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_FLASH_CONFIG is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 512 ++ # value_source default ++ # Default value: 512 ++}; ++ ++# Fallback to read-only FLASH configuration ++# This option will cause the configuration information to ++# revert to the readonly information stored in the FLASH. ++# The option only takes effect after ++# 1) the config_ok flag has been set to be true, ++# indicating that at one time the copy in RAM was valid; ++# and ++# 2) the information in RAM has been verified to be invalid ++# ++cdl_option CYGSEM_REDBOOT_FLASH_CONFIG_READONLY_FALLBACK { ++ # This option is not active ++ # The parent CYGSEM_REDBOOT_FLASH_CONFIG is disabled ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: (CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA == "FLASH") ++ # CYGHWR_REDBOOT_FLASH_CONFIG_MEDIA == 0 ++ # --> 0 ++}; ++ ++# < ++# Allow RedBoot to support fileio ++# If this option is enabled then RedBoot will provide commands ++# to load files from fileio file systems such as JFFS2. ++# ++cdl_component CYGPKG_REDBOOT_FILEIO { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_IO_FILEIO ++ # CYGPKG_IO_FILEIO (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGNUM_REDBOOT_GETC_BUFFER ++ # DefaultValue: CYGPKG_REDBOOT_FILEIO ? 4096 : 256 ++}; ++ ++# > ++# Include an ls command ++# If this option is enabled a simple ls command will be ++# included in redboot so the contents of a directory ++# can be listed ++# ++cdl_option CYGBLD_REDBOOT_FILEIO_WITH_LS { ++ # This option is not active ++ # The parent CYGPKG_REDBOOT_FILEIO is not active ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Allow RedBoot to support disks ++# If this option is enabled then RedBoot will provide commands ++# to load disk files. ++# ++cdl_component CYGPKG_REDBOOT_DISK { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Include Redboot commands for disk access ++# ++cdl_option CYGSEM_REDBOOT_DISK { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: CYGINT_REDBOOT_DISK_DRIVERS != 0 ++ # CYGINT_REDBOOT_DISK_DRIVERS == 1 ++ # --> 1 ++}; ++ ++# Hardware drivers for disk-type devices ++# ++cdl_interface CYGINT_REDBOOT_DISK_DRIVERS { ++ # Implemented by CYGSEM_REDBOOT_DISK_IDE, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_REDBOOT_DISK ++ # DefaultValue: CYGINT_REDBOOT_DISK_DRIVERS != 0 ++}; ++ ++# Maximum number of supported disks ++# This option controls the number of disks supported by RedBoot. ++# ++cdl_option CYGNUM_REDBOOT_MAX_DISKS { ++ # Flavor: data ++ user_value 4 ++ # value_source user ++ # Default value: 4 ++}; ++ ++# Maximum number of partitions per disk ++# This option controls the maximum number of supported partitions per disk. ++# ++cdl_option CYGNUM_REDBOOT_MAX_PARTITIONS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 8 ++ # value_source default ++ # Default value: 8 ++}; ++ ++# Support IDE disks. ++# When this option is enabled, RedBoot will support IDE disks. ++# ++cdl_component CYGSEM_REDBOOT_DISK_IDE { ++ # ActiveIf constraint: CYGINT_HAL_PLF_IF_IDE != 0 ++ # CYGINT_HAL_PLF_IF_IDE == 1 ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Work with VMware virtual disks ++# This option controls the disk driver beaviour at ide-init ++# ++cdl_option CYGSEM_REDBOOT_DISK_IDE_VMWARE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Support Linux second extended filesystems. ++# When this option is enabled, RedBoot will support IDE disks. ++# ++cdl_component CYGSEM_REDBOOT_DISK_EXT2FS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Support ISO9660 filesystems. ++# When this option is enabled, RedBoot will support ISO9660 filesystems. ++# ++cdl_component CYGSEM_REDBOOT_DISK_ISO9660 { ++ # Calculated value: 0 ++ # Flavor: bool ++ # Current value: 0 ++}; ++ ++# < ++# Boot scripting ++# doc: ref/persistent-state-flash.html ++# This contains options related to RedBoot's boot script ++# functionality. ++# ++cdl_component CYGPKG_REDBOOT_BOOT_SCRIPT { ++ # There is no associated value. ++}; ++ ++# > ++# Boot scripting enabled ++# This option controls whether RedBoot boot script ++# functionality is enabled. ++# ++cdl_option CYGFUN_REDBOOT_BOOT_SCRIPT { ++ # This option is not active ++ # ActiveIf constraint: CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT || CYGSEM_REDBOOT_FLASH_CONFIG ++ # CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT == 0 ++ # CYGSEM_REDBOOT_FLASH_CONFIG == 0 ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# Use default RedBoot boot script ++# If enabled, this option will tell RedBoot to use the value of ++# this option as a default boot script. ++# ++cdl_option CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGFUN_REDBOOT_BOOT_SCRIPT ++ # ActiveIf: CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT || CYGSEM_REDBOOT_FLASH_CONFIG ++}; ++ ++# Resolution (in ms) for script timeout value. ++# This option controls the resolution of the script timeout. ++# The value is specified in milliseconds (ms), thus to have the ++# script timeout be defined in terms of tenths of seconds, use 100. ++# ++cdl_option CYGNUM_REDBOOT_BOOT_SCRIPT_TIMEOUT_RESOLUTION { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 1000 ++ # value_source default ++ # Default value: 1000 ++}; ++ ++# Script default timeout value ++# This option is used to set the default timeout for startup ++# scripts, when they are enabled. ++# ++cdl_option CYGNUM_REDBOOT_BOOT_SCRIPT_DEFAULT_TIMEOUT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 10 ++ # value_source default ++ # Default value: 10 ++}; ++ ++# < ++# Support RTC for time & date functions ++# When this option is enabled, RedBoot will support commands to ++# query and set the real time clock (time and date) ++# ++cdl_option CYGSEM_REDBOOT_RTC { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_IO_WALLCLOCK ++ # CYGPKG_IO_WALLCLOCK (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Behave like a ROM monitor ++# Enabling this option will allow RedBoot to provide ROM monitor-style ++# services to programs which it executes. ++# ++cdl_option CYGPRI_REDBOOT_ROM_MONITOR { ++ # This option is not active ++ # ActiveIf constraint: CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" ++ # CYG_HAL_STARTUP == GRUB ++ # CYG_HAL_STARTUP == GRUB ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++ # Requires: CYGSEM_HAL_ROM_MONITOR ++ # CYGSEM_HAL_ROM_MONITOR == 1 ++ # --> 1 ++}; ++ ++# Allow RedBoot to handle GNUPro application 'syscalls'. ++# If this option is enabled then RedBoot will install a syscall handler ++# to support debugging of applications based on GNUPro newlib/bsp. ++# ++cdl_component CYGSEM_REDBOOT_BSP_SYSCALLS { ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_HAL_GDB_FILEIO ++ # ActiveIf: CYGSEM_REDBOOT_BSP_SYSCALLS ++}; ++ ++# > ++# Support additional syscalls for 'gprof' profiling ++# Support additional syscalls to support a periodic callback ++# function for histogram-style profiling, and an enquire/set ++# of the tick rate. ++# The application must use the GNUPro newlib facilities ++# to set this up. ++# ++cdl_option CYGSEM_REDBOOT_BSP_SYSCALLS_GPROF { ++ # This option is not active ++ # ActiveIf constraint: 0 < CYGINT_REDBOOT_BSP_SYSCALLS_GPROF_SUPPORT ++ # CYGINT_REDBOOT_BSP_SYSCALLS_GPROF_SUPPORT == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Does the HAL support 'gprof' profiling? ++# ++cdl_interface CYGINT_REDBOOT_BSP_SYSCALLS_GPROF_SUPPORT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_REDBOOT_BSP_SYSCALLS_GPROF ++ # ActiveIf: 0 < CYGINT_REDBOOT_BSP_SYSCALLS_GPROF_SUPPORT ++}; ++ ++# Do not raise SIGTRAP when program exits ++# For some (single shot) newlib based programs, ++# exiting and returning a termination status may be ++# the normal expected behavior. ++# ++cdl_option CYGOPT_REDBOOT_BSP_SYSCALLS_EXIT_WITHOUT_TRAP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# < ++# Use a common buffer for Zlib and FIS ++# Use a common memory buffer for both the zlib workspace ++# and FIS directory operations. This can save a substantial ++# amount of RAM, especially when flash sectors are large. ++# ++cdl_component CYGOPT_REDBOOT_FIS_ZLIB_COMMON_BUFFER { ++ # This option is not active ++ # ActiveIf constraint: CYGBLD_BUILD_REDBOOT_WITH_ZLIB && CYGOPT_REDBOOT_FIS ++ # CYGBLD_BUILD_REDBOOT_WITH_ZLIB == 1 ++ # CYGOPT_REDBOOT_FIS == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Size of Zlib/FIS common buffer ++# Size of common buffer to allocate. Must be at least the ++# size of one flash sector. ++# ++cdl_option CYGNUM_REDBOOT_FIS_ZLIB_COMMON_BUFFER_SIZE { ++ # This option is not active ++ # The parent CYGOPT_REDBOOT_FIS_ZLIB_COMMON_BUFFER is not active ++ # The parent CYGOPT_REDBOOT_FIS_ZLIB_COMMON_BUFFER is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x0000C000 ++ # value_source default ++ # Default value: 0x0000C000 ++ # Legal values: 0x4000 to 0x80000000 ++}; ++ ++# < ++# Buffer size in getc when loading images ++# When loading images a buffer is used between redboot and the ++# underlying storage medium, eg a filesystem, or a socket etc. ++# The size of this buffer can have a big impart on load speed. ++# ++cdl_option CYGNUM_REDBOOT_GETC_BUFFER { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 256 ++ # value_source default ++ # Default value: CYGPKG_REDBOOT_FILEIO ? 4096 : 256 ++ # CYGPKG_REDBOOT_FILEIO == 0 ++ # --> 256 ++}; ++ ++# < ++# Redboot HAL options ++# This option lists the target's requirements for a valid Redboot ++# configuration. ++# ++cdl_component CYGPKG_REDBOOT_HAL_OPTIONS { ++ # ActiveIf constraint: CYGPKG_REDBOOT ++ # CYGPKG_REDBOOT == current ++ # --> 1 ++ ++ # There is no associated value. ++}; ++ ++# > ++# Provide the exec command in RedBoot ++# This option contains requirements for booting linux ++# from RedBoot. The component is enabled/disabled from ++# RedBoots CDL. ++# ++cdl_component CYGPKG_REDBOOT_I386_LINUX_EXEC { ++ # ActiveIf constraint: CYGBLD_BUILD_REDBOOT_WITH_EXEC ++ # CYGBLD_BUILD_REDBOOT_WITH_EXEC == 1 ++ # --> 1 ++ ++ # There is no associated value. ++}; ++ ++# > ++# Provide the trampoline address into Linux ++# ++cdl_option CYGHWR_REDBOOT_I386_TRAMPOLINE_ADDRESS { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 0x0007C000 ++ # value_source default ++ # Default value: 0x0007C000 ++ # Requires: CYGINT_HAL_I386_PCMB_SCREEN_SUPPORT ++ # CYGINT_HAL_I386_PCMB_SCREEN_SUPPORT == 1 ++ # --> 1 ++}; ++ ++# < ++# Build RedBoot binary image ++# ++cdl_component CYGBLD_BUILD_REDBOOT_BIN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Build Redboot FLOPPY binary image ++# This option enables the conversion of the Redboot ++# ELF image to a binary image suitable for ++# copying to a floppy disk. ++# ++cdl_option CYGBLD_BUILD_REDBOOT_BIN_FLOPPY { ++ # This option is not active ++ # ActiveIf constraint: CYGBLD_BUILD_REDBOOT ++ # CYGBLD_BUILD_REDBOOT == 1 ++ # --> 1 ++ # ActiveIf constraint: CYG_HAL_STARTUP == "FLOPPY" ++ # CYG_HAL_STARTUP == GRUB ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# Build Redboot ROM binary image ++# This option enables the conversion of the Redboot ++# ELF image to a binary image suitable for ROM ++# programming. ++# ++cdl_option CYGBLD_BUILD_REDBOOT_BIN_ROM { ++ # This option is not active ++ # ActiveIf constraint: CYGBLD_BUILD_REDBOOT ++ # CYGBLD_BUILD_REDBOOT == 1 ++ # --> 1 ++ # ActiveIf constraint: CYG_HAL_STARTUP == "ROM" ++ # CYG_HAL_STARTUP == GRUB ++ # --> 0 ++ ++ # Calculated value: 1 ++ # Flavor: bool ++ # Current value: 1 ++}; ++ ++# < ++# < ++# < ++# ISO C and POSIX infrastructure ++# eCos supports implementations of ISO C libraries and POSIX ++# implementations. This package provides infrastructure used by ++# all such implementations. ++# ++cdl_package CYGPKG_ISOINFRA { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGPKG_ISOINFRA ++ # package CYGPKG_COMPRESS_ZLIB ++ # Requires: CYGPKG_ISOINFRA ++ # option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_USE_MEMCPY ++ # Requires: CYGPKG_ISOINFRA ++ # option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_USE_MEMCPY ++ # DefaultValue: 0 != CYGPKG_ISOINFRA ++ # component CYGPKG_MEMALLOC_MALLOC_ALLOCATORS ++ # ActiveIf: CYGPKG_ISOINFRA ++}; ++ ++# > ++# Startup and termination ++# ++cdl_component CYGPKG_ISO_STARTUP { ++ # There is no associated value. ++}; ++ ++# > ++# main() startup implementations ++# Implementations of this interface arrange for a user-supplied ++# main() to be called in an ISO compatible environment. ++# ++cdl_interface CYGINT_ISO_MAIN_STARTUP { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_MAIN_STARTUP ++ # CYGINT_ISO_MAIN_STARTUP == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_MAIN_STARTUP ++ # Requires: 1 >= CYGINT_ISO_MAIN_STARTUP ++}; ++ ++# environ implementations ++# Implementations of this interface provide the environ ++# variable required by POSIX. ++# ++cdl_interface CYGINT_ISO_ENVIRON { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_ENVIRON ++ # CYGINT_ISO_ENVIRON == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_ENVIRON ++ # Requires: 1 >= CYGINT_ISO_ENVIRON ++}; ++ ++# < ++# ctype.h functions ++# ++cdl_component CYGPKG_ISO_CTYPE_H { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of ctype functions ++# ++cdl_interface CYGINT_ISO_CTYPE { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_CTYPE ++ # CYGINT_ISO_CTYPE == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_CTYPE ++ # Requires: 1 >= CYGINT_ISO_CTYPE ++ # option CYGFUN_LIBC_STRING_BSD_FUNCS ++ # Requires: CYGINT_ISO_CTYPE ++ # option CYGPKG_NS_DNS_BUILD ++ # Requires: CYGINT_ISO_CTYPE ++}; ++ ++# Ctype implementation header ++# ++cdl_option CYGBLD_ISO_CTYPE_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Error handling ++# ++cdl_component CYGPKG_ISO_ERRNO { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of error codes ++# ++cdl_interface CYGINT_ISO_ERRNO_CODES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_ERRNO_CODES ++ # CYGINT_ISO_ERRNO_CODES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_ERRNO_CODES ++ # Requires: 1 >= CYGINT_ISO_ERRNO_CODES ++}; ++ ++# Error codes implementation header ++# ++cdl_option CYGBLD_ISO_ERRNO_CODES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of errno variable ++# ++cdl_interface CYGINT_ISO_ERRNO { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_ERRNO ++ # CYGINT_ISO_ERRNO == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_ERRNO ++ # Requires: 1 >= CYGINT_ISO_ERRNO ++}; ++ ++# errno variable implementation header ++# ++cdl_option CYGBLD_ISO_ERRNO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Locale-related functions ++# ++cdl_component CYGPKG_ISO_LOCALE { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of locale functions ++# ++cdl_interface CYGINT_ISO_LOCALE { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_LOCALE ++ # CYGINT_ISO_LOCALE == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_LOCALE ++ # Requires: 1 >= CYGINT_ISO_LOCALE ++}; ++ ++# Locale implementation header ++# ++cdl_option CYGBLD_ISO_LOCALE_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Standard I/O-related functionality ++# ++cdl_component CYGPKG_ISO_STDIO { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of stdio file types ++# ++cdl_interface CYGINT_ISO_STDIO_FILETYPES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILETYPES ++ # CYGINT_ISO_STDIO_FILETYPES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FILETYPES ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILETYPES ++}; ++ ++# Stdio file types implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_FILETYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Stdio standard streams implementations ++# ++cdl_interface CYGINT_ISO_STDIO_STREAMS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_STREAMS ++ # CYGINT_ISO_STDIO_STREAMS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_STREAMS ++ # Requires: 1 >= CYGINT_ISO_STDIO_STREAMS ++}; ++ ++# Stdio standard streams implementation header ++# This header file must define stdin, stdout ++# and stderr. ++# ++cdl_option CYGBLD_ISO_STDIO_STREAMS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of stdio file operations ++# ++cdl_interface CYGINT_ISO_STDIO_FILEOPS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEOPS ++ # CYGINT_ISO_STDIO_FILEOPS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FILEOPS ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEOPS ++}; ++ ++# Stdio file operations implementation header ++# This header controls the file system operations on a file ++# such as remove(), rename(), tmpfile(), tmpnam() and associated ++# constants. ++# ++cdl_option CYGBLD_ISO_STDIO_FILEOPS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of stdio file access functionals ++# ++cdl_interface CYGINT_ISO_STDIO_FILEACCESS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEACCESS ++ # CYGINT_ISO_STDIO_FILEACCESS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FILEACCESS ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEACCESS ++}; ++ ++# Stdio file access implementation header ++# This header controls the file access operations ++# such as fclose(), fflush(), fopen(), freopen(), setbuf(), ++# setvbuf(), and associated constants. ++# ++cdl_option CYGBLD_ISO_STDIO_FILEACCESS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of stdio formatted I/O ++# ++cdl_interface CYGINT_ISO_STDIO_FORMATTED_IO { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FORMATTED_IO ++ # CYGINT_ISO_STDIO_FORMATTED_IO == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FORMATTED_IO ++ # Requires: 1 >= CYGINT_ISO_STDIO_FORMATTED_IO ++}; ++ ++# Stdio formatted I/O implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_FORMATTED_IO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of stdio character I/O ++# ++cdl_interface CYGINT_ISO_STDIO_CHAR_IO { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_CHAR_IO ++ # CYGINT_ISO_STDIO_CHAR_IO == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_CHAR_IO ++ # Requires: 1 >= CYGINT_ISO_STDIO_CHAR_IO ++}; ++ ++# Stdio character I/O implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_CHAR_IO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of stdio direct I/O ++# ++cdl_interface CYGINT_ISO_STDIO_DIRECT_IO { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_DIRECT_IO ++ # CYGINT_ISO_STDIO_DIRECT_IO == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_DIRECT_IO ++ # Requires: 1 >= CYGINT_ISO_STDIO_DIRECT_IO ++}; ++ ++# Stdio direct I/O implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_DIRECT_IO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of stdio file positioning ++# ++cdl_interface CYGINT_ISO_STDIO_FILEPOS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEPOS ++ # CYGINT_ISO_STDIO_FILEPOS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_FILEPOS ++ # Requires: 1 >= CYGINT_ISO_STDIO_FILEPOS ++}; ++ ++# Stdio file positioning implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_FILEPOS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of stdio error handling ++# ++cdl_interface CYGINT_ISO_STDIO_ERROR { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_ERROR ++ # CYGINT_ISO_STDIO_ERROR == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_ERROR ++ # Requires: 1 >= CYGINT_ISO_STDIO_ERROR ++}; ++ ++# Stdio error handling implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_ERROR_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX fd-related function implementations ++# ++cdl_interface CYGINT_ISO_STDIO_POSIX_FDFUNCS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STDIO_POSIX_FDFUNCS ++ # CYGINT_ISO_STDIO_POSIX_FDFUNCS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDIO_POSIX_FDFUNCS ++ # Requires: 1 >= CYGINT_ISO_STDIO_POSIX_FDFUNCS ++}; ++ ++# POSIX fd-related function implementation header ++# ++cdl_option CYGBLD_ISO_STDIO_POSIX_FDFUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Standard general utility functions ++# ++cdl_component CYGPKG_ISO_STDLIB { ++ # There is no associated value. ++}; ++ ++# > ++# String conversion function implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_STRCONV { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_STRCONV ++ # CYGINT_ISO_STDLIB_STRCONV == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_STRCONV ++ # Requires: 1 >= CYGINT_ISO_STDLIB_STRCONV ++}; ++ ++# String conversion function implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_STRCONV_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# String to FP conversion function implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_STRCONV_FLOAT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_STRCONV_FLOAT ++ # CYGINT_ISO_STDLIB_STRCONV_FLOAT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_STRCONV_FLOAT ++ # Requires: 1 >= CYGINT_ISO_STDLIB_STRCONV_FLOAT ++}; ++ ++# String to FP conversion function implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_STRCONV_FLOAT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Random number generator implementations ++# ++cdl_interface CYGINT_ISO_RAND { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_RAND ++ # CYGINT_ISO_RAND == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_RAND ++ # Requires: 1 >= CYGINT_ISO_RAND ++}; ++ ++# Random number generator implementation header ++# ++cdl_option CYGBLD_ISO_RAND_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Malloc implementations ++# ++cdl_interface CYGINT_ISO_MALLOC { ++ # Implemented by CYGPKG_MEMALLOC_MALLOC_ALLOCATORS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_MALLOC ++ # Requires: 1 >= CYGINT_ISO_MALLOC ++ # option CYGFUN_LIBC_STRING_STRDUP ++ # ActiveIf: CYGINT_ISO_MALLOC ++ # option CYGPKG_NS_DNS_BUILD ++ # Requires: CYGINT_ISO_MALLOC ++}; ++ ++# Malloc implementation header ++# ++cdl_option CYGBLD_ISO_MALLOC_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Mallinfo() implementations ++# ++cdl_interface CYGINT_ISO_MALLINFO { ++ # Implemented by CYGPKG_MEMALLOC_MALLOC_ALLOCATORS, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: 1 >= CYGINT_ISO_MALLINFO ++ # CYGINT_ISO_MALLINFO == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_MALLINFO ++ # Requires: 1 >= CYGINT_ISO_MALLINFO ++}; ++ ++# Mallinfo() implementation header ++# ++cdl_option CYGBLD_ISO_MALLINFO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Program exit functionality implementations ++# ++cdl_interface CYGINT_ISO_EXIT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_EXIT ++ # CYGINT_ISO_EXIT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_EXIT ++ # Requires: 1 >= CYGINT_ISO_EXIT ++ # option CYGFUN_INFRA_DUMMY_ABORT ++ # Requires: !CYGINT_ISO_EXIT ++ # option CYGFUN_INFRA_DUMMY_ABORT ++ # DefaultValue: CYGINT_ISO_EXIT == 0 ++}; ++ ++# Program exit functionality implementation header ++# ++cdl_option CYGBLD_ISO_EXIT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Program environment implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_ENVIRON { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_ENVIRON ++ # CYGINT_ISO_STDLIB_ENVIRON == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_ENVIRON ++ # Requires: 1 >= CYGINT_ISO_STDLIB_ENVIRON ++}; ++ ++# Program environment implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_ENVIRON_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# system() implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_SYSTEM { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_SYSTEM ++ # CYGINT_ISO_STDLIB_SYSTEM == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_SYSTEM ++ # Requires: 1 >= CYGINT_ISO_STDLIB_SYSTEM ++}; ++ ++# system() implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_SYSTEM_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# bsearch() implementations ++# ++cdl_interface CYGINT_ISO_BSEARCH { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_BSEARCH ++ # CYGINT_ISO_BSEARCH == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_BSEARCH ++ # Requires: 1 >= CYGINT_ISO_BSEARCH ++}; ++ ++# bsearch() implementation header ++# ++cdl_option CYGBLD_ISO_BSEARCH_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# qsort() implementations ++# ++cdl_interface CYGINT_ISO_QSORT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_QSORT ++ # CYGINT_ISO_STDLIB_QSORT (unknown) == 0 ++ # --> 1 ++}; ++ ++# qsort() implementation header ++# ++cdl_option CYGBLD_ISO_QSORT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# abs()/labs() implementations ++# ++cdl_interface CYGINT_ISO_ABS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_ABS ++ # CYGINT_ISO_STDLIB_ABS (unknown) == 0 ++ # --> 1 ++}; ++ ++# abs()/labs() implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_ABS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# div()/ldiv() implementations ++# ++cdl_interface CYGINT_ISO_DIV { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_DIV ++ # CYGINT_ISO_STDLIB_DIV (unknown) == 0 ++ # --> 1 ++}; ++ ++# div()/ldiv() implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_DIV_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Header defining the implementation's MB_CUR_MAX ++# ++cdl_option CYGBLD_ISO_STDLIB_MB_CUR_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Multibyte character implementations ++# ++cdl_interface CYGINT_ISO_STDLIB_MULTIBYTE { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_STDLIB_MULTIBYTE ++ # CYGINT_ISO_STDLIB_MULTIBYTE == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STDLIB_MULTIBYTE ++ # Requires: 1 >= CYGINT_ISO_STDLIB_MULTIBYTE ++}; ++ ++# Multibyte character implementation header ++# ++cdl_option CYGBLD_ISO_STDLIB_MULTIBYTE_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# String functions ++# ++cdl_component CYGPKG_ISO_STRING { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of strerror() function ++# ++cdl_interface CYGINT_ISO_STRERROR { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STRERROR ++ # CYGINT_ISO_STRERROR == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRERROR ++ # Requires: 1 >= CYGINT_ISO_STRERROR ++}; ++ ++# strerror() implementation header ++# ++cdl_option CYGBLD_ISO_STRERROR_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# memcpy() implementation header ++# ++cdl_option CYGBLD_ISO_MEMCPY_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# memset() implementation header ++# ++cdl_option CYGBLD_ISO_MEMSET_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of strtok_r() function ++# ++cdl_interface CYGINT_ISO_STRTOK_R { ++ # Implemented by CYGPKG_LIBC_STRING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRTOK_R ++ # CYGINT_ISO_STRTOK_R == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRTOK_R ++ # Requires: 1 >= CYGINT_ISO_STRTOK_R ++}; ++ ++# strtok_r() implementation header ++# ++cdl_option CYGBLD_ISO_STRTOK_R_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGBLD_ISO_STRTOK_R_HEADER == "" ++}; ++ ++# Number of implementations of locale-specific string functions ++# This covers locale-dependent string functions such as strcoll() ++# and strxfrm(). ++# ++cdl_interface CYGINT_ISO_STRING_LOCALE_FUNCS { ++ # Implemented by CYGPKG_LIBC_STRING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRING_LOCALE_FUNCS ++ # CYGINT_ISO_STRING_LOCALE_FUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRING_LOCALE_FUNCS ++ # Requires: 1 >= CYGINT_ISO_STRING_LOCALE_FUNCS ++}; ++ ++# Locale-specific string functions' implementation header ++# This covers locale-dependent string functions such as strcoll() ++# and strxfrm(). ++# ++cdl_option CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER == "" ++}; ++ ++# Number of implementations of BSD string functions ++# ++cdl_interface CYGINT_ISO_STRING_BSD_FUNCS { ++ # Implemented by CYGFUN_LIBC_STRING_BSD_FUNCS, active, disabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_STRING_BSD_FUNCS ++ # CYGINT_ISO_STRING_BSD_FUNCS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRING_BSD_FUNCS ++ # Requires: 1 >= CYGINT_ISO_STRING_BSD_FUNCS ++}; ++ ++# BSD string functions' implementation header ++# ++cdl_option CYGBLD_ISO_STRING_BSD_FUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGFUN_LIBC_STRING_BSD_FUNCS ++ # Requires: CYGBLD_ISO_STRING_BSD_FUNCS_HEADER == "" ++}; ++ ++# Number of implementations of other mem*() functions ++# ++cdl_interface CYGINT_ISO_STRING_MEMFUNCS { ++ # Implemented by CYGPKG_LIBC_STRING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRING_MEMFUNCS ++ # CYGINT_ISO_STRING_MEMFUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRING_MEMFUNCS ++ # Requires: 1 >= CYGINT_ISO_STRING_MEMFUNCS ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: CYGINT_ISO_STRING_MEMFUNCS ++ # component CYGPKG_IO_ETH_DRIVERS_STAND_ALONE ++ # Requires: CYGINT_ISO_STRING_MEMFUNCS ++}; ++ ++# Other mem*() functions' implementation header ++# ++cdl_option CYGBLD_ISO_STRING_MEMFUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGBLD_ISO_STRING_MEMFUNCS_HEADER == "" ++}; ++ ++# Number of implementations of other ISO C str*() functions ++# This covers the other str*() functions defined by ISO C. ++# ++cdl_interface CYGINT_ISO_STRING_STRFUNCS { ++ # Implemented by CYGPKG_LIBC_STRING, active, enabled ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 1 ++ # Requires: 1 >= CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_STRING_STRFUNCS ++ # Requires: 1 >= CYGINT_ISO_STRING_STRFUNCS ++ # option CYGFUN_INFRA_DUMMY_STRLEN ++ # Requires: !CYGINT_ISO_STRING_STRFUNCS ++ # option CYGFUN_INFRA_DUMMY_STRLEN ++ # DefaultValue: CYGINT_ISO_STRING_STRFUNCS == 0 ++ # component CYGBLD_BUILD_REDBOOT ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # component CYGPKG_IO_ETH_DRIVERS_NET ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # option CYGPKG_NS_DNS_BUILD ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++}; ++ ++# Other ISO C str*() functions' implementation header ++# This covers the other str*() functions defined by ISO C. ++# ++cdl_option CYGBLD_ISO_STRING_STRFUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # The inferred value should not be edited directly. ++ inferred_value 1 ++ # value_source inferred ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # package CYGPKG_LIBC_STRING ++ # Requires: CYGBLD_ISO_STRING_STRFUNCS_HEADER == "" ++}; ++ ++# < ++# Clock and time functionality ++# ++cdl_component CYGPKG_ISO_TIME { ++ # There is no associated value. ++}; ++ ++# > ++# time_t implementation header ++# ++cdl_option CYGBLD_ISO_TIME_T_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# clock_t implementation header ++# ++cdl_option CYGBLD_ISO_CLOCK_T_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# struct timeval implementation header ++# ++cdl_option CYGBLD_ISO_STRUCTTIMEVAL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of POSIX timer types ++# ++cdl_interface CYGINT_ISO_POSIX_TIMER_TYPES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMER_TYPES ++ # CYGINT_ISO_POSIX_TIMER_TYPES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_TIMER_TYPES ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMER_TYPES ++}; ++ ++# POSIX timer types implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_TIMER_TYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of POSIX clock types ++# ++cdl_interface CYGINT_ISO_POSIX_CLOCK_TYPES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_POSIX_CLOCK_TYPES ++ # CYGINT_ISO_POSIX_CLOCK_TYPES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_CLOCK_TYPES ++ # Requires: 1 >= CYGINT_ISO_POSIX_CLOCK_TYPES ++}; ++ ++# POSIX clock types implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_CLOCK_TYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of ISO C types ++# ++cdl_interface CYGINT_ISO_C_TIME_TYPES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_C_TIME_TYPES ++ # CYGINT_ISO_C_TIME_TYPES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_C_TIME_TYPES ++ # Requires: 1 >= CYGINT_ISO_C_TIME_TYPES ++}; ++ ++# ISO C time types implementation header ++# ++cdl_option CYGBLD_ISO_C_TIME_TYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of POSIX timers ++# ++cdl_interface CYGINT_ISO_POSIX_TIMERS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMERS ++ # CYGINT_ISO_POSIX_TIMERS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_TIMERS ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMERS ++}; ++ ++# POSIX timer implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_TIMERS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of POSIX clocks ++# ++cdl_interface CYGINT_ISO_POSIX_CLOCKS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_POSIX_CLOCKS ++ # CYGINT_ISO_POSIX_CLOCKS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_CLOCKS ++ # Requires: 1 >= CYGINT_ISO_POSIX_CLOCKS ++}; ++ ++# POSIX clocks implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_CLOCKS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of ISO C clock functions ++# ++cdl_interface CYGINT_ISO_C_CLOCK_FUNCS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_C_CLOCK_FUNCS ++ # CYGINT_ISO_C_CLOCK_FUNCS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_C_CLOCK_FUNCS ++ # Requires: 1 >= CYGINT_ISO_C_CLOCK_FUNCS ++}; ++ ++# ISO C clock functions' implementation header ++# ++cdl_option CYGBLD_ISO_C_CLOCK_FUNCS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of implementations of tzset() function ++# ++cdl_interface CYGINT_ISO_TZSET { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_TZSET ++ # CYGINT_ISO_TZSET == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_TZSET ++ # Requires: 1 >= CYGINT_ISO_TZSET ++}; ++ ++# tzset() implementation header ++# ++cdl_option CYGBLD_ISO_TZSET_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Signal functionality ++# ++cdl_component CYGPKG_ISO_SIGNAL { ++ # There is no associated value. ++}; ++ ++# > ++# Number of implementations of signal numbers ++# ++cdl_interface CYGINT_ISO_SIGNAL_NUMBERS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_SIGNAL_NUMBERS ++ # CYGINT_ISO_SIGNAL_NUMBERS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SIGNAL_NUMBERS ++ # Requires: 1 >= CYGINT_ISO_SIGNAL_NUMBERS ++}; ++ ++# Signal numbering implementation header ++# This header provides the mapping of signal ++# names (e.g. SIGBUS) to numbers. ++# ++cdl_option CYGBLD_ISO_SIGNAL_NUMBERS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Number of signal implementations ++# ++cdl_interface CYGINT_ISO_SIGNAL_IMPL { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_SIGNAL_IMPL ++ # CYGINT_ISO_SIGNAL_IMPL == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SIGNAL_IMPL ++ # Requires: 1 >= CYGINT_ISO_SIGNAL_IMPL ++}; ++ ++# Signals implementation header ++# ++cdl_option CYGBLD_ISO_SIGNAL_IMPL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX real time signals feature test macro ++# This defines the POSIX feature test macro ++# that indicates that the POSIX real time signals ++# are present. ++# ++cdl_interface CYGINT_POSIX_REALTIME_SIGNALS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_POSIX_REALTIME_SIGNALS ++ # CYGINT_POSIX_REALTIME_SIGNALS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_POSIX_REALTIME_SIGNALS ++ # Requires: 1 >= CYGINT_POSIX_REALTIME_SIGNALS ++}; ++ ++# < ++# Non-local jumps functionality ++# ++cdl_component CYGPKG_ISO_SETJMP { ++ # There is no associated value. ++}; ++ ++# > ++# setjmp() / longjmp() implementations ++# ++cdl_interface CYGINT_ISO_SETJMP { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_SETJMP ++ # CYGINT_ISO_SETJMP == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SETJMP ++ # Requires: 1 >= CYGINT_ISO_SETJMP ++}; ++ ++# setjmp() / longjmp() implementation header ++# ++cdl_option CYGBLD_ISO_SETJMP_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# sigsetjmp() / siglongjmp() implementations ++# ++cdl_interface CYGINT_ISO_SIGSETJMP { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_SIGSETJMP ++ # CYGINT_ISO_SIGSETJMP == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SIGSETJMP ++ # Requires: 1 >= CYGINT_ISO_SIGSETJMP ++}; ++ ++# sigsetjmp() / siglongjmp() implementation header ++# ++cdl_option CYGBLD_ISO_SIGSETJMP_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Assertions implementation header ++# ++cdl_option CYGBLD_ISO_ASSERT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX file control ++# This covers the POSIX file control definitions, ++# normally found in ++# ++cdl_component CYGPKG_ISO_POSIX_FCNTL { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX open flags implementation header ++# ++cdl_option CYGBLD_ISO_OFLAG_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX fcntl() implementations ++# ++cdl_interface CYGINT_ISO_FCNTL { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_FCNTL ++ # CYGINT_ISO_FCNTL == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_FCNTL ++ # Requires: 1 >= CYGINT_ISO_FCNTL ++}; ++ ++# POSIX fcntl() implementation header ++# ++cdl_option CYGBLD_ISO_FCNTL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX file open implementations ++# ++cdl_interface CYGINT_ISO_OPEN { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_OPEN ++ # CYGINT_ISO_OPEN == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_OPEN ++ # Requires: 1 >= CYGINT_ISO_OPEN ++}; ++ ++# POSIX file open implementation header ++# ++cdl_option CYGBLD_ISO_OPEN_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# definitions implementation header ++# ++cdl_option CYGBLD_ISO_STAT_DEFS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX directory reading implementation ++# ++cdl_interface CYGINT_ISO_DIRENT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_DIRENT ++ # CYGINT_ISO_DIRENT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_DIRENT ++ # Requires: 1 >= CYGINT_ISO_DIRENT ++}; ++ ++# definitions implementation header ++# ++cdl_option CYGBLD_ISO_DIRENT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX contents ++# This covers the types required by POSIX to be in ++# ++# ++cdl_component CYGPKG_ISO_POSIX_TYPES { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX thread types implementations ++# ++cdl_interface CYGINT_ISO_PTHREADTYPES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_PTHREADTYPES ++ # CYGINT_ISO_PTHREADTYPES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_PTHREADTYPES ++ # Requires: 1 >= CYGINT_ISO_PTHREADTYPES ++ # interface CYGINT_ISO_PMUTEXTYPES ++ # Requires: 1 >= CYGINT_ISO_PTHREADTYPES ++}; ++ ++# POSIX thread types implementation header ++# ++cdl_option CYGBLD_ISO_PTHREADTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX mutex types implementations ++# ++cdl_interface CYGINT_ISO_PMUTEXTYPES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_PTHREADTYPES ++ # CYGINT_ISO_PTHREADTYPES == 0 ++ # --> 1 ++}; ++ ++# POSIX mutex types implementation header ++# ++cdl_option CYGBLD_ISO_PMUTEXTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# ssize_t implementation header ++# ++cdl_option CYGBLD_ISO_SSIZE_T_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Filesystem types implementation header ++# ++cdl_option CYGBLD_ISO_FSTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# gid_t, pid_t, uid_t implementation header ++# ++cdl_option CYGBLD_ISO_SCHEDTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Non-POSIX contents ++# This covers the extra types required by non-POSIX ++# packages to be in . These would normally ++# only be visible if _POSIX_SOURCE is not defined. ++# ++cdl_component CYGPKG_ISO_EXTRA_TYPES { ++ # There is no associated value. ++}; ++ ++# > ++# BSD compatible types ++# ++cdl_interface CYGINT_ISO_BSDTYPES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_BSDTYPES ++ # CYGINT_ISO_BSDTYPES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_BSDTYPES ++ # Requires: 1 >= CYGINT_ISO_BSDTYPES ++}; ++ ++# BSD types header ++# ++cdl_option CYGBLD_ISO_BSDTYPES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Utsname structure ++# ++cdl_component CYGPKG_ISO_UTSNAME { ++ # There is no associated value. ++}; ++ ++# > ++# Utsname header ++# ++cdl_option CYGBLD_ISO_UTSNAME_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# POSIX scheduler ++# ++cdl_component CYGPKG_ISO_SCHED { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX scheduler implementations ++# ++cdl_interface CYGINT_ISO_SCHED_IMPL { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_SCHED_IMPL ++ # CYGINT_ISO_SCHED_IMPL == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SCHED_IMPL ++ # Requires: 1 >= CYGINT_ISO_SCHED_IMPL ++}; ++ ++# POSIX scheduler implementation header ++# ++cdl_option CYGBLD_ISO_SCHED_IMPL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# POSIX semaphores ++# ++cdl_component CYGPKG_ISO_SEMAPHORES { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX semaphore implementations ++# ++cdl_interface CYGINT_ISO_SEMAPHORES { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_SEMAPHORES ++ # CYGINT_ISO_SEMAPHORES == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SEMAPHORES ++ # Requires: 1 >= CYGINT_ISO_SEMAPHORES ++}; ++ ++# POSIX semaphore implementation header ++# ++cdl_option CYGBLD_ISO_SEMAPHORES_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# POSIX message queues ++# ++cdl_component CYGPKG_ISO_MQUEUE { ++ # There is no associated value. ++}; ++ ++# > ++# Implementations ++# ++cdl_interface CYGINT_ISO_MQUEUE { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_MQUEUE ++ # CYGINT_ISO_MQUEUE == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_MQUEUE ++ # Requires: 1 >= CYGINT_ISO_MQUEUE ++ # option CYGNUM_ISO_MQUEUE_OPEN_MAX ++ # ActiveIf: CYGINT_ISO_MQUEUE ++ # option CYGNUM_ISO_MQUEUE_PRIO_MAX ++ # ActiveIf: CYGINT_ISO_MQUEUE ++}; ++ ++# Implementation header ++# ++cdl_option CYGBLD_ISO_MQUEUE_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Maximum number of open message queues ++# ++cdl_option CYGNUM_ISO_MQUEUE_OPEN_MAX { ++ # This option is not active ++ # ActiveIf constraint: CYGINT_ISO_MQUEUE ++ # CYGINT_ISO_MQUEUE == 0 ++ # --> 0 ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: CYGNUM_POSIX_MQUEUE_OPEN_MAX > 0 ? CYGNUM_POSIX_MQUEUE_OPEN_MAX : 0 ++ # CYGNUM_POSIX_MQUEUE_OPEN_MAX (unknown) == 0 ++ # CYGNUM_POSIX_MQUEUE_OPEN_MAX (unknown) == 0 ++ # --> 0 0 ++}; ++ ++# Maximum number of message priorities ++# ++cdl_option CYGNUM_ISO_MQUEUE_PRIO_MAX { ++ # This option is not active ++ # ActiveIf constraint: CYGINT_ISO_MQUEUE ++ # CYGINT_ISO_MQUEUE == 0 ++ # --> 0 ++ ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 65535 ++ # value_source default ++ # Default value: 1 65535 ++}; ++ ++# < ++# POSIX threads ++# ++cdl_component CYGPKG_ISO_PTHREAD { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX pthread implementations ++# ++cdl_interface CYGINT_ISO_PTHREAD_IMPL { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_PTHREAD_IMPL ++ # CYGINT_ISO_PTHREAD_IMPL == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_PTHREAD_IMPL ++ # Requires: 1 >= CYGINT_ISO_PTHREAD_IMPL ++}; ++ ++# POSIX pthread implementation header ++# ++cdl_option CYGBLD_ISO_PTHREAD_IMPL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX mutex/cond var implementations ++# ++cdl_interface CYGINT_ISO_PTHREAD_MUTEX { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_PTHREAD_MUTEX ++ # CYGINT_ISO_PTHREAD_MUTEX == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_PTHREAD_MUTEX ++ # Requires: 1 >= CYGINT_ISO_PTHREAD_MUTEX ++}; ++ ++# POSIX mutex/cond var implementation header ++# ++cdl_option CYGBLD_ISO_PTHREAD_MUTEX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Limits ++# ++cdl_component CYGPKG_ISO_LIMITS { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX pthread limits implementations ++# ++cdl_interface CYGINT_ISO_POSIX_LIMITS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_POSIX_LIMITS ++ # CYGINT_ISO_POSIX_LIMITS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_LIMITS ++ # Requires: 1 >= CYGINT_ISO_POSIX_LIMITS ++}; ++ ++# POSIX pthread limits implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_LIMITS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# OPEN_MAX implementation header ++# ++cdl_option CYGBLD_ISO_OPEN_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# LINK_MAX implementation header ++# ++cdl_option CYGBLD_ISO_LINK_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# NAME_MAX implementation header ++# ++cdl_option CYGBLD_ISO_NAME_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# PATH_MAX implementation header ++# ++cdl_option CYGBLD_ISO_PATH_MAX_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# POSIX termios ++# ++cdl_component CYGPKG_ISO_TERMIOS { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX termios implementations ++# ++cdl_interface CYGINT_ISO_TERMIOS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_TERMIOS ++ # CYGINT_ISO_TERMIOS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_TERMIOS ++ # Requires: 1 >= CYGINT_ISO_TERMIOS ++}; ++ ++# POSIX termios implementation header ++# ++cdl_option CYGBLD_ISO_TERMIOS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Dynamic load API ++# ++cdl_component CYGPKG_ISO_DLFCN { ++ # There is no associated value. ++}; ++ ++# > ++# Dynamic load implementations ++# ++cdl_interface CYGINT_ISO_DLFCN { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ # Requires: 1 >= CYGINT_ISO_DLFCN ++ # CYGINT_ISO_DLFCN == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_DLFCN ++ # Requires: 1 >= CYGINT_ISO_DLFCN ++}; ++ ++# Dynamic load implementation header ++# ++cdl_option CYGBLD_ISO_DLFCN_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# UNIX standard functions ++# ++cdl_component CYGPKG_ISO_UNISTD { ++ # There is no associated value. ++}; ++ ++# > ++# POSIX timer operations implementations ++# ++cdl_interface CYGINT_ISO_POSIX_TIMER_OPS { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMER_OPS ++ # CYGINT_ISO_POSIX_TIMER_OPS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_TIMER_OPS ++ # Requires: 1 >= CYGINT_ISO_POSIX_TIMER_OPS ++}; ++ ++# POSIX timer operations implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_TIMER_OPS_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# POSIX sleep() implementations ++# ++cdl_interface CYGINT_ISO_POSIX_SLEEP { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_POSIX_SLEEP ++ # CYGINT_ISO_POSIX_SLEEP == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POSIX_SLEEP ++ # Requires: 1 >= CYGINT_ISO_POSIX_SLEEP ++}; ++ ++# POSIX sleep() implementation header ++# ++cdl_option CYGBLD_ISO_POSIX_SLEEP_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# select()/poll() functions ++# ++cdl_component CYGPKG_ISO_SELECT { ++ # There is no associated value. ++}; ++ ++# > ++# select() implementations ++# ++cdl_interface CYGINT_ISO_SELECT { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_SELECT ++ # CYGINT_ISO_SELECT == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_SELECT ++ # Requires: 1 >= CYGINT_ISO_SELECT ++}; ++ ++# select() implementation header ++# ++cdl_option CYGBLD_ISO_SELECT_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# poll() implementations ++# ++cdl_interface CYGINT_ISO_POLL { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 0 0 ++ # Requires: 1 >= CYGINT_ISO_POLL ++ # CYGINT_ISO_POLL == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_POLL ++ # Requires: 1 >= CYGINT_ISO_POLL ++}; ++ ++# poll() implementation header ++# ++cdl_option CYGBLD_ISO_POLL_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# NetDB utility functions ++# ++cdl_component CYGPKG_ISO_NETDB { ++ # There is no associated value. ++}; ++ ++# > ++# DNS implementations ++# ++cdl_interface CYGINT_ISO_DNS { ++ # Implemented by CYGPKG_NS_DNS_BUILD, active, disabled ++ # This value cannot be modified here. ++ # Flavor: bool ++ # Current value: 0 ++ # Requires: 1 >= CYGINT_ISO_DNS ++ # CYGINT_ISO_DNS == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_DNS ++ # Requires: 1 >= CYGINT_ISO_DNS ++}; ++ ++# DNS implementation header ++# ++cdl_option CYGBLD_ISO_DNS_HEADER { ++ # Flavor: booldata ++ user_value 1 ++ # value_source user ++ # Default value: 0 0 ++ ++ # The following properties are affected by this value ++ # option CYGPKG_NS_DNS_BUILD ++ # Requires: CYGBLD_ISO_DNS_HEADER == "" ++}; ++ ++# Protocol network database implementations ++# ++cdl_interface CYGINT_ISO_NETDB_PROTO { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: bool ++ # Current value: 0 ++ # Requires: 1 >= CYGINT_ISO_NETDB_PROTO ++ # CYGINT_ISO_NETDB_PROTO == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_NETDB_PROTO ++ # Requires: 1 >= CYGINT_ISO_NETDB_PROTO ++}; ++ ++# Protocol network database implementation header ++# ++cdl_option CYGBLD_ISO_NETDB_PROTO_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# Services network database implementations ++# ++cdl_interface CYGINT_ISO_NETDB_SERV { ++ # No options implement this inferface ++ # This value cannot be modified here. ++ # Flavor: bool ++ # Current value: 0 ++ # Requires: 1 >= CYGINT_ISO_NETDB_SERV ++ # CYGINT_ISO_NETDB_SERV == 0 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_ISO_NETDB_SERV ++ # Requires: 1 >= CYGINT_ISO_NETDB_SERV ++}; ++ ++# Services network database implementation header ++# ++cdl_option CYGBLD_ISO_NETDB_SERV_HEADER { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# < ++# Build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_ISOINFRA_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the ISO C and POSIX infrastructure package. ++# These flags are used in addition to the set of global flags. ++# ++cdl_option CYGPKG_ISOINFRA_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the ISO C and POSIX infrastructure package. ++# These flags are removed from the set of global flags ++# if present. ++# ++cdl_option CYGPKG_ISOINFRA_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# < ++# Compute CRCs ++# doc: ref/services-crc.html ++# This package provides support for CRC calculation. Currently ++# this is the POSIX 1003 defined CRC algorithm, a 32 CRC by ++# Gary S. Brown, and a 16 bit CRC. ++# ++cdl_package CYGPKG_CRC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # package CYGPKG_COMPRESS_ZLIB ++ # Requires: CYGPKG_CRC ++}; ++ ++# > ++# POSIX CRC tests ++# ++cdl_option CYGPKG_CRC_TESTS { ++ # Calculated value: "tests/crc_test" ++ # Flavor: data ++ # Current_value: tests/crc_test ++}; ++ ++# < ++# Zlib compress and decompress package ++# This package provides support for compression and ++# decompression. ++# ++cdl_package CYGPKG_COMPRESS_ZLIB { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGPKG_CRC ++ # CYGPKG_CRC == current ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # component CYGBLD_BUILD_REDBOOT_WITH_ZLIB ++ # ActiveIf: CYGPKG_COMPRESS_ZLIB ++}; ++ ++# > ++# Override memory allocation routines. ++# ++cdl_interface CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC { ++ # Implemented by CYGBLD_REDBOOT_ZLIB_LOCAL_ALLOC, inactive, disabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 0 ++ ++ # The following properties are affected by this value ++ # option CYGSEM_COMPRESS_ZLIB_NEEDS_MALLOC ++ # ActiveIf: CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC == 0 ++}; ++ ++# Should deflate() produce 'gzip' compatible output? ++# If this option is set then the output of calling deflate() ++# will be wrapped up as a 'gzip' compatible file. ++# ++cdl_option CYGSEM_COMPRESS_ZLIB_DEFLATE_MAKES_GZIP { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Does this library need malloc? ++# This pseudo-option will force the memalloc library to be ++# required iff the application does not provide it's own ++# infrastructure. ++# ++cdl_option CYGSEM_COMPRESS_ZLIB_NEEDS_MALLOC { ++ # ActiveIf constraint: CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC == 0 ++ # CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC == 0 ++ # --> 1 ++ ++ # Flavor: bool ++ user_value 1 ++ # value_source user ++ # Default value: 1 ++ # Requires: CYGPKG_MEMALLOC ++ # CYGPKG_MEMALLOC == current ++ # --> 1 ++}; ++ ++# Zlib compress and decompress package build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_COMPRESS_ZLIB_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_COMPRESS_ZLIB_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "-D__ECOS__ -DNO_ERRNO_H" ++ # value_source default ++ # Default value: "-D__ECOS__ -DNO_ERRNO_H" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_COMPRESS_ZLIB_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value -Wstrict-prototypes ++ # value_source default ++ # Default value: -Wstrict-prototypes ++}; ++ ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_COMPRESS_ZLIB_LDFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_COMPRESS_ZLIB_LDFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# zlib tests ++# ++cdl_option CYGPKG_COMPRESS_ZLIB_TESTS { ++ # Calculated value: "tests/zlib1.c tests/zlib2.c" ++ # Flavor: data ++ # Current_value: tests/zlib1.c tests/zlib2.c ++}; ++ ++# < ++# DNS client ++# doc: ref/net-ns-dns.html ++# ++cdl_package CYGPKG_NS_DNS { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # component CYGPKG_REDBOOT_NETWORKING_DNS ++ # ActiveIf: CYGPKG_NS_DNS ++}; ++ ++# > ++# Build DNS NS client package ++# ++cdl_option CYGPKG_NS_DNS_BUILD { ++ # Flavor: bool ++ user_value 0 ++ # value_source user ++ # Default value: 1 ++ # Requires: CYGBLD_ISO_DNS_HEADER == "" ++ # CYGBLD_ISO_DNS_HEADER == ++ # --> 1 ++ # Requires: CYGPKG_NET ++ # CYGPKG_NET (unknown) == 0 ++ # --> 0 ++ # Requires: CYGINT_ISO_CTYPE ++ # CYGINT_ISO_CTYPE == 0 ++ # --> 0 ++ # Requires: CYGINT_ISO_MALLOC ++ # CYGINT_ISO_MALLOC == 1 ++ # --> 1 ++ # Requires: CYGINT_ISO_STRING_STRFUNCS ++ # CYGINT_ISO_STRING_STRFUNCS == 1 ++ # --> 1 ++ # Requires: CYGSEM_KERNEL_THREADS_DESTRUCTORS_PER_THREAD ++ # CYGSEM_KERNEL_THREADS_DESTRUCTORS_PER_THREAD (unknown) == 0 ++ # --> 0 ++ ++ # The following properties are affected by this value ++ # component CYGPKG_NS_DNS_DEFAULT ++ # ActiveIf: CYGPKG_NS_DNS_BUILD ++ # component CYGPKG_NS_DNS_DOMAINNAME ++ # ActiveIf: CYGPKG_NS_DNS_BUILD ++ # option CYGPKG_NS_DNS_TESTS ++ # ActiveIf: CYGPKG_NS_DNS_BUILD ++ # component CYGPKG_REDBOOT_NETWORKING_DNS ++ # Requires: !CYGPKG_NS_DNS_BUILD ++}; ++ ++# Provide a hard coded default server address ++# This option controls the use of a default, hard coded DNS ++# server. When this is enabled, the IPv4 or IPv6 address in ++# the CDL option CYGDAT_NS_DNS_DEFAULT_SERVER is used in ++# init_all_network_interfaces() to start the resolver using ++# the specified server. The DHCP client or user code may ++# override this by restarting the resolver. ++# ++cdl_component CYGPKG_NS_DNS_DEFAULT { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NS_DNS_BUILD ++ # CYGPKG_NS_DNS_BUILD == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# IP address of the default DNS server ++# ++cdl_option CYGDAT_NS_DNS_DEFAULT_SERVER { ++ # This option is not active ++ # The parent CYGPKG_NS_DNS_DEFAULT is not active ++ # The parent CYGPKG_NS_DNS_DEFAULT is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 192.168.1.1 ++ # value_source default ++ # Default value: 192.168.1.1 ++}; ++ ++# < ++# Provide a hard coded default domain name ++# This option controls the use of a default, hard coded ++# domain name to be used when querying a DNS server. When ++# this is enabled, the name in the CDL option ++# CYGDAT_NS_DNS_DOMAINNAME_NAME is used in ++# init_all_network_interfaces() to set the domain name as ++# accessed by getdomainname(). ++# ++cdl_component CYGPKG_NS_DNS_DOMAINNAME { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NS_DNS_BUILD ++ # CYGPKG_NS_DNS_BUILD == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# > ++# Domain name for this device ++# ++cdl_option CYGDAT_NS_DNS_DOMAINNAME_NAME { ++ # This option is not active ++ # The parent CYGPKG_NS_DNS_DOMAINNAME is not active ++ # The parent CYGPKG_NS_DNS_DOMAINNAME is disabled ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value default.domain.com ++ # value_source default ++ # Default value: default.domain.com ++}; ++ ++# < ++# Max number of results for getaddrinfo ++# This option controls the number of addresses the DNS client ++# can return to getaddrinfo and hence the size of the buffer ++# passed to the DNS client. ++# ++cdl_option CYGNUM_NS_DNS_GETADDRINFO_ADDRESSES { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 5 ++ # value_source default ++ # Default value: 5 ++}; ++ ++# AF_INET or AF_INET6 first in the getaddrinfo list ++# This option controls the order DNS results will appear in the ++# information returned by getaddrinfo. This will in turn control ++# the order in which network clients try talking to servers, ++# ie does it try IPv6 or IPv4 addresses first when it has both ++# types of addresses. ++# ++cdl_option CYGOPT_NS_DNS_FIRST_FAMILY { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NET_INET6 ++ # CYGPKG_NET_INET6 (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value AF_INET6 ++ # value_source default ++ # Default value: AF_INET6 ++ # Legal values: "AF_INET4" "AF_INET6" ++}; ++ ++# DNS support build options ++# ++cdl_component CYGPKG_NS_DNS_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building the DNS package. ++# These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_NS_DNS_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "-D_KERNEL -D__ECOS" ++ # value_source default ++ # Default value: "-D_KERNEL -D__ECOS" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building the DNS package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_NS_DNS_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# < ++# DNS test ++# This option specifies the set of tests for the DNS package. ++# ++cdl_option CYGPKG_NS_DNS_TESTS { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_NS_DNS_BUILD ++ # CYGPKG_NS_DNS_BUILD == 0 ++ # --> 0 ++ ++ # Calculated value: "tests/dns1" ++ # Flavor: data ++ # Current_value: tests/dns1 ++}; ++ ++# Use Andrew Lunn's DNS server for tests ++# Run the tests against Andrew Lunn's DNS server. Servers ++# come and go, IP addresses change, links are sometime down. ++# So this may not work.... ++# ++cdl_option CYGPKG_NS_DNS_TESTS_LUNN { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Iztok Zupet DNS server at Elsis for tests ++# Run the tests against Iztok Zupet DNS server at ++# Elsis. Servers come and go, IP addresses change, links are ++# sometime down. So this may not work.... ++# ++cdl_option CYGPKG_NS_DNS_TESTS_ELSIS { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Dynamic memory allocation ++# This package provides memory allocator infrastructure required for ++# dynamic memory allocators, including the ISO standard malloc ++# interface. It also contains some sample implementations. ++# ++cdl_package CYGPKG_MEMALLOC { ++ # Packages cannot be added or removed, nor can their version be changed, ++ # simply by editing their value. Instead the appropriate configuration ++ # should be used to perform these actions. ++ ++ # This value cannot be modified here. ++ # Flavor: booldata ++ # Current value: 1 current ++ ++ # The following properties are affected by this value ++ # option CYGBLD_REDBOOT_ZLIB_LOCAL_ALLOC ++ # ActiveIf: !CYGPKG_MEMALLOC ++ # option CYGNUM_REDBOOT_MEMALLOC_POOL_SIZE ++ # ActiveIf: CYGPKG_MEMALLOC ++ # option CYGSEM_COMPRESS_ZLIB_NEEDS_MALLOC ++ # Requires: CYGPKG_MEMALLOC ++}; ++ ++# > ++# Memory allocator implementations ++# This component contains configuration options related to the ++# various memory allocators available. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATORS { ++ # There is no associated value. ++}; ++ ++# > ++# Fixed block allocator ++# This component contains configuration options related to the ++# fixed block memory allocator. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATOR_FIXED { ++ # There is no associated value. ++}; ++ ++# > ++# Make thread safe ++# With this option enabled, this allocator will be ++# made thread-safe. Additionally allocation functions ++# are made available that allow a thread to wait ++# until memory is available. ++# ++cdl_option CYGSEM_MEMALLOC_ALLOCATOR_FIXED_THREADAWARE { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# Simple variable block allocator ++# This component contains configuration options related to the ++# simple variable block memory allocator. This allocator is not ++# very fast, and in particular does not scale well with large ++# numbers of allocations. It is however very compact in terms of ++# code size and does not have very much overhead per allocation. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATOR_VARIABLE { ++ # There is no associated value. ++}; ++ ++# > ++# Make thread safe ++# With this option enabled, this allocator will be ++# made thread-safe. Additionally allocation functions ++# are added that allow a thread to wait until memory ++# are made available that allow a thread to wait ++# until memory is available. ++# ++cdl_option CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_THREADAWARE { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Coalesce memory ++# The variable-block memory allocator can perform coalescing ++# of memory whenever the application code releases memory back ++# to the pool. This coalescing reduces the possibility of ++# memory fragmentation problems, but involves extra code and ++# processor cycles. ++# ++cdl_option CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ ++ # The following properties are affected by this value ++ # option CYGIMP_MEMALLOC_MALLOC_VARIABLE_SIMPLE ++ # Requires: CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE ++}; ++ ++# < ++# Doug Lea's malloc ++# This component contains configuration options related to the ++# port of Doug Lea's memory allocator, normally known as ++# dlmalloc. dlmalloc has a reputation for being both fast ++# and space-conserving, as well as resisting fragmentation well. ++# It is a common choice for a general purpose allocator and ++# has been used in both newlib and Linux glibc. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATOR_DLMALLOC { ++ # There is no associated value. ++}; ++ ++# > ++# Debug build ++# Doug Lea's malloc implementation has substantial amounts ++# of internal checking in order to verify the operation ++# and consistency of the allocator. However this imposes ++# substantial overhead on each operation. Therefore this ++# checking may be individually disabled. ++# ++cdl_option CYGDBG_MEMALLOC_ALLOCATOR_DLMALLOC_DEBUG { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 != CYGDBG_USE_ASSERTS ++ # CYGDBG_USE_ASSERTS == 0 ++ # --> 0 ++ # Requires: CYGDBG_USE_ASSERTS ++ # CYGDBG_USE_ASSERTS == 0 ++ # --> 0 ++}; ++ ++# Make thread safe ++# With this option enabled, this allocator will be ++# made thread-safe. Additionally allocation functions ++# are made available that allow a thread to wait ++# until memory is available. ++# ++cdl_option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_THREADAWARE { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++}; ++ ++# Support more than one instance ++# Having this option disabled allows important ++# implementation structures to be declared as a single ++# static instance, allowing faster access. However this ++# would fail if there is more than one instance of ++# the dlmalloc allocator class. Therefore this option can ++# be enabled if multiple instances are required. Note: as ++# a special case, if this allocator is used as the ++# implementation of malloc, and it can be determined there ++# is more than one malloc pool, then this option will be ++# silently enabled. ++# ++cdl_option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_SAFE_MULTIPLE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# Use system memcpy() and memset() ++# This may be used to control whether memset() and memcpy() ++# are used within the implementation. The alternative is ++# to use some macro equivalents, which some people report ++# are faster in some circumstances. ++# ++cdl_option CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_USE_MEMCPY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 0 != CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ # Requires: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++}; ++ ++# Minimum alignment of allocated blocks ++# This option controls the minimum alignment that the ++# allocated memory blocks are aligned on, specified as ++# 2^N. Note that using large mininum alignments can lead ++# to excessive memory wastage. ++# ++cdl_option CYGNUM_MEMALLOC_ALLOCATOR_DLMALLOC_ALIGNMENT { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 3 ++ # value_source default ++ # Default value: 3 ++ # Legal values: 3 to 10 ++}; ++ ++# < ++# Variable block allocator with separate metadata ++# This component contains configuration options related to the ++# variable block memory allocator with separate metadata. ++# ++cdl_component CYGPKG_MEMALLOC_ALLOCATOR_SEPMETA { ++ # There is no associated value. ++}; ++ ++# > ++# Make thread safe ++# With this option enabled, this allocator will be ++# made thread-safe. Additionally allocation functions ++# are made available that allow a thread to wait ++# until memory is available. ++# ++cdl_option CYGSEM_MEMALLOC_ALLOCATOR_SEPMETA_THREADAWARE { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# < ++# < ++# Kernel C API support for memory allocation ++# This option must be enabled to provide the extensions required ++# to support integration into the kernel C API. ++# ++cdl_option CYGFUN_MEMALLOC_KAPI { ++ # This option is not active ++ # ActiveIf constraint: CYGPKG_KERNEL ++ # CYGPKG_KERNEL (unknown) == 0 ++ # --> 0 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: CYGFUN_KERNEL_API_C ++ # CYGFUN_KERNEL_API_C (unknown) == 0 ++ # --> 0 ++}; ++ ++# malloc(0) returns NULL ++# This option controls the behavior of malloc(0) ( or calloc with ++# either argument 0 ). It is permitted by the standard to return ++# either a NULL pointer or a unique pointer. Enabling this option ++# forces a NULL pointer to be returned. ++# ++cdl_option CYGSEM_MEMALLOC_MALLOC_ZERO_RETURNS_NULL { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# Breakpoint site when running out of memory ++# Whenever the system runs out of memory, it invokes this function ++# before either going to sleep waiting for memory to become ++# available or returning failure. ++# ++cdl_option CYGSEM_MEMALLOC_INVOKE_OUT_OF_MEMORY { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++}; ++ ++# malloc() and supporting allocators ++# This component enables support for dynamic memory ++# allocation as supplied by the functions malloc(), ++# free(), calloc() and realloc(). As these ++# functions are often used, but can have quite an ++# overhead, disabling them here can ensure they ++# cannot even be used accidentally when static ++# allocation is preferred. Within this component are ++# various allocators that can be selected for use ++# as the underlying implementation of the dynamic ++# allocation functions. ++# ++cdl_component CYGPKG_MEMALLOC_MALLOC_ALLOCATORS { ++ # ActiveIf constraint: CYGPKG_ISOINFRA ++ # CYGPKG_ISOINFRA == current ++ # --> 1 ++ ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++}; ++ ++# > ++# Use external heap definition ++# This option allows other components in the ++# system to override the default system ++# provision of heap memory pools. This should ++# be set to a header which provides the equivalent ++# definitions to . ++# ++cdl_component CYGBLD_MEMALLOC_MALLOC_EXTERNAL_HEAP_H { ++ # Flavor: booldata ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 0 ++ # value_source default ++ # Default value: 0 0 ++}; ++ ++# malloc() allocator implementations ++# ++cdl_interface CYGINT_MEMALLOC_MALLOC_ALLOCATORS { ++ # Implemented by CYGIMP_MEMALLOC_MALLOC_VARIABLE_SIMPLE, active, disabled ++ # Implemented by CYGIMP_MEMALLOC_MALLOC_DLMALLOC, active, enabled ++ # This value cannot be modified here. ++ # Flavor: data ++ # Current_value: 1 ++ # Requires: CYGINT_MEMALLOC_MALLOC_ALLOCATORS == 1 ++ # CYGINT_MEMALLOC_MALLOC_ALLOCATORS == 1 ++ # --> 1 ++ ++ # The following properties are affected by this value ++ # interface CYGINT_MEMALLOC_MALLOC_ALLOCATORS ++ # Requires: CYGINT_MEMALLOC_MALLOC_ALLOCATORS == 1 ++}; ++ ++# malloc() implementation instantiation data ++# Memory allocator implementations that are capable of being ++# used underneath malloc() must be instantiated. The code ++# to do this is set in this option. It is only intended to ++# be set by the implementation, not the user. ++# ++cdl_option CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value ++ # value_source default ++ # Default value: ++ ++ # The following properties are affected by this value ++ # option CYGIMP_MEMALLOC_MALLOC_VARIABLE_SIMPLE ++ # Requires: CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == "" ++ # option CYGIMP_MEMALLOC_MALLOC_DLMALLOC ++ # Requires: CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == "" ++}; ++ ++# Simple variable block implementation ++# This causes malloc() to use the simple ++# variable block allocator. ++# ++cdl_option CYGIMP_MEMALLOC_MALLOC_VARIABLE_SIMPLE { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 0 ++ # value_source default ++ # Default value: 0 ++ # Requires: CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == "" ++ # CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == ++ # --> 0 ++ # Requires: CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE ++ # CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_COALESCE == 1 ++ # --> 1 ++}; ++ ++# Doug Lea's malloc implementation ++# This causes malloc() to use a version of Doug Lea's ++# malloc (dlmalloc) as the underlying implementation. ++# ++cdl_option CYGIMP_MEMALLOC_MALLOC_DLMALLOC { ++ # Flavor: bool ++ # No user value, uncomment the following line to provide one. ++ # user_value 1 ++ # value_source default ++ # Default value: 1 ++ # Requires: CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == "" ++ # CYGBLD_MEMALLOC_MALLOC_IMPLEMENTATION_HEADER == ++ # --> 1 ++}; ++ ++# < ++# Size of the fallback dynamic memory pool in bytes ++# If *no* heaps are configured in your memory layout, ++# dynamic memory allocation by ++# malloc() and calloc() must be from a fixed-size, ++# contiguous memory pool (note here that it is the ++# pool that is of a fixed size, but malloc() is still ++# able to allocate variable sized chunks of memory ++# from it). This option is the size ++# of that pool, in bytes. Note that not all of ++# this is available for programs to ++# use - some is needed for internal information ++# about memory regions, and some may be lost to ++# ensure that memory allocation only returns ++# memory aligned on word (or double word) ++# boundaries - a very common architecture ++# constraint. ++# ++cdl_option CYGNUM_MEMALLOC_FALLBACK_MALLOC_POOL_SIZE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value 16384 ++ # value_source default ++ # Default value: 16384 ++ # Legal values: 32 to 0x7fffffff ++}; ++ ++# Common memory allocator package build options ++# Package specific build options including control over ++# compiler flags used only in building this package, ++# and details of which tests are built. ++# ++cdl_component CYGPKG_MEMALLOC_OPTIONS { ++ # There is no associated value. ++}; ++ ++# > ++# Additional compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are used in addition ++# to the set of global flags. ++# ++cdl_option CYGPKG_MEMALLOC_CFLAGS_ADD { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Suppressed compiler flags ++# This option modifies the set of compiler flags for ++# building this package. These flags are removed from ++# the set of global flags if present. ++# ++cdl_option CYGPKG_MEMALLOC_CFLAGS_REMOVE { ++ # Flavor: data ++ # No user value, uncomment the following line to provide one. ++ # user_value "" ++ # value_source default ++ # Default value: "" ++}; ++ ++# Tests ++# This option specifies the set of tests for this package. ++# ++cdl_option CYGPKG_MEMALLOC_TESTS { ++ # Calculated value: "tests/dlmalloc1 tests/dlmalloc2 tests/heaptest tests/kmemfix1 tests/kmemvar1 tests/malloc1 tests/malloc2 tests/malloc3 tests/malloc4 tests/memfix1 tests/memfix2 tests/memvar1 tests/memvar2 tests/realloc tests/sepmeta1 tests/sepmeta2" ++ # Flavor: data ++ # Current_value: tests/dlmalloc1 tests/dlmalloc2 tests/heaptest tests/kmemfix1 tests/kmemvar1 tests/malloc1 tests/malloc2 tests/malloc3 tests/malloc4 tests/memfix1 tests/memfix2 tests/memvar1 tests/memvar2 tests/realloc tests/sepmeta1 tests/sepmeta2 ++}; ++ ++# < ++# < ++# < ++ +diff --git a/tests/ecos/ethercat.cxx ./tests/ecos/ethercat.cxx +new file mode 100644 +index 0000000..56f60a6 +--- /dev/null ++++ ./tests/ecos/ethercat.cxx +@@ -0,0 +1,146 @@ ++// $Id: ethercat.cxx,v 1.12 2006/02/23 09:32:27 kgad Exp $ ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++#include ++#include ++#include ++#include ++#include ++ ++// Generate some load (for latency testing) ++extern void cyg_load_init(void); ++// Generate process data ++extern void cyg_pd_init(void); ++ ++// Initialize slave database ++void init_slave_db(void); ++ ++int main() ++{ ++ // DLL ++ // EtherCAT_DataLinkLayer * dll = EtherCAT_DataLinkLayer::instance(); ++ ++ // Init slave db ++ init_slave_db(); ++ ++ printf("Creating Master\n"); ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ printf("Getting Slave Handler\n"); ++ EtherCAT_SlaveHandler * sh = EM->get_slave_handler(0x03e9); ++ bool succeed = sh->to_state(EC_OP_STATE); ++ if (succeed) { ++ printf("EVA board now in OP state\n"); ++ succeed = sh->to_state(EC_INIT_STATE); ++ if (succeed) { ++ printf("And now back in INIT state\n"); ++ // UNCOMMENT THE FOLLOWING LINE IF YOU WANT TO VERIFY THAT NO ++ // PROCESS DATA IS SENT IF THE BOARD IS NOT IN ITS OPERATIONAL ++ // STATE!! ++ bool succeed = sh->to_state(EC_OP_STATE); ++ if (succeed) { ++ printf("And up and operational again\n"); ++ printf("Sending PD, look at the lights...\n"); ++ cyg_pd_init(); ++ } ++ } ++ } ++ ++ // For testing mbx functionality as much as possible... ++ /* ++ EtherCAT_SlaveHandler * csh = EM->get_slave_handler(0x03ea); ++ succeed = csh->to_state(EC_PREOP_STATE); ++ if (succeed) { ++ printf("Complex slave now in PREOP state\n"); ++ succeed = csh->to_state(EC_INIT_STATE); ++ if (succeed) { ++ printf("And now back in INIT state\n"); ++ bool succeed = csh->to_state(EC_SAFEOP_STATE); ++ if (succeed) { ++ printf("And to SAFEOP\n"); ++ } ++ } ++ } ++ */ ++ ++ // GENERATE SOME LOAD FOR LATENCY TEST... ++ // cyg_load_init(); ++ ++ printf("Hello EtherCAT world\n"); ++ return 0; ++} ++ ++// Configuration data of EVA board ++EC_FMMU fmmu0(0x00010000,0x0002,0x00,0x07,0x1100,0x00,false,true,true); ++EC_FMMU fmmu1(0x00010000,0x0002,0x00,0x07,0x1000,0x00,true,false,true); ++EtherCAT_FMMU_Config fmmu_conf(2); ++EC_SyncMan SyncMan0(0x1100,0x0002, ++ EC_BUFFERED,EC_WRITTEN_FROM_MASTER,false,true, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EC_SyncMan SyncMan1(0x1000,0x0002, ++ EC_BUFFERED,EC_READ_FROM_MASTER,false,false, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EtherCAT_PD_Config pd_conf(2); ++ ++EtherCAT_SlaveConfig EC_evaboard(0x26483052,0x000104b0,0x03e9,&fmmu_conf,&pd_conf); ++ ++// Trying to create mbx for testing some of the mbx software... ++/* ++EC_SyncMan SyncMan_mbx0(0x1400,0x0100, ++ EC_QUEUED,EC_WRITTEN_FROM_MASTER,false,true, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EC_SyncMan SyncMan_mbx1(0x1500,0x0100, ++ EC_QUEUED,EC_READ_FROM_MASTER,false,false, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EtherCAT_MbxConfig mbx_conf = { SyncMan_mbx0, SyncMan_mbx0 }; ++EtherCAT_SlaveConfig EC_EL4102(0x10063052,0x270b0000,0x03ea,&fmmu_conf,&pd_conf,&mbx_conf); ++*/ ++ ++void init_slave_db(void) ++{ ++ EtherCAT_SlaveDb * slave_db = EtherCAT_SlaveDb::instance(1); ++ fmmu_conf[0] = fmmu0; fmmu_conf[1] = fmmu1; ++ pd_conf[0] = SyncMan0; pd_conf[1] = SyncMan1; ++ slave_db->set_conf(&EC_evaboard,0); ++ ++ // For testing mbx... ++ /* ++ EtherCAT_SlaveDb * slave_db = EtherCAT_SlaveDb::instance(2); ++ fmmu_conf[0] = fmmu0; fmmu_conf[1] = fmmu1; ++ pd_conf[0] = SyncMan0; pd_conf[1] = SyncMan1; ++ slave_db->set_conf(&EC_evaboard,0); ++ slave_db->set_conf(&EC_EL4102,1); ++ */ ++} ++ +diff --git a/tests/ecos/src/generate_load.cxx ./tests/ecos/src/generate_load.cxx +new file mode 100644 +index 0000000..05ebe5c +--- /dev/null ++++ ./tests/ecos/src/generate_load.cxx +@@ -0,0 +1,96 @@ ++// $Id: generate_load.cxx,v 1.4 2006/02/23 09:32:57 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++#include ++#include ++#include ++#include ++ ++#define CYGNUM_ETHERCATMASTER_LOAD_STACK_SIZE 16384 ++#define CYGNUM_ETHERCATMASTER_LOAD_PRIORITY (CYGNUM_ETHERCATMASTER_DELIVERY_PRIORITY + 15) ++ ++// Load thread data ++static cyg_handle_t h_load_thread; ++static cyg_thread load_thread; ++static unsigned char load_thread_stack[CYGNUM_ETHERCATMASTER_LOAD_STACK_SIZE]; ++ ++static void ++ethercat_load(cyg_addrword_t) ++{ ++ // Generate load here... by printf() statement and sleep for a ++ // random time... ++ unsigned int rnd = 0; ++ cyg_tick_count_t delay = 0; ++ char s[]="Random "; ++ unsigned int i; ++ ++ while (true) ++ { ++ // Get random value here... ++ // Rand goes from zero to RANDMAX... ++ rnd = rand()/10000000; ++ printf("Sleeping %d ticks\n",rnd); ++ delay = (cyg_tick_count_t) rnd; ++ // delay = 100; ++ cyg_thread_delay(delay); ++ for ( i = 0; i < rnd ; i++){ ++ printf("%s",s); ++ } ++ } ++} ++ ++void ++cyg_load_init(void) ++{ ++ static int is_initialised = false; ++ if(is_initialised) return; ++ ++ // KG Check what this does... ++ // cyg_do_net_init(); // Force linking in the initializing constructor ++ ++ // Start helper threads etc here ++ cyg_thread_create(CYGNUM_ETHERCATMASTER_LOAD_PRIORITY, ++ ethercat_load, 0, ++ "EtherCAT Master Load", ++ load_thread_stack, ++ CYGNUM_ETHERCATMASTER_LOAD_STACK_SIZE, ++ &h_load_thread, &load_thread); ++ cyg_thread_resume(h_load_thread); ++ ++ // And bring up devices ++ // cyg_net_init_devs(); ++ ++ // Done ++ is_initialised = true; ++} ++ ++ +diff --git a/tests/ecos/src/process_data.cxx ./tests/ecos/src/process_data.cxx +new file mode 100644 +index 0000000..0732ac9 +--- /dev/null ++++ ./tests/ecos/src/process_data.cxx +@@ -0,0 +1,120 @@ ++// $Id: process_data.cxx,v 1.7 2006/02/23 09:32:57 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#define CYGNUM_ETHERCATMASTER_PD_STACK_SIZE 16384 ++// Should be less important than the delivery thread (running the ++// DSR), but more important than the routing thread (and especially ++// more important than the load thread! ++#define CYGNUM_ETHERCATMASTER_PD_PRIORITY (CYGNUM_ETHERCATMASTER_DELIVERY_PRIORITY + 1) ++ ++/* BIG FAT WARNING: The following thread priority is not for PRODUCTION use. ++ Use it only to verify that the jitter does increase _tremendously_ ++ when the priority of the router and load-generation thread are ++ higher than the priority of the PD thread!! ++*/ ++// #define CYGNUM_ETHERCATMASTER_PD_PRIORITY 25 ++ ++// Process Data thread data ++static cyg_handle_t h_pd_thread; ++static cyg_thread pd_thread; ++static unsigned char pd_thread_stack[CYGNUM_ETHERCATMASTER_PD_STACK_SIZE]; ++ ++// Thread period in nanoseconds ++static const unsigned long long pd_thread_period_ns = 100000000; ++// Convert thread period from nanoseconds to kernel ticks ++static const cyg_tick_count_t pd_thread_period = (pd_thread_period_ns * CYGNUM_HAL_RTC_DENOMINATOR) / CYGNUM_HAL_RTC_NUMERATOR; ++ ++static const unsigned char LOGICAL_MSG_LENGTH = 0x02; ++ ++static void ++ethercat_pd(cyg_addrword_t) ++{ ++ unsigned char logical_msg[LOGICAL_MSG_LENGTH] = {0xff, 0xff}; ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ ++ EC_UINT lights=0x0001; ++ unsigned int counter = 0; ++ while (true){ ++ cyg_thread_delay(pd_thread_period); ++ if (counter < 0xf) { ++ lights = lights << 1; ++ counter++;} ++ else { ++ counter = 0; ++ lights = 0x0001; ++ } ++ logical_msg[0] = (unsigned char) (lights & 0x00ff); ++ logical_msg[1] = (unsigned char) ((lights & 0xff00) >> 8); ++ EM->txandrx_PD(0x02,logical_msg); ++ } ++} ++ ++static void ++ethercat_pd_stresstest(cyg_addrword_t) ++{ ++ unsigned char logical_msg[LOGICAL_MSG_LENGTH] = {0xff, 0xff}; ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ while (true){ ++ cyg_thread_delay(1); ++ // logical_msg[0] = 0xff; ++ // logical_msg[1] = 0xff; ++ EM->txandrx_PD(0x02,logical_msg); ++ } ++} ++ ++void ++cyg_pd_init(void) ++{ ++ static int is_initialised = false; ++ if(is_initialised) return; ++ ++ // Start helper threads etc here ++ cyg_thread_create(CYGNUM_ETHERCATMASTER_PD_PRIORITY, ++ ethercat_pd, 0, ++ "EtherCAT Master Pd", ++ pd_thread_stack, ++ CYGNUM_ETHERCATMASTER_PD_STACK_SIZE, ++ &h_pd_thread, &pd_thread); ++ cyg_thread_resume(h_pd_thread); ++ ++ // Done ++ is_initialised = true; ++} ++ ++ +diff --git a/tests/posix/CMakeLists.txt ./tests/posix/CMakeLists.txt +new file mode 100644 +index 0000000..732ec1c +--- /dev/null ++++ ./tests/posix/CMakeLists.txt +@@ -0,0 +1,10 @@ ++SET (CMAKE_C_FLAGS "${CMAKE_CFLAGS} ${XNPOSIX_USER_CFLAGS}") ++SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") ++ADD_EXECUTABLE(master_test master_test.cpp) ++TARGET_LINK_LIBRARIES(master_test eml) ++# removed eval_test ++#ADD_EXECUTABLE(eval_test eval_test.cpp process_data.cpp) ++#TARGET_LINK_LIBRARIES(eval_test eml) ++TARGET_LINK_LIBRARIES(master_test pthread rt) ++SET_TARGET_PROPERTIES(master_test PROPERTIES LINK_FLAGS "${POSIX_USER_LDFLAGS}") ++ADD_DEPENDENCIES(master_test eml-dynamic) +diff --git a/tests/posix/eval_test.cpp ./tests/posix/eval_test.cpp +new file mode 100644 +index 0000000..be78348 +--- /dev/null ++++ ./tests/posix/eval_test.cpp +@@ -0,0 +1,200 @@ ++// $Id: $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++#include ++#include ++#include ++#include ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++struct netif *ni; ++ ++// Generate process data ++extern void pd_init(long); ++extern void pd_cleanup(); ++ ++// Initialize slave database ++void init_slave_db(void); ++ ++void* eval_master(void*); ++void catch_signal(int sig); ++ ++int main(int argc, char** argv) { ++ ++ signal(SIGTERM, catch_signal); ++ signal(SIGINT, catch_signal); ++ signal(SIGHUP, catch_signal); ++ mlockall(MCL_CURRENT|MCL_FUTURE); ++ ++ if (argc < 3) { ++ printf("usage: %s \n", argv[0]); ++ return 0; ++ } ++ ++ pthread_t eval_thread; ++ pthread_attr_t eval_thread_attr; ++ ++ //Set attributes of thread ++ pthread_attr_init (& eval_thread_attr); ++ ++ if(pthread_create(&eval_thread, &eval_thread_attr, eval_master, argv) != 0) { ++ printf("Cannot create thread EtherCatThread.\n"); ++ exit(1); ++ } ++ sleep(1000); ++ pthread_join( eval_thread, 0 ); ++ ++ // wait for master cleanup ++ pd_cleanup(); ++ // cleanup socket ++ catch_signal(0); ++ return 0; ++} ++ ++void* eval_master(void* arg) { ++ ni = init_ec(((char**)arg)[1]); ++ init_slave_db(); ++ ++ printf("Attach netif \n\n"); ++ EtherCAT_DataLinkLayer::instance()->attach(ni); ++ printf("Creating Master\n"); ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ printf("Getting Slave Handler\n"); ++ EtherCAT_SlaveHandler * sh = EM->get_slave_handler(0x03e9); ++ bool succeed = sh->to_state(EC_OP_STATE); ++ if (succeed) { ++ printf("EVA board now in OP state\n"); ++ succeed = sh->to_state(EC_INIT_STATE); ++ if (succeed) { ++ printf("And now back in INIT state\n"); ++ // UNCOMMENT THE FOLLOWING LINE IF YOU WANT TO VERIFY THAT NO ++ // PROCESS DATA IS SENT IF THE BOARD IS NOT IN ITS OPERATIONAL ++ // STATE!! ++ bool succeed = sh->to_state(EC_OP_STATE); ++ if (succeed) { ++ printf("And up and operational again\n"); ++ printf("Sending PD, look at the lights...\n"); ++ float period_f = atof(((char**)arg)[2]); ++ int long period =(int long) (period_f*1000*1000*1000); ++ //printf("period: %d\n",period); ++ pd_init(period); ++ } ++ } ++ } ++ ++ printf("Hello EtherCAT world\n"); ++ return 0; ++ ++ // For testing mbx functionality as much as possible... ++ /* ++ EtherCAT_SlaveHandler * csh = EM->get_slave_handler(0x03ea); ++ succeed = csh->to_state(EC_PREOP_STATE); ++ if (succeed) { ++ printf("Complex slave now in PREOP state\n"); ++ succeed = csh->to_state(EC_INIT_STATE); ++ if (succeed) { ++ printf("And now back in INIT state\n"); ++ bool succeed = csh->to_state(EC_SAFEOP_STATE); ++ if (succeed) { ++ printf("And to SAFEOP\n"); ++ } ++ } ++ } ++ */ ++ ++} ++ ++// Configuration data of EVA board ++EC_FMMU fmmu0(0x00010000,0x0002,0x00,0x07,0x1100,0x00,false,true,true); ++EC_FMMU fmmu1(0x00010000,0x0002,0x00,0x07,0x1000,0x00,true,false,true); ++EtherCAT_FMMU_Config fmmu_conf(2); ++EC_SyncMan SyncMan0(0x1100,0x0002, ++ EC_BUFFERED,EC_WRITTEN_FROM_MASTER,false,true, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EC_SyncMan SyncMan1(0x1000,0x0002, ++ EC_BUFFERED,EC_READ_FROM_MASTER,false,false, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EtherCAT_PD_Config pd_conf(2); ++ ++EtherCAT_SlaveConfig EC_evaboard(0x26483052,0x000104b0,0x03e9,&fmmu_conf,&pd_conf); ++ ++// Trying to create mbx for testing some of the mbx software... ++/* ++EC_SyncMan SyncMan_mbx0(0x1400,0x0100, ++ EC_QUEUED,EC_WRITTEN_FROM_MASTER,false,true, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EC_SyncMan SyncMan_mbx1(0x1500,0x0100, ++ EC_QUEUED,EC_READ_FROM_MASTER,false,false, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EtherCAT_MbxConfig mbx_conf = { SyncMan_mbx0, SyncMan_mbx0 }; ++EtherCAT_SlaveConfig EC_EL4102(0x10063052,0x270b0000,0x03ea,&fmmu_conf,&pd_conf,&mbx_conf); ++*/ ++ ++void init_slave_db(void) ++{ ++ EtherCAT_SlaveDb * slave_db = EtherCAT_SlaveDb::instance(1); ++ fmmu_conf[0] = fmmu0; fmmu_conf[1] = fmmu1; ++ pd_conf[0] = SyncMan0; pd_conf[1] = SyncMan1; ++ slave_db->set_conf(&EC_evaboard,0); ++ ++ // For testing mbx... ++ /* ++ EtherCAT_SlaveDb * slave_db = EtherCAT_SlaveDb::instance(2); ++ fmmu_conf[0] = fmmu0; fmmu_conf[1] = fmmu1; ++ pd_conf[0] = SyncMan0; pd_conf[1] = SyncMan1; ++ slave_db->set_conf(&EC_evaboard,0); ++ slave_db->set_conf(&EC_EL4102,1); ++ */ ++} ++ ++void catch_signal(int sig) { ++ if(ni != 0) { ++ while ((close_socket(ni) < 0) && (errno == EAGAIN)) { ++ printf("socket busy - waiting...\n"); ++ sleep(1); ++ } ++ } ++ exit(1); ++} +diff --git a/tests/posix/master_test.cpp ./tests/posix/master_test.cpp +new file mode 100644 +index 0000000..a29c4b2 +--- /dev/null ++++ ./tests/posix/master_test.cpp +@@ -0,0 +1,162 @@ ++// $Id: $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++#include ++#include ++#include ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++struct netif *ni; ++ ++///SlaveConfig EK1100 ++EtherCAT_FMMU_Config fmmu_config_EK1100(0); ++EtherCAT_PD_Config pd_config_EK1100(0); ++EtherCAT_SlaveConfig EC_EK1100(0x044c2c52,0x00010000,0x03e9,&fmmu_config_EK1100,&pd_config_EK1100); ++ ++///SlaveConfig EL4102 ++EtherCAT_FMMU_Config fmmu_config_EL4102(2); ++EC_FMMU fmmu0_EL4102(0x00080000,0x0001,0x00,0x00,0x080D,0x00,true,false,true); ++EC_FMMU fmmu1_EL4102(0x00010000,0x0004,0x00,0x07,0x1000,0x00,false,true,true); ++ ++EC_SyncMan syncman_mbx0_EL4102(0x1800,246,EC_QUEUED,EC_WRITTEN_FROM_MASTER,true,false,false,false,false,false,EC_FIRST_BUFFER,true); ++EC_SyncMan syncman_mbx1_EL4102(0x18f6,246,EC_QUEUED,EC_READ_FROM_MASTER,true,false,false,false,false,false,EC_FIRST_BUFFER,true); ++EtherCAT_MbxConfig mbx_conf_EL4102 = {syncman_mbx0_EL4102, syncman_mbx1_EL4102}; ++ ++EtherCAT_PD_Config pd_config_EL4102(2); ++EC_SyncMan ++ syncman0_EL4102(0x1000,4,EC_BUFFERED,EC_WRITTEN_FROM_MASTER,true,false,false,false,false,false,EC_FIRST_BUFFER,true); ++EC_SyncMan ++ syncman1_EL4102(0x1100,0,EC_BUFFERED,EC_READ_FROM_MASTER,true,false,false,false,false,false,EC_FIRST_BUFFER,true); ++EtherCAT_SlaveConfig EC_EL4102(0x10063052,0x00000000,0x03ea,&fmmu_config_EL4102,&pd_config_EL4102,&mbx_conf_EL4102); ++ ++ ++static void init_slave_db() { ++ EtherCAT_SlaveDb * slave_db = EtherCAT_SlaveDb::instance(2); ++ fmmu_config_EL4102[0] = fmmu0_EL4102; ++ fmmu_config_EL4102[1] = fmmu1_EL4102; ++ pd_config_EL4102[0] = syncman0_EL4102; ++ pd_config_EL4102[1] = syncman1_EL4102; ++ slave_db->set_conf(&EC_EL4102,0); ++ slave_db->set_conf(&EC_EK1100,1); ++ ++} ++ ++static void* run_master(void * arg) { ++ ++ ni = init_ec((char*)arg); ++ init_slave_db(); ++ if(ni != 0) { ++ printf("Attach netif \n\n"); ++ EtherCAT_DataLinkLayer::instance()->attach(ni); ++ printf("Master initializing \n\n"); ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ printf("Getting slave handler\n"); ++ EtherCAT_SlaveHandler * sh_ek1100 = EM->get_slave_handler(0x03e9); ++ //sleep(1); ++ printf("Setting EK1100 to OP STATE\n"); ++ if(sh_ek1100->to_state(EC_OP_STATE)) ++ printf("EK1100 succesfully set in OP STATE\n"); ++ else ++ printf("\nfailed to set EK1100 in OP STATE\n"); ++ printf("Getting slave handler\n"); ++ EtherCAT_SlaveHandler * sh_el4102 = EM->get_slave_handler(0x03ea); ++ printf("Setting EL4102 to OP STATE\n"); ++ if(sh_el4102->to_state(EC_OP_STATE)) ++ printf("EL4102 succesfully set in OP STATE\n"); ++ else ++ printf("\nfailed to set EL4102 in OP STATE!!\n"); ++ ++ printf("AL initializing \n\n"); ++ EtherCAT_AL * AL = EtherCAT_AL::instance(); ++ ++ ///Set Channel 1 to 5V ++ unsigned char msg[2] = {0xff, 0x3f}; ++ if(AL->isReady()) { ++ printf("Test: Set Channel 1 to 5V: \n\n"); ++ int count = 0; ++ while(count<100000) { ++ EM->txandrx_PD(sizeof(msg),msg); ++ count++; ++ } ++ printf("Test done.\n"); ++ } ++ ++ close_socket(ni); ++ ++ } ++} ++ ++void catch_signal(int sig) ++{ ++ if(ni != 0) ++ close_socket(ni); ++ exit(1); ++} ++ ++int main(int argc, char** argv) ++{ ++ ++ signal(SIGTERM, catch_signal); ++ signal(SIGINT, catch_signal); ++ signal(SIGHUP, catch_signal); ++ mlockall(MCL_CURRENT|MCL_FUTURE); ++ ++ if (argc < 2) { ++ printf("usage: %s \n", argv[0]); ++ return 0; ++ } ++ ++ pthread_t xenothread; ++ pthread_attr_t xenothread_attr; ++ ++ //Set attributes of thread ++ pthread_attr_init (& xenothread_attr); ++ ++ //Start thread ++ if(pthread_create(&xenothread, &xenothread_attr, run_master, argv[1]) != 0) { ++ printf("Cannot create thread EtherCatThread.\n"); ++ exit(1); ++ } ++ pthread_join( xenothread, 0 ); ++ return 0; ++} +diff --git a/tests/posix/process_data.cpp ./tests/posix/process_data.cpp +new file mode 100644 +index 0000000..af2f188 +--- /dev/null ++++ ./tests/posix/process_data.cpp +@@ -0,0 +1,113 @@ ++// $Id: process_data.cxx,v 1.7 2006/02/23 09:32:57 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++// Process Data thread data ++static pthread_t pd_thread; ++static pthread_attr_t pd_thread_attr; ++ ++// Thread period in nanoseconds ++static const long int pd_thread_period_ns = 1000*1000*50*1; ++static int pd_stop_flag = 0; ++ ++static const unsigned char LOGICAL_MSG_LENGTH = 0x02; ++ ++static void * ethercat_pd(void*) { ++ unsigned char logical_msg[LOGICAL_MSG_LENGTH] = {0xff, 0xff}; ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ ++ EC_UINT lights=0x0001; ++ unsigned int counter = 0; ++ while (pd_stop_flag == 0){ ++ unsigned long overrun = 0; ++ int ret = pthread_wait_np(&overrun); ++ if ( ret < 0 || overrun != 0 ) { ++ printf("ret: %d overrun: %d", ret, overrun ); ++ return (void *) ret; ++ } ++ if (counter < 0xf) { ++ lights = lights << 1; ++ counter++;} ++ else { ++ counter = 0; ++ lights = 0x0001; ++ } ++ logical_msg[0] = (unsigned char) (lights & 0x00ff); ++ logical_msg[1] = (unsigned char) ((lights & 0xff00) >> 8); ++ EM->txandrx_PD(0x02,logical_msg); ++ } ++ return 0; ++} ++ ++static void ethercat_pd_stresstest(void) { ++ unsigned char logical_msg[LOGICAL_MSG_LENGTH] = {0xff, 0xff}; ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ while (true){ ++ // logical_msg[0] = 0xff; ++ // logical_msg[1] = 0xff; ++ EM->txandrx_PD(0x02,logical_msg); ++ } ++} ++ ++void pd_init(long int myperiod) { ++ static int is_initialised = false; ++ if(is_initialised) return; ++ ++ // Start helper threads etc here ++ pthread_create(&pd_thread,&pd_thread_attr,ethercat_pd,0); ++ struct timespec period; ++ period.tv_sec = 1; ++ period.tv_nsec = pd_thread_period_ns; ++ struct timespec now; ++ clock_gettime(CLOCK_REALTIME,&now); ++ now.tv_sec += 1; ++ int ret = pthread_make_periodic_np(pd_thread, &now, &period); ++ if (ret != 0) ++ printf("pthread_make_periodic_np: %d\n", ret); ++ // Done ++ is_initialised = true; ++} ++ ++void pd_cleanup() ++{ ++ pd_stop_flag = 1; ++ void * ret; ++ pthread_join(pd_thread, &ret); ++} ++ ++ +diff --git a/tests/rtnet/CMakeLists.txt ./tests/rtnet/CMakeLists.txt +new file mode 100644 +index 0000000..633aa46 +--- /dev/null ++++ ./tests/rtnet/CMakeLists.txt +@@ -0,0 +1,7 @@ ++SET (CMAKE_C_FLAGS "${CMAKE_CFLAGS} ${XNPOSIX_USER_CFLAGS}") ++SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") ++ADD_EXECUTABLE(master_test master_test.cpp) ++TARGET_LINK_LIBRARIES(master_test eml) ++ADD_EXECUTABLE(eval_test eval_test.cpp process_data.cpp) ++TARGET_LINK_LIBRARIES(eval_test eml) ++SET_TARGET_PROPERTIES(master_test eval_test PROPERTIES LINK_FLAGS "${XNPOSIX_USER_LDFLAGS}") +diff --git a/tests/rtnet/eval_test.cpp ./tests/rtnet/eval_test.cpp +new file mode 100644 +index 0000000..be78348 +--- /dev/null ++++ ./tests/rtnet/eval_test.cpp +@@ -0,0 +1,200 @@ ++// $Id: $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++#include ++#include ++#include ++#include ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++struct netif *ni; ++ ++// Generate process data ++extern void pd_init(long); ++extern void pd_cleanup(); ++ ++// Initialize slave database ++void init_slave_db(void); ++ ++void* eval_master(void*); ++void catch_signal(int sig); ++ ++int main(int argc, char** argv) { ++ ++ signal(SIGTERM, catch_signal); ++ signal(SIGINT, catch_signal); ++ signal(SIGHUP, catch_signal); ++ mlockall(MCL_CURRENT|MCL_FUTURE); ++ ++ if (argc < 3) { ++ printf("usage: %s \n", argv[0]); ++ return 0; ++ } ++ ++ pthread_t eval_thread; ++ pthread_attr_t eval_thread_attr; ++ ++ //Set attributes of thread ++ pthread_attr_init (& eval_thread_attr); ++ ++ if(pthread_create(&eval_thread, &eval_thread_attr, eval_master, argv) != 0) { ++ printf("Cannot create thread EtherCatThread.\n"); ++ exit(1); ++ } ++ sleep(1000); ++ pthread_join( eval_thread, 0 ); ++ ++ // wait for master cleanup ++ pd_cleanup(); ++ // cleanup socket ++ catch_signal(0); ++ return 0; ++} ++ ++void* eval_master(void* arg) { ++ ni = init_ec(((char**)arg)[1]); ++ init_slave_db(); ++ ++ printf("Attach netif \n\n"); ++ EtherCAT_DataLinkLayer::instance()->attach(ni); ++ printf("Creating Master\n"); ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ printf("Getting Slave Handler\n"); ++ EtherCAT_SlaveHandler * sh = EM->get_slave_handler(0x03e9); ++ bool succeed = sh->to_state(EC_OP_STATE); ++ if (succeed) { ++ printf("EVA board now in OP state\n"); ++ succeed = sh->to_state(EC_INIT_STATE); ++ if (succeed) { ++ printf("And now back in INIT state\n"); ++ // UNCOMMENT THE FOLLOWING LINE IF YOU WANT TO VERIFY THAT NO ++ // PROCESS DATA IS SENT IF THE BOARD IS NOT IN ITS OPERATIONAL ++ // STATE!! ++ bool succeed = sh->to_state(EC_OP_STATE); ++ if (succeed) { ++ printf("And up and operational again\n"); ++ printf("Sending PD, look at the lights...\n"); ++ float period_f = atof(((char**)arg)[2]); ++ int long period =(int long) (period_f*1000*1000*1000); ++ //printf("period: %d\n",period); ++ pd_init(period); ++ } ++ } ++ } ++ ++ printf("Hello EtherCAT world\n"); ++ return 0; ++ ++ // For testing mbx functionality as much as possible... ++ /* ++ EtherCAT_SlaveHandler * csh = EM->get_slave_handler(0x03ea); ++ succeed = csh->to_state(EC_PREOP_STATE); ++ if (succeed) { ++ printf("Complex slave now in PREOP state\n"); ++ succeed = csh->to_state(EC_INIT_STATE); ++ if (succeed) { ++ printf("And now back in INIT state\n"); ++ bool succeed = csh->to_state(EC_SAFEOP_STATE); ++ if (succeed) { ++ printf("And to SAFEOP\n"); ++ } ++ } ++ } ++ */ ++ ++} ++ ++// Configuration data of EVA board ++EC_FMMU fmmu0(0x00010000,0x0002,0x00,0x07,0x1100,0x00,false,true,true); ++EC_FMMU fmmu1(0x00010000,0x0002,0x00,0x07,0x1000,0x00,true,false,true); ++EtherCAT_FMMU_Config fmmu_conf(2); ++EC_SyncMan SyncMan0(0x1100,0x0002, ++ EC_BUFFERED,EC_WRITTEN_FROM_MASTER,false,true, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EC_SyncMan SyncMan1(0x1000,0x0002, ++ EC_BUFFERED,EC_READ_FROM_MASTER,false,false, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EtherCAT_PD_Config pd_conf(2); ++ ++EtherCAT_SlaveConfig EC_evaboard(0x26483052,0x000104b0,0x03e9,&fmmu_conf,&pd_conf); ++ ++// Trying to create mbx for testing some of the mbx software... ++/* ++EC_SyncMan SyncMan_mbx0(0x1400,0x0100, ++ EC_QUEUED,EC_WRITTEN_FROM_MASTER,false,true, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EC_SyncMan SyncMan_mbx1(0x1500,0x0100, ++ EC_QUEUED,EC_READ_FROM_MASTER,false,false, ++ false,false,false,EC_QUEUED_STATE_READ,EC_FIRST_BUFFER, ++ true); ++EtherCAT_MbxConfig mbx_conf = { SyncMan_mbx0, SyncMan_mbx0 }; ++EtherCAT_SlaveConfig EC_EL4102(0x10063052,0x270b0000,0x03ea,&fmmu_conf,&pd_conf,&mbx_conf); ++*/ ++ ++void init_slave_db(void) ++{ ++ EtherCAT_SlaveDb * slave_db = EtherCAT_SlaveDb::instance(1); ++ fmmu_conf[0] = fmmu0; fmmu_conf[1] = fmmu1; ++ pd_conf[0] = SyncMan0; pd_conf[1] = SyncMan1; ++ slave_db->set_conf(&EC_evaboard,0); ++ ++ // For testing mbx... ++ /* ++ EtherCAT_SlaveDb * slave_db = EtherCAT_SlaveDb::instance(2); ++ fmmu_conf[0] = fmmu0; fmmu_conf[1] = fmmu1; ++ pd_conf[0] = SyncMan0; pd_conf[1] = SyncMan1; ++ slave_db->set_conf(&EC_evaboard,0); ++ slave_db->set_conf(&EC_EL4102,1); ++ */ ++} ++ ++void catch_signal(int sig) { ++ if(ni != 0) { ++ while ((close_socket(ni) < 0) && (errno == EAGAIN)) { ++ printf("socket busy - waiting...\n"); ++ sleep(1); ++ } ++ } ++ exit(1); ++} +diff --git a/tests/rtnet/master_test.cpp ./tests/rtnet/master_test.cpp +new file mode 100644 +index 0000000..1978c2c +--- /dev/null ++++ ./tests/rtnet/master_test.cpp +@@ -0,0 +1,163 @@ ++// $Id: $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++ ++// FIXME KGAD: Shouldn't this be solved by using the xenomai wrappers? ++#include ++#include ++#include ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++struct netif *ni; ++ ++///SlaveConfig EK1100 ++EtherCAT_FMMU_Config fmmu_config_EK1100(0); ++EtherCAT_PD_Config pd_config_EK1100(0); ++EtherCAT_SlaveConfig EC_EK1100(0x044c2c52,0x00010000,0x03e9,&fmmu_config_EK1100,&pd_config_EK1100); ++ ++///SlaveConfig EL4102 ++EtherCAT_FMMU_Config fmmu_config_EL4102(2); ++EC_FMMU fmmu0_EL4102(0x00080000,0x0001,0x00,0x00,0x080D,0x00,true,false,true); ++EC_FMMU fmmu1_EL4102(0x00010000,0x0004,0x00,0x07,0x1000,0x00,false,true,true); ++ ++EC_SyncMan syncman_mbx0_EL4102(0x1800,246,EC_QUEUED,EC_WRITTEN_FROM_MASTER,true,false,false,false,false,false,EC_FIRST_BUFFER,true); ++EC_SyncMan syncman_mbx1_EL4102(0x18f6,246,EC_QUEUED,EC_READ_FROM_MASTER,true,false,false,false,false,false,EC_FIRST_BUFFER,true); ++EtherCAT_MbxConfig mbx_conf_EL4102 = {syncman_mbx0_EL4102, syncman_mbx1_EL4102}; ++ ++EtherCAT_PD_Config pd_config_EL4102(2); ++EC_SyncMan ++ syncman0_EL4102(0x1000,4,EC_BUFFERED,EC_WRITTEN_FROM_MASTER,true,false,false,false,false,false,EC_FIRST_BUFFER,true); ++EC_SyncMan ++ syncman1_EL4102(0x1100,0,EC_BUFFERED,EC_READ_FROM_MASTER,true,false,false,false,false,false,EC_FIRST_BUFFER,true); ++EtherCAT_SlaveConfig EC_EL4102(0x10063052,0x00000000,0x03ea,&fmmu_config_EL4102,&pd_config_EL4102,&mbx_conf_EL4102); ++ ++ ++static void init_slave_db() { ++ EtherCAT_SlaveDb * slave_db = EtherCAT_SlaveDb::instance(2); ++ fmmu_config_EL4102[0] = fmmu0_EL4102; ++ fmmu_config_EL4102[1] = fmmu1_EL4102; ++ pd_config_EL4102[0] = syncman0_EL4102; ++ pd_config_EL4102[1] = syncman1_EL4102; ++ slave_db->set_conf(&EC_EL4102,0); ++ slave_db->set_conf(&EC_EK1100,1); ++ ++} ++ ++static void* run_master(void * arg) { ++ ++ ni = init_ec((char*)arg); ++ init_slave_db(); ++ if(ni != 0) { ++ printf("Attach netif \n\n"); ++ EtherCAT_DataLinkLayer::instance()->attach(ni); ++ printf("Master initializing \n\n"); ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ printf("Getting slave handler\n"); ++ EtherCAT_SlaveHandler * sh_ek1100 = EM->get_slave_handler(0x03e9); ++ //sleep(1); ++ printf("Setting EK1100 to OP STATE\n"); ++ if(sh_ek1100->to_state(EC_OP_STATE)) ++ printf("EK1100 succesfully set in OP STATE\n"); ++ else ++ printf("\nfailed to set EK1100 in OP STATE\n"); ++ printf("Getting slave handler\n"); ++ EtherCAT_SlaveHandler * sh_el4102 = EM->get_slave_handler(0x03ea); ++ printf("Setting EL4102 to OP STATE\n"); ++ if(sh_el4102->to_state(EC_OP_STATE)) ++ printf("EL4102 succesfully set in OP STATE\n"); ++ else ++ printf("\nfailed to set EL4102 in OP STATE!!\n"); ++ ++ printf("AL initializing \n\n"); ++ EtherCAT_AL * AL = EtherCAT_AL::instance(); ++ ++ ///Set Channel 1 to 5V ++ unsigned char msg[2] = {0xff, 0x3f}; ++ if(AL->isReady()) { ++ printf("Test: Set Channel 1 to 5V: \n\n"); ++ int count = 0; ++ while(count<100000) { ++ EM->txandrx_PD(sizeof(msg),msg); ++ count++; ++ } ++ printf("Test done.\n"); ++ } ++ ++ close_socket(ni); ++ ++ } ++} ++ ++void catch_signal(int sig) ++{ ++ if(ni != 0) ++ close_socket(ni); ++ exit(1); ++} ++ ++int main(int argc, char** argv) ++{ ++ ++ signal(SIGTERM, catch_signal); ++ signal(SIGINT, catch_signal); ++ signal(SIGHUP, catch_signal); ++ mlockall(MCL_CURRENT|MCL_FUTURE); ++ ++ if (argc < 2) { ++ printf("usage: %s \n", argv[0]); ++ return 0; ++ } ++ ++ pthread_t xenothread; ++ pthread_attr_t xenothread_attr; ++ ++ //Set attributes of thread ++ pthread_attr_init (& xenothread_attr); ++ ++ //Start thread ++ if(pthread_create(&xenothread, &xenothread_attr, run_master, argv[1]) != 0) { ++ printf("Cannot create thread EtherCatThread.\n"); ++ exit(1); ++ } ++ pthread_join( xenothread, 0 ); ++ return 0; ++} +diff --git a/tests/rtnet/process_data.cpp ./tests/rtnet/process_data.cpp +new file mode 100644 +index 0000000..af2f188 +--- /dev/null ++++ ./tests/rtnet/process_data.cpp +@@ -0,0 +1,113 @@ ++// $Id: process_data.cxx,v 1.7 2006/02/23 09:32:57 kgad Exp $ ++//=========================================================================== ++// This file is part of "EtherCAT Master Library". ++// Copyright (C) 2005 FMTC vzw, Diamant Building, A. Reyerslaan 80, ++// B-1030 Brussels, Belgium. ++// ++// EtherCAT Master Library is free software; you can redistribute it ++// and/or modify it under the terms of the GNU General Public License ++// as published by the Free Software Foundation; either version 2 or ++// (at your option) any later version. ++// ++// EtherCAT Master Code is distributed in the hope that it will be ++// useful, but WITHOUT ANY WARRANTY; without even the implied ++// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ++// PURPOSE. See the GNU General Public License for more details. ++// ++// You should have received a copy of the GNU General Public License ++// along with the EtherCAT Master Library; if not, write to the Free ++// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++// 02111-1307 USA. ++// ++// EtherCAT, the EtherCAT trade name and logo are the intellectual ++// property of, and protected by Beckhoff. You can use "EtherCAT ++// Master Library" for creating and/or selling or otherwise ++// distributing an EtherCAT network master under the terms of the ++// EtherCAT Master License. ++// ++// You should have received a copy of the EtherCAT Master License ++// along with the EtherCAT Master Library; if not, write to Beckhoff ++// Automation GmbH, Eiserstrasse 5, D-33415 Verl, Germany. ++//=========================================================================== ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++// Process Data thread data ++static pthread_t pd_thread; ++static pthread_attr_t pd_thread_attr; ++ ++// Thread period in nanoseconds ++static const long int pd_thread_period_ns = 1000*1000*50*1; ++static int pd_stop_flag = 0; ++ ++static const unsigned char LOGICAL_MSG_LENGTH = 0x02; ++ ++static void * ethercat_pd(void*) { ++ unsigned char logical_msg[LOGICAL_MSG_LENGTH] = {0xff, 0xff}; ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ ++ EC_UINT lights=0x0001; ++ unsigned int counter = 0; ++ while (pd_stop_flag == 0){ ++ unsigned long overrun = 0; ++ int ret = pthread_wait_np(&overrun); ++ if ( ret < 0 || overrun != 0 ) { ++ printf("ret: %d overrun: %d", ret, overrun ); ++ return (void *) ret; ++ } ++ if (counter < 0xf) { ++ lights = lights << 1; ++ counter++;} ++ else { ++ counter = 0; ++ lights = 0x0001; ++ } ++ logical_msg[0] = (unsigned char) (lights & 0x00ff); ++ logical_msg[1] = (unsigned char) ((lights & 0xff00) >> 8); ++ EM->txandrx_PD(0x02,logical_msg); ++ } ++ return 0; ++} ++ ++static void ethercat_pd_stresstest(void) { ++ unsigned char logical_msg[LOGICAL_MSG_LENGTH] = {0xff, 0xff}; ++ EtherCAT_Master * EM = EtherCAT_Master::instance(); ++ while (true){ ++ // logical_msg[0] = 0xff; ++ // logical_msg[1] = 0xff; ++ EM->txandrx_PD(0x02,logical_msg); ++ } ++} ++ ++void pd_init(long int myperiod) { ++ static int is_initialised = false; ++ if(is_initialised) return; ++ ++ // Start helper threads etc here ++ pthread_create(&pd_thread,&pd_thread_attr,ethercat_pd,0); ++ struct timespec period; ++ period.tv_sec = 1; ++ period.tv_nsec = pd_thread_period_ns; ++ struct timespec now; ++ clock_gettime(CLOCK_REALTIME,&now); ++ now.tv_sec += 1; ++ int ret = pthread_make_periodic_np(pd_thread, &now, &period); ++ if (ret != 0) ++ printf("pthread_make_periodic_np: %d\n", ret); ++ // Done ++ is_initialised = true; ++} ++ ++void pd_cleanup() ++{ ++ pd_stop_flag = 1; ++ void * ret; ++ pthread_join(pd_thread, &ret); ++} ++ ++ diff --git a/distros/noetic/patch/ros-noetic-ethercat-grant.patch b/distros/noetic/patch/ros-noetic-ethercat-grant.patch new file mode 100644 index 000000000..7f61bff14 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ethercat-grant.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4413d4d..05e602b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -8,6 +8,9 @@ find_package(catkin REQUIRED COMPONENTS + roscpp + ) + ++find_package(PkgConfig) ++pkg_check_modules(LibCAP libcap) ++ + catkin_package( + # INCLUDE_DIRS include + # LIBRARIES ethercat_grant +@@ -16,9 +19,10 @@ catkin_package( + ) + include_directories( + ${catkin_INCLUDE_DIRS} ++ ${LibCAP_INCLUDE_DIRS} + ) + add_executable(ethercat_grant src/ethercat_grant.cpp) +-target_link_libraries(ethercat_grant cap) ++target_link_libraries(ethercat_grant ${LibCAP_LIBRARIES}) + + install(TARGETS ethercat_grant + RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION} diff --git a/distros/noetic/patch/ros-noetic-euslisp.patch b/distros/noetic/patch/ros-noetic-euslisp.patch new file mode 100644 index 000000000..c4722ad57 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-euslisp.patch @@ -0,0 +1,195 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index addf33f2..ccbdd1b9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,9 +5,9 @@ project(euslisp) + find_package(catkin) + + # check arch and os +-execute_process(COMMAND bash -c "gcc -dumpmachine" OUTPUT_VARIABLE gcc_dump_machine OUTPUT_STRIP_TRAILING_WHITESPACE) ++execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpmachine OUTPUT_VARIABLE gcc_dump_machine OUTPUT_STRIP_TRAILING_WHITESPACE) + message("-- gcc dumpmachine returns ${gcc_dump_machine}") +-if(gcc_dump_machine MATCHES "x86_64-linux-.*" OR gcc_dump_machine MATCHES "x86_64-redhat-linux") ++if(gcc_dump_machine MATCHES "x86_64(-.*)?-linux-.*" OR gcc_dump_machine MATCHES "x86_64-redhat-linux") + set(ARCHDIR "Linux64") + set(MAKEFILE "Makefile.Linux64") + elseif(gcc_dump_machine MATCHES "i686-linux-.*" OR gcc_dump_machine MATCHES "i686-redhat-linux") +diff --git a/lisp/Makefile.Linux64 b/lisp/Makefile.Linux64 +index e12ed082..52232f17 100644 +--- a/lisp/Makefile.Linux64 ++++ b/lisp/Makefile.Linux64 +@@ -29,8 +29,8 @@ XVERSION=X_V11R6_1 + # + # for Linux + +-GCC_MAJOR_VERSION=$(shell gcc -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\+\).*/\1/') +-GCC_MINOR_VERSION=$(shell gcc -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\+\).*/\2/') ++GCC_MAJOR_VERSION=$(shell $(CC) -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\+\).*/\1/') ++GCC_MINOR_VERSION=$(shell $(CC) -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\+\).*/\2/') + # GCC_PATCH_VERSION=$(shell gcc -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\)\.\([0-9]\)/\3/') + + ADD_LDFLAGS= +@@ -50,9 +50,9 @@ CFLAGS= $(WFLAGS) -fPIC -D$(MACHINE) -DLinux -D_REENTRANT -DVERSION=\"$(VERSION) + -DLIB6 $(ALIGN_FUNCTIONS) \ + $(DEBUG) $(CPU_OPTIMIZE) $(THREAD) -D$(XVERSION) \ + -DGCC $(GCC3) \ +- -I/usr/include -I/usr/X11R6/include -I$(EUSDIR)/include ++ -I$(PREFIX)/include -I$(PREFIX)/X11R6/include -I$(EUSDIR)/include + +-CC=gcc ++CC=$(BUILD_PREFIX)/bin/$(BUILD)-gcc + + # + # L I B R A R I E S +@@ -68,7 +68,7 @@ CC=gcc + + # Linux + RAWLIB=-ldl -lm -lpthread -lc +-XLIB= -L/usr/X11R6/lib -lX11 ++XLIB= -L$(PREFIX)/lib -lX11 + + # specify directories where euslisp's libraries are located. + EUSRPATH=-R$(ADLIBDIR) +@@ -95,4 +95,3 @@ MAPOPTION= $(OBJDIR)/par.o + + #include Makefile.rgc + include Makefile.generic2 +- +diff --git a/lisp/Makefile.LinuxARM b/lisp/Makefile.LinuxARM +index e49262b3..5ecd5aa0 100644 +--- a/lisp/Makefile.LinuxARM ++++ b/lisp/Makefile.LinuxARM +@@ -37,10 +37,10 @@ XVERSION=X_V11R6_1 + #MACHINE=armv6 + #MACHINE=armv5te + # gcc -dumpmachine retruns target triplet consists of three fields separated by a hyphen (-). +-MACHINE=$(shell gcc -dumpmachine | sed 's/\(.*\)-.*-.*/\1/') ++MACHINE=$(shell $(CC) -dumpmachine | sed 's/-.*//') + +-GCC_MAJOR_VERSION=$(shell gcc -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\)\([\.0-9]*\)/\1/') +-GCC_MINOR_VERSION=$(shell gcc -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\)\([\.0-9]*\)/\2/') ++GCC_MAJOR_VERSION=$(shell $(CC) -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\)\([\.0-9]*\)/\1/') ++GCC_MINOR_VERSION=$(shell $(CC) -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\)\([\.0-9]*\)/\2/') + ifeq ($(GCC_MAJOR_VERSION), 2) + CPU_OPTIMIZE= + ALIGN_FUNCTIONS="-malign-functions=4" +@@ -72,13 +72,13 @@ CFLAGS=$(WFLAGS) -D$(MACHINE) -DLinux -DARM -D_REENTRANT -DVERSION=\"$(VERSION)\ + -DLIB6 $(ALIGN_FUNCTIONS) $(ADD_CFLAGS) \ + $(DEBUG) $(CPU_OPTIMIZE) $(THREAD) -D$(XVERSION) \ + -DGCC $(GCC3) \ +- -I/usr/include -I/usr/X11R6/include -I$(EUSDIR)/include ++ -I$(PREFIX)/include -I$(PREFIX)/X11R6/include -I$(EUSDIR)/include + + # Use gcc for C-compiling on SunOS4. Sun's cc is ok on Solaris. + # /usr/ucb/cc cannot compile because of its incapability of recognizing + # prototype declarations. +-CC=gcc +-LD=gcc ++CC=$(BUILD_PREFIX)/bin/$(BUILD)-gcc ++LD=$(CC) + + # + # L I B R A R I E S +@@ -94,7 +94,7 @@ LD=gcc + + # Linux + RAWLIB=-ldl -lm -lpthread -lc +-XLIB= -L/usr/X11R6/lib -lX11 ++XLIB= -L$(PREFIX)/lib -lX11 + + # specify directories where euslisp's libraries are located. + EUSLIB= -Xlinker -R$(ADLIBDIR):$(EUSDIR)/lib/LinuxARM -L$(ADLIBDIR) +@@ -120,4 +120,3 @@ MAPOPTION=$(OBJDIR)/par.o + + #include Makefile.rgc + include Makefile.generic2 +- +diff --git a/lisp/comp/comp.l b/lisp/comp/comp.l +index dfb72595..5cdec7a8 100644 +--- a/lisp/comp/comp.l ++++ b/lisp/comp/comp.l +@@ -34,15 +34,16 @@ + (defparameter *pic* t) + (defparameter *kernel* nil) + ;(defparameter *cc* (if (member :gcc *features*) "gcc" "cc")) +-(defparameter *cc* +- (cond ((member :sh4 *features*) ++(defparameter *cc* ++ (or (unix:getenv "CC") ++ (cond ((member :sh4 *features*) + "sh4-linux-gcc -g") + ((member :ia32 *features*) + "gcc -g -m32") + ((member :gcc *features*) + "gcc -g") + ((member :alpha *features*) "cc -ieee_with_inexact" ) +- (t "cc"))) ++ (t "cc")))) + + (defvar comp nil "$Id$") + (defvar trans) +@@ -1390,7 +1391,10 @@ + ((memq :i386 *features*) + "; gcc -shared -Xlinker -build-id -o ") + (t +- "; ld -shared -build-id -o ")) ++ (concatenate string ++ "; " ++ (or (unix:getenv "CC") "gcc") ++ " -shared -Wl,-build-id -o "))) + (namestring file.so) + " " + (namestring file.o)) +diff --git a/lisp/image/jpeg/makefile b/lisp/image/jpeg/makefile +index 223f9055..f073c5c7 100644 +--- a/lisp/image/jpeg/makefile ++++ b/lisp/image/jpeg/makefile +@@ -1,11 +1,13 @@ + # jpeg compression/decompression for euslisp + # copyright (c) 1997, Toshihiro Matsui, Electrotechnical Laboratory + +-ifeq ($(shell gcc -dumpmachine | sed 's/.*-\(.*\)-.*/\1/'), linux) ++CC ?= gcc ++ ++ifeq ($(shell $(CC) -dumpmachine | sed 's/.*-\(.*\)-.*/\1/'), linux) + OS=Linux +-else ifeq ($(shell gcc -dumpmachine | sed 's/.*-.*-\([a-zA-Z]*\).*/\1/'), darwin) ++else ifeq ($(shell $(CC) -dumpmachine | sed 's/.*-.*-\([a-zA-Z]*\).*/\1/'), darwin) + OS=Darwin +-else ifeq ($(shell gcc -dumpmachine | sed 's/.*-.*-\(.*\)/\1/'), cygwin) ++else ifeq ($(shell $(CC) -dumpmachine | sed 's/.*-.*-\(.*\)/\1/'), cygwin) + OS=Cygwin + endif + ifeq ($(OS), Linux) +@@ -17,12 +19,12 @@ else + endif + + ifneq ($(OS), Darwin) +- LD = gcc -shared ++ LD = $(CC) -shared + else +- LD = gcc -dynamiclib ++ LD = $(CC) -dynamiclib + endif + +-ifeq ($(shell gcc -dumpmachine | sed 's/\(.*\)-.*-.*/\1/'), x86_64) ++ifeq ($(shell $(CC) -dumpmachine | sed 's/\(.*\)-.*-.*/\1/'), x86_64) + ifneq ($(ARCHDIR), Linux64) + ifneq ($(ARCHDIR), Darwin) + CC += -m32 +@@ -42,6 +44,10 @@ endif + ifeq ($(ARCHDIR), LinuxARM) + CC += -fPIC + endif ++ifneq ($(PREFIX),) ++CFLAGS += -I$(PREFIX)/include ++LDFLAGS += -L$(PREFIX)/lib ++endif + CC += -fsigned-char + ARCH=$(ARCHDIR) + LIBDIR=$(EUSDIR)/$(ARCH)/lib +@@ -58,4 +64,3 @@ $(OBJDIR)/jmemdst.o: jmemdst.c + $(CC) $(CFLAGS) -c -o $@ $^ + clean: + rm -f $(OBJFILES) $(LIBDIR)/jpegmemcd.$(LSFX) eusjpeg.c eusjpeg.h +- diff --git a/distros/noetic/patch/ros-noetic-face-detector.patch b/distros/noetic/patch/ros-noetic-face-detector.patch new file mode 100644 index 000000000..4651ccde0 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-face-detector.patch @@ -0,0 +1,45 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e865b87..94b2d79 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,6 +22,8 @@ find_package(catkin REQUIRED COMPONENTS + tf + ) + ++find_package(yaml-cpp REQUIRED) ++ + find_package(Boost REQUIRED COMPONENTS system thread) + find_package(OpenCV) + +@@ -57,6 +59,7 @@ include_directories( + ${Boost_INCLUDE_DIRS} + ${OpenCV_INCLUDE_DIRS} + ${catkin_INCLUDE_DIRS} ++ ${YAML_INCLUDE_DIRS} + ) + + add_executable(face_detector +@@ -64,7 +67,7 @@ add_executable(face_detector + src/faces.cpp) + add_dependencies(face_detector ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS}) + target_link_libraries(face_detector +- yaml-cpp ++ ${YAML_CPP_LIBRARIES} + ${catkin_LIBRARIES} + ${Boost_LIBRARIES} + ${OpenCV_LIBRARIES}) +diff --git a/src/face_detection.cpp b/src/face_detection.cpp +index 7cf7f3c0..a2132a72 100644 +--- a/src/face_detection.cpp ++++ b/src/face_detection.cpp +@@ -716,7 +716,9 @@ class FaceDetector + else + { + max_id_++; +- pos.object_id = static_cast(&(std::ostringstream() << max_id_))->str(); ++ std::ostringstream oss; ++ oss << max_id_; ++ pos.object_id = oss.str(); + ROS_INFO_STREAM_NAMED("face_detector", "Didn't find face to match, starting new ID " << pos.object_id); + } + result_.face_positions.push_back(pos); diff --git a/distros/noetic/patch/ros-noetic-fcl.patch b/distros/noetic/patch/ros-noetic-fcl.patch new file mode 100644 index 000000000..03c0d8fc1 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-fcl.patch @@ -0,0 +1,17 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6e5bbb8..e69df39 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -378,9 +378,9 @@ if(NOT FCL_BUILD_TESTS STREQUAL "DEFAULT") + unset(_BUILD_TESTING) + endif() + +-if(BUILD_TESTING AND NOT FCL_HIDE_ALL_SYMBOLS) +- add_subdirectory(test) +-endif() ++# if(BUILD_TESTING AND NOT FCL_HIDE_ALL_SYMBOLS) ++# add_subdirectory(test) ++# endif() + + #=============================================================================== + # API documentation using Doxygen diff --git a/distros/noetic/patch/ros-noetic-fetch-drivers.patch b/distros/noetic/patch/ros-noetic-fetch-drivers.patch new file mode 100644 index 000000000..493520182 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-fetch-drivers.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b231073..3f6f176 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -33,7 +33,7 @@ find_package(yaml-cpp REQUIRED) + + add_custom_target( + binary_driver ALL +- COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} $(MAKE) -f Makefile.tarball ++ COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} make -f Makefile.tarball + COMMAND cmake -E make_directory ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_LIB_DESTINATION}/${PROJECT_NAME} + COMMAND cmake -E copy_if_different ${PROJECT_SOURCE_DIR}/build/output/lib/libfetch_drivers.so ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_LIB_DESTINATION}/libfetch_drivers.so + COMMAND cmake -E copy_if_different ${PROJECT_SOURCE_DIR}/build/output/lib/libfetch_drivers_odva.so ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_LIB_DESTINATION}/libfetch_drivers_odva.so diff --git a/distros/noetic/patch/ros-noetic-filters.patch b/distros/noetic/patch/ros-noetic-filters.patch new file mode 100644 index 000000000..bada85b5e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-filters.patch @@ -0,0 +1,14 @@ +diff --git a/include/filters/median.hpp b/include/filters/median.hpp +index 1043109..5b684c5 100644 +--- a/include/filters/median.hpp ++++ b/include/filters/median.hpp +@@ -40,6 +40,9 @@ + + #include "filters/realtime_circular_buffer.hpp" + ++#if __cplusplus > 199711L ++#define register // Deprecated in C++11. ++#endif // #if __cplusplus > 199711L + + /*********************************************************************/ + /* diff --git a/distros/noetic/patch/ros-noetic-fkie-potree-rviz-plugin.patch b/distros/noetic/patch/ros-noetic-fkie-potree-rviz-plugin.patch new file mode 100644 index 000000000..295de343b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-fkie-potree-rviz-plugin.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8f5d8ba..28f6acf 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -77,7 +77,7 @@ add_dependencies(${PROJECT_NAME} + ${catkin_EXPORTED_TARGETS} + ) + target_link_libraries(${PROJECT_NAME} +- jsoncpp_lib ++ ${jsoncpp_LIBRARIES} + ${Boost_LIBRARIES} + ${QT_LIBRARIES} + ${catkin_LIBRARIES} +diff --git a/src/potree_visual.cpp b/src/potree_visual.cpp +index 30b5c8e..23f3dd0 100644 +--- a/src/potree_visual.cpp ++++ b/src/potree_visual.cpp +@@ -18,6 +18,8 @@ + * + ****************************************************************************/ + #include "potree_visual.h" ++#include ++#include + #include + #include + #include "cloud_loader.h" diff --git a/distros/noetic/patch/ros-noetic-foxglove-bridge.patch b/distros/noetic/patch/ros-noetic-foxglove-bridge.patch new file mode 100644 index 000000000..17b4e9175 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-foxglove-bridge.patch @@ -0,0 +1,53 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index efc65dc..994d91b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,6 +14,11 @@ project(foxglove_bridge LANGUAGES CXX VERSION 0.5.1) + set(CMAKE_CXX_STANDARD 17) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + ++if(MSVC) ++ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE) ++ set(BUILD_SHARED_LIBS TRUE) ++endif() ++ + macro(enable_strict_compiler_warnings target) + target_compile_options(${target} PRIVATE + $<$:/WX /W4> +@@ -47,7 +52,7 @@ add_library(foxglove_bridge_base SHARED + foxglove_bridge_base/src/test/test_client.cpp + ) + target_include_directories(foxglove_bridge_base +- PUBLIC ++ SYSTEM PUBLIC + $ + $ + ) +@@ -62,7 +67,11 @@ if(nlohmann_json_FOUND) + else() + message(STATUS "nlohmann_json not found, will search at compile time") + endif() +-enable_strict_compiler_warnings(foxglove_bridge_base) ++# enable_strict_compiler_warnings(foxglove_bridge_base) ++target_compile_definitions(foxglove_bridge_base PUBLIC _WEBSOCKETPP_CPP11_STL_) ++ ++set(ENV{ROS_VERSION} 1) ++set(ENV{ROS_DISTRO} noetic) + + message(STATUS "ROS_VERSION: " $ENV{ROS_VERSION}) + message(STATUS "ROS_DISTRO: " $ENV{ROS_DISTRO}) +diff --git a/ros1_foxglove_bridge/src/ros1_foxglove_bridge_nodelet.cpp b/ros1_foxglove_bridge/src/ros1_foxglove_bridge_nodelet.cpp +index 83a8ab5..4022a8f 100644 +--- a/ros1_foxglove_bridge/src/ros1_foxglove_bridge_nodelet.cpp ++++ b/ros1_foxglove_bridge/src/ros1_foxglove_bridge_nodelet.cpp +@@ -453,8 +453,8 @@ private: + try { + channelPublicationIt->second.publish(msg); + } catch (const std::exception& ex) { +- ROS_ERROR("Failed to publish message on topic '%s'", +- channelPublicationIt->second.getTopic().c_str()); ++ ROS_ERROR("Failed to publish message on topic '%s': %s", ++ channelPublicationIt->second.getTopic().c_str(), ex.what()); + } + } + diff --git a/distros/noetic/patch/ros-noetic-gazebo-plugins.linux.patch b/distros/noetic/patch/ros-noetic-gazebo-plugins.linux.patch new file mode 100644 index 000000000..6e08c556b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-gazebo-plugins.linux.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 389e8719..7026671b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,6 +3,8 @@ project(gazebo_plugins) + + option(ENABLE_DISPLAY_TESTS "Enable the building of tests that requires a display" OFF) + ++add_compile_options(-Wall) ++ + find_package(catkin REQUIRED COMPONENTS + gazebo_dev + message_generation diff --git a/distros/noetic/patch/ros-noetic-gazebo-plugins.osx.patch b/distros/noetic/patch/ros-noetic-gazebo-plugins.osx.patch new file mode 100644 index 000000000..c2936c065 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-gazebo-plugins.osx.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0404e94..24c72cc 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -58,6 +58,8 @@ generate_dynamic_reconfigure_options( + cfg/Hokuyo.cfg + ) + ++add_definitions(-D_LIBCPP_DISABLE_AVAILABILITY) ++ + include_directories(include + ${Boost_INCLUDE_DIRS} + ${catkin_INCLUDE_DIRS} diff --git a/distros/noetic/patch/ros-noetic-gazebo-plugins.patch b/distros/noetic/patch/ros-noetic-gazebo-plugins.patch new file mode 100644 index 000000000..c8fcde64c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-gazebo-plugins.patch @@ -0,0 +1,13 @@ +diff --git a/gazebo_plugins/CMakeLists.txt b/gazebo_plugins/CMakeLists.txt +index 38c94d1d1..29e421a71 100644 +--- a/gazebo_plugins/CMakeLists.txt ++++ b/gazebo_plugins/CMakeLists.txt +@@ -313,7 +313,7 @@ add_library(gazebo_ros_skid_steer_drive src/gazebo_ros_skid_steer_drive.cpp) + target_link_libraries(gazebo_ros_skid_steer_drive ${catkin_LIBRARIES} ${Boost_LIBRARIES}) + + add_library(gazebo_ros_video src/gazebo_ros_video.cpp) +-target_link_libraries(gazebo_ros_video ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${OGRE_LIBRARIES} ${opencv_LIBRARIES}) ++target_link_libraries(gazebo_ros_video ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${OGRE_LIBRARIES} ${OpenCV_LIBRARIES}) + + add_library(gazebo_ros_planar_move src/gazebo_ros_planar_move.cpp) + target_link_libraries(gazebo_ros_planar_move ${catkin_LIBRARIES} ${Boost_LIBRARIES}) diff --git a/distros/noetic/patch/ros-noetic-gazebo-ros-control.osx.patch b/distros/noetic/patch/ros-noetic-gazebo-ros-control.osx.patch new file mode 100644 index 000000000..f68fbf7f5 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-gazebo-ros-control.osx.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 58304f3..c8c5f20 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -32,6 +32,8 @@ catkin_package( + LIBRARIES ${PROJECT_NAME} default_robot_hw_sim + ) + ++add_definitions(-D_LIBCPP_DISABLE_AVAILABILITY) ++ + link_directories( + ${catkin_LIBRARY_DIRS} + ) diff --git a/distros/noetic/patch/ros-noetic-gazebo-ros.osx.patch b/distros/noetic/patch/ros-noetic-gazebo-ros.osx.patch new file mode 100644 index 000000000..d60d7b794 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-gazebo-ros.osx.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1d5f7aa..8d1b0cb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -69,6 +69,8 @@ catkin_package( + TinyXML + ) + ++add_definitions(-D_LIBCPP_DISABLE_AVAILABILITY) ++ + include_directories( + include + ${Boost_INCLUDE_DIRS} + diff --git a/distros/noetic/patch/ros-noetic-geometric-shapes.patch b/distros/noetic/patch/ros-noetic-geometric-shapes.patch new file mode 100644 index 000000000..2ae82f06c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-geometric-shapes.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ccc9864..0134765 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -38,7 +38,7 @@ endif() + find_library(ASSIMP_ABS_LIBRARIES NAMES ${ASSIMP_LIBRARIES} assimp HINTS ${ASSIMP_LIBRARY_DIRS} ${ASSIMP_PC_LIBRARY_DIRS}) + set(ASSIMP_LIBRARIES "${ASSIMP_ABS_LIBRARIES}") + +-find_package(Boost REQUIRED system filesystem) ++find_package(Boost REQUIRED system filesystem date_time) + + find_package(console_bridge REQUIRED) + diff --git a/distros/noetic/patch/ros-noetic-geometric-shapes.win.patch b/distros/noetic/patch/ros-noetic-geometric-shapes.win.patch new file mode 100644 index 000000000..10c2ac42b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-geometric-shapes.win.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ccc9864..3d49528 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,17 +1,6 @@ + cmake_minimum_required(VERSION 3.0.2) + project(geometric_shapes) + +-# Set compile options +-set(PROJECT_COMPILE_OPTIONS +- -Wall +- -Wextra +- -Wwrite-strings +- -Wunreachable-code +- -Wpointer-arith +- -Wredundant-decls +- -Wno-unused-parameter +-) +- + list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/") + + if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) diff --git a/distros/noetic/patch/ros-noetic-global-planner-tests.patch b/distros/noetic/patch/ros-noetic-global-planner-tests.patch new file mode 100644 index 000000000..32b0a2cd1 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-global-planner-tests.patch @@ -0,0 +1,31 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 743db46e..5a66be87 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,6 +4,8 @@ set_directory_properties(PROPERTIES COMPILE_OPTIONS "-std=c++11;-Wall;-Werror") + + find_package(catkin REQUIRED COMPONENTS map_server nav_core2 roscpp nav_msgs pluginlib) + ++find_package(yaml-cpp REQUIRED) ++ + catkin_package( + CATKIN_DEPENDS map_server nav_core2 roscpp nav_msgs pluginlib + INCLUDE_DIRS include +@@ -12,7 +14,7 @@ catkin_package( + + add_library(${PROJECT_NAME} src/global_planner_tests.cpp src/easy_costmap.cpp src/many_map_test_suite.cpp src/util.cpp) + target_link_libraries( +- ${PROJECT_NAME} ${catkin_LIBRARIES} yaml-cpp ++ ${PROJECT_NAME} ${catkin_LIBRARIES} ${YAML_CPP_LIBRARIES} + ) + + add_executable(gpt_node src/gpt_node.cpp) +@@ -25,7 +27,7 @@ add_executable(many_map_node src/many_map_node.cpp) + target_link_libraries(many_map_node ${PROJECT_NAME} ${catkin_LIBRARIES}) + + include_directories( +- include ${catkin_INCLUDE_DIRS} ++ include ${catkin_INCLUDE_DIRS} ${YAML_INCLUDE_DIRS} + ) + + if(CATKIN_ENABLE_TESTING) diff --git a/distros/noetic/patch/ros-noetic-gmapping.patch b/distros/noetic/patch/ros-noetic-gmapping.patch new file mode 100644 index 000000000..fc1a6294f --- /dev/null +++ b/distros/noetic/patch/ros-noetic-gmapping.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 04f3c8d..c4ea9c2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,7 +3,7 @@ project(gmapping) + + find_package(catkin REQUIRED nav_msgs nodelet openslam_gmapping roscpp tf rosbag_storage) + +-find_package(Boost REQUIRED) ++find_package(Boost COMPONENTS thread system program_options REQUIRED) + + include_directories(${Boost_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS}) + diff --git a/distros/noetic/patch/ros-noetic-grid-map-core.win.patch b/distros/noetic/patch/ros-noetic-grid-map-core.win.patch new file mode 100644 index 000000000..fff98e5b3 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-grid-map-core.win.patch @@ -0,0 +1,43 @@ +diff --git a/include/grid_map_core/eigen_plugins/FunctorsPlugin.hpp b/include/grid_map_core/eigen_plugins/FunctorsPlugin.hpp +index 79dcdd66..3d467a5c 100644 +--- a/include/grid_map_core/eigen_plugins/FunctorsPlugin.hpp ++++ b/include/grid_map_core/eigen_plugins/FunctorsPlugin.hpp +@@ -4,9 +4,9 @@ template struct scalar_sum_of_finites_op { + EIGEN_EMPTY_STRUCT_CTOR(scalar_sum_of_finites_op) + EIGEN_STRONG_INLINE const Scalar operator() (const Scalar& a, const Scalar& b) const { + using std::isfinite; +- if (isfinite(a) && isfinite(b)) return a + b; +- if (isfinite(a)) return a; +- if (isfinite(b)) return b; ++ if (isfinite(static_cast(a)) && isfinite(static_cast(b))) return a + b; ++ if (isfinite(static_cast(a))) return a; ++ if (isfinite(static_cast(b))) return b; + return a + b; + } + }; +@@ -24,9 +24,9 @@ struct scalar_min_of_finites_op { + EIGEN_STRONG_INLINE const Scalar operator() (const Scalar& a, const Scalar& b) const { + using std::min; + using std::isfinite; +- if (isfinite(a) && isfinite(b)) return (min)(a, b); +- if (isfinite(a)) return a; +- if (isfinite(b)) return b; ++ if (isfinite(static_cast(a)) && isfinite(static_cast(b))) return (min)(a, b); ++ if (isfinite(static_cast(a))) return a; ++ if (isfinite(static_cast(b))) return b; + return (min)(a, b); + } + }; +@@ -44,9 +44,9 @@ struct scalar_max_of_finites_op { + EIGEN_STRONG_INLINE const Scalar operator() (const Scalar& a, const Scalar& b) const { + using std::max; + using std::isfinite; +- if (isfinite(a) && isfinite(b)) return (max)(a, b); +- if (isfinite(a)) return a; +- if (isfinite(b)) return b; ++ if (isfinite(static_cast(a)) && isfinite(static_cast(b))) return (max)(a, b); ++ if (isfinite(static_cast(a))) return a; ++ if (isfinite(static_cast(b))) return b; + return (max)(a, b); + } + }; diff --git a/distros/noetic/patch/ros-noetic-grid-map-cv.patch b/distros/noetic/patch/ros-noetic-grid-map-cv.patch new file mode 100644 index 000000000..b70cc48d5 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-grid-map-cv.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d23798f4..5398f5b7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,8 +1,6 @@ + cmake_minimum_required(VERSION 3.5.1) + project(grid_map_cv) + +-set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}") +- + set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + + ## Find catkin macros and libraries diff --git a/distros/noetic/patch/ros-noetic-grid-map-demos.patch b/distros/noetic/patch/ros-noetic-grid-map-demos.patch new file mode 100644 index 000000000..91fa75ac5 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-grid-map-demos.patch @@ -0,0 +1,20 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2ac7f133..1a21ca67 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -162,10 +162,15 @@ target_link_libraries( + ${catkin_LIBRARIES} + ) + ++if (UNIX) ++ find_package(OpenGL REQUIRED) ++endif() ++ + target_link_libraries( + opencv_demo + ${catkin_LIBRARIES} + ${OpenCV_LIBRARIES} ++ ${OpenGL_LIBRARIES} + ) + + target_link_libraries( diff --git a/distros/noetic/patch/ros-noetic-grid-map-filters.win.patch b/distros/noetic/patch/ros-noetic-grid-map-filters.win.patch new file mode 100644 index 000000000..aac5f6a47 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-grid-map-filters.win.patch @@ -0,0 +1,519 @@ +diff --git a/CMake/FindTBB.cmake b/CMake/FindTBB.cmake +new file mode 100644 +index 00000000..a32470af +--- /dev/null ++++ b/CMake/FindTBB.cmake +@@ -0,0 +1,451 @@ ++# - Find ThreadingBuildingBlocks include dirs and libraries ++# Use this module by invoking find_package with the form: ++# find_package(TBB ++# [REQUIRED] # Fail with error if TBB is not found ++# ) # ++# Once done, this will define ++# ++# TBB_FOUND - system has TBB ++# TBB_INCLUDE_DIRS - the TBB include directories ++# TBB_LIBRARIES - TBB libraries to be lined, doesn't include malloc or ++# malloc proxy ++# TBB::tbb - imported target for the TBB library ++# ++# TBB_VERSION_MAJOR - Major Product Version Number ++# TBB_VERSION_MINOR - Minor Product Version Number ++# TBB_INTERFACE_VERSION - Engineering Focused Version Number ++# TBB_COMPATIBLE_INTERFACE_VERSION - The oldest major interface version ++# still supported. This uses the engineering ++# focused interface version numbers. ++# ++# TBB_MALLOC_FOUND - system has TBB malloc library ++# TBB_MALLOC_INCLUDE_DIRS - the TBB malloc include directories ++# TBB_MALLOC_LIBRARIES - The TBB malloc libraries to be lined ++# TBB::malloc - imported target for the TBB malloc library ++# ++# TBB_MALLOC_PROXY_FOUND - system has TBB malloc proxy library ++# TBB_MALLOC_PROXY_INCLUDE_DIRS = the TBB malloc proxy include directories ++# TBB_MALLOC_PROXY_LIBRARIES - The TBB malloc proxy libraries to be lined ++# TBB::malloc_proxy - imported target for the TBB malloc proxy library ++# ++# ++# This module reads hints about search locations from variables: ++# ENV TBB_ARCH_PLATFORM - for eg. set it to "mic" for Xeon Phi builds ++# ENV TBB_ROOT or just TBB_ROOT - root directory of tbb installation ++# ENV TBB_BUILD_PREFIX - specifies the build prefix for user built tbb ++# libraries. Should be specified with ENV TBB_ROOT ++# and optionally... ++# ENV TBB_BUILD_DIR - if build directory is different than ${TBB_ROOT}/build ++# ++# ++# Modified by Robert Maynard from the original OGRE source ++# ++#------------------------------------------------------------------- ++# This file is part of the CMake build system for OGRE ++# (Object-oriented Graphics Rendering Engine) ++# For the latest info, see http://www.ogre3d.org/ ++# ++# The contents of this file are placed in the public domain. Feel ++# free to make use of it in any way you like. ++#------------------------------------------------------------------- ++# ++#============================================================================= ++# Copyright 2010-2012 Kitware, Inc. ++# Copyright 2012 Rolf Eike Beer ++# ++# Distributed under the OSI-approved BSD License (the "License"); ++# see accompanying file Copyright.txt for details. ++# ++# This software is distributed WITHOUT ANY WARRANTY; without even the ++# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ++# See the License for more information. ++#============================================================================= ++# (To distribute this file outside of CMake, substitute the full ++# License text for the above reference.) ++ ++ ++#============================================================================= ++# FindTBB helper functions and macros ++# ++ ++# Use TBBConfig.cmake if possible. ++ ++set(_tbb_find_quiet) ++if (TBB_FIND_QUIETLY) ++ set(_tbb_find_quiet QUIET) ++endif () ++set(_tbb_find_components) ++set(_tbb_find_optional_components) ++foreach (_tbb_find_component IN LISTS TBB_FIND_COMPONENTS) ++ if (TBB_FIND_REQUIRED_${_tbb_find_component}) ++ list(APPEND _tbb_find_components "${_tbb_find_component}") ++ else () ++ list(APPEND _tbb_find_optional_components "${_tbb_find_component}") ++ endif () ++endforeach () ++unset(_tbb_find_component) ++find_package(TBB CONFIG ${_tbb_find_quiet} ++ COMPONENTS ${_tbb_find_components} ++ OPTIONAL_COMPONENTS ${_tbb_find_optional_components}) ++unset(_tbb_find_quiet) ++unset(_tbb_find_components) ++unset(_tbb_find_optional_components) ++if (TBB_FOUND) ++ return () ++endif () ++ ++#==================================================== ++# Fix the library path in case it is a linker script ++#==================================================== ++function(tbb_extract_real_library library real_library) ++ if(NOT UNIX OR NOT EXISTS ${library}) ++ set(${real_library} "${library}" PARENT_SCOPE) ++ return() ++ endif() ++ ++ #Read in the first 4 bytes and see if they are the ELF magic number ++ set(_elf_magic "7f454c46") ++ file(READ ${library} _hex_data OFFSET 0 LIMIT 4 HEX) ++ if(_hex_data STREQUAL _elf_magic) ++ #we have opened a elf binary so this is what ++ #we should link to ++ set(${real_library} "${library}" PARENT_SCOPE) ++ return() ++ endif() ++ ++ file(READ ${library} _data OFFSET 0 LIMIT 1024) ++ if("${_data}" MATCHES "INPUT \\(([^(]+)\\)") ++ #extract out the .so name from REGEX MATCH command ++ set(_proper_so_name "${CMAKE_MATCH_1}") ++ ++ #construct path to the real .so which is presumed to be in the same directory ++ #as the input file ++ get_filename_component(_so_dir "${library}" DIRECTORY) ++ set(${real_library} "${_so_dir}/${_proper_so_name}" PARENT_SCOPE) ++ else() ++ #unable to determine what this library is so just hope everything works ++ #and pass it unmodified. ++ set(${real_library} "${library}" PARENT_SCOPE) ++ endif() ++endfunction() ++ ++#=============================================== ++# Do the final processing for the package find. ++#=============================================== ++macro(findpkg_finish PREFIX TARGET_NAME) ++ if (${PREFIX}_INCLUDE_DIR AND ${PREFIX}_LIBRARY) ++ set(${PREFIX}_FOUND TRUE) ++ set (${PREFIX}_INCLUDE_DIRS ${${PREFIX}_INCLUDE_DIR}) ++ set (${PREFIX}_LIBRARIES ${${PREFIX}_LIBRARY}) ++ else () ++ if (${PREFIX}_FIND_REQUIRED AND NOT ${PREFIX}_FIND_QUIETLY) ++ message(FATAL_ERROR "Required library ${PREFIX} not found.") ++ endif () ++ endif () ++ ++ if (NOT TARGET "TBB::${TARGET_NAME}") ++ if (${PREFIX}_LIBRARY_RELEASE) ++ tbb_extract_real_library(${${PREFIX}_LIBRARY_RELEASE} real_release) ++ endif () ++ if (${PREFIX}_LIBRARY_DEBUG) ++ tbb_extract_real_library(${${PREFIX}_LIBRARY_DEBUG} real_debug) ++ endif () ++ add_library(TBB::${TARGET_NAME} UNKNOWN IMPORTED) ++ set_target_properties(TBB::${TARGET_NAME} PROPERTIES ++ INTERFACE_INCLUDE_DIRECTORIES "${${PREFIX}_INCLUDE_DIR}") ++ if (${PREFIX}_LIBRARY_DEBUG AND ${PREFIX}_LIBRARY_RELEASE) ++ set_target_properties(TBB::${TARGET_NAME} PROPERTIES ++ IMPORTED_LOCATION "${real_release}" ++ IMPORTED_LOCATION_DEBUG "${real_debug}" ++ IMPORTED_LOCATION_RELEASE "${real_release}") ++ elseif (${PREFIX}_LIBRARY_RELEASE) ++ set_target_properties(TBB::${TARGET_NAME} PROPERTIES ++ IMPORTED_LOCATION "${real_release}") ++ elseif (${PREFIX}_LIBRARY_DEBUG) ++ set_target_properties(TBB::${TARGET_NAME} PROPERTIES ++ IMPORTED_LOCATION "${real_debug}") ++ endif () ++ endif () ++ ++ #mark the following variables as internal variables ++ mark_as_advanced(${PREFIX}_INCLUDE_DIR ++ ${PREFIX}_LIBRARY ++ ${PREFIX}_LIBRARY_DEBUG ++ ${PREFIX}_LIBRARY_RELEASE) ++endmacro() ++ ++#=============================================== ++# Generate debug names from given release names ++#=============================================== ++macro(get_debug_names PREFIX) ++ foreach(i ${${PREFIX}}) ++ set(${PREFIX}_DEBUG ${${PREFIX}_DEBUG} ${i}d ${i}D ${i}_d ${i}_D ${i}_debug ${i}) ++ endforeach() ++endmacro() ++ ++#=============================================== ++# See if we have env vars to help us find tbb ++#=============================================== ++macro(getenv_path VAR) ++ set(ENV_${VAR} $ENV{${VAR}}) ++ # replace won't work if var is blank ++ if (ENV_${VAR}) ++ string( REGEX REPLACE "\\\\" "/" ENV_${VAR} ${ENV_${VAR}} ) ++ endif () ++endmacro() ++ ++#=============================================== ++# Couple a set of release AND debug libraries ++#=============================================== ++macro(make_library_set PREFIX) ++ if (${PREFIX}_RELEASE AND ${PREFIX}_DEBUG) ++ set(${PREFIX} optimized ${${PREFIX}_RELEASE} debug ${${PREFIX}_DEBUG}) ++ elseif (${PREFIX}_RELEASE) ++ set(${PREFIX} ${${PREFIX}_RELEASE}) ++ elseif (${PREFIX}_DEBUG) ++ set(${PREFIX} ${${PREFIX}_DEBUG}) ++ endif () ++endmacro() ++ ++ ++#============================================================================= ++# Now to actually find TBB ++# ++ ++# Get path, convert backslashes as ${ENV_${var}} ++getenv_path(TBB_ROOT) ++ ++# initialize search paths ++set(TBB_PREFIX_PATH ${TBB_ROOT} ${ENV_TBB_ROOT}) ++set(TBB_INC_SEARCH_PATH "") ++set(TBB_LIB_SEARCH_PATH "") ++ ++ ++# If user built from sources ++set(TBB_BUILD_PREFIX $ENV{TBB_BUILD_PREFIX}) ++if (TBB_BUILD_PREFIX AND ENV_TBB_ROOT) ++ getenv_path(TBB_BUILD_DIR) ++ if (NOT ENV_TBB_BUILD_DIR) ++ set(ENV_TBB_BUILD_DIR ${ENV_TBB_ROOT}/build) ++ endif () ++ ++ # include directory under ${ENV_TBB_ROOT}/include ++ list(APPEND TBB_LIB_SEARCH_PATH ++ ${ENV_TBB_BUILD_DIR}/${TBB_BUILD_PREFIX}_release ++ ${ENV_TBB_BUILD_DIR}/${TBB_BUILD_PREFIX}_debug) ++endif () ++ ++ ++# For Windows, let's assume that the user might be using the precompiled ++# TBB packages from the main website. These use a rather awkward directory ++# structure (at least for automatically finding the right files) depending ++# on platform and compiler, but we'll do our best to accommodate it. ++# Not adding the same effort for the precompiled linux builds, though. Those ++# have different versions for CC compiler versions and linux kernels which ++# will never adequately match the user's setup, so there is no feasible way ++# to detect the "best" version to use. The user will have to manually ++# select the right files. (Chances are the distributions are shipping their ++# custom version of tbb, anyway, so the problem is probably nonexistent.) ++if (WIN32 AND MSVC) ++ set(COMPILER_PREFIX "vc7.1") ++ if (MSVC_VERSION EQUAL 1400) ++ set(COMPILER_PREFIX "vc8") ++ elseif(MSVC_VERSION EQUAL 1500) ++ set(COMPILER_PREFIX "vc9") ++ elseif(MSVC_VERSION EQUAL 1600) ++ set(COMPILER_PREFIX "vc10") ++ elseif(MSVC_VERSION EQUAL 1700) ++ set(COMPILER_PREFIX "vc11") ++ elseif(MSVC_VERSION EQUAL 1800) ++ set(COMPILER_PREFIX "vc12") ++ elseif(MSVC_VERSION GREATER_EQUAL 1900) ++ set(COMPILER_PREFIX "vc14") ++ endif () ++ ++ # for each prefix path, add ia32/64\${COMPILER_PREFIX}\lib to the lib search path ++ foreach (dir IN LISTS TBB_PREFIX_PATH) ++ if (CMAKE_CL_64) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/ia64/${COMPILER_PREFIX}/lib) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/ia64/${COMPILER_PREFIX}) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/intel64/${COMPILER_PREFIX}/lib) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/intel64/${COMPILER_PREFIX}) ++ else () ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/ia32/${COMPILER_PREFIX}/lib) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/ia32/${COMPILER_PREFIX}) ++ endif () ++ endforeach () ++endif () ++ ++# For OS X binary distribution, choose libc++ based libraries for Mavericks (10.9) ++# and above and AppleClang ++if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND ++ NOT CMAKE_SYSTEM_VERSION VERSION_LESS 13.0) ++ set (USE_LIBCXX OFF) ++ cmake_policy(GET CMP0025 POLICY_VAR) ++ ++ if (POLICY_VAR STREQUAL "NEW") ++ if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") ++ set (USE_LIBCXX ON) ++ endif () ++ else () ++ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") ++ set (USE_LIBCXX ON) ++ endif () ++ endif () ++ ++ if (USE_LIBCXX) ++ foreach (dir IN LISTS TBB_PREFIX_PATH) ++ list (APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/libc++ ${dir}/libc++/lib) ++ endforeach () ++ endif () ++endif () ++ ++# check compiler ABI ++if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") ++ set(COMPILER_PREFIX) ++ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8) ++ list(APPEND COMPILER_PREFIX "gcc4.8") ++ endif() ++ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7) ++ list(APPEND COMPILER_PREFIX "gcc4.7") ++ endif() ++ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4) ++ list(APPEND COMPILER_PREFIX "gcc4.4") ++ endif() ++ list(APPEND COMPILER_PREFIX "gcc4.1") ++elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") ++ set(COMPILER_PREFIX) ++ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.0) # Complete guess ++ list(APPEND COMPILER_PREFIX "gcc4.8") ++ endif() ++ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.6) ++ list(APPEND COMPILER_PREFIX "gcc4.7") ++ endif() ++ list(APPEND COMPILER_PREFIX "gcc4.4") ++else() # Assume compatibility with 4.4 for other compilers ++ list(APPEND COMPILER_PREFIX "gcc4.4") ++endif () ++ ++# if platform architecture is explicitly specified ++set(TBB_ARCH_PLATFORM $ENV{TBB_ARCH_PLATFORM}) ++if (TBB_ARCH_PLATFORM) ++ foreach (dir IN LISTS TBB_PREFIX_PATH) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/${TBB_ARCH_PLATFORM}/lib) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/${TBB_ARCH_PLATFORM}) ++ endforeach () ++endif () ++ ++foreach (dir IN LISTS TBB_PREFIX_PATH) ++ foreach (prefix IN LISTS COMPILER_PREFIX) ++ if (CMAKE_SIZEOF_VOID_P EQUAL 8) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/intel64) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/intel64/${prefix}) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/intel64/lib) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/intel64/${prefix}/lib) ++ else () ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/ia32) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib/ia32/${prefix}) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/ia32/lib) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/ia32/${prefix}/lib) ++ endif () ++ endforeach() ++endforeach () ++ ++# add general search paths ++foreach (dir IN LISTS TBB_PREFIX_PATH) ++ list(APPEND TBB_LIB_SEARCH_PATH ${dir}/lib ${dir}/Lib ${dir}/lib/tbb ++ ${dir}/Libs) ++ list(APPEND TBB_INC_SEARCH_PATH ${dir}/include ${dir}/Include ++ ${dir}/include/tbb) ++endforeach () ++ ++set(TBB_LIBRARY_NAMES tbb) ++get_debug_names(TBB_LIBRARY_NAMES) ++ ++ ++find_path(TBB_INCLUDE_DIR ++ NAMES tbb/tbb.h ++ PATHS ${TBB_INC_SEARCH_PATH}) ++ ++find_library(TBB_LIBRARY_RELEASE ++ NAMES ${TBB_LIBRARY_NAMES} ++ PATHS ${TBB_LIB_SEARCH_PATH}) ++find_library(TBB_LIBRARY_DEBUG ++ NAMES ${TBB_LIBRARY_NAMES_DEBUG} ++ PATHS ${TBB_LIB_SEARCH_PATH}) ++make_library_set(TBB_LIBRARY) ++ ++findpkg_finish(TBB tbb) ++ ++#if we haven't found TBB no point on going any further ++if (NOT TBB_FOUND) ++ return() ++endif () ++ ++#============================================================================= ++# Look for TBB's malloc package ++set(TBB_MALLOC_LIBRARY_NAMES tbbmalloc) ++get_debug_names(TBB_MALLOC_LIBRARY_NAMES) ++ ++find_path(TBB_MALLOC_INCLUDE_DIR ++ NAMES tbb/tbb.h ++ PATHS ${TBB_INC_SEARCH_PATH}) ++ ++find_library(TBB_MALLOC_LIBRARY_RELEASE ++ NAMES ${TBB_MALLOC_LIBRARY_NAMES} ++ PATHS ${TBB_LIB_SEARCH_PATH}) ++find_library(TBB_MALLOC_LIBRARY_DEBUG ++ NAMES ${TBB_MALLOC_LIBRARY_NAMES_DEBUG} ++ PATHS ${TBB_LIB_SEARCH_PATH}) ++make_library_set(TBB_MALLOC_LIBRARY) ++ ++findpkg_finish(TBB_MALLOC tbbmalloc) ++ ++#============================================================================= ++# Look for TBB's malloc proxy package ++set(TBB_MALLOC_PROXY_LIBRARY_NAMES tbbmalloc_proxy) ++get_debug_names(TBB_MALLOC_PROXY_LIBRARY_NAMES) ++ ++find_path(TBB_MALLOC_PROXY_INCLUDE_DIR ++ NAMES tbb/tbbmalloc_proxy.h ++ PATHS ${TBB_INC_SEARCH_PATH}) ++ ++find_library(TBB_MALLOC_PROXY_LIBRARY_RELEASE ++ NAMES ${TBB_MALLOC_PROXY_LIBRARY_NAMES} ++ PATHS ${TBB_LIB_SEARCH_PATH}) ++find_library(TBB_MALLOC_PROXY_LIBRARY_DEBUG ++ NAMES ${TBB_MALLOC_PROXY_LIBRARY_NAMES_DEBUG} ++ PATHS ${TBB_LIB_SEARCH_PATH}) ++make_library_set(TBB_MALLOC_PROXY_LIBRARY) ++ ++findpkg_finish(TBB_MALLOC_PROXY tbbmalloc_proxy) ++ ++ ++#============================================================================= ++#parse all the version numbers from tbb ++if(NOT TBB_VERSION) ++ ++ #only read the start of the file ++ file(STRINGS ++ "${TBB_INCLUDE_DIR}/tbb/tbb_stddef.h" ++ TBB_VERSION_CONTENTS ++ REGEX "VERSION") ++ ++ string(REGEX REPLACE ++ ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" ++ TBB_VERSION_MAJOR "${TBB_VERSION_CONTENTS}") ++ ++ string(REGEX REPLACE ++ ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" ++ TBB_VERSION_MINOR "${TBB_VERSION_CONTENTS}") ++ ++ string(REGEX REPLACE ++ ".*#define TBB_INTERFACE_VERSION ([0-9]+).*" "\\1" ++ TBB_INTERFACE_VERSION "${TBB_VERSION_CONTENTS}") ++ ++ string(REGEX REPLACE ++ ".*#define TBB_COMPATIBLE_INTERFACE_VERSION ([0-9]+).*" "\\1" ++ TBB_COMPATIBLE_INTERFACE_VERSION "${TBB_VERSION_CONTENTS}") ++ ++endif() ++ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5b2f915f..93334a17 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,8 @@ + cmake_minimum_required(VERSION 3.5.1) + project(grid_map_filters) + ++set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/CMake/") ++ + # Better with parallelized algorithms. + #set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} -ffast-math") + +@@ -25,18 +27,7 @@ find_package(catkin REQUIRED COMPONENTS + ) + + ## System dependencies are found with CMake's conventions +-find_package(PkgConfig REQUIRED) +- +-pkg_check_modules(TBB "tbb") +-if (TBB_FOUND) +- add_definitions( +- ${TBB_CFLAGS} +- ${TBB_CFLAGS_OTHER} +- ) +-else() +- message([FATAL_ERROR] "tbb module not found") +-endif () +- ++find_package(TBB REQUIRED) + find_package(OpenCV REQUIRED) + + ################################### +diff --git a/include/grid_map_filters/MockFilter.hpp b/include/grid_map_filters/MockFilter.hpp +index d3c36b90..804f1a1e 100644 +--- a/include/grid_map_filters/MockFilter.hpp ++++ b/include/grid_map_filters/MockFilter.hpp +@@ -50,7 +50,7 @@ class MockFilter : public filters::FilterBase + bool printName_; + + //! The time [ms] that the update function takes. +- uint processingTime_; ++ unsigned int processingTime_; + }; + + } /* namespace */ +diff --git a/src/ColorBlendingFilter.cpp b/src/ColorBlendingFilter.cpp +index 480d03f3..89d3ad4a 100644 +--- a/src/ColorBlendingFilter.cpp ++++ b/src/ColorBlendingFilter.cpp +@@ -84,9 +84,9 @@ bool ColorBlendingFilter::update(const T& mapIn, T& mapOut) + + // For each cell in map. + for (size_t i = 0; i < output.size(); ++i) { +- if (std::isnan(background(i))) { ++ if (std::isnan(static_cast(background(i)))) { + output(i) = foreground(i); +- } else if (std::isnan(foreground(i))) { ++ } else if (std::isnan(static_cast(foreground(i)))) { + output(i) = background(i); + } else { + Eigen::Array3f backgroundColor, foregroundColor, outputColor; diff --git a/distros/noetic/patch/ros-noetic-grid-map-pcl.patch b/distros/noetic/patch/ros-noetic-grid-map-pcl.patch new file mode 100644 index 000000000..fdff9fb9b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-grid-map-pcl.patch @@ -0,0 +1,40 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a8dc5573..2f9d44f2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -45,6 +45,8 @@ find_package(catkin REQUIRED + ${CATKIN_PACKAGE_DEPENDENCIES} + ) + ++find_package(yaml-cpp REQUIRED) ++ + ################################### + ## catkin specific configuration ## + ################################### +@@ -59,11 +61,11 @@ catkin_package( + include + LIBRARIES + ${PROJECT_NAME} +- yaml-cpp + CATKIN_DEPENDS + ${CATKIN_PACKAGE_DEPENDENCIES} + DEPENDS + PCL ++ YAML_CPP + ) + + ########### +@@ -91,11 +93,12 @@ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC + ${PCL_KDTREE_INCLUDE_DIRS} + ${PCL_SEGMENTATION_INCLUDE_DIRS} + ${PCL_SURFACE_INCLUDE_DIRS} ++ ${YAML_INCLUDE_DIRS} + ) + target_link_libraries(${PROJECT_NAME} + ${catkin_LIBRARIES} + ${OpenMP_CXX_LIBRARIES} +- yaml-cpp ++ ${YAML_CPP_LIBRARIES} + ) + + diff --git a/distros/noetic/patch/ros-noetic-grid-map-ros.patch b/distros/noetic/patch/ros-noetic-grid-map-ros.patch new file mode 100644 index 000000000..1345d7613 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-grid-map-ros.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c20199fe..1af9b8e1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,8 +1,6 @@ + cmake_minimum_required(VERSION 3.5.1) + project(grid_map_ros) + +-set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}") +- + set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + + ## Find catkin macros and libraries diff --git a/distros/noetic/patch/ros-noetic-hardware-interface.patch b/distros/noetic/patch/ros-noetic-hardware-interface.patch new file mode 100644 index 000000000..adc2ddd65 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-hardware-interface.patch @@ -0,0 +1,15 @@ +diff --git a/include/hardware_interface/robot_hw.h b/include/hardware_interface/robot_hw.h +index d9f5b9ab..8e27c313 100644 +--- a/include/hardware_interface/robot_hw.h ++++ b/include/hardware_interface/robot_hw.h +@@ -39,6 +39,10 @@ + #include + #include + ++#ifdef ERROR ++#undef ERROR ++#endif ++ + namespace hardware_interface + { + diff --git a/distros/noetic/patch/ros-noetic-hebi-cpp-api.patch b/distros/noetic/patch/ros-noetic-hebi-cpp-api.patch new file mode 100644 index 000000000..cfc7b41dc --- /dev/null +++ b/distros/noetic/patch/ros-noetic-hebi-cpp-api.patch @@ -0,0 +1,16 @@ +diff --git a/hebi/CMakeLists.txt b/hebi/CMakeLists.txt +index 8253566..5cb698a 100644 +--- a/hebi/CMakeLists.txt ++++ b/hebi/CMakeLists.txt +@@ -18,9 +18,9 @@ if (UNIX AND NOT APPLE) + # Detect cross-compilation, especially on the ROS build farm: + if (${CMAKE_LIBRARY_ARCHITECTURE} MATCHES "^i[3456]86-linux-gnu$") + set(LIBHEBI_TARGET_ARCHITECTURE "i686") +- elseif ("arm-linux-gnueabihf" STREQUAL ${CMAKE_LIBRARY_ARCHITECTURE}) ++ elseif ("arm-linux-gnueabihf" STREQUAL "${CMAKE_LIBRARY_ARCHITECTURE}") + set(LIBHEBI_TARGET_ARCHITECTURE "armhf") +- elseif ("aarch64-linux-gnu" STREQUAL ${CMAKE_LIBRARY_ARCHITECTURE}) ++ elseif ("aarch64-linux-gnu" STREQUAL "${CMAKE_LIBRARY_ARCHITECTURE}") + set(LIBHEBI_TARGET_ARCHITECTURE "aarch64") + endif() + diff --git a/distros/noetic/patch/ros-noetic-hls-lfcd-lds-driver.patch b/distros/noetic/patch/ros-noetic-hls-lfcd-lds-driver.patch new file mode 100644 index 000000000..ce728cba5 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-hls-lfcd-lds-driver.patch @@ -0,0 +1,70 @@ +diff --git a/include/hls_lfcd_lds_driver/hlds_laser_segment_publisher.h b/include/hls_lfcd_lds_driver/hlds_laser_segment_publisher.h +index 944e21b..8fcbc93 100644 +--- a/include/hls_lfcd_lds_driver/hlds_laser_segment_publisher.h ++++ b/include/hls_lfcd_lds_driver/hlds_laser_segment_publisher.h +@@ -49,7 +49,7 @@ public: + * @param baud_rate The baud rate to open the serial port at. + * @param io Boost ASIO IO Service to use when creating the serial port object + */ +- LFCDLaser(const std::string& port, uint32_t baud_rate, boost::asio::io_service& io); ++ LFCDLaser(const std::string& port, uint32_t baud_rate, boost::asio::io_context& io); + + /** + * @brief Default destructor +diff --git a/include/hls_lfcd_lds_driver/lfcd_laser.h b/include/hls_lfcd_lds_driver/lfcd_laser.h +index 944e21b..8fcbc93 100644 +--- a/include/hls_lfcd_lds_driver/lfcd_laser.h ++++ b/include/hls_lfcd_lds_driver/lfcd_laser.h +@@ -49,7 +49,7 @@ public: + * @param baud_rate The baud rate to open the serial port at. + * @param io Boost ASIO IO Service to use when creating the serial port object + */ +- LFCDLaser(const std::string& port, uint32_t baud_rate, boost::asio::io_service& io); ++ LFCDLaser(const std::string& port, uint32_t baud_rate, boost::asio::io_context& io); + + /** + * @brief Default destructor +diff --git a/src/hlds_laser_publisher.cpp b/src/hlds_laser_publisher.cpp +index 69afb6c..8c436f9 100644 +--- a/src/hlds_laser_publisher.cpp ++++ b/src/hlds_laser_publisher.cpp +@@ -40,7 +40,7 @@ + + namespace hls_lfcd_lds + { +-LFCDLaser::LFCDLaser(const std::string& port, uint32_t baud_rate, boost::asio::io_service& io) ++LFCDLaser::LFCDLaser(const std::string& port, uint32_t baud_rate, boost::asio::io_context& io) + : port_(port), baud_rate_(baud_rate), shutting_down_(false), serial_(io, port_) + { + serial_.set_option(boost::asio::serial_port_base::baud_rate(baud_rate_)); +@@ -155,7 +155,7 @@ int main(int argc, char **argv) + priv_nh.param("baud_rate", baud_rate, 230400); + priv_nh.param("frame_id", frame_id, std::string("laser")); + +- boost::asio::io_service io; ++ boost::asio::io_context io; + + try + { +diff --git a/src/hlds_laser_segment_publisher.cpp b/src/hlds_laser_segment_publisher.cpp +index 7c3ff46..e76fe75 100644 +--- a/src/hlds_laser_segment_publisher.cpp ++++ b/src/hlds_laser_segment_publisher.cpp +@@ -40,7 +40,7 @@ + + namespace hls_lfcd_lds + { +-LFCDLaser::LFCDLaser(const std::string& port, uint32_t baud_rate, boost::asio::io_service& io) ++LFCDLaser::LFCDLaser(const std::string& port, uint32_t baud_rate, boost::asio::io_context& io) + : port_(port), baud_rate_(baud_rate), shutting_down_(false), serial_(io, port_) + { + serial_.set_option(boost::asio::serial_port_base::baud_rate(baud_rate_)); +@@ -128,7 +128,7 @@ int main(int argc, char **argv) + priv_nh.param("baud_rate", baud_rate, 230400); + priv_nh.param("frame_id", frame_id, std::string("laser")); + +- boost::asio::io_service io; ++ boost::asio::io_context io; + + try + { diff --git a/distros/noetic/patch/ros-noetic-hpp-fcl.patch b/distros/noetic/patch/ros-noetic-hpp-fcl.patch new file mode 100644 index 000000000..f019dd4c4 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-hpp-fcl.patch @@ -0,0 +1,30 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 58dd41d..c3c0a5a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -267,9 +267,9 @@ add_subdirectory(src) + if (BUILD_PYTHON_INTERFACE) + add_subdirectory(python) + endif () +-if(BUILD_TESTING) +- add_subdirectory(test) +-endif(BUILD_TESTING) ++# if(BUILD_TESTING) ++# add_subdirectory(test) ++# endif(BUILD_TESTING) + + pkg_config_append_libs("hpp-fcl") + IF(HPP_FCL_HAS_OCTOMAP) +diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt +index 995a8c6c..c960e27d 100644 +--- a/python/CMakeLists.txt ++++ b/python/CMakeLists.txt +@@ -51,7 +51,7 @@ SET(${LIBRARY_NAME}_HEADERS + pickle.hh + ) + +-SET(ENABLE_PYTHON_DOXYGEN_AUTODOC TRUE CACHE BOOL "Enable automatic documentation of Python bindings from Doxygen documentation") ++SET(ENABLE_PYTHON_DOXYGEN_AUTODOC FALSE CACHE BOOL "Enable automatic documentation of Python bindings from Doxygen documentation") + + IF( NOT ENABLE_PYTHON_DOXYGEN_AUTODOC + OR NOT DOXYGEN_FOUND) diff --git a/distros/noetic/patch/ros-noetic-ifm3d.patch b/distros/noetic/patch/ros-noetic-ifm3d.patch new file mode 100644 index 000000000..eeff60e20 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ifm3d.patch @@ -0,0 +1,15 @@ +diff --git a/src/camera_nodelet.cpp b/src/camera_nodelet.cpp +index 1c1a7d8..f650228 100644 +--- a/src/camera_nodelet.cpp ++++ b/src/camera_nodelet.cpp +@@ -594,7 +594,9 @@ ifm3d_ros::CameraNodelet::Run() + if ((this->schema_mask_ & ifm3d::IMG_CART) == ifm3d::IMG_CART) + { + cloud->header = pcl_conversions::toPCL(head); +- this->cloud_pub_.publish(cloud); ++ sensor_msgs::PointCloud2 out_cloud; ++ pcl::toROSMsg(*cloud, out_cloud); ++ this->cloud_pub_.publish(out_cloud); + + sensor_msgs::ImagePtr xyz_image_msg = + cv_bridge::CvImage(head, diff --git a/distros/noetic/patch/ros-noetic-ifopt.patch b/distros/noetic/patch/ros-noetic-ifopt.patch new file mode 100644 index 000000000..de5026510 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ifopt.patch @@ -0,0 +1,293 @@ +diff --git a/ifopt_ipopt/CMakeLists.txt b/ifopt_ipopt/CMakeLists.txt +index eb6b21a..fd8b48b 100644 +--- a/ifopt_ipopt/CMakeLists.txt ++++ b/ifopt_ipopt/CMakeLists.txt +@@ -1,5 +1,5 @@ + set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) +-find_package(IPOPT 3.11.9 REQUIRED) ++find_package(IPOPT REQUIRED) + # previous IPOPT versions have a bug which causes mumps segfault: + # https://bugs.launchpad.net/ubuntu/+source/coinor-ipopt/+bug/1167585 + +@@ -39,6 +39,7 @@ target_compile_definitions(${LIB_IPOPT} + add_executable(${LIB_IPOPT}-example test/ex_test_ipopt.cc) + target_link_libraries(${LIB_IPOPT}-example + PRIVATE ++ ${IPOPT_LIBRARIES} + ${LIB_IPOPT} + ) + add_test(${LIB_IPOPT}-example ${LIB_IPOPT}-example) +diff --git a/ifopt_ipopt/cmake/FindIPOPT.cmake b/ifopt_ipopt/cmake/FindIPOPT.cmake +index 912f20d..483e16d 100644 +--- a/ifopt_ipopt/cmake/FindIPOPT.cmake ++++ b/ifopt_ipopt/cmake/FindIPOPT.cmake +@@ -1,233 +1,49 @@ +-#.rst: +-# FindIPOPT +-# --------- ++# Copyright (c) 2011-2021, The DART development contributors ++# All rights reserved. + # +-# Try to locate the IPOPT library ++# The list of contributors can be found at: ++# https://github.com/dartsim/dart/blob/master/LICENSE + # +-# First tries to find the library in the standard search path. If this fails +-# it searches where the environmental varialbe IPOPT_DIR is pointing. +-# Set this to the folder in which you built IPOPT, e.g, in your ~/.bashrc: ++# This file is provided under the "BSD-style" License + +-# export IPOPT_DIR=/home/winklera/Ipopt-3.12.8/build ++# Find IPOPT + # +-# Result variables +-# ^^^^^^^^^^^^^^^^ ++# This sets the following variables: ++# IPOPT_FOUND ++# IPOPT_INCLUDE_DIRS ++# IPOPT_LIBRARIES ++# IPOPT_DEFINITIONS ++# IPOPT_VERSION + # +-# Create the following variables:: +-# +-# IPOPT_INCLUDE_DIRS - Directories to include to use IPOPT +-# IPOPT_LIBRARIES - Default library to link against to use IPOPT +-# IPOPT_DEFINITIONS - Flags to be added to linker's options +-# IPOPT_LINK_FLAGS - Flags to be added to linker's options +-# IPOPT_FOUND - If false, don't try to use IPOPT +-# +-#============================================================================= +-# This find script is copied from https://github.com/robotology/idyntree. +-# Original copyright notice can be seen below: +-#============================================================================= +-# Copyright (C) 2008-2010 RobotCub Consortium +-# Copyright (C) 2016 iCub Facility - Istituto Italiano di Tecnologia +-# Authors: Ugo Pattacini +-# Authors: Daniele E. Domenichelli +-# +-# Distributed under the OSI-approved BSD License (the "License"); +-# see accompanying file Copyright.txt for details. +-# +-# This software is distributed WITHOUT ANY WARRANTY; without even the +-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +-# See the License for more information. +-#============================================================================= +-# (To distribute this file outside of YCM, substitute the full +-# License text for the above reference.) +- +-if(NOT WIN32) +- +- # First priority is finding the package using IPOPT_DIR if set +- if(DEFINED ENV{IPOPT_DIR}) +- set(IPOPT_DIR $ENV{IPOPT_DIR} CACHE PATH "Path to IPOPT build directory") +- +- set(IPOPT_INCLUDE_DIRS ${IPOPT_DIR}/include/coin) +- find_library(IPOPT_LIBRARIES ipopt ${IPOPT_DIR}/lib +- ${IPOPT_DIR}/lib/coin +- NO_DEFAULT_PATH) +- +- if(IPOPT_LIBRARIES) +- find_file(IPOPT_DEP_FILE ipopt_addlibs_cpp.txt ${IPOPT_DIR}/share/doc/coin/Ipopt +- ${IPOPT_DIR}/share/coin/doc/Ipopt +- NO_DEFAULT_PATH) +- mark_as_advanced(IPOPT_DEP_FILE) +- +- if(IPOPT_DEP_FILE) +- # parse the file and acquire the dependencies +- file(READ ${IPOPT_DEP_FILE} IPOPT_DEP) +- string(REGEX REPLACE "-[^l][^ ]* " "" IPOPT_DEP ${IPOPT_DEP}) +- string(REPLACE "-l" "" IPOPT_DEP ${IPOPT_DEP}) +- string(REPLACE "\n" "" IPOPT_DEP ${IPOPT_DEP}) +- string(REPLACE "ipopt" "" IPOPT_DEP ${IPOPT_DEP}) # remove any possible auto-dependency +- separate_arguments(IPOPT_DEP) +- +- # use the find_library command in order to prepare rpath correctly +- foreach(LIB ${IPOPT_DEP}) +- find_library(IPOPT_SEARCH_FOR_${LIB} ${LIB} ${IPOPT_DIR}/lib +- ${IPOPT_DIR}/lib/coin +- ${IPOPT_DIR}/lib/coin/ThirdParty +- NO_DEFAULT_PATH) +- if(IPOPT_SEARCH_FOR_${LIB}) +- # handle non-system libraries (e.g. coinblas) +- set(IPOPT_LIBRARIES ${IPOPT_LIBRARIES} ${IPOPT_SEARCH_FOR_${LIB}}) +- else() +- # handle system libraries (e.g. gfortran) +- set(IPOPT_LIBRARIES ${IPOPT_LIBRARIES} ${LIB}) +- endif() +- mark_as_advanced(IPOPT_SEARCH_FOR_${LIB}) +- endforeach() +- endif() +- endif() +- +- set(IPOPT_DEFINITIONS "") +- +- +- # if IPOPT_DIR not set, try finding IPOPT through package manager +- else() +- find_package(PkgConfig QUIET) +- if(PKG_CONFIG_FOUND) +- +- if(IPOPT_FIND_VERSION) +- if(IPOPT_FIND_VERSION_EXACT) +- pkg_check_modules(_PC_IPOPT REQUIRED ipopt=${IPOPT_FIND_VERSION}) +- else() +- pkg_check_modules(_PC_IPOPT REQUIRED ipopt>=${IPOPT_FIND_VERSION}) +- endif() +- else() +- pkg_check_modules(_PC_IPOPT REQUIRED ipopt) +- endif() +- +- +- if(_PC_IPOPT_FOUND) +- set(IPOPT_INCLUDE_DIRS ${_PC_IPOPT_INCLUDE_DIRS} CACHE PATH "IPOPT include directory") +- set(IPOPT_DEFINITIONS ${_PC_IPOPT_CFLAGS_OTHER} CACHE STRING "Additional compiler flags for IPOPT") +- set(IPOPT_LIBRARIES "" CACHE STRING "IPOPT libraries" FORCE) +- foreach(_LIBRARY IN ITEMS ${_PC_IPOPT_LIBRARIES}) +- find_library(${_LIBRARY}_PATH +- NAMES ${_LIBRARY} +- PATHS ${_PC_IPOPT_LIBRARY_DIRS}) +- # Workaround for https://github.com/robotology/icub-main/issues/418 +- if(${_LIBRARY}_PATH) +- list(APPEND IPOPT_LIBRARIES ${${_LIBRARY}_PATH}) +- endif() +- endforeach() +- else() +- set(IPOPT_DEFINITIONS "") +- endif() +- endif() +- endif() +- +- set(IPOPT_LINK_FLAGS "") ++# and the following targets: ++# IPOPT::ipopt + +-# Windows platforms +-else() +- include(SelectLibraryConfigurations) ++find_package(PkgConfig QUIET) + +- set(IPOPT_DIR $ENV{IPOPT_DIR} CACHE PATH "Path to IPOPT build directory") ++# Check to see if pkgconfig is installed. ++pkg_check_modules(PC_IPOPT ipopt QUIET) + +- set(IPOPT_INCLUDE_DIRS ${IPOPT_DIR}/include/coin) +- find_library(IPOPT_IPOPT_LIBRARY_RELEASE libipopt ${IPOPT_DIR}/lib +- ${IPOPT_DIR}/lib/coin +- NO_DEFAULT_PATH) +- find_library(IPOPT_IPOPT_LIBRARY_DEBUG libipoptD ${IPOPT_DIR}/lib +- ${IPOPT_DIR}/lib/coin +- NO_DEFAULT_PATH) ++# Definitions ++set(IPOPT_DEFINITIONS ${PC_IPOPT_CFLAGS_OTHER}) + +- select_library_configurations(IPOPT_IPOPT) +- set(IPOPT_LIBRARIES ${IPOPT_IPOPT_LIBRARY}) ++# Include directories ++find_path(IPOPT_INCLUDE_DIRS ++ NAMES IpIpoptNLP.hpp ++ HINTS ${PC_IPOPT_INCLUDEDIR} ++ PATHS "${CMAKE_INSTALL_PREFIX}/include") + +- # Some old version of binary releases of IPOPT have Intel fortran +- # libraries embedded in the library, newer releases require them to +- # be explicitly linked. +- if(IPOPT_IPOPT_LIBRARY) +- get_filename_component(_MSVC_DIR "${CMAKE_LINKER}" DIRECTORY) ++# Libraries ++find_library(IPOPT_LIBRARIES ++ NAMES ipopt ++ HINTS ${PC_IPOPT_LIBDIR}) + +- # Find the lib.exe executable +- find_program(LIB_EXECUTABLE +- NAMES lib.exe +- HINTS "${_MSVC_BINDIR}" +- "C:/Program Files/Microsoft Visual Studio 10.0/VC/bin" +- "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin" +- "C:/Program Files/Microsoft Visual Studio 11.0/VC/bin" +- "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin" +- "C:/Program Files/Microsoft Visual Studio 12.0/VC/bin" +- "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin" +- "C:/Program Files/Microsoft Visual Studio 14.0/VC/bin" +- "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin" +- DOC "Path to the lib.exe executable") +- mark_as_advanced(LIB_EXECUTABLE) +- +- # backup PATH environment variable +- set(_path $ENV{PATH}) +- +- # Add th MSVC "Common7/IDE" dir containing the dlls in the PATH when needed. +- get_filename_component(_MSVC_LIBDIR "${_MSVC_BINDIR}/../../Common7/IDE" ABSOLUTE) +- if(NOT EXISTS "${_MSVC_LIBDIR}") +- get_filename_component(_MSVC_LIBDIR "${_MSVC_BINDIR}/../../../Common7/IDE" ABSOLUTE) +- endif() +- +- if(EXISTS "${_MSVC_LIBDIR}") +- set(_MSVC_LIBDIR_FOUND 0) +- file(TO_CMAKE_PATH "$ENV{PATH}" _env_path) +- foreach(_dir ${_env_path}) +- if("${_dir}" STREQUAL ${_MSVC_LIBDIR}) +- set(_MSVC_LIBDIR_FOUND 1) +- endif() +- endforeach() +- if(NOT _MSVC_LIBDIR_FOUND) +- file(TO_NATIVE_PATH "${_MSVC_LIBDIR}" _MSVC_LIBDIR) +- set(ENV{PATH} "$ENV{PATH};${_MSVC_LIBDIR}") +- endif() +- endif() +- +- if(IPOPT_IPOPT_LIBRARY_RELEASE) +- set(_IPOPT_LIB ${IPOPT_IPOPT_LIBRARY_RELEASE}) +- else() +- set(_IPOPT_LIB ${IPOPT_IPOPT_LIBRARY_DEBUG}) +- endif() +- +- execute_process(COMMAND ${LIB_EXECUTABLE} /list "${_IPOPT_LIB}" +- OUTPUT_VARIABLE _lib_output) +- +- set(ENV{PATH} "${_path}") +- unset(_path) +- +- if(NOT "${_lib_output}" MATCHES "libifcoremd.dll") +- get_filename_component(_IPOPT_IPOPT_LIBRARY_DIR "${_IPOPT_LIB}" DIRECTORY) +- +- foreach(_lib ifconsol +- libifcoremd +- libifportmd +- libmmd +- libirc +- svml_dispmd) +- string(TOUPPER "${_lib}" _LIB) +- find_library(IPOPT_${_LIB}_LIBRARY_RELEASE ${_lib} ${_IPOPT_IPOPT_LIBRARY_DIR}) +- find_library(IPOPT_${_LIB}_LIBRARY_DEBUG ${_lib}d ${_IPOPT_IPOPT_LIBRARY_DIR}) +- select_library_configurations(IPOPT_${_LIB}) +- list(APPEND IPOPT_LIBRARIES ${IPOPT_${_LIB}_LIBRARY}) +- endforeach() +- endif() +- endif() +- +- set(IPOPT_DEFINITIONS "") +- if(MSVC) +- set(IPOPT_LINK_FLAGS "/NODEFAULTLIB:libcmt.lib;libcmtd.lib") +- else() +- set(IPOPT_LINK_FLAGS "") +- endif() +- +-endif() +- +-mark_as_advanced(IPOPT_INCLUDE_DIRS +- IPOPT_LIBRARIES +- IPOPT_DEFINITIONS +- IPOPT_LINK_FLAGS) ++# Version ++set(IPOPT_VERSION ${PC_IPOPT_VERSION}) + ++# Set (NAME)_FOUND if all the variables and the version are satisfied. + include(FindPackageHandleStandardArgs) +-find_package_handle_standard_args(IPOPT DEFAULT_MSG IPOPT_LIBRARIES) ++find_package_handle_standard_args(IPOPT ++ FAIL_MESSAGE DEFAULT_MSG ++ REQUIRED_VARS IPOPT_INCLUDE_DIRS IPOPT_LIBRARIES ++ VERSION_VAR IPOPT_VERSION) ++ diff --git a/distros/noetic/patch/ros-noetic-image-transport-codecs.patch b/distros/noetic/patch/ros-noetic-image-transport-codecs.patch new file mode 100644 index 000000000..3d89bb341 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-image-transport-codecs.patch @@ -0,0 +1,18 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b7e3dc5..8015642 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -44,11 +44,11 @@ target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) + target_compile_definitions(${PROJECT_NAME} PRIVATE COMPRESSED_DEPTH_HAS_RVL=${compressed_depth_has_rvl}) + + add_library(compressed_codec src/codecs/compressed_codec.cpp) +-target_link_libraries(compressed_codec ${catkin_LIBRARIES} ${TurboJPEG_LIBRARIES}) ++target_link_libraries(compressed_codec ${PROJECT_NAME} ${catkin_LIBRARIES} ${TurboJPEG_LIBRARIES}) + target_compile_definitions(compressed_codec PRIVATE COMPRESSED_HAS_JPEG_OPTIONS=${compressed_has_jpeg_options}) + + add_library(compressed_depth_codec src/codecs/compressed_depth_codec.cpp) +-target_link_libraries(compressed_depth_codec ${catkin_LIBRARIES}) ++target_link_libraries(compressed_depth_codec ${PROJECT_NAME} ${catkin_LIBRARIES}) + target_compile_definitions(compressed_depth_codec PRIVATE COMPRESSED_DEPTH_HAS_RVL=${compressed_depth_has_rvl}) + + add_library(raw_codec_plugin src/plugins/raw_codec_plugin.cpp) diff --git a/distros/noetic/patch/ros-noetic-interactive-marker-tutorials.patch b/distros/noetic/patch/ros-noetic-interactive-marker-tutorials.patch new file mode 100644 index 000000000..31758ea76 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-interactive-marker-tutorials.patch @@ -0,0 +1,45 @@ +diff --git a/scripts/menu.py b/scripts/menu.py +index e2d1854..dc93108 100755 +--- a/scripts/menu.py ++++ b/scripts/menu.py +@@ -29,6 +29,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + """ + ++from __future__ import print_function ++ + import rospy + + from interactive_markers.interactive_marker_server import * +@@ -68,7 +70,7 @@ def modeCb(feedback): + + rospy.loginfo("Switching to menu entry #" + str(h_mode_last)) + menu_handler.reApply( server ) +- print "DONE" ++ print("DONE") + server.applyChanges() + + def makeBox( msg ): +diff --git a/scripts/simple_marker.py b/scripts/simple_marker.py +index fe44c12..0d13c9a 100755 +--- a/scripts/simple_marker.py ++++ b/scripts/simple_marker.py +@@ -29,6 +29,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + """ + ++from __future__ import print_function ++ + import rospy + + from interactive_markers.interactive_marker_server import * +@@ -36,7 +38,7 @@ from visualization_msgs.msg import * + + def processFeedback(feedback): + p = feedback.pose.position +- print feedback.marker_name + " is now at " + str(p.x) + ", " + str(p.y) + ", " + str(p.z) ++ print(feedback.marker_name + " is now at " + str(p.x) + ", " + str(p.y) + ", " + str(p.z)) + + if __name__=="__main__": + rospy.init_node("simple_marker") + diff --git a/distros/noetic/patch/ros-noetic-interactive-markers.win.patch b/distros/noetic/patch/ros-noetic-interactive-markers.win.patch new file mode 100644 index 000000000..d49b77a83 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-interactive-markers.win.patch @@ -0,0 +1,15 @@ +diff --git a/include/interactive_markers/interactive_marker_client.h b/include/interactive_markers/interactive_marker_client.h +index bd1a1b7..193428e 100644 +--- a/include/interactive_markers/interactive_marker_client.h ++++ b/include/interactive_markers/interactive_marker_client.h +@@ -50,6 +50,10 @@ + + #include "detail/state_machine.h" + ++#ifdef ERROR ++#undef ERROR ++#endif ++ + namespace interactive_markers + { + diff --git a/distros/noetic/patch/ros-noetic-joint-state-controller.win.patch b/distros/noetic/patch/ros-noetic-joint-state-controller.win.patch new file mode 100644 index 000000000..d55ae48c1 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-joint-state-controller.win.patch @@ -0,0 +1,15 @@ +diff --git a/joint_state_controller/src/joint_state_controller.cpp b/joint_state_controller/src/joint_state_controller.cpp +index b204f9f3..4cca4e6b 100644 +--- a/joint_state_controller/src/joint_state_controller.cpp ++++ b/joint_state_controller/src/joint_state_controller.cpp +@@ -93,7 +93,8 @@ namespace joint_state_controller + try { + last_publish_time_ = time - ros::Duration(1.001/publish_rate_); //ensure publish on first cycle + } catch(std::runtime_error& ex) { // negative ros::Time is not allowed +- last_publish_time_ = ros::Time::MIN; ++ ++ last_publish_time_ = ros::Time(0, 1); + } + pub_time_initialized_ = true; + } + diff --git a/distros/noetic/patch/ros-noetic-joint-state-publisher-gui.patch b/distros/noetic/patch/ros-noetic-joint-state-publisher-gui.patch new file mode 100644 index 000000000..f6baef1b2 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-joint-state-publisher-gui.patch @@ -0,0 +1,22 @@ +diff --git a/src/joint_state_publisher_gui/__init__.py b/src/joint_state_publisher_gui/__init__.py +index b4aa139..71b2ca1 100644 +--- a/src/joint_state_publisher_gui/__init__.py ++++ b/src/joint_state_publisher_gui/__init__.py +@@ -100,7 +100,7 @@ class JointStatePublisherGui(QWidget): + + slider.setFont(font) + slider.setRange(0, RANGE) +- slider.setValue(RANGE/2) ++ slider.setValue(int(RANGE/2)) + + joint_layout.addWidget(slider) + +@@ -222,7 +222,7 @@ class JointStatePublisherGui(QWidget): + self.update_sliders() + + def valueToSlider(self, value, joint): +- return (value - joint['min']) * float(RANGE) / (joint['max'] - joint['min']) ++ return int((value - joint['min']) * float(RANGE) / (joint['max'] - joint['min'])) + + def sliderToValue(self, slider, joint): + pctvalue = slider / float(RANGE) diff --git a/distros/noetic/patch/ros-noetic-joy.patch b/distros/noetic/patch/ros-noetic-joy.patch new file mode 100644 index 000000000..12fe35270 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-joy.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6c4ba8f..b0a9fd2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,7 @@ + cmake_minimum_required(VERSION 3.5) + project(joy) + +-set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + + # Load catkin and all dependencies required for this package diff --git a/distros/noetic/patch/ros-noetic-jsk-interactive-marker.patch b/distros/noetic/patch/ros-noetic-jsk-interactive-marker.patch new file mode 100644 index 000000000..580099ddf --- /dev/null +++ b/distros/noetic/patch/ros-noetic-jsk-interactive-marker.patch @@ -0,0 +1,24 @@ +diff --git a/src/interactive_marker_utils.cpp b/src/interactive_marker_utils.cpp +index cb709057..eb4a35d5 100644 +--- a/src/interactive_marker_utils.cpp ++++ b/src/interactive_marker_utils.cpp +@@ -2,6 +2,8 @@ + #include + #include + #include ++#include ++ + #include + #include "urdf_parser/urdf_parser.h" + +@@ -570,8 +572,8 @@ namespace im_utils { + try{ + std::string search_path = std::string(gazebo_model_path, current, found - current); + current = found + 1; +- recursive_directory_iterator iter = recursive_directory_iterator(search_path); +- recursive_directory_iterator end = recursive_directory_iterator(); ++ std::filesystem::recursive_directory_iterator iter = std::filesystem::recursive_directory_iterator(search_path); ++ std::filesystem::recursive_directory_iterator end = std::filesystem::recursive_directory_iterator(); + for (; iter != end; ++iter) { + if (is_regular_file(*iter)) { + int locate = iter->path().string().find( path, 0 ); diff --git a/distros/noetic/patch/ros-noetic-jsk-network-tools.patch b/distros/noetic/patch/ros-noetic-jsk-network-tools.patch new file mode 100644 index 000000000..aaf232d6f --- /dev/null +++ b/distros/noetic/patch/ros-noetic-jsk-network-tools.patch @@ -0,0 +1,15 @@ +diff --git a/src/silverhammer_highspeed_internal_receiver.cpp b/src/silverhammer_highspeed_internal_receiver.cpp +index 02cb9f238c..01e231970a 100644 +--- a/src/silverhammer_highspeed_internal_receiver.cpp ++++ b/src/silverhammer_highspeed_internal_receiver.cpp +@@ -90,8 +90,8 @@ namespace jsk_network_tools + nh.param("expected_rate", expected_rate_, 2.0); + pub_ = nh.advertise("input", 1); + // nh.param("packet_size", packet_size_, 1400); +- boost::asio::io_service io_service; +- socket_.reset(new boost::asio::ip::udp::socket(io_service, boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), receive_port_))); ++ boost::asio::io_context io_context; ++ socket_.reset(new boost::asio::ip::udp::socket(io_context, boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), receive_port_))); + thread_ = boost::thread(boost::bind(&SilverhammerHighspeedInternalReceiver::threadFunc, this)); + pub_thread_ = boost::thread(boost::bind(&SilverhammerHighspeedInternalReceiver::publishPacketsFunc, this)); + diff --git a/distros/noetic/patch/ros-noetic-jsk-pcl-ros-utils.patch b/distros/noetic/patch/ros-noetic-jsk-pcl-ros-utils.patch new file mode 100644 index 000000000..fa898fda7 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-jsk-pcl-ros-utils.patch @@ -0,0 +1,44 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6fd6146d1..e38dd3a69 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -60,6 +60,8 @@ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS} + + # For kinfu + find_package(PCL QUIET COMPONENTS gpu_kinfu_large_scale) ++find_package(VTK REQUIRED) ++get_target_property(VTK_INCLUDE_DIRS VTK::CommonCore INTERFACE_INCLUDE_DIRECTORIES) + + pkg_check_modules(yaml_cpp yaml-cpp REQUIRED) + IF(${yaml_cpp_VERSION} VERSION_LESS "0.5.0") +@@ -99,7 +101,7 @@ generate_dynamic_reconfigure_options( + + find_package(OpenCV REQUIRED core imgproc) + +-include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS}) ++include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}) + link_directories(${catkin_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS}) + if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -z defs") +@@ -220,7 +222,7 @@ jsk_pcl_util_nodelet(src/marker_array_voxel_to_pointcloud_nodelet.cpp + add_library(jsk_pcl_ros_utils SHARED ${jsk_pcl_util_nodelet_sources}) + add_dependencies(jsk_pcl_ros_utils ${PROJECT_NAME}_gencfg) + target_link_libraries(jsk_pcl_ros_utils +- ${catkin_LIBRARIES} ${pcl_ros_LIBRARIES} ${OpenCV_LIBRARIES} yaml-cpp) ++ ${catkin_LIBRARIES} ${pcl_ros_LIBRARIES} ${OpenCV_LIBRARIES} yaml-cpp VTK::CommonCore) + + get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES) + +diff --git a/src/pointcloud_to_pcd_nodelet.cpp b/src/pointcloud_to_pcd_nodelet.cpp +index 3113a387a..8f2f01420 100644 +--- a/src/pointcloud_to_pcd_nodelet.cpp ++++ b/src/pointcloud_to_pcd_nodelet.cpp +@@ -51,7 +51,7 @@ namespace jsk_pcl_ros_utils + + void PointCloudToPCD::timerCallback (const ros::TimerEvent& event) + { +- pcl::PCLPointCloud2::ConstPtr cloud; ++ boost::shared_ptr cloud; + cloud = ros::topic::waitForMessage("input", *pnh_); + if ((cloud->width * cloud->height) == 0) + { diff --git a/distros/noetic/patch/ros-noetic-jsk-pcl-ros.patch b/distros/noetic/patch/ros-noetic-jsk-pcl-ros.patch new file mode 100644 index 000000000..05bc0f25e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-jsk-pcl-ros.patch @@ -0,0 +1,320 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0d602f5a8..d84c01da9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -56,14 +56,16 @@ find_package(moveit_ros_perception) + find_package(PkgConfig) + pkg_check_modules(ml_classifiers ml_classifiers QUIET) + # only run in hydro +-find_package(PCL REQUIRED) ++find_package(PCL COMPONENTS common search tracking filters pcl_io kdtree REQUIRED) ++find_package(VTK REQUIRED) ++get_target_property(VTK_INCLUDE_DIRS VTK::CommonCore INTERFACE_INCLUDE_DIRECTORIES) + find_package(OpenMP) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") + + # For kinfu +-find_package(PCL QUIET COMPONENTS gpu_kinfu_large_scale) ++# find_package(PCL QUIET COMPONENTS gpu_kinfu_large_scale) + + pkg_check_modules(yaml_cpp yaml-cpp REQUIRED) + if(${yaml_cpp_VERSION} VERSION_LESS "0.5.0") +@@ -139,7 +141,7 @@ generate_dynamic_reconfigure_options( + + find_package(OpenCV REQUIRED core imgproc) + +-include_directories(include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS}) ++include_directories(include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}) + link_directories(${catkin_LIBRARY_DIRS}) + if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -z defs") +@@ -179,8 +181,8 @@ jsk_pcl_nodelet(src/moving_least_square_smoothing_nodelet.cpp "jsk_pcl/MovingLea + jsk_pcl_nodelet(src/fisheye_sphere_publisher_nodelet.cpp "jsk_pcl/FisheyeSpherePublisher" "fisheye_sphere_publisher") + jsk_pcl_nodelet(src/plane_supported_cuboid_estimator_nodelet.cpp + "jsk_pcl/PlaneSupportedCuboidEstimator" "plane_supported_cuboid_estimator") +-jsk_pcl_nodelet(src/extract_cuboid_particles_top_n_nodelet.cpp +- "jsk_pcl/ExtractCuboidParticlesTopN" "extract_cuboid_particles_top_n") ++# jsk_pcl_nodelet(src/extract_cuboid_particles_top_n_nodelet.cpp ++# "jsk_pcl/ExtractCuboidParticlesTopN" "extract_cuboid_particles_top_n") + jsk_pcl_nodelet(src/interactive_cuboid_likelihood_nodelet.cpp + "jsk_pcl/InteractiveCuboidLikelihood" "interactive_cuboid_likelihood") + jsk_pcl_nodelet(src/image_rotate_nodelet.cpp +@@ -385,7 +387,7 @@ if (PCL_GPU_KINFU_LARGE_SCALE_FOUND AND jsk_rviz_plugins_FOUND) + jsk_pcl_nodelet(src/kinfu_nodelet.cpp + "jsk_pcl/Kinfu" "kinfu") + include_directories(/usr/local/cuda/include) +-endif (PCL_GPU_KINFU_LARGE_SCALE_FOUND) ++endif (PCL_GPU_KINFU_LARGE_SCALE_FOUND AND jsk_rviz_plugins_FOUND) + jsk_pcl_nodelet_upstream(jsk_pcl_ros_utils "jsk_pcl/PCDReaderWithPose" "pcd_reader_with_pose") + jsk_pcl_nodelet(src/target_adaptive_tracking_nodelet.cpp + "jsk_pcl/TargetAdaptiveTracking" "target_adaptive_tracking") +@@ -544,7 +546,7 @@ if (CATKIN_ENABLE_TESTING) + add_rostest(test/test_edgebased_cube_finder.test) + add_rostest(test/test_environment_plane_modeling.test) + add_rostest(test/test_euclidean_segmentation.test) +- add_rostest(test/test_extract_cuboid_particles_top_n.test) ++ # add_rostest(test/test_extract_cuboid_particles_top_n.test) + add_rostest(test/test_extract_top_polygon_likelihood.test) + add_rostest(test/test_feature_registration.test) + add_rostest(test/test_find_object_on_plane.test) +diff --git a/include/jsk_pcl_ros/extract_cuboid_particles_top_n.h b/include/jsk_pcl_ros/extract_cuboid_particles_top_n.h +index 893a3ab77..9e614ac84 100644 +--- a/include/jsk_pcl_ros/extract_cuboid_particles_top_n.h ++++ b/include/jsk_pcl_ros/extract_cuboid_particles_top_n.h +@@ -39,6 +39,7 @@ + + #include + #include "jsk_pcl_ros/plane_supported_cuboid_estimator.h" ++#include "jsk_pcl_ros/pcl/particle_cuboid.h" + #include + #include + #include +diff --git a/include/jsk_pcl_ros/particle_filter_tracking.h b/include/jsk_pcl_ros/particle_filter_tracking.h +index a1cc28a44..d108f5993 100644 +--- a/include/jsk_pcl_ros/particle_filter_tracking.h ++++ b/include/jsk_pcl_ros/particle_filter_tracking.h +@@ -186,7 +186,7 @@ namespace pcl + // } + + if (!change_detector_) +- change_detector_ = boost::shared_ptr >(new pcl::octree::OctreePointCloudChangeDetector (change_detector_resolution_)); ++ change_detector_ = std::shared_ptr >(new pcl::octree::OctreePointCloudChangeDetector (change_detector_resolution_)); + + if (!particles_ || particles_->points.empty ()) + initParticles (true); +diff --git a/src/edgebased_cube_finder_nodelet.cpp b/src/edgebased_cube_finder_nodelet.cpp +index 4559eb28d..87389df42 100644 +--- a/src/edgebased_cube_finder_nodelet.cpp ++++ b/src/edgebased_cube_finder_nodelet.cpp +@@ -740,7 +740,9 @@ namespace jsk_pcl_ros + *points_on_edges = *points_on_edges + *points_on_edge; + cubes.push_back(cube); + } +- pub_debug_filtered_cloud_.publish(points_on_edges); ++ sensor_msgs::PointCloud2 out_cloud; ++ pcl::toROSMsg(*points_on_edges, out_cloud); ++ pub_debug_filtered_cloud_.publish(out_cloud); + } + } + +diff --git a/src/euclidean_cluster_extraction_nodelet.cpp b/src/euclidean_cluster_extraction_nodelet.cpp +index a531e9d4f..3064fb9f6 100644 +--- a/src/euclidean_cluster_extraction_nodelet.cpp ++++ b/src/euclidean_cluster_extraction_nodelet.cpp +@@ -140,10 +140,10 @@ namespace jsk_pcl_ros + jsk_topic_tools::ScopedTimer timer = kdtree_acc_.scopedTimer(); + #if ( PCL_MAJOR_VERSION >= 1 && PCL_MINOR_VERSION >= 5 ) + pcl::search::KdTree::Ptr tree (new pcl::search::KdTree); +- tree = boost::make_shared< pcl::search::KdTree > (); ++ tree = std::make_shared< pcl::search::KdTree > (); + #else + pcl::KdTree::Ptr tree (new pcl::KdTreeFLANN); +- tree = boost::make_shared > (); ++ tree = std::make_shared > (); + #endif + tree->setInputCloud(filtered_cloud); + impl.setClusterTolerance(tolerance); +@@ -330,10 +330,10 @@ namespace jsk_pcl_ros + + #if ( PCL_MAJOR_VERSION >= 1 && PCL_MINOR_VERSION >= 5 ) + pcl::search::KdTree::Ptr tree (new pcl::search::KdTree); +- tree = boost::make_shared< pcl::search::KdTree > (); ++ tree = std::make_shared< pcl::search::KdTree > (); + #else + pcl::KdTree::Ptr tree (new pcl::KdTreeFLANN); +- tree = boost::make_shared > (); ++ tree = std::make_shared > (); + #endif + + vector cluster_indices; +@@ -362,7 +362,7 @@ namespace jsk_pcl_ros + ex.setInputCloud ( boost::make_shared< sensor_msgs::PointCloud2 > (req.input) ); + #endif + for ( size_t i = 0; i < cluster_indices.size(); i++ ) { +- ex.setIndices ( boost::make_shared< pcl::PointIndices > (cluster_indices[i]) ); ++ ex.setIndices ( std::make_shared< pcl::PointIndices > (cluster_indices[i]) ); + ex.setNegative ( false ); + #if ( PCL_MAJOR_VERSION >= 1 && PCL_MINOR_VERSION >= 7 ) + pcl::PCLPointCloud2 output_cloud; +diff --git a/src/icp_registration_nodelet.cpp b/src/icp_registration_nodelet.cpp +index a7357e4c7..f0b5a80dc 100644 +--- a/src/icp_registration_nodelet.cpp ++++ b/src/icp_registration_nodelet.cpp +@@ -612,9 +612,9 @@ namespace jsk_pcl_ros + icp.setInputTarget(cloud); + + if (transform_3dof_) { +- boost::shared_ptr > warp_func ++ std::shared_ptr > warp_func + (new pcl::registration::WarpPointRigid3D); +- boost::shared_ptr > te ++ std::shared_ptr > te + (new pcl::registration::TransformationEstimationLM); + te->setWarpFunction(warp_func); + icp.setTransformationEstimation(te); +diff --git a/src/moving_least_square_smoothing_nodelet.cpp b/src/moving_least_square_smoothing_nodelet.cpp +index 2cd3a5240..abc70c264 100644 +--- a/src/moving_least_square_smoothing_nodelet.cpp ++++ b/src/moving_least_square_smoothing_nodelet.cpp +@@ -33,6 +33,7 @@ + *********************************************************************/ + + #define BOOST_PARAMETER_MAX_ARITY 7 ++#include + #include "jsk_pcl_ros/moving_least_square_smoothing.h" + + #include +diff --git a/src/organized_multi_plane_segmentation_nodelet.cpp b/src/organized_multi_plane_segmentation_nodelet.cpp +index 5805a9963..66f808cd9 100644 +--- a/src/organized_multi_plane_segmentation_nodelet.cpp ++++ b/src/organized_multi_plane_segmentation_nodelet.cpp +@@ -245,9 +245,9 @@ namespace jsk_pcl_ros + // compute the distance between two boundaries. + // if they are near enough, we can regard these two map should connect + pcl::PointIndices::Ptr a_indices +- = boost::make_shared(boundary_indices[i]); ++ = std::make_shared(boundary_indices[i]); + pcl::PointIndices::Ptr b_indices +- = boost::make_shared(boundary_indices[j]); ++ = std::make_shared(boundary_indices[j]); + pcl::PointCloud a_cloud, b_cloud; + extract.setIndices(a_indices); + extract.filter(a_cloud); +@@ -363,9 +363,9 @@ namespace jsk_pcl_ros + pcl_new_coefficients.values = new_coefficients; + // estimate concave hull + pcl::PointIndices::Ptr indices_ptr +- = boost::make_shared(one_boundaries); ++ = std::make_shared(one_boundaries); + pcl::ModelCoefficients::Ptr coefficients_ptr +- = boost::make_shared(pcl_new_coefficients); ++ = std::make_shared(pcl_new_coefficients); + jsk_recognition_utils::ConvexPolygon::Ptr convex + = jsk_recognition_utils::convexFromCoefficientsAndInliers( + input, indices_ptr, coefficients_ptr); +@@ -476,7 +476,7 @@ namespace jsk_pcl_ros + for (size_t i = 0; i < boundary_indices.size(); i++) { + pcl::PointCloud boundary_cloud; + pcl::PointIndices boundary_one_indices = boundary_indices[i]; +- pcl::PointIndices::Ptr indices_ptr = boost::make_shared(boundary_indices[i]); ++ pcl::PointIndices::Ptr indices_ptr = std::make_shared(boundary_indices[i]); + extract.setIndices(indices_ptr); + extract.filter(boundary_cloud); + boundaries.push_back(boundary_cloud); +@@ -509,7 +509,7 @@ namespace jsk_pcl_ros + jsk_recognition_utils::Vertices centroids; + for (size_t i = 0; i < inliers.size(); i++) { + pcl::PointIndices::Ptr target_inliers +- = boost::make_shared(inliers[i]); ++ = std::make_shared(inliers[i]); + pcl::PointCloud::Ptr target_cloud (new pcl::PointCloud); + Eigen::Vector4f centroid; + pcl::ExtractIndices ex; +@@ -639,7 +639,7 @@ namespace jsk_pcl_ros + = ransac_refinement_time_acc_.scopedTimer(); + for (size_t i = 0; i < input_indices.size(); i++) { + pcl::PointIndices::Ptr input_indices_ptr +- = boost::make_shared(input_indices[i]); ++ = std::make_shared(input_indices[i]); + Eigen::Vector3f normal(input_coefficients[i].values[0], + input_coefficients[i].values[1], + input_coefficients[i].values[2]); +diff --git a/src/particle_filter_tracking_nodelet.cpp b/src/particle_filter_tracking_nodelet.cpp +index 4904dae43..09ea9297e 100644 +--- a/src/particle_filter_tracking_nodelet.cpp ++++ b/src/particle_filter_tracking_nodelet.cpp +@@ -145,18 +145,18 @@ namespace jsk_pcl_ros + } + + +- boost::shared_ptr > ++ std::shared_ptr > + distance_coherence(new DistanceCoherence); + coherence->addPointCoherence(distance_coherence); + + //add HSV coherence + if (use_hsv) { +- boost::shared_ptr > hsv_color_coherence +- = boost::shared_ptr >(new HSVColorCoherence()); ++ std::shared_ptr > hsv_color_coherence ++ = std::shared_ptr >(new HSVColorCoherence()); + coherence->addPointCoherence(hsv_color_coherence); + } + +- boost::shared_ptr > search ++ std::shared_ptr > search + (new pcl::search::Octree(octree_resolution)); + //boost::shared_ptr > search(new pcl::search::KdTree()); + coherence->setSearchMethod(search); +diff --git a/src/pointcloud_screenpoint_nodelet.cpp b/src/pointcloud_screenpoint_nodelet.cpp +index d6f2a8f7a..ed8baa913 100644 +--- a/src/pointcloud_screenpoint_nodelet.cpp ++++ b/src/pointcloud_screenpoint_nodelet.cpp +@@ -49,7 +49,7 @@ void PointcloudScreenpoint::onInit() + ConnectionBasedNodelet::onInit(); + + +- normals_tree_ = boost::make_shared< pcl::search::KdTree< pcl::PointXYZ > > (); ++ normals_tree_ = std::make_shared< pcl::search::KdTree< pcl::PointXYZ > > (); + n3d_.setSearchMethod (normals_tree_); + + dyn_srv_ = boost::make_shared< dynamic_reconfigure::Server< Config > >(*pnh_); +@@ -240,7 +240,7 @@ bool PointcloudScreenpoint::screenpoint_cb ( + + // search normal + n3d_.setSearchSurface( +- boost::make_shared > (latest_cloud_)); ++ std::make_shared > (latest_cloud_)); + + pcl::PointCloud cloud_; + pcl::PointXYZ pt; +@@ -250,7 +250,7 @@ bool PointcloudScreenpoint::screenpoint_cb ( + cloud_.points.resize(0); + cloud_.points.push_back(pt); + +- n3d_.setInputCloud (boost::make_shared > (cloud_)); ++ n3d_.setInputCloud (std::make_shared > (cloud_)); + pcl::PointCloud cloud_normals; + n3d_.compute (cloud_normals); + +diff --git a/src/region_growing_multiple_plane_segmentation_nodelet.cpp b/src/region_growing_multiple_plane_segmentation_nodelet.cpp +index 8b629a376..dbdc3029c 100644 +--- a/src/region_growing_multiple_plane_segmentation_nodelet.cpp ++++ b/src/region_growing_multiple_plane_segmentation_nodelet.cpp +@@ -193,7 +193,7 @@ namespace jsk_pcl_ros + for (size_t i = 0; i < clusters->size(); i++) { + pcl::PointIndices::Ptr plane_inliers(new pcl::PointIndices); + pcl::ModelCoefficients::Ptr plane_coefficients(new pcl::ModelCoefficients); +- pcl::PointIndices::Ptr cluster = boost::make_shared((*clusters)[i]); ++ pcl::PointIndices::Ptr cluster = std::make_shared((*clusters)[i]); + ransacEstimation(cloud, cluster, + *plane_inliers, *plane_coefficients); + if (plane_inliers->indices.size() > 0) { +diff --git a/src/region_growing_segmentation_nodelet.cpp b/src/region_growing_segmentation_nodelet.cpp +index 5a3ae9ed0..1565a3464 100644 +--- a/src/region_growing_segmentation_nodelet.cpp ++++ b/src/region_growing_segmentation_nodelet.cpp +@@ -89,7 +89,7 @@ namespace jsk_pcl_ros + void RegionGrowingSegmentation::segment(const sensor_msgs::PointCloud2::ConstPtr& msg) + { + boost::mutex::scoped_lock lock(mutex_); +- pcl::search::Search::Ptr tree = boost::shared_ptr > (new pcl::search::KdTree); ++ pcl::search::Search::Ptr tree = std::shared_ptr > (new pcl::search::KdTree); + pcl::PointCloud cloud; + pcl::fromROSMsg(*msg, cloud); + +diff --git a/src/resize_points_publisher_nodelet.cpp b/src/resize_points_publisher_nodelet.cpp +index aee6228a5..f8ed0b8ac 100644 +--- a/src/resize_points_publisher_nodelet.cpp ++++ b/src/resize_points_publisher_nodelet.cpp +@@ -180,7 +180,7 @@ namespace jsk_pcl_ros + } + pcl::ExtractIndices extract; + extract.setInputCloud (pcl_input_cloud.makeShared()); +- extract.setIndices (boost::make_shared > (ex_indices)); ++ extract.setIndices (std::make_shared > (ex_indices)); + extract.setNegative (false); + extract.filter (output); + diff --git a/distros/noetic/patch/ros-noetic-jsk-recognition-utils.patch b/distros/noetic/patch/ros-noetic-jsk-recognition-utils.patch new file mode 100644 index 000000000..aa541a04c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-jsk-recognition-utils.patch @@ -0,0 +1,758 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 55c405fd0..a53d0f349 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -39,7 +39,8 @@ configure_file( + # ------------------------------------------------------------------------------------ + + # download and install font data +-add_custom_target(${PROJECT_NAME}_install_font_data ALL COMMAND python$ENV{ROS_PYTHON_VERSION} ${PROJECT_SOURCE_DIR}/scripts/install_font_data.py) ++find_package (Python COMPONENTS Interpreter Development NumPy) ++add_custom_target(${PROJECT_NAME}_install_font_data ALL COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/install_font_data.py) + + catkin_python_setup() + +@@ -62,6 +63,7 @@ add_subdirectory(python/${PROJECT_NAME}) + + find_package(OpenCV REQUIRED core imgproc) + find_package(PCL REQUIRED) ++find_package(GLEW REQUIRED) + find_package(PkgConfig) + pkg_check_modules(yaml_cpp yaml-cpp REQUIRED) + IF(${yaml_cpp_VERSION} VERSION_LESS "0.5.0") +@@ -72,11 +74,10 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -z defs") + endif() + include_directories( +- include ${catkin_INCLUDE_DIRS} ++ include ${catkin_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS} + ) +-link_libraries(${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PCL_LIBRARIES} yaml-cpp) + +-add_library(jsk_recognition_utils SHARED ++add_library(jsk_recognition_utils + src/grid_index.cpp + src/grid_map.cpp + src/grid_line.cpp +@@ -102,6 +103,8 @@ add_library(jsk_recognition_utils SHARED + src/time_util.cpp + ) + ++target_link_libraries(jsk_recognition_utils ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PCL_LIBRARIES} ${yaml_cpp_LIBRARIES} ${GLEW_LIBRARIES}) ++ + if (CATKIN_ENABLE_TESTING) + find_package(rostest REQUIRED) + if("$ENV{ROS_DISTRO}" STRGREATER "indigo") # kinetic and later uses qt5 +diff --git a/cmake/FindCython.cmake b/cmake/FindCython.cmake +index f44f1f707..d7fb4205f 100644 +--- a/cmake/FindCython.cmake ++++ b/cmake/FindCython.cmake +@@ -24,9 +24,9 @@ + + # Use the Cython executable that lives next to the Python executable + # if it is a local installation. +-find_package( PythonInterp ) +-if( PYTHONINTERP_FOUND ) +- get_filename_component( _python_path ${PYTHON_EXECUTABLE} PATH ) ++find_package (Python COMPONENTS Interpreter Development NumPy) ++if( Python_Interpreter_FOUND ) ++ get_filename_component( _python_path ${Python_EXECUTABLE} PATH ) + find_program( CYTHON_EXECUTABLE + NAMES cython cython.bat cython3 + HINTS ${_python_path} +diff --git a/cmake/UseCython.cmake b/cmake/UseCython.cmake +index f432c890c..0a11631e5 100644 +--- a/cmake/UseCython.cmake ++++ b/cmake/UseCython.cmake +@@ -1,51 +1,83 @@ +-# Define a function to create Cython modules. ++#.rst: + # +-# For more information on the Cython project, see http://cython.org/. +-# "Cython is a language that makes writing C extensions for the Python language +-# as easy as Python itself." ++# The following functions are defined: + # +-# This file defines a CMake function to build a Cython Python module. +-# To use it, first include this file. ++# .. cmake:command:: add_cython_target + # +-# include( UseCython ) ++# Create a custom rule to generate the source code for a Python extension module ++# using cython. + # +-# Then call cython_add_module to create a module. ++# add_cython_target( [] ++# [EMBED_MAIN] ++# [C | CXX] ++# [PY2 | PY3] ++# [OUTPUT_VAR ]) + # +-# cython_add_module( ... ) ++# ```` is the name of the new target, and ```` ++# is the path to a cython source file. Note that, despite the name, no new ++# targets are created by this function. Instead, see ``OUTPUT_VAR`` for ++# retrieving the path to the generated source for subsequent targets. + # +-# To create a standalone executable, the function ++# If only ```` is provided, and it ends in the ".pyx" extension, then it ++# is assumed to be the ````. The name of the input without the ++# extension is used as the target name. If only ```` is provided, and it ++# does not end in the ".pyx" extension, then the ```` is assumed to ++# be ``.pyx``. + # +-# cython_add_standalone_executable( [MAIN_MODULE src1] ... ) ++# The Cython include search path is amended with any entries found in the ++# ``INCLUDE_DIRECTORIES`` property of the directory containing the ++# ```` file. Use ``include_directories`` to add to the Cython ++# include search path. + # +-# To avoid dependence on Python, set the PYTHON_LIBRARY cache variable to point +-# to a static library. If a MAIN_MODULE source is specified, +-# the "if __name__ == '__main__':" from that module is used as the C main() method +-# for the executable. If MAIN_MODULE, the source with the same basename as +-# is assumed to be the MAIN_MODULE. ++# Options: + # +-# Where is the name of the resulting Python module and +-# ... are source files to be compiled into the module, e.g. *.pyx, +-# *.py, *.c, *.cxx, etc. A CMake target is created with name . This can +-# be used for target_link_libraries(), etc. ++# ``EMBED_MAIN`` ++# Embed a main() function in the generated output (for stand-alone ++# applications that initialize their own Python runtime). + # +-# The sample paths set with the CMake include_directories() command will be used +-# for include directories to search for *.pxd when running the Cython complire. ++# ``C | CXX`` ++# Force the generation of either a C or C++ file. By default, a C file is ++# generated, unless the C language is not enabled for the project; in this ++# case, a C++ file is generated by default. + # +-# Cache variables that effect the behavior include: ++# ``PY2 | PY3`` ++# Force compilation using either Python-2 or Python-3 syntax and code ++# semantics. By default, Python-2 syntax and semantics are used if the major ++# version of Python found is 2. Otherwise, Python-3 syntax and semantics are ++# used. + # +-# CYTHON_ANNOTATE +-# CYTHON_NO_DOCSTRINGS +-# CYTHON_FLAGS ++# ``OUTPUT_VAR `` ++# Set the variable ```` in the parent scope to the path to the ++# generated source file. By default, ```` is used as the output ++# variable name. + # +-# Source file properties that effect the build process are ++# Defined variables: + # +-# CYTHON_IS_CXX ++# ```` ++# The path of the generated source file. + # +-# If this is set of a *.pyx file with CMake set_source_files_properties() +-# command, the file will be compiled as a C++ file. ++# Cache variables that affect the behavior include: ++# ++# ``CYTHON_ANNOTATE`` ++# Whether to create an annotated .html file when compiling. ++# ++# ``CYTHON_FLAGS`` ++# Additional flags to pass to the Cython compiler. ++# ++# Example usage ++# ^^^^^^^^^^^^^ ++# ++# .. code-block:: cmake ++# ++# find_package(Cython) ++# ++# # Note: In this case, either one of these arguments may be omitted; their ++# # value would have been inferred from that of the other. ++# add_cython_target(cy_code cy_code.pyx) ++# ++# add_library(cy_code MODULE ${cy_code}) ++# target_link_libraries(cy_code ...) + # +-# See also FindCython.cmake +- + #============================================================================= + # Copyright 2011 Kitware, Inc. + # +@@ -63,225 +95,290 @@ + #============================================================================= + + # Configuration options. +-set( CYTHON_ANNOTATE OFF +- CACHE BOOL "Create an annotated .html file when compiling *.pyx." ) +-set( CYTHON_NO_DOCSTRINGS OFF +- CACHE BOOL "Strip docstrings from the compiled module." ) +-set( CYTHON_FLAGS "" CACHE STRING +- "Extra flags to the cython compiler." ) +-mark_as_advanced( CYTHON_ANNOTATE CYTHON_NO_DOCSTRINGS CYTHON_FLAGS ) +- +-find_package( Cython REQUIRED ) +-find_package( PythonLibs REQUIRED ) +- +-set( CYTHON_CXX_EXTENSION "cxx" ) +-set( CYTHON_C_EXTENSION "c" ) +- +-# Create a *.c or *.cxx file from a *.pyx file. +-# Input the generated file basename. The generate file will put into the variable +-# placed in the "generated_file" argument. Finally all the *.py and *.pyx files. +-function( compile_pyx _name generated_file ) +- # Default to assuming all files are C. +- set( cxx_arg "" ) +- set( extension ${CYTHON_C_EXTENSION} ) +- set( pyx_lang "C" ) +- set( comment "Compiling Cython C source for ${_name}..." ) +- +- set( cython_include_directories "" ) +- set( pxd_dependencies "" ) +- set( c_header_dependencies "" ) +- set( pyx_locations "" ) +- +- foreach( pyx_file ${ARGN} ) +- get_filename_component( pyx_file_basename "${pyx_file}" NAME_WE ) +- +- # Determine if it is a C or C++ file. +- get_source_file_property( property_is_cxx ${pyx_file} CYTHON_IS_CXX ) +- if( ${property_is_cxx} ) +- set( cxx_arg "--cplus" ) +- set( extension ${CYTHON_CXX_EXTENSION} ) +- set( pyx_lang "CXX" ) +- set( comment "Compiling Cython CXX source for ${_name}..." ) +- endif() ++set(CYTHON_ANNOTATE OFF ++ CACHE BOOL "Create an annotated .html file when compiling *.pyx.") ++ ++set(CYTHON_FLAGS "" CACHE STRING ++ "Extra flags to the cython compiler.") ++mark_as_advanced(CYTHON_ANNOTATE CYTHON_FLAGS) ++ ++set(CYTHON_CXX_EXTENSION "cxx") ++set(CYTHON_C_EXTENSION "c") ++cmake_policy(SET CMP0057 NEW) ++ ++get_property(languages GLOBAL PROPERTY ENABLED_LANGUAGES) ++ ++function(add_cython_target _name) ++ set(options EMBED_MAIN C CXX PY2 PY3) ++ set(options1 OUTPUT_VAR) ++ cmake_parse_arguments(_args "${options}" "${options1}" "" ${ARGN}) ++ ++ list(GET _args_UNPARSED_ARGUMENTS 0 _arg0) ++ ++ # if provided, use _arg0 as the input file path ++ if(_arg0) ++ set(_source_file ${_arg0}) ++ ++ # otherwise, must determine source file from name, or vice versa ++ else() ++ get_filename_component(_name_ext "${_name}" EXT) ++ ++ # if extension provided, _name is the source file ++ if(_name_ext) ++ set(_source_file ${_name}) ++ get_filename_component(_name "${_source_file}" NAME_WE) + +- # Get the include directories. +- get_source_file_property( pyx_location ${pyx_file} LOCATION ) +- get_filename_component( pyx_path ${pyx_location} PATH ) +- get_directory_property( cmake_include_directories DIRECTORY ${pyx_path} INCLUDE_DIRECTORIES ) +- list( APPEND cython_include_directories ${cmake_include_directories} ) +- list( APPEND pyx_locations "${pyx_location}" ) +- +- # Determine dependencies. +- # Add the pxd file will the same name as the given pyx file. +- unset( corresponding_pxd_file CACHE ) +- find_file( corresponding_pxd_file ${pyx_file_basename}.pxd +- PATHS "${pyx_path}" ${cmake_include_directories} +- NO_DEFAULT_PATH ) +- if( corresponding_pxd_file ) +- list( APPEND pxd_dependencies "${corresponding_pxd_file}" ) ++ # otherwise, assume the source file is ${_name}.pyx ++ else() ++ set(_source_file ${_name}.pyx) + endif() ++ endif() + +- # pxd files to check for additional dependencies. +- set( pxds_to_check "${pyx_file}" "${pxd_dependencies}" ) +- set( pxds_checked "" ) +- set( number_pxds_to_check 1 ) +- while( ${number_pxds_to_check} GREATER 0 ) +- foreach( pxd ${pxds_to_check} ) +- list( APPEND pxds_checked "${pxd}" ) +- list( REMOVE_ITEM pxds_to_check "${pxd}" ) +- +- # check for C header dependencies +- file( STRINGS "${pxd}" extern_from_statements +- REGEX "cdef[ ]+extern[ ]+from.*$" ) +- foreach( statement ${extern_from_statements} ) +- # Had trouble getting the quote in the regex +- string( REGEX REPLACE "cdef[ ]+extern[ ]+from[ ]+[\"]([^\"]+)[\"].*" "\\1" header "${statement}" ) +- unset( header_location CACHE ) +- find_file( header_location ${header} PATHS ${cmake_include_directories} ) +- if( header_location ) +- list( FIND c_header_dependencies "${header_location}" header_idx ) +- if( ${header_idx} LESS 0 ) +- list( APPEND c_header_dependencies "${header_location}" ) +- endif() +- endif() +- endforeach() +- +- # check for pxd dependencies +- +- # Look for cimport statements. +- set( module_dependencies "" ) +- file( STRINGS "${pxd}" cimport_statements REGEX cimport ) +- foreach( statement ${cimport_statements} ) +- if( ${statement} MATCHES from ) +- string( REGEX REPLACE "from[ ]+([^ ]+).*" "\\1" module "${statement}" ) +- else() +- string( REGEX REPLACE "cimport[ ]+([^ ]+).*" "\\1" module "${statement}" ) +- endif() +- list( APPEND module_dependencies ${module} ) +- endforeach() +- list( REMOVE_DUPLICATES module_dependencies ) +- # Add the module to the files to check, if appropriate. +- foreach( module ${module_dependencies} ) +- unset( pxd_location CACHE ) +- find_file( pxd_location ${module}.pxd +- PATHS "${pyx_path}" ${cmake_include_directories} NO_DEFAULT_PATH ) +- if( pxd_location ) +- list( FIND pxds_checked ${pxd_location} pxd_idx ) +- if( ${pxd_idx} LESS 0 ) +- list( FIND pxds_to_check ${pxd_location} pxd_idx ) +- if( ${pxd_idx} LESS 0 ) +- list( APPEND pxds_to_check ${pxd_location} ) +- list( APPEND pxd_dependencies ${pxd_location} ) +- endif() # if it is not already going to be checked +- endif() # if it has not already been checked +- endif() # if pxd file can be found +- endforeach() # for each module dependency discovered +- endforeach() # for each pxd file to check +- list( LENGTH pxds_to_check number_pxds_to_check ) +- endwhile() +- endforeach() # pyx_file ++ set(_embed_main FALSE) + +- # Set additional flags. +- if( CYTHON_ANNOTATE ) +- set( annotate_arg "--annotate" ) ++ if("C" IN_LIST languages) ++ set(_output_syntax "C") ++ elseif("CXX" IN_LIST languages) ++ set(_output_syntax "CXX") ++ else() ++ message(FATAL_ERROR "Either C or CXX must be enabled to use Cython") + endif() + +- if( CYTHON_NO_DOCSTRINGS ) +- set( no_docstrings_arg "--no-docstrings" ) ++ if(_args_EMBED_MAIN) ++ set(_embed_main TRUE) + endif() + +- if( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR +- "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo" ) +- set( cython_debug_arg "--gdb" ) ++ if(_args_C) ++ set(_output_syntax "C") + endif() + +- # Include directory arguments. +- list( REMOVE_DUPLICATES cython_include_directories ) +- set( include_directory_arg "" ) +- foreach( _include_dir ${cython_include_directories} ) +- set( include_directory_arg ${include_directory_arg} "-I" "${_include_dir}" ) +- endforeach() ++ if(_args_CXX) ++ set(_output_syntax "CXX") ++ endif() + +- # Determining generated file name. +- set( _generated_file "${CMAKE_CURRENT_BINARY_DIR}/${_name}.${extension}" ) +- set_source_files_properties( ${_generated_file} PROPERTIES GENERATED TRUE ) +- set( ${generated_file} ${_generated_file} PARENT_SCOPE ) ++ # Doesn't select an input syntax - Cython ++ # defaults to 2 for Cython 2 and 3 for Cython 3 ++ set(_input_syntax "default") + +- list( REMOVE_DUPLICATES pxd_dependencies ) +- list( REMOVE_DUPLICATES c_header_dependencies ) ++ if(_args_PY2) ++ set(_input_syntax "PY2") ++ endif() + +- # Add the command to run the compiler. +- add_custom_command( OUTPUT ${_generated_file} +- COMMAND ${CYTHON_EXECUTABLE} +- ARGS ${cxx_arg} ${include_directory_arg} +- ${annotate_arg} ${no_docstrings_arg} ${cython_debug_arg} ${CYTHON_FLAGS} +- --output-file ${_generated_file} ${pyx_locations} +- DEPENDS ${pyx_locations} ${pxd_dependencies} +- IMPLICIT_DEPENDS ${pyx_lang} ${c_header_dependencies} +- COMMENT ${comment} +- ) ++ if(_args_PY3) ++ set(_input_syntax "PY3") ++ endif() + +- # Remove their visibility to the user. +- set( corresponding_pxd_file "" CACHE INTERNAL "" ) +- set( header_location "" CACHE INTERNAL "" ) +- set( pxd_location "" CACHE INTERNAL "" ) +-endfunction() +- +-# cython_add_module( src1 src2 ... srcN ) +-# Build the Cython Python module. +-function( cython_add_module _name ) +- set( pyx_module_sources "" ) +- set( other_module_sources "" ) +- foreach( _file ${ARGN} ) +- if( ${_file} MATCHES ".*\\.py[x]?$" ) +- list( APPEND pyx_module_sources ${_file} ) +- else() +- list( APPEND other_module_sources ${_file} ) +- endif() +- endforeach() +- compile_pyx( ${_name} generated_file ${pyx_module_sources} ) +- include_directories( ${PYTHON_INCLUDE_DIRS} ) +- python_add_module( ${_name} ${generated_file} ${other_module_sources} ) +- if( APPLE ) +- set_target_properties( ${_name} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" ) +- else() +- target_link_libraries( ${_name} ${PYTHON_LIBRARIES} ) ++ set(embed_arg "") ++ if(_embed_main) ++ set(embed_arg "--embed") + endif() +-endfunction() +- +-include( CMakeParseArguments ) +-# cython_add_standalone_executable( _name [MAIN_MODULE src3.py] src1 src2 ... srcN ) +-# Creates a standalone executable the given sources. +-function( cython_add_standalone_executable _name ) +- set( pyx_module_sources "" ) +- set( other_module_sources "" ) +- set( main_module "" ) +- cmake_parse_arguments( cython_arguments "" "MAIN_MODULE" "" ${ARGN} ) +- include_directories( ${PYTHON_INCLUDE_DIRS} ) +- foreach( _file ${cython_arguments_UNPARSED_ARGUMENTS} ) +- if( ${_file} MATCHES ".*\\.py[x]?$" ) +- get_filename_component( _file_we ${_file} NAME_WE ) +- if( "${_file_we}" STREQUAL "${_name}" ) +- set( main_module "${_file}" ) +- elseif( NOT "${_file}" STREQUAL "${cython_arguments_MAIN_MODULE}" ) +- set( PYTHON_MODULE_${_file_we}_static_BUILD_SHARED OFF ) +- compile_pyx( "${_file_we}_static" generated_file "${_file}" ) +- list( APPEND pyx_module_sources "${generated_file}" ) +- endif() +- else() +- list( APPEND other_module_sources ${_file} ) +- endif() +- endforeach() + +- if( cython_arguments_MAIN_MODULE ) +- set( main_module ${cython_arguments_MAIN_MODULE} ) ++ set(cxx_arg "") ++ set(extension "c") ++ if(_output_syntax STREQUAL "CXX") ++ set(cxx_arg "--cplus") ++ set(extension "cxx") ++ endif() ++ ++ set(py_version_arg "") ++ if(_input_syntax STREQUAL "PY2") ++ set(py_version_arg "-2") ++ elseif(_input_syntax STREQUAL "PY3") ++ set(py_version_arg "-3") ++ endif() ++ ++ set(generated_file "${CMAKE_CURRENT_BINARY_DIR}/${_name}.${extension}") ++ set_source_files_properties(${generated_file} PROPERTIES GENERATED TRUE) ++ ++ set(_output_var ${_name}) ++ if(_args_OUTPUT_VAR) ++ set(_output_var ${_args_OUTPUT_VAR}) ++ endif() ++ set(${_output_var} ${generated_file} PARENT_SCOPE) ++ ++ file(RELATIVE_PATH generated_file_relative ++ ${CMAKE_BINARY_DIR} ${generated_file}) ++ ++ set(comment "Generating ${_output_syntax} source ${generated_file_relative}") ++ set(cython_include_directories "") ++ set(pxd_dependencies "") ++ set(c_header_dependencies "") ++ ++ # Get the include directories. ++ get_directory_property(cmake_include_directories ++ DIRECTORY ${CMAKE_CURRENT_LIST_DIR} ++ INCLUDE_DIRECTORIES) ++ list(APPEND cython_include_directories ${cmake_include_directories}) ++ ++ # Determine dependencies. ++ # Add the pxd file with the same basename as the given pyx file. ++ get_source_file_property(pyx_location ${_source_file} LOCATION) ++ get_filename_component(pyx_path ${pyx_location} PATH) ++ get_filename_component(pyx_file_basename ${_source_file} NAME_WE) ++ unset(corresponding_pxd_file CACHE) ++ find_file(corresponding_pxd_file ${pyx_file_basename}.pxd ++ PATHS "${pyx_path}" ${cmake_include_directories} ++ NO_DEFAULT_PATH) ++ if(corresponding_pxd_file) ++ list(APPEND pxd_dependencies "${corresponding_pxd_file}") ++ endif() ++ ++ # pxd files to check for additional dependencies ++ set(pxds_to_check "${_source_file}" "${pxd_dependencies}") ++ set(pxds_checked "") ++ set(number_pxds_to_check 1) ++ while(number_pxds_to_check GREATER 0) ++ foreach(pxd ${pxds_to_check}) ++ list(APPEND pxds_checked "${pxd}") ++ list(REMOVE_ITEM pxds_to_check "${pxd}") ++ ++ # look for C headers ++ file(STRINGS "${pxd}" extern_from_statements ++ REGEX "cdef[ ]+extern[ ]+from.*$") ++ foreach(statement ${extern_from_statements}) ++ # Had trouble getting the quote in the regex ++ string(REGEX REPLACE ++ "cdef[ ]+extern[ ]+from[ ]+[\"]([^\"]+)[\"].*" "\\1" ++ header "${statement}") ++ unset(header_location CACHE) ++ find_file(header_location ${header} PATHS ${cmake_include_directories}) ++ if(header_location) ++ list(FIND c_header_dependencies "${header_location}" header_idx) ++ if(${header_idx} LESS 0) ++ list(APPEND c_header_dependencies "${header_location}") ++ endif() ++ endif() ++ endforeach() ++ ++ # check for pxd dependencies ++ # Look for cimport statements. ++ set(module_dependencies "") ++ file(STRINGS "${pxd}" cimport_statements REGEX cimport) ++ foreach(statement ${cimport_statements}) ++ if(${statement} MATCHES from) ++ string(REGEX REPLACE ++ "from[ ]+([^ ]+).*" "\\1" ++ module "${statement}") ++ else() ++ string(REGEX REPLACE ++ "cimport[ ]+([^ ]+).*" "\\1" ++ module "${statement}") ++ endif() ++ list(APPEND module_dependencies ${module}) ++ endforeach() ++ ++ # check for pxi dependencies ++ # Look for include statements. ++ set(include_dependencies "") ++ file(STRINGS "${pxd}" include_statements REGEX include) ++ foreach(statement ${include_statements}) ++ string(REGEX REPLACE ++ "include[ ]+[\"]([^\"]+)[\"].*" "\\1" ++ module "${statement}") ++ list(APPEND include_dependencies ${module}) ++ endforeach() ++ ++ list(REMOVE_DUPLICATES module_dependencies) ++ list(REMOVE_DUPLICATES include_dependencies) ++ ++ # Add modules to the files to check, if appropriate. ++ foreach(module ${module_dependencies}) ++ unset(pxd_location CACHE) ++ find_file(pxd_location ${module}.pxd ++ PATHS "${pyx_path}" ${cmake_include_directories} ++ NO_DEFAULT_PATH) ++ if(pxd_location) ++ list(FIND pxds_checked ${pxd_location} pxd_idx) ++ if(${pxd_idx} LESS 0) ++ list(FIND pxds_to_check ${pxd_location} pxd_idx) ++ if(${pxd_idx} LESS 0) ++ list(APPEND pxds_to_check ${pxd_location}) ++ list(APPEND pxd_dependencies ${pxd_location}) ++ endif() # if it is not already going to be checked ++ endif() # if it has not already been checked ++ endif() # if pxd file can be found ++ endforeach() # for each module dependency discovered ++ ++ # Add includes to the files to check, if appropriate. ++ foreach(_include ${include_dependencies}) ++ unset(pxi_location CACHE) ++ find_file(pxi_location ${_include} ++ PATHS "${pyx_path}" ${cmake_include_directories} ++ NO_DEFAULT_PATH) ++ if(pxi_location) ++ list(FIND pxds_checked ${pxi_location} pxd_idx) ++ if(${pxd_idx} LESS 0) ++ list(FIND pxds_to_check ${pxi_location} pxd_idx) ++ if(${pxd_idx} LESS 0) ++ list(APPEND pxds_to_check ${pxi_location}) ++ list(APPEND pxd_dependencies ${pxi_location}) ++ endif() # if it is not already going to be checked ++ endif() # if it has not already been checked ++ endif() # if include file can be found ++ endforeach() # for each include dependency discovered ++ endforeach() # for each include file to check ++ ++ list(LENGTH pxds_to_check number_pxds_to_check) ++ endwhile() ++ ++ # Set additional flags. ++ set(annotate_arg "") ++ if(CYTHON_ANNOTATE) ++ set(annotate_arg "--annotate") + endif() +- if( NOT main_module ) +- message( FATAL_ERROR "main module not found." ) ++ ++ set(cython_debug_arg "") ++ set(line_directives_arg "") ++ if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR ++ CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") ++ set(cython_debug_arg "--gdb") ++ set(line_directives_arg "--line-directives") + endif() +- get_filename_component( main_module_we "${main_module}" NAME_WE ) +- set( CYTHON_FLAGS ${CYTHON_FLAGS} --embed ) +- compile_pyx( "${main_module_we}_static" generated_file ${main_module} ) +- add_executable( ${_name} ${generated_file} ${pyx_module_sources} ${other_module_sources} ) +- target_link_libraries( ${_name} ${PYTHON_LIBRARIES} ${pyx_module_libs} ) +-endfunction() ++ ++ # Include directory arguments. ++ list(REMOVE_DUPLICATES cython_include_directories) ++ set(include_directory_arg "") ++ foreach(_include_dir ${cython_include_directories}) ++ set(include_directory_arg ++ ${include_directory_arg} "--include-dir" "${_include_dir}") ++ endforeach() ++ ++ list(REMOVE_DUPLICATES pxd_dependencies) ++ list(REMOVE_DUPLICATES c_header_dependencies) ++ ++ string(REGEX REPLACE " " ";" CYTHON_FLAGS_LIST "${CYTHON_FLAGS}") ++ ++ # Add the command to run the compiler. ++ add_custom_command(OUTPUT ${generated_file} ++ COMMAND ${CYTHON_EXECUTABLE} ++ ARGS ${cxx_arg} ${include_directory_arg} ${py_version_arg} ++ ${embed_arg} ${annotate_arg} ${cython_debug_arg} ++ ${line_directives_arg} ${CYTHON_FLAGS_LIST} ${pyx_location} ++ --output-file ${generated_file} ++ DEPENDS ${_source_file} ++ ${pxd_dependencies} ++ IMPLICIT_DEPENDS ${_output_syntax} ++ ${c_header_dependencies} ++ COMMENT ${comment}) ++ ++ # NOTE(opadron): I thought about making a proper target, but after trying it ++ # out, I decided that it would be far too convenient to use the same name as ++ # the target for the extension module (e.g.: for single-file modules): ++ # ++ # ... ++ # add_cython_target(_module.pyx) ++ # add_library(_module ${_module}) ++ # ... ++ # ++ # The above example would not be possible since the "_module" target name ++ # would already be taken by the cython target. Since I can't think of a ++ # reason why someone would need the custom target instead of just using the ++ # generated file directly, I decided to leave this commented out. ++ # ++ # add_custom_target(${_name} DEPENDS ${generated_file}) ++ ++ # Remove their visibility to the user. ++ set(corresponding_pxd_file "" CACHE INTERNAL "") ++ set(header_location "" CACHE INTERNAL "") ++ set(pxd_location "" CACHE INTERNAL "") ++endfunction() +\ No newline at end of file +diff --git a/python/jsk_recognition_utils/CMakeLists.txt b/python/jsk_recognition_utils/CMakeLists.txt +index d3feba4f5..496ca09dc 100644 +--- a/python/jsk_recognition_utils/CMakeLists.txt ++++ b/python/jsk_recognition_utils/CMakeLists.txt +@@ -1,16 +1,10 @@ +-if(NOT DEFINED Numpy_INCLUDE_DIRS) +- # Get Numpy include directories +- execute_process( +- COMMAND python$ENV{ROS_PYTHON_VERSION} -c "import sys, numpy; sys.stdout.write(numpy.get_include())" +- OUTPUT_VARIABLE Numpy_INCLUDE_DIRS +- RESULT_VARIABLE retcode) +- if(NOT ${retcode} EQUAL 0) +- message(FATAL_ERROR "Failed to get Numpy include dirs by numpy.get_include(). Exit code: ${retcode}") +- endif() +-endif() ++find_package (Python COMPONENTS Interpreter Development NumPy) ++find_package(Cython) ++ + # Compile nms.pyx +-include_directories(${Numpy_INCLUDE_DIRS}) +-cython_add_module(nms nms.pyx) ++include_directories(${Python_NumPy_INCLUDE_DIRS} ${Python_INCLUDE_DIRS} ${Python_SITELIB}) ++add_cython_target(nms nms.pyx) ++add_library(nms MODULE ${nms}) + set_target_properties(nms PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}) + install(TARGETS nms + ARCHIVE DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION} +diff --git a/python/jsk_recognition_utils/CMakeLists.txt b/python/jsk_recognition_utils/CMakeLists.txt +index 496ca09dc..8a63ef6a1 100644 +--- a/python/jsk_recognition_utils/CMakeLists.txt ++++ b/python/jsk_recognition_utils/CMakeLists.txt +@@ -1,12 +1,12 @@ + # Get NumPy and Cython versions + execute_process( +- COMMAND python$ENV{ROS_PYTHON_VERSION} -c "import numpy; print(numpy.__version__)" ++ COMMAND ${PYTHON_EXECUTABLE} -c "import numpy; print(numpy.__version__)" + OUTPUT_VARIABLE NUMPY_VERSION + OUTPUT_STRIP_TRAILING_WHITESPACE + ) + + execute_process( +- COMMAND python$ENV{ROS_PYTHON_VERSION} -c "import Cython; print(Cython.__version__)" ++ COMMAND ${PYTHON_EXECUTABLE} -c "import Cython; print(Cython.__version__)" + OUTPUT_VARIABLE CYTHON_VERSION + OUTPUT_STRIP_TRAILING_WHITESPACE + ) +diff --git a/python/jsk_recognition_utils/nms.pyx b/python/jsk_recognition_utils/nms.pyx +index 70a03f94a..0760a2d8a 100644 +--- a/python/jsk_recognition_utils/nms.pyx ++++ b/python/jsk_recognition_utils/nms.pyx +@@ -30,11 +30,11 @@ def nms(np.ndarray[np.float32_t, ndim=2] dets, np.float thresh): + cdef np.ndarray[np.float32_t, ndim=1] scores = dets[:, 4] + + cdef np.ndarray[np.float32_t, ndim=1] areas = (x2 - x1 + 1) * (y2 - y1 + 1) +- cdef np.ndarray[np.int_t, ndim=1] order = scores.argsort()[::-1] ++ cdef np.ndarray[np.intp_t, ndim=1] order = scores.argsort()[::-1] + + cdef int ndets = dets.shape[0] +- cdef np.ndarray[np.int_t, ndim=1] suppressed = \ +- np.zeros((ndets), dtype=np.int) ++ cdef np.ndarray[np.intp_t, ndim=1] suppressed = \ ++ np.zeros((ndets), dtype=np.intp) + + # nominal indices + cdef int _i, _j +diff --git a/python/jsk_recognition_utils/CMakeLists.txt b/python/jsk_recognition_utils/CMakeLists.txt +index 8a63ef6a1..fbc89c858 100644 +--- a/python/jsk_recognition_utils/CMakeLists.txt ++++ b/python/jsk_recognition_utils/CMakeLists.txt +@@ -61,6 +61,11 @@ include_directories(${Python_NumPy_INCLUDE_DIRS} ${Python_INCLUDE_DIRS} ${Pytho + add_cython_target(nms nms.pyx) + add_library(nms MODULE ${nms}) ++if( APPLE ) ++ set_target_properties( nms PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" ) ++else() ++ target_link_libraries( nms ${PYTHON_LIBRARIES} ) ++endif() + set_target_properties(nms PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}) + install(TARGETS nms + ARCHIVE DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION} diff --git a/distros/noetic/patch/ros-noetic-jsk-rviz-plugins.patch b/distros/noetic/patch/ros-noetic-jsk-rviz-plugins.patch new file mode 100644 index 000000000..ba6ad2316 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-jsk-rviz-plugins.patch @@ -0,0 +1,102 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 310db0bd..a23f2288 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -80,12 +80,8 @@ include_directories(src ${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS}) + ## CATKIN_DEPENDS: catkin_packages dependent projects also need + ## DEPENDS: system dependencies of this project that dependent projects also need + +-if(USE_VISUALIZATION AND rviz_QT_VERSION VERSION_LESS "5") +- find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED) +- include(${QT_USE_FILE}) +-elseif(USE_VISUALIZATION) +- find_package(Qt5Widgets REQUIRED) +-endif() ++find_package(Qt5 COMPONENTS Widgets REQUIRED) ++find_package(OpenCV REQUIRED) + add_definitions(-DQT_NO_KEYWORDS -g) + + include_directories(${CMAKE_CURRENT_BINARY_DIR}) +@@ -194,7 +190,7 @@ add_library(jsk_rviz_plugins ${SOURCE_FILES} ${UIC_FILES}) + if(rviz_QT_VERSION VERSION_LESS "5") + target_link_libraries(jsk_rviz_plugins ${QT_LIBRARIES} ${catkin_LIBRARIES} ${rviz_DEFAULT_PLUGIN_LIBRARIES}) + else() +- target_link_libraries(jsk_rviz_plugins Qt5::Widgets ${catkin_LIBRARIES} ${rviz_DEFAULT_PLUGIN_LIBRARIES}) ++ target_link_libraries(jsk_rviz_plugins Qt5::Widgets ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${rviz_DEFAULT_PLUGIN_LIBRARIES}) + endif() + add_dependencies(jsk_rviz_plugins + jsk_footstep_msgs_generate_messages_cpp +diff --git a/src/camera_info_display.cpp b/src/camera_info_display.cpp +index eb9de008..09d269aa 100644 +--- a/src/camera_info_display.cpp ++++ b/src/camera_info_display.cpp +@@ -37,6 +37,7 @@ + #include + #include "camera_info_display.h" + #include ++#include + #include + #include + #include +diff --git a/src/facing_visualizer.cpp b/src/facing_visualizer.cpp +index 60f21549..9962aa0d 100644 +--- a/src/facing_visualizer.cpp ++++ b/src/facing_visualizer.cpp +@@ -33,6 +33,7 @@ + * POSSIBILITY OF SUCH DAMAGE. + *********************************************************************/ + ++#include + #include "facing_visualizer.h" + #include + #include +diff --git a/src/overlay_utils.cpp b/src/overlay_utils.cpp +index 73525c43..494e2bdf 100644 +--- a/src/overlay_utils.cpp ++++ b/src/overlay_utils.cpp +@@ -33,6 +33,7 @@ + * POSSIBILITY OF SUCH DAMAGE. + *********************************************************************/ + ++#include + #include "overlay_utils.h" + #include + +diff --git a/src/overlay_utils.h b/src/overlay_utils.h +index 26ebc921..f5d9ce12 100644 +--- a/src/overlay_utils.h ++++ b/src/overlay_utils.h +@@ -37,6 +37,7 @@ + #define JSK_RVIZ_PLUGIN_OVERLAY_UTIL_H_ + + ++#include + #include + #include + #include +diff --git a/src/polygon_array_display.cpp b/src/polygon_array_display.cpp +index b1b1ef35..61fc966c 100644 +--- a/src/polygon_array_display.cpp ++++ b/src/polygon_array_display.cpp +@@ -35,6 +35,8 @@ + + #define BOOST_PARAMETER_MAX_ARITY 7 + ++#include ++#include + #include "polygon_array_display.h" + #include "rviz/properties/parse_color.h" + #include +diff --git a/src/simple_occupancy_grid_array_display.cpp b/src/simple_occupancy_grid_array_display.cpp +index 95bd0f9e..6ca15761 100644 +--- a/src/simple_occupancy_grid_array_display.cpp ++++ b/src/simple_occupancy_grid_array_display.cpp +@@ -33,6 +33,8 @@ + * POSSIBILITY OF SUCH DAMAGE. + *********************************************************************/ + #define BOOST_PARAMETER_MAX_ARITY 7 ++ ++#include + #include "simple_occupancy_grid_array_display.h" + #include + #include diff --git a/distros/noetic/patch/ros-noetic-jskeus.patch b/distros/noetic/patch/ros-noetic-jskeus.patch new file mode 100644 index 000000000..c79def87a --- /dev/null +++ b/distros/noetic/patch/ros-noetic-jskeus.patch @@ -0,0 +1,122 @@ +diff --git a/irteus/Makefile b/irteus/Makefile +index d86193f..a02dbf3 100644 +--- a/irteus/Makefile ++++ b/irteus/Makefile +@@ -153,7 +153,18 @@ IRTIMGCOBJECTS=$(INSTALLOBJDIR)/euspng.$(OSFX) + IRTGLCOBJECTS=$(INSTALLOBJDIR)/irtglc.$(OSFX) + NROBJECTS=$(INSTALLOBJDIR)/nr.$(OSFX) + +-all: defun.h $(LIBNR) $(LIBIRTEUS) $(LIBIRTEUSG) $(LIBIRTEUSX) $(LIBIRTEUSIMG) $(LIBIRTEUSGL) make-link install-irtext.l ++EUSGL_BIN= ++ifneq ($(shell [ -x "$(BINDIR)/eusgl$(ESFX)" ] && echo yes),) ++EUSGL_BIN=$(BINDIR)/eusgl$(ESFX) ++IRTEUS_GL_LIBS=$(LIBIRTEUSG) $(LIBIRTEUSGL) ++else ifneq ($(shell [ -x "$(BINDIR)/eusg$(ESFX)" ] && echo yes),) ++EUSGL_BIN=$(BINDIR)/eusg$(ESFX) ++IRTEUS_GL_LIBS=$(LIBIRTEUSG) $(LIBIRTEUSGL) ++else ++IRTEUS_GL_LIBS= ++endif ++ ++all: defun.h $(LIBNR) $(LIBIRTEUS) $(IRTEUS_GL_LIBS) $(LIBIRTEUSX) $(LIBIRTEUSIMG) make-link install-irtext.l + + .PHONY: defun.h + defun.h: +@@ -187,7 +198,7 @@ $(IRTEUSOBJS) $(INSTALLOBJDIR)/compile_irt.log: $(IRTEUS_L) + + $(IRTEUSGOBJS): $(INSTALLOBJDIR)/compile_irtg.log + $(IRTEUSGOBJS) $(INSTALLOBJDIR)/compile_irtg.log: $(IRTEUSG_L) +- $(BINDIR)/eusgl$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtg.l > $(INSTALLOBJDIR)/compile_irtg.log ++ $(EUSGL_BIN) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtg.l > $(INSTALLOBJDIR)/compile_irtg.log + -rm -f $(IRTEUSG_C) $(IRTEUSG_H) + + $(IRTEUSXOBJS): $(INSTALLOBJDIR)/compile_irtx.log +@@ -202,7 +213,7 @@ $(IRTEUSIMGOBJS) $(INSTALLOBJDIR)/compile_irtimg.log: $(IRTEUSIMG_L) + + $(IRTEUSGLOBJS): $(INSTALLOBJDIR)/compile_irtgl.log + $(IRTEUSGLOBJS) $(INSTALLOBJDIR)/compile_irtgl.log: $(IRTEUSGL_L) +- $(BINDIR)/eusgl$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtgl.l > $(INSTALLOBJDIR)/compile_irtgl.log ++ $(EUSGL_BIN) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtgl.l > $(INSTALLOBJDIR)/compile_irtgl.log + -rm -f $(IRTEUSGL_C) $(IRTEUSGL_H) + + PQP/$(ARCHDIR)/libPQP-static.a: +diff --git a/irteus/Makefile.LinuxARM b/irteus/Makefile.LinuxARM +index 8b04f2f..fa376c5 100644 +--- a/irteus/Makefile.LinuxARM ++++ b/irteus/Makefile.LinuxARM +@@ -41,9 +41,9 @@ + ### ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + ### + +-CC=gcc +-CXX=g++ +-LD=g++ -shared ++CC=$(BUILD_PREFIX)/bin/$(BUILD)-gcc ++CXX=$(BUILD_PREFIX)/bin/$(BUILD)-g++ ++LD=$(CXX) -shared + OBJOPT=-o + OUTOPT=-o + OSFX=o +@@ -54,8 +54,8 @@ ESFX= + #SOFLAGS=-g -falign-functions=4 -Xlinker --export-all-symbols --unresolved-symbols=ignore-all + SOFLAGS=-g -falign-functions=4 -Xlinker --unresolved-symbols=ignore-all + IMPLIB=-L$(EUSDIR)/$(ARCH)/lib -leusgeo -L$(INSTALLLIBDIR) -lnr +-IMPLIBGL=-L$(EUSDIR)/$(ARCH)/lib -leusgl -L/usr/X11R6/lib -lGLU -lGL -lXext +-IMPLIBIMG=-ljpeg -lpng ++IMPLIBGL=-L$(EUSDIR)/$(ARCH)/lib -leusgl -L$(PREFIX)/lib -lGLU -lGL -lXext ++IMPLIBIMG=-L$(PREFIX)/lib -ljpeg -lpng + EXPLIB= + RAPID=-LRAPID/$(ARCHDIR) -lRAPID-static + RAPIDLIB=RAPID/$(ARCHDIR)/$(LPFX)RAPID-static.a +@@ -63,10 +63,10 @@ FFTW=-L/usr/local/lib -lfftw -lrfftw + + SVNVERSION=\"$(shell git rev-parse --short HEAD)\" + +-MACHINE=$(shell uname -m | sed 's/\(armv[0-9]\).*/\1/') ++MACHINE=$(shell $(CC) -dumpmachine | sed 's/-.*//') + THREAD= -DTHREADED -DPTHREAD + +-CFLAGS=-O2 -D$(MACHINE) -D$(ARCH) -DLinux -DARM -D_REENTRANT -DGCC -I$(EUSDIR)/include $(THREAD) -DSVNVERSION=$(SVNVERSION) -fPIC ++CFLAGS=-O2 -D$(MACHINE) -D$(ARCH) -DLinux -DARM -D_REENTRANT -DGCC -I$(PREFIX)/include -I$(EUSDIR)/include $(THREAD) -DSVNVERSION=$(SVNVERSION) -fPIC + CXXFLAGS=$(CFLAGS) + + CFLAGS+= -g -falign-functions=4 +diff --git a/irteus/Makefile.Linux64 b/irteus/Makefile.Linux64 +index e749f16..f95bfd7 100644 +--- a/irteus/Makefile.Linux64 ++++ b/irteus/Makefile.Linux64 +@@ -54,8 +54,8 @@ ESFX= + ESFX= + SOFLAGS=-g -falign-functions=8 -Xlinker --unresolved-symbols=ignore-all + IMPLIB=-L$(EUSDIR)/$(ARCHDIR)/lib -leusgeo -L$(INSTALLLIBDIR) -lnr +-IMPLIBGL=-L$(EUSDIR)/$(ARCHDIR)/lib -leusgl -L/usr/X11R6/lib -lGLU -lGL -lXext +-IMPLIBIMG=-ljpeg -lpng ++IMPLIBGL=-L$(EUSDIR)/$(ARCHDIR)/lib -leusgl -L$(PREFIX)/lib -lGLU -lGL -lXext ++IMPLIBIMG=-L$(PREFIX)/lib -ljpeg -lpng + EXPLIB= + RAPID=-LRAPID/$(ARCHDIR) -lRAPID-static + RAPIDLIB=RAPID/$(ARCHDIR)/$(LPFX)RAPID-static.a +@@ -64,7 +64,7 @@ SVNVERSION=\"$(shell git rev-parse --short HEAD)\" + ARCH=Linux + MACHINE=x86_64 + THREAD= -DTHREADED -DPTHREAD + +-CFLAGS=-O2 -D$(MACHINE) -D$(ARCH) -D_REENTRANT -DGCC -I$(EUSDIR)/include $(THREAD) -DSVNVERSION=$(SVNVERSION) ++CFLAGS=-O2 -D$(MACHINE) -D$(ARCH) -D_REENTRANT -DGCC -I$(PREFIX)/include -I$(PREFIX)/include/libpng16 -I$(EUSDIR)/include $(THREAD) -DSVNVERSION=$(SVNVERSION) + CXXFLAGS=$(CFLAGS) + + CFLAGS+= -g -falign-functions=8 -fPIC +diff --git a/irteus/PQP/Makefile.LinuxARM b/irteus/PQP/Makefile.LinuxARM +index 85efe19..74ecd4b 100644 +--- a/irteus/PQP/Makefile.LinuxARM ++++ b/irteus/PQP/Makefile.LinuxARM +@@ -1,7 +1,7 @@ +-CC = c++ -O2 -fPIC ++CC = $(BUILD_PREFIX)/bin/$(BUILD)-g++ -O2 -fPIC + OBJOPT = -o + OUTOPT = -o +-LD = c++ ++LD = $(BUILD_PREFIX)/bin/$(BUILD)-g++ + SOFLAGS = -shared + EXELD = c++ + EXESFX = diff --git a/distros/noetic/patch/ros-noetic-knowledge-representation.patch b/distros/noetic/patch/ros-noetic-knowledge-representation.patch new file mode 100644 index 000000000..3da5160da --- /dev/null +++ b/distros/noetic/patch/ros-noetic-knowledge-representation.patch @@ -0,0 +1,27 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b07b9bf..6f4c2c2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,19 +1,14 @@ +-cmake_minimum_required(VERSION 3.0.2) ++cmake_minimum_required(VERSION 3.1) + project(knowledge_representation) + +-set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD 17) + + find_package(catkin REQUIRED COMPONENTS + roslint + ) + find_package(Boost REQUIRED COMPONENTS python) + +-if("$ENV{ROS_DISTRO}" STREQUAL "kinetic" OR "$ENV{ROS_DISTRO}" STREQUAL "melodic") +- find_package(PythonLibs 2.7 REQUIRED) +-else() +- # Relaxed to support Debian Buster +- find_package(PythonLibs 3.7 REQUIRED) +-endif() ++find_package(PythonLibs REQUIRED) + + find_package(PostgreSQL) + diff --git a/distros/noetic/patch/ros-noetic-lanelet2-core.patch b/distros/noetic/patch/ros-noetic-lanelet2-core.patch new file mode 100644 index 000000000..517066ec4 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-lanelet2-core.patch @@ -0,0 +1,31 @@ +From ab7d2f4dee299563c6313336c070ed99635aba3f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20=C5=A0koudlil?= +Date: Fri, 16 May 2025 14:40:54 +0200 +Subject: [PATCH] Fix compilation with Boost 1.87 + +Boost 1.87 removed deprecated rescaling code +which was deprecated since Boost 1.79. +--- + include/lanelet2_core/geometry/Point.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/lanelet2_core/geometry/Point.h b/include/lanelet2_core/geometry/Point.h +index 080539ed..a37da11f 100644 +--- a/include/lanelet2_core/geometry/Point.h ++++ b/include/lanelet2_core/geometry/Point.h +@@ -22,6 +22,7 @@ BOOST_GEOMETRY_REGISTER_POINT_2D_CONST(lanelet::ConstPoint2d, double, cs::cartes + BOOST_GEOMETRY_REGISTER_POINT_3D(lanelet::Point3d, double, cs::cartesian, x(), y(), z()) + BOOST_GEOMETRY_REGISTER_POINT_3D_CONST(lanelet::ConstPoint3d, double, cs::cartesian, x(), y(), z()) + ++#if BOOST_VERSION < 108700 + namespace boost { + namespace geometry { + // Help boost with type deduction for proxies +@@ -37,6 +38,7 @@ struct robust_point_type + + } // namespace geometry + } // namespace boost ++#endif + + namespace lanelet { + namespace geometry { diff --git a/distros/noetic/patch/ros-noetic-laser-ortho-projector.patch b/distros/noetic/patch/ros-noetic-laser-ortho-projector.patch new file mode 100644 index 000000000..546315a46 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-laser-ortho-projector.patch @@ -0,0 +1,25 @@ +diff --git a/src/laser_ortho_projector.cpp b/src/laser_ortho_projector.cpp +index c5bdc45..ae99129 100644 +--- a/src/laser_ortho_projector.cpp ++++ b/src/laser_ortho_projector.cpp +@@ -191,7 +191,7 @@ void LaserOrthoProjector::scanCallback(const sensor_msgs::LaserScan::ConstPtr& s + // **** build and publish projected cloud + + PointCloudT::Ptr cloud = +- boost::shared_ptr(new PointCloudT()); ++ std::shared_ptr(new PointCloudT()); + + pcl_conversions::toPCL(scan_msg->header, cloud->header); + cloud->header.frame_id = ortho_frame_; +@@ -217,7 +217,10 @@ void LaserOrthoProjector::scanCallback(const sensor_msgs::LaserScan::ConstPtr& s + cloud->height = 1; + cloud->is_dense = true; // no nan's present + +- cloud_publisher_.publish (cloud); ++ sensor_msgs::PointCloud2 out_cloud; ++ pcl::toROSMsg(*cloud, out_cloud); ++ ++ cloud_publisher_.publish (out_cloud); + } + + bool LaserOrthoProjector::getBaseToLaserTf (const sensor_msgs::LaserScan::ConstPtr& scan_msg) diff --git a/distros/noetic/patch/ros-noetic-libcmt.patch b/distros/noetic/patch/ros-noetic-libcmt.patch new file mode 100644 index 000000000..141595a9b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-libcmt.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5c98d37d6..18f773196 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,7 @@ + cmake_minimum_required(VERSION 2.8.3) + project(libcmt) + include(ExternalProject) ++include(GNUInstallDirs) + + ## Find catkin macros and libraries + ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) +@@ -14,7 +15,13 @@ ExternalProject_Add( + URL https://github.com/delmottea/libCMT/archive/e4d7ea42edafe13b1070ef4d595b2d6062d79d1a.zip + PATCH_COMMAND patch -p1 < ${PROJECT_SOURCE_DIR}/fix_opencv3.patch + CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} +- INSTALL_COMMAND echo "install" ++ INSTALL_DIR "${CMAKE_INSTALL_PREFIX}" ++ BUILD_BYPRODUCTS /lib/libcmt.so /include/libcmt/CMT.h /lib/pkgconfig/libcmt.pc ++ # INSTALL_COMMAND echo "install" + ) + +-install(CODE "execute_process(COMMAND make install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/libcmt-prefix/src/libcmt-build)") ++# install(CODE "execute_process(COMMAND make install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/libcmt-prefix/src/libcmt-build)") ++ ++install(FILES ${CMAKE_INSTALL_PREFIX}/include/libcmt/CMT.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libcmt) ++install(FILES ${CMAKE_INSTALL_PREFIX}/lib/libcmt.so DESTINATION lib) ++install(FILES ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/libcmt.pc DESTINATION lib/pkgconfig) diff --git a/distros/noetic/patch/ros-noetic-libfranka.patch b/distros/noetic/patch/ros-noetic-libfranka.patch new file mode 100644 index 000000000..a9f345ef9 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-libfranka.patch @@ -0,0 +1,32 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c3b03ef..de89fcc 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -158,7 +158,7 @@ install(EXPORT FrankaTargets + # Ignore find_package(Franka) in subprojects. + set(FRANKA_IS_FOUND TRUE) + +-option(BUILD_TESTS "Build tests" ON) ++option(BUILD_TESTS "Build tests" OFF) + if(BUILD_TESTS) + enable_testing() + add_subdirectory(test) +diff --git a/src/network.cpp b/src/network.cpp +index 9d47072..dded9ed 100644 +--- a/src/network.cpp ++++ b/src/network.cpp +@@ -5,6 +5,14 @@ + #include + #include + ++#if !defined(SOL_TCP) && defined(IPPROTO_TCP) ++#define SOL_TCP IPPROTO_TCP ++#endif ++#if !defined(TCP_KEEPIDLE) && defined(TCP_KEEPALIVE) ++#define TCP_KEEPIDLE TCP_KEEPALIVE ++#endif ++ ++ + using namespace std::string_literals; // NOLINT(google-build-using-namespace) + + namespace franka { diff --git a/distros/noetic/patch/ros-noetic-libfranka.win.patch b/distros/noetic/patch/ros-noetic-libfranka.win.patch new file mode 100644 index 000000000..e0a2039a7 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-libfranka.win.patch @@ -0,0 +1,97 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e2e3426..26846d5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -117,6 +117,7 @@ install(TARGETS franka + EXPORT FrankaTargets + LIBRARY DESTINATION lib + RUNTIME DESTINATION lib/libfranka ++ ARCHIVE DESTINATION lib + ) + install(DIRECTORY include/ DESTINATION include/libfranka) + +@@ -150,13 +151,9 @@ install(FILES package.xml DESTINATION share/libfranka) + ## Subprojects + + # Ignore find_package(Franka) in subprojects. +-macro(find_package) +- if(NOT "${ARGV0}" STREQUAL Franka AND NOT DEFINED "${ARGV0}_FOUND") +- _find_package(${ARGV}) +- endif() +-endmacro() ++set(FRANKA_IS_FOUND TRUE) + +-option(BUILD_TESTS "Build tests" ON) ++option(BUILD_TESTS "Build tests" OFF) + if(BUILD_TESTS) + enable_testing() + add_subdirectory(test) +diff --git a/cmake/GoogleTest-CMakeLists.txt.in b/cmake/GoogleTest-CMakeLists.txt.in +index f5e5dd0..6a95393 100644 +--- a/cmake/GoogleTest-CMakeLists.txt.in ++++ b/cmake/GoogleTest-CMakeLists.txt.in +@@ -6,9 +6,9 @@ ExternalProject_Add(googletest + DOWNLOAD_NAME googletest-${GTEST_VERSION}.tar.gz + URL https://github.com/google/googletest/archive/release-${GTEST_VERSION}.tar.gz + URL_HASH SHA256=${GTEST_ARCHIVE_HASH} +- SOURCE_DIR ${GTEST_SOURCE_DIR} +- BINARY_DIR ${GTEST_BINARY_DIR} +- DOWNLOAD_DIR ${THIRDPARTY_SOURCES_DIR} ++ SOURCE_DIR "${GTEST_SOURCE_DIR}" ++ BINARY_DIR "${GTEST_BINARY_DIR}" ++ DOWNLOAD_DIR "${THIRDPARTY_SOURCES_DIR}" + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "" +diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt +index f94eb1a..1cac57c 100644 +--- a/examples/CMakeLists.txt ++++ b/examples/CMakeLists.txt +@@ -7,7 +7,9 @@ list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_LIST_DIR}/../cmake) + set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + +-find_package(Franka REQUIRED) ++if(NOT FRANKA_IS_FOUND) ++ find_package(Franka REQUIRED) ++endif() + find_package(Eigen3 REQUIRED) + find_package(Poco REQUIRED COMPONENTS Foundation) + +diff --git a/include/franka/control_tools.h b/include/franka/control_tools.h +index dc5017c..0bd2c30 100644 +--- a/include/franka/control_tools.h ++++ b/include/franka/control_tools.h +@@ -4,6 +4,7 @@ + + #include + #include ++#include + + /** + * @file control_tools.h +diff --git a/src/control_types.cpp b/src/control_types.cpp +index 046062e..fd7d016 100644 +--- a/src/control_types.cpp ++++ b/src/control_types.cpp +@@ -1,5 +1,6 @@ + // Copyright (c) 2017 Franka Emika GmbH + // Use of this source code is governed by the Apache-2.0 license, see LICENSE ++#include + #include + + #include +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 3306c67..2cb1532 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -56,6 +56,9 @@ add_executable(run_all_tests + + set(TEST_COMPILE_DEFINITIONS FRANKA_TEST_BINARY_DIR="${CMAKE_CURRENT_BINARY_DIR}") + target_compile_definitions(run_all_tests PRIVATE ${TEST_COMPILE_DEFINITIONS}) ++if(WIN32) ++ target_compile_options(run_all_tests PRIVATE /bigobj) ++endif(WIN32) + + target_include_directories(run_all_tests PRIVATE ${TEST_INCLUDE_DIRECTORIES}) + target_link_libraries(run_all_tests PUBLIC ${TEST_DEPENDENCIES}) diff --git a/distros/noetic/patch/ros-noetic-libg2o.patch b/distros/noetic/patch/ros-noetic-libg2o.patch new file mode 100644 index 000000000..a79468812 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-libg2o.patch @@ -0,0 +1,57 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 88d0adf..3ce0d9c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -154,22 +154,23 @@ endif(G2O_USE_OPENMP) + + # OpenGL is used in the draw actions for the different types, as well + # as for creating the GUI itself +-set(OpenGL_GL_PREFERENCE "GLVND") +-find_package(OpenGL) +- +-# If OpenGL was found, use the import target if available. If not, use old-style includes +-set(G2O_USE_OPENGL ON CACHE BOOL "Build g2o with OpenGL support for visualization") +-if (OPENGL_FOUND AND G2O_USE_OPENGL) +- if (TARGET OpenGL::GL) +- set(G2O_OPENGL_TARGET "OpenGL::GL;OpenGL::GLU") +- else() +- set(G2O_OPENGL_TARGET "${OPENGL_LIBRARIES}") +- include_directories(${OPENGL_INCLUDE_DIR}) +- endif() +- set (G2O_HAVE_OPENGL 1) +- message(STATUS "Compiling with OpenGL support") +- #message(WARNING G2O_OPENGL_TARGET=${G2O_OPENGL_TARGET}) +-endif() ++# set(OpenGL_GL_PREFERENCE "GLVND") ++# find_package(OpenGL) ++ ++# # If OpenGL was found, use the import target if available. If not, use old-style includes ++# set(G2O_USE_OPENGL ON CACHE BOOL "Build g2o with OpenGL support for visualization") ++# if (OPENGL_FOUND AND G2O_USE_OPENGL) ++# if (TARGET OpenGL::GL) ++# set(G2O_OPENGL_TARGET "OpenGL::GL;OpenGL::GLU") ++# else() ++# set(G2O_OPENGL_TARGET "${OPENGL_LIBRARIES}") ++# include_directories(${OPENGL_INCLUDE_DIR}) ++# endif() ++# set (G2O_HAVE_OPENGL 1) ++# message(STATUS "Compiling with OpenGL support") ++# #message(WARNING G2O_OPENGL_TARGET=${G2O_OPENGL_TARGET}) ++# endif() ++set (G2O_HAVE_OPENGL 0) + + # For building the GUI + find_package(QGLViewer) +diff --git a/g2o/examples/sphere/create_sphere.cpp b/g2o/examples/sphere/create_sphere.cpp +index 82296da..44cc358 100644 +--- a/g2o/examples/sphere/create_sphere.cpp ++++ b/g2o/examples/sphere/create_sphere.cpp +@@ -155,7 +155,7 @@ int main (int argc, char** argv) + if (randomSeed) { + std::random_device r; + std::seed_seq seedSeq{r(), r(), r(), r(), r()}; +- vector seeds(2); ++ vector seeds(2); + seedSeq.generate(seeds.begin(), seeds.end()); + cerr << "using seeds:"; + for (size_t i = 0; i < seeds.size(); ++i) diff --git a/distros/noetic/patch/ros-noetic-libmavconn.win.patch b/distros/noetic/patch/ros-noetic-libmavconn.win.patch new file mode 100644 index 000000000..7ff7dc01c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-libmavconn.win.patch @@ -0,0 +1,205 @@ +diff --git a/include/mavconn/thread_utils.h b/include/mavconn/thread_utils.h +index d388a1dcc..21d3b98af 100644 +--- a/include/mavconn/thread_utils.h ++++ b/include/mavconn/thread_utils.h +@@ -22,7 +22,6 @@ + #include + #include + #include +-#include + + namespace mavconn { + namespace utils { +@@ -43,27 +42,6 @@ std::string format(const std::string &fmt, Args ... args) + return ret; + } + +-/** +- * @brief Set name to current thread, printf-like +- * @param[in] name name for thread +- * @return true if success +- * +- * @note Only for Linux target +- * @todo add for other posix system +- */ +-template +-bool set_this_thread_name(const std::string &name, Args&& ... args) +-{ +- auto new_name = format(name, std::forward(args)...); +- +-#ifdef __APPLE__ +- return pthread_setname_np(new_name.c_str()) == 0; +-#else +- pthread_t pth = pthread_self(); +- return pthread_setname_np(pth, new_name.c_str()) == 0; +-#endif +-} +- + /** + * @brief Convert to string objects with operator << + */ + +diff --git a/include/mavconn/interface.h b/include/mavconn/interface.h +index fbfb57254..e11585b3c 100644 +--- a/include/mavconn/interface.h ++++ b/include/mavconn/interface.h +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + #include + #include + #include + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1bcd328bc..b1f03bf2b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -8,11 +8,13 @@ find_package(catkin REQUIRED) + + ## System dependencies are found with CMake's conventions + find_package(console_bridge REQUIRED) +-find_package(Boost REQUIRED COMPONENTS system) ++find_package(Boost REQUIRED COMPONENTS system thread) + + # add package modules path, not needed in dependend packages + list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules") ++if(UNIX) + include(EnableCXX11) ++endif() + include(MavrosMavlink) + + # Fixed in mavlink 2016.7.7 +diff --git a/include/mavconn/msgbuffer.h b/include/mavconn/msgbuffer.h +index 539f20341..694649063 100644 +--- a/include/mavconn/msgbuffer.h ++++ b/include/mavconn/msgbuffer.h +@@ -20,6 +20,11 @@ + #include + #include + ++#if defined(_MSC_VER) ++#include ++typedef SSIZE_T ssize_t; ++#endif ++ + namespace mavconn { + /** + * @brief Message buffer for internal use in libmavconn +diff --git a/include/mavconn/serial.h b/include/mavconn/serial.h +index 510276c8d..03d86fcec 100644 +--- a/include/mavconn/serial.h ++++ b/include/mavconn/serial.h +@@ -54,7 +54,7 @@ public: + + private: + boost::asio::io_service io_service; +- std::thread io_thread; ++ boost::thread io_thread; + boost::asio::serial_port serial_dev; + + std::atomic tx_in_progress; +diff --git a/include/mavconn/tcp.h b/include/mavconn/tcp.h +index 2f23fc3e1..1c2f05955 100644 +--- a/include/mavconn/tcp.h ++++ b/include/mavconn/tcp.h +@@ -65,7 +65,7 @@ private: + friend class MAVConnTCPServer; + boost::asio::io_service io_service; + std::unique_ptr io_work; +- std::thread io_thread; ++ boost::thread io_thread; + + boost::asio::ip::tcp::socket socket; + boost::asio::ip::tcp::endpoint server_ep; +@@ -120,7 +120,7 @@ public: + private: + boost::asio::io_service io_service; + std::unique_ptr io_work; +- std::thread io_thread; ++ boost::thread io_thread; + + boost::asio::ip::tcp::acceptor acceptor; + boost::asio::ip::tcp::endpoint bind_ep; +diff --git a/include/mavconn/udp.h b/include/mavconn/udp.h +index 1a0943a17..1875b66b7 100644 +--- a/include/mavconn/udp.h ++++ b/include/mavconn/udp.h +@@ -65,7 +65,7 @@ public: + private: + boost::asio::io_service io_service; + std::unique_ptr io_work; +- std::thread io_thread; ++ boost::thread io_thread; + bool permanent_broadcast; + + std::atomic remote_exists; +diff --git a/src/serial.cpp b/src/serial.cpp +index 03dfa5677..f6053fe83 100644 +--- a/src/serial.cpp ++++ b/src/serial.cpp +@@ -113,10 +113,11 @@ MAVConnSerial::MAVConnSerial(uint8_t system_id, uint8_t component_id, + io_service.post(std::bind(&MAVConnSerial::do_read, this)); + + // run io_service for async io +- io_thread = std::thread([this] () { ++ /*io_thread = std::thread([this] () { + utils::set_this_thread_name("mserial%zu", conn_id); + io_service.run(); +- }); ++ });*/ ++ io_thread = boost::thread(boost::bind(&boost::asio::io_service::run, &io_service)); + } + + MAVConnSerial::~MAVConnSerial() +diff --git a/src/tcp.cpp b/src/tcp.cpp +index 609a9bd2d..30410df5b 100644 +--- a/src/tcp.cpp ++++ b/src/tcp.cpp +@@ -104,10 +104,11 @@ MAVConnTCPClient::MAVConnTCPClient(uint8_t system_id, uint8_t component_id, + io_service.post(std::bind(&MAVConnTCPClient::do_recv, this)); + + // run io_service for async io +- io_thread = std::thread([this] () { ++ /*io_thread = std::thread([this] () { + utils::set_this_thread_name("mtcp%zu", conn_id); + io_service.run(); +- }); ++ });*/ ++ io_thread = boost::thread(boost::bind(&boost::asio::io_service::run, &io_service)); + } + + MAVConnTCPClient::MAVConnTCPClient(uint8_t system_id, uint8_t component_id, +@@ -310,10 +311,11 @@ MAVConnTCPServer::MAVConnTCPServer(uint8_t system_id, uint8_t component_id, + io_service.post(std::bind(&MAVConnTCPServer::do_accept, this)); + + // run io_service for async io +- io_thread = std::thread([this] () { ++ /*io_thread = std::thread([this] () { + utils::set_this_thread_name("mtcps%zu", conn_id); + io_service.run(); +- }); ++ });*/ ++ io_thread = boost::thread(boost::bind(&boost::asio::io_service::run, &io_service)); + } + + MAVConnTCPServer::~MAVConnTCPServer() +diff --git a/src/udp.cpp b/src/udp.cpp +index b19baba4f..0dd086716 100644 +--- a/src/udp.cpp ++++ b/src/udp.cpp +@@ -126,10 +126,11 @@ MAVConnUDP::MAVConnUDP(uint8_t system_id, uint8_t component_id, + io_service.post(std::bind(&MAVConnUDP::do_recvfrom, this)); + + // run io_service for async io +- io_thread = std::thread([this] () { ++ /*io_thread = std::thread([this] () { + utils::set_this_thread_name("mudp%zu", conn_id); + io_service.run(); +- }); ++ });*/ ++ io_thread = boost::thread(boost::bind(&boost::asio::io_service::run, &io_service)); + } + + MAVConnUDP::~MAVConnUDP() diff --git a/distros/noetic/patch/ros-noetic-libnabo.patch b/distros/noetic/patch/ros-noetic-libnabo.patch new file mode 100644 index 000000000..253fbd75d --- /dev/null +++ b/distros/noetic/patch/ros-noetic-libnabo.patch @@ -0,0 +1,24 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2fe8ac98..8dddf109 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -185,17 +185,17 @@ enable_testing() + + +-option(LIBNABO_BUILD_EXAMPLES "Build libnabo examples" ON) ++option(LIBNABO_BUILD_EXAMPLES "Build libnabo examples" OFF) + if (LIBNABO_BUILD_EXAMPLES) + add_subdirectory(examples) + endif() + +-option(LIBNABO_BUILD_TESTS "Build libnabo tests" ON) ++option(LIBNABO_BUILD_TESTS "Build libnabo tests" OFF) + if(LIBNABO_BUILD_TESTS) + add_subdirectory(tests) + endif() + +-option(LIBNABO_BUILD_PYTHON "Build libnabo python" ON) ++option(LIBNABO_BUILD_PYTHON "Build libnabo python" OFF) + if(LIBNABO_BUILD_PYTHON) + add_subdirectory(python) + endif() diff --git a/distros/noetic/patch/ros-noetic-libphidget22.patch b/distros/noetic/patch/ros-noetic-libphidget22.patch new file mode 100644 index 000000000..d385ad93e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-libphidget22.patch @@ -0,0 +1,219 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2f7b83da..66b5e8c8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -16,6 +16,7 @@ ExternalProject_Add(EP_${PROJECT_NAME} + + CONFIGURE_COMMAND "./configure" + PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/patch/libphidgets22-1.6.20200417-fix-warnings.patch ++ COMMAND patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/patch/libusb.patch + SOURCE_DIR ${PROJECT_BINARY_DIR}/${PROJECT_NAME}-src + BUILD_IN_SOURCE 1 + BUILD_COMMAND make "CFLAGS=-g -O2 -Wno-incompatible-pointer-types -Wno-deprecated-declarations -Wno-format-truncation" +diff --git a/patch/libusb.patch b/patch/libusb.patch +new file mode 100644 +index 00000000..93c9d526 +--- /dev/null ++++ b/patch/libusb.patch +@@ -0,0 +1,201 @@ ++diff -urp libphidget22-1.6.20200417.orig/configure libphidget22-1.6.20200417/configure ++--- libphidget22-1.6.20200417.orig/configure 2020-04-17 21:51:11.000000000 +0000 +++++ libphidget22-1.6.20200417/configure 2020-06-02 13:31:26.487312313 +0000 ++@@ -738,6 +738,7 @@ ++ docdir ++ oldincludedir ++ includedir +++runstatedir ++ localstatedir ++ sharedstatedir ++ sysconfdir ++@@ -823,6 +824,7 @@ ++ sysconfdir='${prefix}/etc' ++ sharedstatedir='${prefix}/com' ++ localstatedir='${prefix}/var' +++runstatedir='${localstatedir}/run' ++ includedir='${prefix}/include' ++ oldincludedir='/usr/include' ++ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' ++@@ -1075,6 +1077,15 @@ ++ | -silent | --silent | --silen | --sile | --sil) ++ silent=yes ;; ++ +++ -runstatedir | --runstatedir | --runstatedi | --runstated \ +++ | --runstate | --runstat | --runsta | --runst | --runs \ +++ | --run | --ru | --r) +++ ac_prev=runstatedir ;; +++ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ +++ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ +++ | --run=* | --ru=* | --r=*) +++ runstatedir=$ac_optarg ;; +++ ++ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ++ ac_prev=sbindir ;; ++ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ++@@ -1212,7 +1223,7 @@ ++ for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ ++ datadir sysconfdir sharedstatedir localstatedir includedir \ ++ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ ++- libdir localedir mandir +++ libdir localedir mandir runstatedir ++ do ++ eval ac_val=\$$ac_var ++ # Remove trailing slashes. ++@@ -1365,6 +1376,7 @@ ++ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ++ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ++ --localstatedir=DIR modifiable single-machine data [PREFIX/var] +++ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] ++ --libdir=DIR object code libraries [EPREFIX/lib] ++ --includedir=DIR C header files [PREFIX/include] ++ --oldincludedir=DIR C header files for non-gcc [/usr/include] ++@@ -5678,7 +5690,7 @@ ++ fi ++ ++ : ${AR=ar} ++-: ${AR_FLAGS=cr} +++: ${AR_FLAGS=cru} ++ ++ ++ ++@@ -12261,9 +12273,9 @@ ++ as_fn_error $? "Missing libpthread!" "$LINENO" 5 ++ fi ++ ++- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libusb_init" >&5 ++-$as_echo_n "checking for library containing libusb_init... " >&6; } ++-if ${ac_cv_search_libusb_init+:} false; then : +++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing usb-1.0" >&5 +++$as_echo_n "checking for library containing usb-1.0... " >&6; } +++if ${ac_cv_search_usb_1_0+:} false; then : ++ $as_echo_n "(cached) " >&6 ++ else ++ ac_func_search_save_LIBS=$LIBS ++@@ -12276,16 +12288,16 @@ ++ #ifdef __cplusplus ++ extern "C" ++ #endif ++-char libusb_init (); +++char usb-1.0 (); ++ int ++ main () ++ { ++-return libusb_init (); +++return usb-1.0 (); ++ ; ++ return 0; ++ } ++ _ACEOF ++-for ac_lib in '' usb-1.0; do +++for ac_lib in '' ; do ++ if test -z "$ac_lib"; then ++ ac_res="none required" ++ else ++@@ -12293,29 +12305,27 @@ ++ LIBS="-l$ac_lib $ac_func_search_save_LIBS" ++ fi ++ if ac_fn_c_try_link "$LINENO"; then : ++- ac_cv_search_libusb_init=$ac_res +++ ac_cv_search_usb_1_0=$ac_res ++ fi ++ rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext ++- if ${ac_cv_search_libusb_init+:} false; then : +++ if ${ac_cv_search_usb_1_0+:} false; then : ++ break ++ fi ++ done ++-if ${ac_cv_search_libusb_init+:} false; then : +++if ${ac_cv_search_usb_1_0+:} false; then : ++ ++ else ++- ac_cv_search_libusb_init=no +++ ac_cv_search_usb_1_0=no ++ fi ++ rm conftest.$ac_ext ++ LIBS=$ac_func_search_save_LIBS ++ fi ++-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libusb_init" >&5 ++-$as_echo "$ac_cv_search_libusb_init" >&6; } ++-ac_res=$ac_cv_search_libusb_init +++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_usb_1_0" >&5 +++$as_echo "$ac_cv_search_usb_1_0" >&6; } +++ac_res=$ac_cv_search_usb_1_0 ++ if test "$ac_res" != no; then : ++ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ++- ++-else ++ as_fn_error $? "Missing libusb!" "$LINENO" 5 ++ fi ++ ++@@ -12446,9 +12456,9 @@ ++ as_fn_error $? "Missing libpthread!" "$LINENO" 5 ++ fi ++ ++- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libusb_init" >&5 ++-$as_echo_n "checking for library containing libusb_init... " >&6; } ++-if ${ac_cv_search_libusb_init+:} false; then : +++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing usb" >&5 +++$as_echo_n "checking for library containing usb... " >&6; } +++if ${ac_cv_search_usb+:} false; then : ++ $as_echo_n "(cached) " >&6 ++ else ++ ac_func_search_save_LIBS=$LIBS ++@@ -12461,16 +12471,16 @@ ++ #ifdef __cplusplus ++ extern "C" ++ #endif ++-char libusb_init (); +++char usb (); ++ int ++ main () ++ { ++-return libusb_init (); +++return usb (); ++ ; ++ return 0; ++ } ++ _ACEOF ++-for ac_lib in '' usb; do +++for ac_lib in '' ; do ++ if test -z "$ac_lib"; then ++ ac_res="none required" ++ else ++@@ -12478,29 +12488,27 @@ ++ LIBS="-l$ac_lib $ac_func_search_save_LIBS" ++ fi ++ if ac_fn_c_try_link "$LINENO"; then : ++- ac_cv_search_libusb_init=$ac_res +++ ac_cv_search_usb=$ac_res ++ fi ++ rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext ++- if ${ac_cv_search_libusb_init+:} false; then : +++ if ${ac_cv_search_usb+:} false; then : ++ break ++ fi ++ done ++-if ${ac_cv_search_libusb_init+:} false; then : +++if ${ac_cv_search_usb+:} false; then : ++ ++ else ++- ac_cv_search_libusb_init=no +++ ac_cv_search_usb=no ++ fi ++ rm conftest.$ac_ext ++ LIBS=$ac_func_search_save_LIBS ++ fi ++-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libusb_init" >&5 ++-$as_echo "$ac_cv_search_libusb_init" >&6; } ++-ac_res=$ac_cv_search_libusb_init +++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_usb" >&5 +++$as_echo "$ac_cv_search_usb" >&6; } +++ac_res=$ac_cv_search_usb ++ if test "$ac_res" != no; then : ++ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ++- ++-else ++ as_fn_error $? "Missing libusb!" "$LINENO" 5 ++ fi ++ diff --git a/distros/noetic/patch/ros-noetic-librealsense2.patch b/distros/noetic/patch/ros-noetic-librealsense2.patch new file mode 100644 index 000000000..51589add7 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-librealsense2.patch @@ -0,0 +1,50 @@ +diff --git a/CMake/unix_config.cmake b/CMake/unix_config.cmake +index 4ec81bbf..7822b692 100644 +--- a/CMake/unix_config.cmake ++++ b/CMake/unix_config.cmake +@@ -7,9 +7,12 @@ macro(os_set_flags) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch -Wno-multichar -Wsequence-point -Wformat -Wformat-security") + + execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpmachine OUTPUT_VARIABLE MACHINE) +- if(${MACHINE} MATCHES "arm-*") ++ if(${MACHINE} MATCHES "arm-*" AND NOT APPLE) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon -mfloat-abi=hard -ftree-vectorize -latomic") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon -mfloat-abi=hard -ftree-vectorize -latomic") ++ elseif(${MACHINE} MATCHES "arm-*" AND APPLE) ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ftree-vectorize") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftree-vectorize") + elseif(${MACHINE} MATCHES "aarch64-*") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mstrict-align -ftree-vectorize") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mstrict-align -ftree-vectorize") +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 902e549..b16f92f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,6 +2,10 @@ + cmake_minimum_required(VERSION 3.1.0) + project(librealsense2 LANGUAGES CXX C) + ++if (WIN32) ++ file(COPY ${CMAKE_SOURCE_DIR}/src/win7/drivers/IntelRealSense_D400_series_win7.inf DESTINATION ${CMAKE_SOURCE_DIR}) ++endif() ++ + include(CMake/lrs_options.cmake) + include(CMake/connectivity_check.cmake) + #Deprecation message, should be removed in future releases +diff --git a/tools/rs-server/CMakeLists.txt b/tools/rs-server/CMakeLists.txt +index 617a723..8594e3f 100644 +--- a/tools/rs-server/CMakeLists.txt ++++ b/tools/rs-server/CMakeLists.txt +@@ -14,7 +14,11 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS 1) + + set(DEPENDENCIES ${DEPENDENCIES} realsense2 Threads::Threads) + +-set(CMAKE_CXX_FLAGS "-DNEWLOCALE_NOT_USED=1 -DBSD=1 -DSOCKLEN_T=socklen_t -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DALLOW_RTSP_SERVER_PORT_REUSE=1 -DNO_OPENSSL=1 -latomic") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNEWLOCALE_NOT_USED=1 -DBSD=1 -DSOCKLEN_T=socklen_t -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DALLOW_RTSP_SERVER_PORT_REUSE=1 -DNO_OPENSSL=1") ++ ++if(NOT APPLE) ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic" ++endif() + + SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} "-pthread") + diff --git a/distros/noetic/patch/ros-noetic-librviz-tutorial.patch b/distros/noetic/patch/ros-noetic-librviz-tutorial.patch new file mode 100644 index 000000000..c405d0eea --- /dev/null +++ b/distros/noetic/patch/ros-noetic-librviz-tutorial.patch @@ -0,0 +1,23 @@ +diff --git a/librviz_tutorial/CMakeLists.txt b/librviz_tutorial/CMakeLists.txt +index cc430f33..3490fa76 100644 +--- a/librviz_tutorial/CMakeLists.txt ++++ b/librviz_tutorial/CMakeLists.txt +@@ -13,6 +13,18 @@ link_directories(${catkin_LIBRARY_DIRS}) + ## This setting causes Qt's "MOC" generation to happen automatically. + set(CMAKE_AUTOMOC ON) + ++if(${CMAKE_C_COMPILER_ID} STREQUAL "Clang" AND ${CMAKE_C_COMPILER_VERSION} VERSION_GREATER_EQUAL "11") ++ # newer Clang chokes on the idiomatic way to use CF_ENUM; e.g. like this: ++ # typedef CF_ENUM(int, MyEnum) { ++ # MY_ENUM_THING, ++ # MY_ENUM_OTHER_THING, ++ # # etc... ++ # } ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-elaborated-enum-base -Wno-undef-prefix") ++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-elaborated-enum-base -Wno-undef-prefix") ++ SET(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wno-undef-prefix") ++endif() ++ + ## This plugin includes Qt widgets, so we must include Qt. + ## We'll use the version that rviz used so they are compatible. + if(rviz_QT_VERSION VERSION_LESS "5") diff --git a/distros/noetic/patch/ros-noetic-libuvc-camera.patch b/distros/noetic/patch/ros-noetic-libuvc-camera.patch new file mode 100644 index 000000000..52dd3226b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-libuvc-camera.patch @@ -0,0 +1,38 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 91db504..dc81064 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -7,8 +7,12 @@ find_package(catkin REQUIRED COMPONENTS roscpp camera_info_manager dynamic_recon + generate_dynamic_reconfigure_options(cfg/UVCCamera.cfg) + + find_package(libuvc REQUIRED) ++find_package(PkgConfig REQUIRED) + message(STATUS "libuvc ${libuvc_VERSION_MAJOR}.${libuvc_VERSION_MINOR}.${libuvc_VERSION_PATCH}") + ++pkg_check_modules(libudev libudev) ++pkg_check_modules(libusb libusb-1.0) ++ + catkin_package( + CATKIN_DEPENDS + roscpp +@@ -23,15 +27,18 @@ catkin_package( + add_definitions(-Dlibuvc_VERSION_MAJOR=${libuvc_VERSION_MAJOR}) + add_definitions(-Dlibuvc_VERSION_MINOR=${libuvc_VERSION_MINOR}) + add_definitions(-Dlibuvc_VERSION_PATCH=${libuvc_VERSION_PATCH}) +-include_directories(include ${libuvc_INCLUDE_DIRS} ${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS}) ++include_directories(include ${libuvc_INCLUDE_DIRS} ${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS} ${libudev_INCLUDE_DIRS} ${libusb_INCLUDE_DIRS}) + link_directories(${catkin_LINK_DIRS}) + + find_package(Boost REQUIRED COMPONENTS thread) + include_directories(${Boost_INCLUDE_DIRS}) + + add_executable(camera_node src/main.cpp src/camera_driver.cpp) +-target_link_libraries(camera_node ${libuvc_LIBRARIES} ${Boost_LIBRARIES} ${catkin_LIBRARIES}) ++target_link_libraries(camera_node ${libuvc_LIBRARIES} ${Boost_LIBRARIES} ${catkin_LIBRARIES} ${libudev_LIBRARIES} ${libusb_LIBRARIES}) + add_dependencies(camera_node ${PROJECT_NAME}_gencfg) ++IF(UNIX AND NOT APPLE) ++ TARGET_LINK_LIBRARIES(camera_node rt) ++ENDIF(UNIX AND NOT APPLE) + + add_library(libuvc_camera_nodelet src/nodelet.cpp src/camera_driver.cpp) + add_dependencies(libuvc_camera_nodelet ${libuvc_camera_EXPORTED_TARGETS}) diff --git a/distros/noetic/patch/ros-noetic-lms1xx.win.patch b/distros/noetic/patch/ros-noetic-lms1xx.win.patch new file mode 100644 index 000000000..6f0a24427 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-lms1xx.win.patch @@ -0,0 +1,61 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c8dedc7..2cd8c5b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,34 +1,39 @@ + cmake_minimum_required(VERSION 2.8.3) + project(lms1xx) + +-# Build ROS-independent library. +-find_package(console_bridge REQUIRED) +-include_directories(include ${console_bridge_INCLUDE_DIRS}) +-add_library(LMS1xx src/LMS1xx.cpp) +-target_link_libraries(LMS1xx ${console_bridge_LIBRARIES}) ++if(UNIX) ++ # Build ROS-independent library. ++ find_package(console_bridge REQUIRED) ++ include_directories(include ${console_bridge_INCLUDE_DIRS}) ++ add_library(LMS1xx src/LMS1xx.cpp) ++ target_link_libraries(LMS1xx ${console_bridge_LIBRARIES}) ++endif() + + # Regular catkin package follows. + find_package(catkin REQUIRED COMPONENTS roscpp sensor_msgs) + catkin_package(CATKIN_DEPENDS roscpp) + +-include_directories(include ${catkin_INCLUDE_DIRS}) +-add_executable(LMS1xx_node src/LMS1xx_node.cpp) +-target_link_libraries(LMS1xx_node LMS1xx ${catkin_LIBRARIES}) +- ++if(UNIX) ++ include_directories(include ${catkin_INCLUDE_DIRS}) ++ add_executable(LMS1xx_node src/LMS1xx_node.cpp) ++ target_link_libraries(LMS1xx_node LMS1xx ${catkin_LIBRARIES}) + +-install(TARGETS LMS1xx LMS1xx_node +- ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} +- LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} +- RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} +-) ++ install(TARGETS LMS1xx LMS1xx_node ++ ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} ++ LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} ++ RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} ++ ) ++endif() + + install(DIRECTORY meshes launch urdf + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) + +-install(PROGRAMS scripts/find_sick scripts/set_sick_ip +- DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}) ++if(UNIX) ++ install(PROGRAMS scripts/find_sick scripts/set_sick_ip ++ DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}) ++endif() + +-if (CATKIN_ENABLE_TESTING) ++if (CATKIN_ENABLE_TESTING AND UNIX) + catkin_add_gtest(test_buffer test/test_buffer.cpp) + target_link_libraries(test_buffer ${catkin_LIBRARIES}) + diff --git a/distros/noetic/patch/ros-noetic-lusb.patch b/distros/noetic/patch/ros-noetic-lusb.patch new file mode 100644 index 000000000..4dab15b28 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-lusb.patch @@ -0,0 +1,31 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9c0785e..65a7867 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,6 +4,9 @@ project(lusb) + find_package(catkin REQUIRED) + find_package(Boost REQUIRED COMPONENTS thread system) + ++find_package(PkgConfig) ++pkg_check_modules(LibUSB libusb-1.0) ++ + catkin_package( + INCLUDE_DIRS include ${Boost_INCLUDE_DIRS} + LIBRARIES ${PROJECT_NAME} ${Boost_LIBRARIES} +@@ -12,6 +15,7 @@ include_directories( + include + ${catkin_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} ++ ${LibUSB_INCLUDE_DIRS} + ) + + add_library(${PROJECT_NAME} +@@ -20,7 +24,7 @@ add_library(${PROJECT_NAME} + target_link_libraries(${PROJECT_NAME} + ${catkin_LIBRARIES} + ${Boost_LIBRARIES} +- usb-1.0 ++ ${LibUSB_LIBRARIES} + ) + + install(TARGETS ${PROJECT_NAME} diff --git a/distros/noetic/patch/ros-noetic-lvr2.patch b/distros/noetic/patch/ros-noetic-lvr2.patch new file mode 100644 index 000000000..00f28ce67 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-lvr2.patch @@ -0,0 +1,152 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 91429ee..4721fbc 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -126,7 +126,7 @@ endif(FLANN_FOUND) + + find_package(Lz4 REQUIRED) + include_directories( ${LZ4_INCLUDE_DIR} ) +-message(STATUS "Found LZ4 library: ${LZ4_LIBRARY}") ++message(STATUS "Found LZ4 library: ${LZ4_LIBRARIES}") + + + #------------------------------------------------------------------------------ +@@ -355,21 +355,25 @@ endif(STANN_FOUND) + + # NanoFLANN + add_subdirectory(ext/nanoflann) ++set(NANOFLANN_INCLUDE_DIR "ext/nanoflann") + include_directories( ${NANOFLANN_INCLUDE_DIR} ) + list(APPEND LVR2_INSTALL_INCLUDE_DIRS ${NANOFLANN_INSTALL_INCLUDE_DIR}) + + # PSIMPL + add_subdirectory(ext/psimpl) ++set(PSIMPL_INCLUDE_DIR "ext/psimpl") + include_directories( ${PSIMPL_INCLUDE_DIR} ) + list(APPEND LVR2_INSTALL_INCLUDE_DIRS ${PSIMPL_INSTALL_INCLUDE_DIR}) + + # RPLY + add_subdirectory(ext/rply) ++set(RPLY_INCLUDE_DIR "ext/rply") + include_directories( ${RPLY_INCLUDE_DIR} ) + list(APPEND LVR2_INSTALL_INCLUDE_DIRS ${RPLY_INSTALL_INCLUDE_DIR}) + + # LASLIB + add_subdirectory(ext/laslib) ++set(LASLIB_INCLUDE_DIR "ext/laslib/inc") + include_directories( ${LASLIB_INCLUDE_DIR} ) + list(APPEND LVR2_INSTALL_INCLUDE_DIRS ${LASLIB_INSTALL_INCLUDE_DIR}) + +@@ -390,11 +394,13 @@ include_directories(${YAML_CPP_INCLUDE_DIR}) + + # SLAM6D stuff + add_subdirectory(ext/slam6d) ++set(SLAM6D_INCLUDE_DIR "ext/slam6d/include") + include_directories( ${SLAM6D_INCLUDE_DIR} ) + list(APPEND LVR2_INSTALL_INCLUDE_DIRS ${SLAM6D_INSTALL_INCLUDE_DIR}) + + # CTPL + add_subdirectory(ext/CTPL) ++set(CTPL_INCLUDE_DIR "ext/CTPL") + include_directories(${CTPL_INCLUDE_DIR}) + list(APPEND LVR2_INSTALL_INCLUDE_DIRS ${CTPL_INSTALL_INCLUDE_DIR}) + +@@ -529,7 +535,7 @@ set(LVR2_LIB_DEPENDENCIES + ${GDAL_LIBRARY} + ${OpenCV_LIBS} + ${GSL_LIBRARIES} +- ${LZ4_LIBRARY} ++ ${LZ4_LIBRARIES} + ${TIFF_LIBRARY} + ${YAML_CPP_LIBRARIES} + ${OpenMP_CXX_LIBRARIES} +diff --git a/ext/CTPL/CMakeLists.txt b/ext/CTPL/CMakeLists.txt +index 1ccd992..f46f461 100644 +--- a/ext/CTPL/CMakeLists.txt ++++ b/ext/CTPL/CMakeLists.txt +@@ -6,9 +6,10 @@ set(CTPL_INSTALL_INCLUDE_DIR + PATH + "install location of CTPL library header") + +-find_path(CTPL_INCLUDE_DIR ctpl.h PATH .) ++set(CTPL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) + mark_as_advanced(CTPL_INCLUDE_DIR CTPL_INSTALL_INCLUDE_DIR) + ++message(WARNING "CTPL_INCLUDE_DIR: ${CTPL_INCLUDE_DIR}") + include_directories(${CTPL_INCLUDE_DIR}) + + install(DIRECTORY . DESTINATION ${CTPL_INSTALL_INCLUDE_DIR} +diff --git a/ext/laslib/CMakeLists.txt b/ext/laslib/CMakeLists.txt +index 8bcbda4..3fbc754 100644 +--- a/ext/laslib/CMakeLists.txt ++++ b/ext/laslib/CMakeLists.txt +@@ -1,7 +1,8 @@ + + # set include dirs + set(LASLIB_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/lvr2/ext/laslib CACHE PATH "install location of laslib library headers") +-find_path(LASLIB_INCLUDE_DIR lasreader.hpp PATH inc) ++set(LASLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc) ++# find_path(LASLIB_INCLUDE_DIR lasreader.hpp PATH inc) + mark_as_advanced(LASLIB_INCLUDE_DIR LASLIB_INSTALL_INCLUDE_DIR) + + include_directories(${LASLIB_INCLUDE_DIR}) +diff --git a/ext/nanoflann/CMakeLists.txt b/ext/nanoflann/CMakeLists.txt +index 5f6ed4d..e6e3534 100644 +--- a/ext/nanoflann/CMakeLists.txt ++++ b/ext/nanoflann/CMakeLists.txt +@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 2.8) + + # set include dirs + set(NANOFLANN_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/lvr2/ext/nanoflann CACHE PATH "install location of nanoflann headers") +-find_path(NANOFLANN_INCLUDE_DIR nanoflann.hpp PATH .) ++set(NANOFLANN_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) ++# find_path(NANOFLANN_INCLUDE_DIR nanoflann.hpp PATH .) + mark_as_advanced(NANOFLANN_INCLUDE_DIR NANOFLANN_INSTALL_INCLUDE_DIR) + + install(DIRECTORY . DESTINATION ${NANOFLANN_INSTALL_INCLUDE_DIR} +diff --git a/ext/psimpl/CMakeLists.txt b/ext/psimpl/CMakeLists.txt +index 5084e23..58bba3f 100644 +--- a/ext/psimpl/CMakeLists.txt ++++ b/ext/psimpl/CMakeLists.txt +@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 2.8) + + # set include dirs + set(PSIMPL_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/lvr2/ext/psimpl CACHE PATH "install location of psimple header") +-find_path(PSIMPL_INCLUDE_DIR psimpl.h PATH .) ++set(PSIMPL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) ++# find_path(PSIMPL_INCLUDE_DIR psimpl.h PATH .) + mark_as_advanced(PSIMPL_INCLUDE_DIR PSIMPL_INSTALL_INCLUDE_DIR) + + install(DIRECTORY . DESTINATION ${PSIMPL_INSTALL_INCLUDE_DIR} +diff --git a/ext/rply/CMakeLists.txt b/ext/rply/CMakeLists.txt +index 8578e80..715eba7 100644 +--- a/ext/rply/CMakeLists.txt ++++ b/ext/rply/CMakeLists.txt +@@ -4,9 +4,12 @@ cmake_minimum_required(VERSION 2.8) + + # set include dirs + set(RPLY_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/lvr2/ext/rply CACHE PATH "install location of rply library header") +-find_path(RPLY_INCLUDE_DIR rply.h PATH .) ++# find_path(RPLY_INCLUDE_DIR rply.h PATH .) ++ ++set(RPLY_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) + mark_as_advanced(RPLY_INCLUDE_DIR RPLY_INSTALL_INCLUDE_DIR) + ++message(WARNING "RPLY_INCLUDE_DIR: ${RPLY_INCLUDE_DIR}") + include_directories(${RPLY_INCLUDE_DIR}) + + add_library(lvr2rply_static STATIC rply.c) +diff --git a/ext/slam6d/CMakeLists.txt b/ext/slam6d/CMakeLists.txt +index 592c3f1..194f776 100644 +--- a/ext/slam6d/CMakeLists.txt ++++ b/ext/slam6d/CMakeLists.txt +@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 2.8) + + # set include dirs + set(SLAM6D_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/lvr2/ext/slam6d CACHE PATH "install location of slam6d headers") +-find_path(SLAM6D_INCLUDE_DIR slam6d/scan_io.h PATH include) ++set(SLAM6D_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include) ++# find_path(SLAM6D_INCLUDE_DIR slam6d/scan_io.h PATH include) + mark_as_advanced(SLAM6D_INCLUDE_DIR SLAM6D_INSTALL_INCLUDE_DIR) + + include_directories(${SLAM6D_INCLUDE_DIR}) diff --git a/distros/noetic/patch/ros-noetic-map-server.patch b/distros/noetic/patch/ros-noetic-map-server.patch new file mode 100644 index 000000000..971527cc1 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-map-server.patch @@ -0,0 +1,20 @@ +diff --git a/map_server/CMakeLists.txt b/map_server/CMakeLists.txt +index 147c9ae50..f360d469c 100644 +--- a/map_server/CMakeLists.txt ++++ b/map_server/CMakeLists.txt +@@ -63,6 +63,7 @@ target_link_libraries(map_server + map_server_image_loader + ${YAMLCPP_LIBRARIES} + ${catkin_LIBRARIES} ++ ${Boost_LIBRARIES} + ) + + add_executable(map_server-map_saver src/map_saver.cpp) +@@ -70,6 +71,7 @@ add_dependencies(map_server-map_saver ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catk + set_target_properties(map_server-map_saver PROPERTIES OUTPUT_NAME map_saver) + target_link_libraries(map_server-map_saver + ${catkin_LIBRARIES} ++ ${Boost_LIBRARIES} + ) + + # copy test data to same place as tests are run diff --git a/distros/noetic/patch/ros-noetic-mavlink.patch b/distros/noetic/patch/ros-noetic-mavlink.patch new file mode 100644 index 000000000..91113c390 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-mavlink.patch @@ -0,0 +1,190 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bd600b66..a4d62000 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -17,23 +17,7 @@ include(GNUInstallDirs) + # hack from urdfdom: by default this would be 'lib/x86_64-linux-gnu' + set(CMAKE_INSTALL_LIBDIR lib) + +-if (DEFINED ENV{ROS_PYTHON_VERSION}) +- set(Py_VERSION $ENV{ROS_PYTHON_VERSION}) +-else() +- message(WARNING "ENV ROS_PYTHON_VERSION is not set. Use default: 2") +- set(Py_VERSION "2") +-endif() +- +-if (NOT CMAKE_VERSION VERSION_LESS "3.12") +- find_package(Python${Py_VERSION} COMPONENTS Interpreter) +- set(Python_EXECUTABLE "${Python${Py_VERSION}_EXECUTABLE}") +-else() +- # find libraries with cmake modules +- find_package(PythonInterp ${Py_VERSION} REQUIRED) +- set(Python_EXECUTABLE "${PYTHON_EXECUTABLE}") +-endif() +- +-message(STATUS "Python ${Py_VERSION} iterpretator: ${Python_EXECUTABLE}") ++message(STATUS "Python iterpretator: ${PYTHON_EXECUTABLE}") + + # Try to read package version from package.xml + if(EXISTS ${CMAKE_SOURCE_DIR}/package.xml) +@@ -50,7 +34,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/package.xml) + ) + + execute_process( +- COMMAND ${Python_EXECUTABLE} ${CMAKE_BINARY_DIR}/package_version.py ++ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_BINARY_DIR}/package_version.py + OUTPUT_VARIABLE XML_VERSION + RESULT_VARIABLE XML_RESULT + ) +@@ -77,8 +61,7 @@ macro(generateMavlink_v10 definitions) + message(STATUS "processing v1.0: ${definitionAbsPath}") + add_custom_command( + OUTPUT include/v1.0/${definition}/${definition}.h +- COMMAND /usr/bin/env PYTHONPATH="${CMAKE_SOURCE_DIR}:$ENV{PYTHONPATH}" +- ${Python_EXECUTABLE} ${mavgen_path} --lang=C --wire-protocol=1.0 ++ COMMAND ${PYTHON_EXECUTABLE} ${mavgen_path} --lang=C --wire-protocol=1.0 + --output=include/v1.0 ${definitionAbsPath} + DEPENDS ${definitionAbsPath} ${common_xml_path} ${mavgen_path} + ) +@@ -96,8 +79,7 @@ macro(generateMavlink_v20 definitions) + add_custom_command( + OUTPUT ${definition}-v2.0-cxx-stamp + #OUTPUT include/v2.0/${definition}/${definition}.hpp +- COMMAND /usr/bin/env PYTHONPATH="${CMAKE_SOURCE_DIR}:$ENV{PYTHONPATH}" +- ${Python_EXECUTABLE} ${mavgen_path} --lang=C++11 --wire-protocol=2.0 ++ COMMAND ${PYTHON_EXECUTABLE} ${mavgen_path} --lang=C++11 --wire-protocol=2.0 + --output=include/v2.0 ${definitionAbsPath} + COMMAND touch ${definition}-v2.0-cxx-stamp + DEPENDS ${definitionAbsPath} ${common_xml_path} ${mavgen_path} +diff --git a/pymavlink/generator/CPP11/include_v2.0/msgmap.hpp b/pymavlink/generator/CPP11/include_v2.0/msgmap.hpp +index a3956aa2..34d7d287 100644 +--- a/pymavlink/generator/CPP11/include_v2.0/msgmap.hpp ++++ b/pymavlink/generator/CPP11/include_v2.0/msgmap.hpp +@@ -2,10 +2,93 @@ + #pragma once + + #include ++ ++#if defined(_MSC_VER) ++#include ++typedef SSIZE_T ssize_t; ++#endif ++ ++#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__) ++ ++# define __WINDOWS__ ++ ++#endif ++ + #ifdef FREEBSD + #include + #elif __APPLE__ +-#include ++ #include ++ ++ #include ++ ++ #define htobe16(x) OSSwapHostToBigInt16(x) ++ #define htole16(x) OSSwapHostToLittleInt16(x) ++ #define be16toh(x) OSSwapBigToHostInt16(x) ++ #define le16toh(x) OSSwapLittleToHostInt16(x) ++ ++ #define htobe32(x) OSSwapHostToBigInt32(x) ++ #define htole32(x) OSSwapHostToLittleInt32(x) ++ #define be32toh(x) OSSwapBigToHostInt32(x) ++ #define le32toh(x) OSSwapLittleToHostInt32(x) ++ ++ #define htobe64(x) OSSwapHostToBigInt64(x) ++ #define htole64(x) OSSwapHostToLittleInt64(x) ++ #define be64toh(x) OSSwapBigToHostInt64(x) ++ #define le64toh(x) OSSwapLittleToHostInt64(x) ++ #undef TRUE ++ #undef FALSE ++#elif defined(__WINDOWS__) ++ ++# include ++# if BYTE_ORDER == LITTLE_ENDIAN ++ ++# if defined(_MSC_VER) ++# include ++# define htobe16(x) _byteswap_ushort(x) ++# define htole16(x) (x) ++# define be16toh(x) _byteswap_ushort(x) ++# define le16toh(x) (x) ++ ++# define htobe32(x) _byteswap_ulong(x) ++# define htole32(x) (x) ++# define be32toh(x) _byteswap_ulong(x) ++# define le32toh(x) (x) ++ ++# define htobe64(x) _byteswap_uint64(x) ++# define htole64(x) (x) ++# define be64toh(x) _byteswap_uint64(x) ++# define le64toh(x) (x) ++ ++# elif defined(__GNUC__) || defined(__clang__) ++ ++# define htobe16(x) __builtin_bswap16(x) ++# define htole16(x) (x) ++# define be16toh(x) __builtin_bswap16(x) ++# define le16toh(x) (x) ++ ++# define htobe32(x) __builtin_bswap32(x) ++# define htole32(x) (x) ++# define be32toh(x) __builtin_bswap32(x) ++# define le32toh(x) (x) ++ ++# define htobe64(x) __builtin_bswap64(x) ++# define htole64(x) (x) ++# define be64toh(x) __builtin_bswap64(x) ++# define le64toh(x) (x) ++# else ++# error platform not supported ++# endif ++ ++# else ++ ++# error byte order not supported ++ ++# endif ++ ++# define __BYTE_ORDER BYTE_ORDER ++# define __BIG_ENDIAN BIG_ENDIAN ++# define __LITTLE_ENDIAN LITTLE_ENDIAN ++# define __PDP_ENDIAN PDP_ENDIAN + #else + #include + #endif +diff --git a/pymavlink/generator/mavgen_cpp11.py b/pymavlink/generator/mavgen_cpp11.py +index aaeb5f5a..c2e94e2b 100644 +--- a/pymavlink/generator/mavgen_cpp11.py ++++ b/pymavlink/generator/mavgen_cpp11.py +@@ -67,6 +67,16 @@ def generate_main_hpp(directory, xml): + + #include "../message.hpp" + ++#ifdef ERROR ++#undef ERROR ++#endif ++#ifdef TRUE ++#undef TRUE ++#endif ++#ifdef FALSE ++#undef FALSE ++#endif ++ + namespace mavlink { + namespace ${basename} { + +@@ -97,6 +107,11 @@ constexpr auto ${enum_end_name} = ${enum_end_value}; + } // namespace ${basename} + } // namespace mavlink + ++#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) ++#define FALSE 0 ++#define TRUE 1 ++#endif ++ + // MESSAGE DEFINITIONS + ${{message:#include "./mavlink_msg_${name_lower}.hpp" + }} diff --git a/distros/noetic/patch/ros-noetic-mavros-extras.patch b/distros/noetic/patch/ros-noetic-mavros-extras.patch new file mode 100644 index 000000000..faf1b0990 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-mavros-extras.patch @@ -0,0 +1,12 @@ +diff --git a/src/plugins/mag_calibration_status.cpp b/src/plugins/mag_calibration_status.cpp +index 70c9d15de..0c974192f 100644 +--- a/src/plugins/mag_calibration_status.cpp ++++ b/src/plugins/mag_calibration_status.cpp +@@ -8,6 +8,7 @@ + * @{ + */ + ++#include + #include + #include + #include diff --git a/distros/noetic/patch/ros-noetic-mavros.patch b/distros/noetic/patch/ros-noetic-mavros.patch new file mode 100644 index 000000000..aeb0f2c2c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-mavros.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3cc117abe..54854d79e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -111,7 +111,7 @@ target_link_libraries(mavros + ${Boost_LIBRARIES} + ${GeographicLib_LIBRARIES} + ) +-if(NOT APPLE) ++if(UNIX AND NOT APPLE) + target_link_libraries(mavros + atomic + ) diff --git a/distros/noetic/patch/ros-noetic-mavros.win.patch b/distros/noetic/patch/ros-noetic-mavros.win.patch new file mode 100644 index 000000000..a977685e1 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-mavros.win.patch @@ -0,0 +1,240 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ed6ff0806..594ca07c6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -25,6 +25,10 @@ find_package(catkin REQUIRED COMPONENTS + trajectory_msgs + ) + ++if(MSVC) ++ add_compile_options(/permissive-) ++endif() ++ + ## System dependencies are found with CMake's conventions + find_package(Boost REQUIRED COMPONENTS system) + +@@ -44,7 +48,9 @@ find_package(GeographicLib REQUIRED) + ## Check if the datasets are installed + include(CheckGeographicLibDatasets) + +-include(EnableCXX11) ++if(UNIX) ++ include(EnableCXX11) ++endif() + include(MavrosMavlink) + + # detect if sensor_msgs has BatteryState.msg +diff --git a/include/mavros/mavros_plugin.h b/include/mavros/mavros_plugin.h +index 8d8c2141b..99d739f50 100644 +--- a/include/mavros/mavros_plugin.h ++++ b/include/mavros/mavros_plugin.h +@@ -66,6 +66,8 @@ public: + */ + virtual Subscriptions get_subscriptions() = 0; + ++ UAS *m_uas; ++ + protected: + /** + * @brief Plugin constructor +@@ -73,8 +75,6 @@ protected: + */ + PluginBase() : m_uas(nullptr) {}; + +- UAS *m_uas; +- + // TODO: filtered handlers + + /** +diff --git a/include/mavros/setpoint_mixin.h b/include/mavros/setpoint_mixin.h +index 9156f1e66..0f8d545e7 100644 +--- a/include/mavros/setpoint_mixin.h ++++ b/include/mavros/setpoint_mixin.h +@@ -181,7 +181,7 @@ public: + auto tf_transform_cb = std::bind(cbp, static_cast(this), std::placeholders::_1); + + tf_thread = std::thread([this, tf_transform_cb]() { +- mavconn::utils::set_this_thread_name("%s", tf_thd_name.c_str()); ++ //mavconn::utils::set_this_thread_name("%s", tf_thd_name.c_str()); + + mavros::UAS *m_uas_ = static_cast(this)->m_uas; + std::string &_frame_id = static_cast(this)->tf_frame_id; +@@ -217,7 +217,7 @@ public: + tf_thd_name = _thd_name; + + tf_thread = std::thread([this, cbp, &topic_sub]() { +- mavconn::utils::set_this_thread_name("%s", tf_thd_name.c_str()); ++ //mavconn::utils::set_this_thread_name("%s", tf_thd_name.c_str()); + + mavros::UAS *m_uas_ = static_cast(this)->m_uas; + ros::NodeHandle &_sp_nh = static_cast(this)->sp_nh; +diff --git a/include/mavros/utils.h b/include/mavros/utils.h +index c670ce2c3..4992dd04f 100644 +--- a/include/mavros/utils.h ++++ b/include/mavros/utils.h +@@ -24,6 +24,10 @@ + + #include + ++#ifdef PASSTHROUGH ++#undef PASSTHROUGH ++#endif ++ + // OS X compat: missing error codes + #ifdef __APPLE__ + #define EBADE 50 /* Invalid exchange */ +@@ -32,6 +36,14 @@ + #define EBADSLT 55 /* Invalid slot */ + #endif + ++// Win compat: missing error codes ++#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) ++#define EBADE 50 /* Invalid exchange */ ++#define EBADFD 81 /* File descriptor in bad state */ ++#define EBADRQC 54 /* Invalid request code */ ++#define EBADSLT 55 /* Invalid slot */ ++#endif ++ + namespace mavros { + namespace utils { + using mavconn::utils::format; +diff --git a/src/lib/mavros.cpp b/src/lib/mavros.cpp +index 6a4ba43cf..bf837e7c6 100644 +--- a/src/lib/mavros.cpp ++++ b/src/lib/mavros.cpp +@@ -14,7 +14,14 @@ + #include + #include + #include ++#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) ++#include "windows.h" ++#include "shlwapi.h" ++#pragma comment(lib, "shlwapi.lib") ++#else ++#include + #include ++#endif + + // MAVLINK_VERSION string + #include +@@ -263,6 +270,18 @@ void MavRos::plugin_route_cb(const mavlink_message_t *mmsg, const Framing framin + + static bool pattern_match(std::string &pattern, std::string &pl_name) + { ++#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) ++ wchar_t wname[1024]; ++ wchar_t wmask[1024]; ++ ++ size_t outsize; ++ mbstowcs_s(&outsize, wname, pattern.c_str(), strlen(pattern.c_str()) + 1); ++ mbstowcs_s(&outsize, wmask, pl_name.c_str(), strlen(pl_name.c_str()) + 1); ++ if (PathMatchSpecW(wname, wmask)) ++ return true; ++ else ++ return false; ++#else + int cmp = fnmatch(pattern.c_str(), pl_name.c_str(), FNM_CASEFOLD); + if (cmp == 0) + return true; +@@ -274,6 +293,7 @@ static bool pattern_match(std::string &pattern, std::string &pl_name) + } + + return false; ++#endif + } + + /** +diff --git a/src/plugins/setpoint_attitude.cpp b/src/plugins/setpoint_attitude.cpp +index 9c9712aae..5196ade32 100644 +--- a/src/plugins/setpoint_attitude.cpp ++++ b/src/plugins/setpoint_attitude.cpp +@@ -100,10 +100,15 @@ public: + return { /* Rx disabled */ }; + } + ++ ros::NodeHandle sp_nh; ++ std::string tf_frame_id; ++ std::string tf_child_frame_id; ++ double tf_rate; ++ + private: + friend class SetAttitudeTargetMixin; + friend class TF2ListenerMixin; +- ros::NodeHandle sp_nh; ++ + + message_filters::Subscriber th_sub; + message_filters::Subscriber pose_sub; +@@ -112,11 +117,7 @@ private: + std::unique_ptr sync_pose; + std::unique_ptr sync_twist; + +- std::string tf_frame_id; +- std::string tf_child_frame_id; +- + bool tf_listen; +- double tf_rate; + + bool use_quaternion; + +diff --git a/src/plugins/setpoint_position.cpp b/src/plugins/setpoint_position.cpp +index ebce9ec7b..3395e34d7 100644 +--- a/src/plugins/setpoint_position.cpp ++++ b/src/plugins/setpoint_position.cpp +@@ -89,12 +89,16 @@ public: + return { /* Rx disabled */ }; + } + ++ ros::NodeHandle sp_nh; ++ std::string tf_frame_id; ++ std::string tf_child_frame_id; ++ double tf_rate; ++ + private: + friend class SetPositionTargetLocalNEDMixin; + friend class SetPositionTargetGlobalIntMixin; + friend class TF2ListenerMixin; + +- ros::NodeHandle sp_nh; + ros::NodeHandle spg_nh; //!< to get local position and gps coord which are not under sp_h() + ros::Subscriber setpoint_sub; + ros::Subscriber setpointg_sub; //!< Global setpoint +@@ -109,11 +113,7 @@ private: + Eigen::Vector3d current_local_pos; //!< Current local position in ENU + uint32_t old_gps_stamp = 0; //!< old time gps time stamp in [ms], to check if new gps msg is received + +- std::string tf_frame_id; +- std::string tf_child_frame_id; +- + bool tf_listen; +- double tf_rate; + + MAV_FRAME mav_frame; + +diff --git a/src/plugins/sys_time.cpp b/src/plugins/sys_time.cpp +index 09103a5b5..78dad23dc 100644 +--- a/src/plugins/sys_time.cpp ++++ b/src/plugins/sys_time.cpp +@@ -19,7 +19,10 @@ + #include + #include + #include + #include ++#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) ++#include ++#endif + + namespace mavros { + namespace std_plugins { +@@ -477,7 +480,11 @@ private: + uint64_t get_monotonic_now(void) + { + struct timespec spec; ++#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) ++ timespec_get(&spec, TIME_UTC); ++#else + clock_gettime(CLOCK_MONOTONIC, &spec); ++#endif + + return spec.tv_sec * 1000000000ULL + spec.tv_nsec; + } diff --git a/distros/noetic/patch/ros-noetic-mesh-client.patch b/distros/noetic/patch/ros-noetic-mesh-client.patch new file mode 100644 index 000000000..b1c1a24b5 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-mesh-client.patch @@ -0,0 +1,13 @@ +diff --git a/include/mesh_client/mesh_client.h b/include/mesh_client/mesh_client.h +index e783b54..3a1e0ad 100644 +--- a/include/mesh_client/mesh_client.h ++++ b/include/mesh_client/mesh_client.h +@@ -45,7 +45,7 @@ + #include + #include + #include +-#include ++#include + + namespace mesh_client + { diff --git a/distros/noetic/patch/ros-noetic-microstrain-inertial-driver.patch b/distros/noetic/patch/ros-noetic-microstrain-inertial-driver.patch new file mode 100644 index 000000000..a8f42a28e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-microstrain-inertial-driver.patch @@ -0,0 +1,40 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d8338e7..21160f7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -71,7 +71,8 @@ else() + endif() + + # Set some general CMake flags +-set(CMAKE_C_FLAGS "-Wno-implicit-function-declaration -Wno-incompatible-pointer-types -Wno-unused-variable -Wno-format -fno-builtin-memcpy") ++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -Wno-unused-variable -Wno-format -Wno-missing-template-arg-list-after-template-kw -fno-builtin-memcpy") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -Wno-unused-variable -Wno-format -Wno-missing-template-arg-list-after-template-kw -fno-builtin-memcpy") + + # Include the MIP SDK source + add_subdirectory("${MIP_SDK_DIR}" EXCLUDE_FROM_ALL) +@@ -207,11 +208,7 @@ set_source_files_properties(${COMMON_SRC_DIR}/services.cpp PROPERTIES COMPILE_OP + add_definitions(-DMICROSTRAIN_DRIVER_VERSION="${DRIVER_GIT_VERSION}") + + # Let the code know if it is being compiled with ROS1 or ROS2 +-if(DEFINED ENV{ROS_VERSION}) +- add_definitions(-DMICROSTRAIN_ROS_VERSION=$ENV{ROS_VERSION}) +-else() +- message(FATAL_ERROR "ROS_VERSION environment variable is not set.") +-endif() ++add_definitions(-DMICROSTRAIN_ROS_VERSION=1) + + # Allow the MSCL include directory to be accessed + include_directories(${MSCL_INC_PATH} ${BOOST_INC_PATH}) +diff --git a/microstrain_inertial_driver_common/include/microstrain_inertial_driver_common/utils/ros_compat.h b/microstrain_inertial_driver_common/include/microstrain_inertial_driver_common/utils/ros_compat.h +index b6fe468..dca949e 100644 +--- a/microstrain_inertial_driver_common/include/microstrain_inertial_driver_common/utils/ros_compat.h ++++ b/microstrain_inertial_driver_common/include/microstrain_inertial_driver_common/utils/ros_compat.h +@@ -501,7 +501,7 @@ template + RosTimerType createTimer(RosNodeType* node, double hz, void (ClassType::*fp)(), ClassType* obj) + { + return std::make_shared<::ros::Timer>( +- node->template createTimer(ros::Duration(1.0 / hz), [=](const ros::TimerEvent& event) { (obj->*fp)(); })); ++ node->createTimer(::ros::Duration(1.0 / hz), [obj, fp](const ::ros::TimerEvent&) { (obj->*fp)(); })); + } + + /** diff --git a/distros/noetic/patch/ros-noetic-moveit-calibration-plugins.patch b/distros/noetic/patch/ros-noetic-moveit-calibration-plugins.patch new file mode 100644 index 000000000..d9dcd57ad --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-calibration-plugins.patch @@ -0,0 +1,13 @@ +diff --git a/handeye_calibration_solver/CMakeLists.txt b/handeye_calibration_solver/CMakeLists.txt +index cab8464..90bf930 100644 +--- a/handeye_calibration_solver/CMakeLists.txt ++++ b/handeye_calibration_solver/CMakeLists.txt +@@ -13,7 +13,7 @@ find_package(PythonLibs 2.7 REQUIRED) + find_package(NumPy 1.7 REQUIRED) + + #catkin_lint: ignore_once missing_directory +-include_directories(${CMAKE_CURRENT_BINARY_DIR} ${PYTHON_INCLUDE_DIRS}) ++include_directories(${CMAKE_CURRENT_BINARY_DIR} ${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIR}) + + # Plugin Source + set(SOURCE_FILES diff --git a/distros/noetic/patch/ros-noetic-moveit-core.patch b/distros/noetic/patch/ros-noetic-moveit-core.patch new file mode 100644 index 000000000..b75b043aa --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-core.patch @@ -0,0 +1,76 @@ +diff --git a/collision_detection/include/moveit/collision_detection/collision_common.h b/collision_detection/include/moveit/collision_detection/collision_common.h +index 7ff4596bf..32d04be20 100644 +--- a/collision_detection/include/moveit/collision_detection/collision_common.h ++++ b/collision_detection/include/moveit/collision_detection/collision_common.h +@@ -324,18 +324,46 @@ using DistanceMap = std::map, std::vec + /** \brief Result of a distance request. */ + struct DistanceResult + { +- DistanceResult() : collision(false) ++ DistanceResult() : collision(false) {} ++ ++ /// Copy constructor ++ DistanceResult(const DistanceResult& other) ++ : collision(other.collision), ++ minimum_distance(other.minimum_distance), ++ distances(other.distances) {} ++ ++ /// Move constructor ++ DistanceResult(DistanceResult&& other) noexcept ++ : collision(other.collision), ++ minimum_distance(std::move(other.minimum_distance)), ++ distances(std::move(other.distances)) {} ++ ++ /// Copy assignment operator ++ DistanceResult& operator=(const DistanceResult& other) + { ++ if (this != &other) ++ { ++ collision = other.collision; ++ minimum_distance = other.minimum_distance; ++ ++ // Clear and copy distances map ++ distances.clear(); ++ distances.insert(other.distances.begin(), other.distances.end()); ++ } ++ return *this; + } + +- /// Indicates if two objects were in collision +- bool collision; +- +- /// ResultsData for the two objects with the minimum distance +- DistanceResultsData minimum_distance; +- +- /// A map of distance data for each link in the req.active_components_only +- DistanceMap distances; ++ /// Move assignment operator ++ DistanceResult& operator=(DistanceResult&& other) noexcept ++ { ++ if (this != &other) ++ { ++ collision = other.collision; ++ minimum_distance = std::move(other.minimum_distance); ++ distances = std::move(other.distances); // Move map contents ++ } ++ return *this; ++ } + + /// Clear structure data + void clear() +@@ -344,6 +372,15 @@ struct DistanceResult + minimum_distance.clear(); + distances.clear(); + } ++ ++ /// Indicates if two objects were in collision ++ bool collision; ++ ++ /// Results data for the two objects with the minimum distance ++ DistanceResultsData minimum_distance; ++ ++ /// A map of distance data for each link in the req.active_components_only ++ DistanceMap distances; + }; + + /** \brief Representation of a collision checking result */ diff --git a/distros/noetic/patch/ros-noetic-moveit-core.win.patch b/distros/noetic/patch/ros-noetic-moveit-core.win.patch new file mode 100644 index 000000000..d28f68ba0 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-core.win.patch @@ -0,0 +1,12 @@ +diff --git a/moveit_core/CMakeLists.txt b/moveit_core/CMakeLists.txt +index e7ffb293c5..fb7666d196 100644 +--- a/moveit_core/CMakeLists.txt ++++ b/moveit_core/CMakeLists.txt +@@ -8,6 +8,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + endif() + include(cmake/moveit.cmake) + moveit_build_options() ++set(CMAKE_CXX_STANDARD 17) + + find_package(Boost REQUIRED system filesystem date_time thread iostreams regex ${EXTRA_BOOST_COMPONENTS}) + find_package(Eigen3 REQUIRED) diff --git a/distros/noetic/patch/ros-noetic-moveit-planners-ompl.osx.patch b/distros/noetic/patch/ros-noetic-moveit-planners-ompl.osx.patch new file mode 100644 index 000000000..3f7453ae4 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-planners-ompl.osx.patch @@ -0,0 +1,28 @@ +diff --git a/ompl_interface/CMakeLists.txt b/ompl_interface/CMakeLists.txt +index e44e0ecb1..bb1a6fdbb 100644 +--- a/ompl_interface/CMakeLists.txt ++++ b/ompl_interface/CMakeLists.txt +@@ -21,6 +21,23 @@ add_library(${MOVEIT_LIB_NAME} + ) + set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") + ++if(CMAKE_C_COMPILER_ID MATCHES "Clang") ++ set(OpenMP_C "${CMAKE_C_COMPILER}") ++ set(OpenMP_C_FLAGS "-fopenmp=libomp -Wno-unused-command-line-argument") ++ set(OpenMP_C_LIB_NAMES "libomp" "libgomp" "libiomp5") ++ set(OpenMP_libomp_LIBRARY ${OpenMP_C_LIB_NAMES}) ++ set(OpenMP_libgomp_LIBRARY ${OpenMP_C_LIB_NAMES}) ++ set(OpenMP_libiomp5_LIBRARY ${OpenMP_C_LIB_NAMES}) ++endif() ++if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") ++ set(OpenMP_CXX "${CMAKE_CXX_COMPILER}") ++ set(OpenMP_CXX_FLAGS "-fopenmp=libomp -Wno-unused-command-line-argument") ++ set(OpenMP_CXX_LIB_NAMES "libomp" "libgomp" "libiomp5") ++ set(OpenMP_libomp_LIBRARY ${OpenMP_CXX_LIB_NAMES}) ++ set(OpenMP_libgomp_LIBRARY ${OpenMP_CXX_LIB_NAMES}) ++ set(OpenMP_libiomp5_LIBRARY ${OpenMP_CXX_LIB_NAMES}) ++endif() ++ + find_package(OpenMP REQUIRED) + + target_link_libraries(${MOVEIT_LIB_NAME} ${OMPL_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) diff --git a/distros/noetic/patch/ros-noetic-moveit-resources-prbt-ikfast-manipulator-plugin.patch b/distros/noetic/patch/ros-noetic-moveit-resources-prbt-ikfast-manipulator-plugin.patch new file mode 100644 index 000000000..c9249fb48 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-resources-prbt-ikfast-manipulator-plugin.patch @@ -0,0 +1,28 @@ +diff --git a/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_solver.cpp b/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_solver.cpp +index 006fe89..ba54c8c 100644 +--- a/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_solver.cpp ++++ b/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_solver.cpp +@@ -25,10 +25,6 @@ + #include "ikfast.h" // found inside share/openrave-X.Y/python/ikfast.h + using namespace ikfast; + +-// check if the included ikfast version matches what this file was compiled with +-#define IKFAST_COMPILE_ASSERT(x) extern int __dummy[(int)x] +-IKFAST_COMPILE_ASSERT(IKFAST_VERSION==0x1000004a); +- + #include + #include + #include +diff --git a/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_moveit_plugin.cpp b/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_moveit_plugin.cpp +index 25ae8ee..cb7b915 100644 +--- a/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_moveit_plugin.cpp ++++ b/prbt_ikfast_manipulator_plugin/src/prbt_manipulator_ikfast_moveit_plugin.cpp +@@ -798,7 +798,7 @@ bool IKFastKinematicsPlugin::getPositionFK(const std::vector& link_ + return false; + } + +- IkReal angles[num_joints_]; ++ IkReal* angles = new IkReal[num_joints_]; + for (unsigned char i = 0; i < num_joints_; i++) + angles[i] = joint_angles[i]; + diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-benchmarks.win.patch b/distros/noetic/patch/ros-noetic-moveit-ros-benchmarks.win.patch new file mode 100644 index 000000000..9221fbeec --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-benchmarks.win.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0eb7714e8..9cf8c6a2f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -41,6 +41,9 @@ add_library(${MOVEIT_LIB_NAME} src/BenchmarkOptions.cpp + src/BenchmarkExecutor.cpp) + set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") + target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) ++if(WIN32) ++ target_link_libraries(${MOVEIT_LIB_NAME} ws2_32) ++endif() + + add_executable(moveit_run_benchmark src/RunBenchmark.cpp) + target_link_libraries(moveit_run_benchmark ${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-manipulation.win.patch b/distros/noetic/patch/ros-noetic-moveit-ros-manipulation.win.patch new file mode 100644 index 000000000..6114e5b96 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-manipulation.win.patch @@ -0,0 +1,34 @@ +diff --git a/pick_place/include/moveit/pick_place/pick_place.h b/pick_place/include/moveit/pick_place/pick_place.h +index 6c2118562..ec804cab5 100644 +--- a/pick_place/include/moveit/pick_place/pick_place.h ++++ b/pick_place/include/moveit/pick_place/pick_place.h +@@ -46,6 +46,18 @@ + #include + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_pick_place_planner_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_PICK_PLACE_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_PICK_PLACE_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_PICK_PLACE_DECL ++#endif ++ + namespace pick_place + { + MOVEIT_CLASS_FORWARD(PickPlace); +@@ -113,8 +125,8 @@ public: + class PickPlace : private boost::noncopyable, public std::enable_shared_from_this + { + public: +- static const std::string DISPLAY_PATH_TOPIC; +- static const std::string DISPLAY_GRASP_TOPIC; ++ static MOVEIT_PICK_PLACE_DECL const std::string DISPLAY_PATH_TOPIC; ++ static MOVEIT_PICK_PLACE_DECL const std::string DISPLAY_GRASP_TOPIC; + + // the amount of time (maximum) to wait for achieving a grasp posture + static const double DEFAULT_GRASP_POSTURE_COMPLETION_DURATION; // seconds diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-occupancy-map-monitor.osx.patch b/distros/noetic/patch/ros-noetic-moveit-ros-occupancy-map-monitor.osx.patch new file mode 100644 index 000000000..89b893d1a --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-occupancy-map-monitor.osx.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c62d9c555..d083863bd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,10 +14,6 @@ endif() + + find_package(Boost REQUIRED thread) + +-if(APPLE) +- find_package(X11 REQUIRED) +-endif(APPLE) +- + find_package(catkin REQUIRED COMPONENTS + moveit_core + moveit_msgs diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-perception.osx.patch b/distros/noetic/patch/ros-noetic-moveit-ros-perception.osx.patch new file mode 100644 index 000000000..cf4fb7cb0 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-perception.osx.patch @@ -0,0 +1,85 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e2e3dc26e..735d225f4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,11 @@ + cmake_minimum_required(VERSION 3.1.3) + project(moveit_ros_perception) + +-option(WITH_OPENGL "Build the parts that depend on OpenGL" ON) ++if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64") ++ option(WITH_OPENGL "Build the parts that depend on OpenGL" OFF) ++else() ++ option(WITH_OPENGL "Build the parts that depend on OpenGL" ON) ++endif() + + find_package(Boost REQUIRED thread) + +@@ -12,6 +16,7 @@ if(WITH_OPENGL) + endif() + find_package(OpenGL REQUIRED) + find_package(GLEW REQUIRED) ++ list(INSERT CMAKE_FRAMEWORK_PATH 0 /System/Library/Frameworks) + find_package(GLUT REQUIRED) + set(gl_LIBS ${gl_LIBS} ${OPENGL_LIBRARIES}) + set(perception_GL_INCLUDE_DIRS "mesh_filter/include" "depth_image_octomap_updater/include") +@@ -45,6 +50,25 @@ find_package(catkin REQUIRED COMPONENTS + moveit_build_options() + + find_package(Eigen3 REQUIRED) ++ ++ ++ if(CMAKE_C_COMPILER_ID MATCHES "Clang") ++ set(OpenMP_C "${CMAKE_C_COMPILER}") ++ set(OpenMP_C_FLAGS "-fopenmp=libomp -Wno-unused-command-line-argument") ++ set(OpenMP_C_LIB_NAMES "libomp" "libgomp" "libiomp5") ++ set(OpenMP_libomp_LIBRARY ${OpenMP_C_LIB_NAMES}) ++ set(OpenMP_libgomp_LIBRARY ${OpenMP_C_LIB_NAMES}) ++ set(OpenMP_libiomp5_LIBRARY ${OpenMP_C_LIB_NAMES}) ++ endif() ++ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") ++ set(OpenMP_CXX "${CMAKE_CXX_COMPILER}") ++ set(OpenMP_CXX_FLAGS "-fopenmp=libomp -Wno-unused-command-line-argument") ++ set(OpenMP_CXX_LIB_NAMES "libomp" "libgomp" "libiomp5") ++ set(OpenMP_libomp_LIBRARY ${OpenMP_CXX_LIB_NAMES}) ++ set(OpenMP_libgomp_LIBRARY ${OpenMP_CXX_LIB_NAMES}) ++ set(OpenMP_libiomp5_LIBRARY ${OpenMP_CXX_LIB_NAMES}) ++ endif() ++ + find_package(OpenMP REQUIRED) + find_package(OpenCV) + +diff --git a/mesh_filter/src/gl_renderer.cpp b/mesh_filter/src/gl_renderer.cpp +index 834d2b4ed..8ba0300b2 100644 +--- a/mesh_filter/src/gl_renderer.cpp ++++ b/mesh_filter/src/gl_renderer.cpp +@@ -37,11 +37,13 @@ + #include + #ifdef __APPLE__ + #include ++#include ++#include + #else + #include +-#endif + #include + #include ++#endif + #include + #include + #include +@@ -399,8 +401,13 @@ void mesh_filter::GLRenderer::createGLContext() + glutHideWindow(); + + for (int i = 0; i < 10; ++i) ++ { ++#ifdef __APPLE__ ++ glutCheckLoop(); ++#else + glutMainLoopEvent(); +- ++#endif ++ } + context_[thread_id] = std::pair(1, window_id); + } + else diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-perception.win.patch b/distros/noetic/patch/ros-noetic-moveit-ros-perception.win.patch new file mode 100644 index 000000000..50ab6b2d4 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-perception.win.patch @@ -0,0 +1,123 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e2e3dc2..a6a31f8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -16,8 +16,17 @@ if(WITH_OPENGL) + set(gl_LIBS ${gl_LIBS} ${OPENGL_LIBRARIES}) + set(perception_GL_INCLUDE_DIRS "mesh_filter/include" "depth_image_octomap_updater/include") + set(SYSTEM_GL_INCLUDE_DIRS ${GLEW_INCLUDE_DIR} ${GLUT_INCLUDE_DIR}) ++ if(TARGET GLEW::glew) ++ set(GLEW_LIBRARIES GLEW::glew) ++ endif() + endif(WITH_OPENGL) + ++if(MSVC AND ${MSVC_VERSION} GREATER_EQUAL 1915) ++ # You must acknowledge that you understand MSVC resolved a byte alignment issue in this compiler ++ # We get this due to using Eigen objects and allocating those objects with make_shared ++ add_compile_definitions(_ENABLE_EXTENDED_ALIGNED_STORAGE) ++endif() ++ + if(APPLE) + find_package(X11 REQUIRED) + endif(APPLE) +diff --git a/mesh_filter/include/moveit/mesh_filter/stereo_camera_model.h b/mesh_filter/include/moveit/mesh_filter/stereo_camera_model.h +index 5ffd817..6445b8d 100644 +--- a/mesh_filter/include/moveit/mesh_filter/stereo_camera_model.h ++++ b/mesh_filter/include/moveit/mesh_filter/stereo_camera_model.h +@@ -39,6 +39,18 @@ + #include + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_mesh_filter_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_MESH_FILTER_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_MESH_FILTER_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_MESH_FILTER_DECL ++#endif ++ + namespace mesh_filter + { + /** +@@ -148,18 +160,18 @@ public: + }; + + /** \brief predefined sensor model for OpenNI compatible devices (e.g., PrimeSense, Kinect, Asus Xtion) */ +- static const StereoCameraModel::Parameters& REGISTERED_PSDK_PARAMS; // NOLINT(readability-identifier-naming) ++ MOVEIT_MESH_FILTER_DECL static const StereoCameraModel::Parameters& REGISTERED_PSDK_PARAMS; // NOLINT(readability-identifier-naming) + + /** \brief source code of the vertex shader used to render the meshes*/ +- static const std::string RENDER_VERTEX_SHADER_SOURCE; ++ MOVEIT_MESH_FILTER_DECL static const std::string RENDER_VERTEX_SHADER_SOURCE; + + /** \brief source code of the fragment shader used to render the meshes*/ +- static const std::string RENDER_FRAGMENT_SHADER_SOURCE; ++ MOVEIT_MESH_FILTER_DECL static const std::string RENDER_FRAGMENT_SHADER_SOURCE; + + /** \brief source code of the vertex shader used to filter the depth map*/ +- static const std::string FILTER_VERTEX_SHADER_SOURCE; ++ MOVEIT_MESH_FILTER_DECL static const std::string FILTER_VERTEX_SHADER_SOURCE; + + /** \brief source code of the fragment shader used to filter the depth map*/ +- static const std::string FILTER_FRAGMENT_SHADER_SOURCE; ++ MOVEIT_MESH_FILTER_DECL static const std::string FILTER_FRAGMENT_SHADER_SOURCE; + }; + } // namespace mesh_filter +diff --git a/mesh_filter/src/gl_renderer.cpp b/mesh_filter/src/gl_renderer.cpp +index 834d2b4..9be65c6 100644 +--- a/mesh_filter/src/gl_renderer.cpp ++++ b/mesh_filter/src/gl_renderer.cpp +@@ -51,7 +51,7 @@ + + using namespace std; + +-mesh_filter::GLRenderer::GLRenderer(unsigned width, unsigned height, float near, float far) ++mesh_filter::GLRenderer::GLRenderer(unsigned width, unsigned height, float _near, float _far) + : width_(width) + , height_(height) + , fbo_id_(0) +@@ -59,8 +59,8 @@ mesh_filter::GLRenderer::GLRenderer(unsigned width, unsigned height, float near, + , rgb_id_(0) + , depth_id_(0) + , program_(0) +- , near_(near) +- , far_(far) ++ , near_(_near) ++ , far_(_far) + , fx_(width >> 1) // 90 degree wide angle + , fy_(fx_) + , cx_(width >> 1) +@@ -88,14 +88,14 @@ void mesh_filter::GLRenderer::setBufferSize(unsigned width, unsigned height) + } + } + +-void mesh_filter::GLRenderer::setClippingRange(float near, float far) ++void mesh_filter::GLRenderer::setClippingRange(float _near, float _far) + { + if (near_ <= 0) + throw runtime_error("near clipping plane distance needs to be larger than 0"); + if (far_ <= near_) + throw runtime_error("far clipping plane needs to be larger than near clipping plane distance"); +- near_ = near; +- far_ = far; ++ near_ = _near; ++ far_ = _far; + } + + void mesh_filter::GLRenderer::setCameraParameters(float fx, float fy, float cx, float cy) +diff --git a/mesh_filter/src/stereo_camera_model.cpp b/mesh_filter/src/stereo_camera_model.cpp +index eaa9d54..370053f 100644 +--- a/mesh_filter/src/stereo_camera_model.cpp ++++ b/mesh_filter/src/stereo_camera_model.cpp +@@ -34,6 +34,7 @@ + + /* Author: Suat Gedikli */ + ++#include + #include + #include + diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-planning-interface.patch b/distros/noetic/patch/ros-noetic-moveit-ros-planning-interface.patch new file mode 100644 index 000000000..1fe403c81 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-planning-interface.patch @@ -0,0 +1,181 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 73f1aa3..67528cf 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -19,6 +19,9 @@ find_package(catkin REQUIRED COMPONENTS + ) + moveit_build_options() + ++find_package(PkgConfig REQUIRED) ++pkg_check_modules(EIGENPY REQUIRED eigenpy) ++ + find_package(PythonInterp REQUIRED) + find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED) + +@@ -77,8 +80,11 @@ include_directories(SYSTEM + ${catkin_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} + ${EIGEN3_INCLUDE_DIRS} ++ ${EIGENPY_INCLUDE_DIRS} + ${PYTHON_INCLUDE_DIRS}) + ++link_directories(${EIGENPY_LIBRARY_DIRS}) ++ + add_subdirectory(py_bindings_tools) + add_subdirectory(common_planning_interface_objects) + add_subdirectory(planning_scene_interface) +diff --git a/move_group_interface/CMakeLists.txt b/move_group_interface/CMakeLists.txt +index d822174..5b46d37 100644 +--- a/move_group_interface/CMakeLists.txt ++++ b/move_group_interface/CMakeLists.txt +@@ -6,13 +6,20 @@ target_link_libraries(${MOVEIT_LIB_NAME} moveit_common_planning_interface_object + add_dependencies(${MOVEIT_LIB_NAME} ${catkin_EXPORTED_TARGETS}) + + add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_move_group.cpp) +-target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} eigenpy::eigenpy ${PYTHON_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES} moveit_py_bindings_tools) ++target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} eigenpy::eigenpy ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${EIGENPY_LIBRARIES} moveit_py_bindings_tools) ++if(NOT APPLE) ++ target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES}) ++else() ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") ++endif() + add_dependencies(${MOVEIT_LIB_NAME}_python ${catkin_EXPORTED_TARGETS}) + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES OUTPUT_NAME _moveit_move_group_interface PREFIX "") + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}") + if(WIN32) + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .pyd) ++else() ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .so) + endif(WIN32) + + install(TARGETS ${MOVEIT_LIB_NAME} +diff --git a/move_group_interface/include/moveit/move_group_interface/move_group_interface.h b/move_group_interface/include/moveit/move_group_interface/move_group_interface.h +index e54c676..7527fed 100644 +--- a/move_group_interface/include/moveit/move_group_interface/move_group_interface.h ++++ b/move_group_interface/include/moveit/move_group_interface/move_group_interface.h +@@ -56,6 +56,20 @@ + #include + #include + ++#include ++ ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_move_group_interface_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_MOVE_GROUP_INTERFACE_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_MOVE_GROUP_INTERFACE_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_MOVE_GROUP_INTERFACE_DECL ++#endif ++ + namespace moveit + { + /** \brief Simple interface to MoveIt components */ +@@ -70,7 +84,7 @@ MOVEIT_CLASS_FORWARD(MoveGroupInterface); // Defines MoveGroupInterfacePtr, Con + \brief Client class to conveniently use the ROS interfaces provided by the move_group node. + + This class includes many default settings to make things easy to use. */ +-class MoveGroupInterface ++class MOVEIT_MOVE_GROUP_INTERFACE_DECL MoveGroupInterface + { + public: + /** \brief Default goal joint tolerance (0.1mm) if not specified with {robot description name}_kinematics/{joint model +diff --git a/planning_scene_interface/CMakeLists.txt b/planning_scene_interface/CMakeLists.txt +index 6a3b1a3..d8c3055 100644 +--- a/planning_scene_interface/CMakeLists.txt ++++ b/planning_scene_interface/CMakeLists.txt +@@ -6,11 +6,18 @@ target_link_libraries(${MOVEIT_LIB_NAME} moveit_common_planning_interface_object + + add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_planning_scene_interface.cpp) + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") +-target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} ${PYTHON_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES} moveit_py_bindings_tools) ++target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} moveit_py_bindings_tools) ++if(NOT APPLE) ++ target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES}) ++else() ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") ++endif() + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES OUTPUT_NAME _moveit_planning_scene_interface PREFIX "") + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}") + if(WIN32) + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .pyd) ++else() ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .so) + endif(WIN32) + + install(TARGETS ${MOVEIT_LIB_NAME} +diff --git a/py_bindings_tools/CMakeLists.txt b/py_bindings_tools/CMakeLists.txt +index 1f82d7e..95b4d41 100644 +--- a/py_bindings_tools/CMakeLists.txt ++++ b/py_bindings_tools/CMakeLists.txt +@@ -1,8 +1,16 @@ + set(MOVEIT_LIB_NAME moveit_py_bindings_tools) + ++find_package(PythonInterp REQUIRED) ++find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED) ++ + add_library(${MOVEIT_LIB_NAME} src/roscpp_initializer.cpp) + set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") +-target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES}) ++target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) ++if(NOT APPLE) ++ target_link_libraries(${MOVEIT_LIB_NAME} ${PYTHON_LIBRARIES}) ++else() ++ set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") ++endif(NOT APPLE) + + install(TARGETS ${MOVEIT_LIB_NAME} + ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} +@@ -10,13 +18,20 @@ install(TARGETS ${MOVEIT_LIB_NAME} + RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}) + + add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_roscpp_initializer.cpp) +-target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} ${PYTHON_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) ++target_link_libraries(${MOVEIT_LIB_NAME}_python ${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) ++if(NOT APPLE) ++ target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES}) ++endif(NOT APPLE) + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES OUTPUT_NAME _moveit_roscpp_initializer PREFIX "") + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}") + if(WIN32) + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .pyd) + endif(WIN32) ++if(APPLE) ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .so) ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") ++endif(APPLE) + + install(TARGETS ${MOVEIT_LIB_NAME}_python + DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION}) +diff --git a/robot_interface/CMakeLists.txt b/robot_interface/CMakeLists.txt +index 3944155..2d56b08 100644 +--- a/robot_interface/CMakeLists.txt ++++ b/robot_interface/CMakeLists.txt +@@ -1,13 +1,21 @@ + set(MOVEIT_LIB_NAME moveit_robot_interface) + + add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_robot_interface.cpp) +-target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ++target_link_libraries(${MOVEIT_LIB_NAME}_python ${catkin_LIBRARIES} ${Boost_LIBRARIES} + moveit_common_planning_interface_objects moveit_py_bindings_tools) ++if(NOT APPLE) ++ target_link_libraries(${MOVEIT_LIB_NAME}_python ${PYTHON_LIBRARIES}) ++else() ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") ++endif(NOT APPLE) ++ + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES OUTPUT_NAME _moveit_robot_interface PREFIX "") + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}") + if(WIN32) + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .pyd) ++else() ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .so) + endif(WIN32) + + install(TARGETS ${MOVEIT_LIB_NAME}_python diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-planning.win.patch b/distros/noetic/patch/ros-noetic-moveit-ros-planning.win.patch new file mode 100644 index 000000000..e900228ea --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-planning.win.patch @@ -0,0 +1,146 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2f73370cbd..5f2620eb0a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -21,7 +21,7 @@ find_package(catkin REQUIRED COMPONENTS + tf2_ros + ) + moveit_build_options() +- ++set(CMAKE_CXX_STANDARD 17) + find_package(Eigen3 REQUIRED) + + generate_dynamic_reconfigure_options( +diff --git a/planning_pipeline/include/moveit/planning_pipeline/planning_pipeline.h b/planning_pipeline/include/moveit/planning_pipeline/planning_pipeline.h +index e7514f670..530b3929a 100644 +--- a/planning_pipeline/include/moveit/planning_pipeline/planning_pipeline.h ++++ b/planning_pipeline/include/moveit/planning_pipeline/planning_pipeline.h +@@ -43,6 +43,18 @@ + + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_planning_pipeline_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_PLANNING_PIPELINE_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_PLANNING_PIPELINE_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_PLANNING_PIPELINE_DECL ++#endif ++ + /** \brief Planning pipeline */ + namespace planning_pipeline + { +@@ -57,15 +69,15 @@ class PlanningPipeline + public: + /** \brief When motion plans are computed and they are supposed to be automatically displayed, they are sent to this + * topic (moveit_msgs::DisplauTrajectory) */ +- static const std::string DISPLAY_PATH_TOPIC; ++ static MOVEIT_PLANNING_PIPELINE_DECL const std::string DISPLAY_PATH_TOPIC; + + /** \brief When motion planning requests are received and they are supposed to be automatically published, they are + * sent to this topic (moveit_msgs::MotionPlanRequest) */ +- static const std::string MOTION_PLAN_REQUEST_TOPIC; ++ static MOVEIT_PLANNING_PIPELINE_DECL const std::string MOTION_PLAN_REQUEST_TOPIC; + + /** \brief When contacts are found in the solution path reported by a planner, they can be published as markers on + * this topic (visualization_msgs::MarkerArray) */ +- static const std::string MOTION_CONTACTS_TOPIC; ++ static MOVEIT_PLANNING_PIPELINE_DECL const std::string MOTION_CONTACTS_TOPIC; + + /** \brief Given a robot model (\e model), a node handle (\e nh), initialize the planning pipeline. + \param model The robot model for which this pipeline is initialized. +diff --git a/planning_scene_monitor/include/moveit/planning_scene_monitor/planning_scene_monitor.h b/planning_scene_monitor/include/moveit/planning_scene_monitor/planning_scene_monitor.h +index b0716f346..aa92407a8 100644 +--- a/planning_scene_monitor/include/moveit/planning_scene_monitor/planning_scene_monitor.h ++++ b/planning_scene_monitor/include/moveit/planning_scene_monitor/planning_scene_monitor.h +@@ -51,6 +51,18 @@ + #include + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_planning_scene_monitor_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_PLANNING_SCENE_MONITOR_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_PLANNING_SCENE_MONITOR_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_PLANNING_SCENE_MONITOR_DECL ++#endif ++ + namespace planning_scene_monitor + { + MOVEIT_CLASS_FORWARD(PlanningSceneMonitor); +@@ -81,27 +93,27 @@ public: + }; + + /// The name of the topic used by default for receiving joint states +- static const std::string DEFAULT_JOINT_STATES_TOPIC; // "/joint_states" ++ static MOVEIT_PLANNING_SCENE_MONITOR_DECL const std::string DEFAULT_JOINT_STATES_TOPIC; // "/joint_states" + + /// The name of the topic used by default for attached collision objects +- static const std::string DEFAULT_ATTACHED_COLLISION_OBJECT_TOPIC; // "/attached_collision_object" ++ static MOVEIT_PLANNING_SCENE_MONITOR_DECL const std::string DEFAULT_ATTACHED_COLLISION_OBJECT_TOPIC; // "/attached_collision_object" + + /// The name of the topic used by default for receiving collision objects in the world +- static const std::string DEFAULT_COLLISION_OBJECT_TOPIC; // "/collision_object" ++ static MOVEIT_PLANNING_SCENE_MONITOR_DECL const std::string DEFAULT_COLLISION_OBJECT_TOPIC; // "/collision_object" + + /// The name of the topic used by default for receiving geometry information about a planning scene (complete + /// overwrite of world geometry) +- static const std::string DEFAULT_PLANNING_SCENE_WORLD_TOPIC; // "/planning_scene_world" ++ static MOVEIT_PLANNING_SCENE_MONITOR_DECL const std::string DEFAULT_PLANNING_SCENE_WORLD_TOPIC; // "/planning_scene_world" + + /// The name of the topic used by default for receiving full planning scenes or planning scene diffs +- static const std::string DEFAULT_PLANNING_SCENE_TOPIC; // "/planning_scene" ++ static MOVEIT_PLANNING_SCENE_MONITOR_DECL const std::string DEFAULT_PLANNING_SCENE_TOPIC; // "/planning_scene" + + /// The name of the service used by default for requesting full planning scene state +- static const std::string DEFAULT_PLANNING_SCENE_SERVICE; // "/get_planning_scene" ++ static MOVEIT_PLANNING_SCENE_MONITOR_DECL const std::string DEFAULT_PLANNING_SCENE_SERVICE; // "/get_planning_scene" + + /// The name of the topic used by default for publishing the monitored planning scene (this is without "/" in the + /// name, so the topic is prefixed by the node name) +- static const std::string MONITORED_PLANNING_SCENE_TOPIC; // "monitored_planning_scene" ++ static MOVEIT_PLANNING_SCENE_MONITOR_DECL const std::string MONITORED_PLANNING_SCENE_TOPIC; // "monitored_planning_scene" + + /** @brief Constructor + * @param robot_description The name of the ROS parameter that contains the URDF (in string format) +diff --git a/trajectory_execution_manager/include/moveit/trajectory_execution_manager/trajectory_execution_manager.h b/trajectory_execution_manager/include/moveit/trajectory_execution_manager/trajectory_execution_manager.h +index 22a7ee9ee..c2945f930 100644 +--- a/trajectory_execution_manager/include/moveit/trajectory_execution_manager/trajectory_execution_manager.h ++++ b/trajectory_execution_manager/include/moveit/trajectory_execution_manager/trajectory_execution_manager.h +@@ -49,6 +49,18 @@ + + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_trajectory_execution_manager_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_TRAJECTORY_EXECUTION_MANAGER_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_TRAJECTORY_EXECUTION_MANAGER_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_TRAJECTORY_EXECUTION_MANAGER_DECL ++#endif ++ + namespace trajectory_execution_manager + { + MOVEIT_CLASS_FORWARD(TrajectoryExecutionManager); +@@ -59,7 +71,7 @@ MOVEIT_CLASS_FORWARD(TrajectoryExecutionManager); + class TrajectoryExecutionManager + { + public: +- static const std::string EXECUTION_EVENT_TOPIC; ++ static MOVEIT_TRAJECTORY_EXECUTION_MANAGER_DECL const std::string EXECUTION_EVENT_TOPIC; + + /// Definition of the function signature that is called when the execution of all the pushed trajectories completes. + /// The status of the overall execution is passed as argument + diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-robot-interaction.win.patch b/distros/noetic/patch/ros-noetic-moveit-ros-robot-interaction.win.patch new file mode 100644 index 000000000..5daf099fc --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-robot-interaction.win.patch @@ -0,0 +1,35 @@ +diff --git a/moveit_ros/robot_interaction/include/moveit/robot_interaction/kinematic_options_map.h b/moveit_ros/robot_interaction/include/moveit/robot_interaction/kinematic_options_map.h +index 40ebd87d1..8d7a8972a 100644 +--- a/moveit_ros/robot_interaction/include/moveit/robot_interaction/kinematic_options_map.h ++++ b/moveit_ros/robot_interaction/include/moveit/robot_interaction/kinematic_options_map.h +@@ -40,6 +40,18 @@ + #include + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_robot_interaction_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_ROBOT_INTERACTION_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_ROBOT_INTERACTION_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_ROBOT_INTERACTION_DECL ++#endif ++ + namespace robot_interaction + { + // Maintains a set of KinematicOptions with a key/value mapping and a default +@@ -51,10 +63,10 @@ public: + KinematicOptionsMap(); + + /// When used as \e key this means the default value +- static const std::string DEFAULT; ++ static MOVEIT_ROBOT_INTERACTION_DECL const std::string DEFAULT; + + /// When used as \e key this means set ALL keys (including default) +- static const std::string ALL; ++ static MOVEIT_ROBOT_INTERACTION_DECL const std::string ALL; + + /// Set \e state using inverse kinematics. diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-visualization.patch b/distros/noetic/patch/ros-noetic-moveit-ros-visualization.patch new file mode 100644 index 000000000..fceeae548 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-visualization.patch @@ -0,0 +1,12 @@ +diff --git a/moveit_ros/visualization/CMakeLists.txt b/moveit_ros/visualization/CMakeLists.txt +index bba6034ea8..f934c68f7a 100644 +--- a/moveit_ros/visualization/CMakeLists.txt ++++ b/moveit_ros/visualization/CMakeLists.txt +@@ -25,6 +25,7 @@ find_package(catkin REQUIRED COMPONENTS + object_recognition_msgs + ) + moveit_build_options() ++set(CMAKE_CXX_STANDARD 17) + + # TODO: Remove when Kinetic support is dropped + if(rviz_VERSION VERSION_LESS 1.13.1) # Does rviz support TF2? diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-visualization.win.patch b/distros/noetic/patch/ros-noetic-moveit-ros-visualization.win.patch new file mode 100644 index 000000000..37d2452ba --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-visualization.win.patch @@ -0,0 +1,35 @@ + /// @param state the state to set +diff --git a/planning_scene_rviz_plugin/include/moveit/planning_scene_rviz_plugin/planning_scene_display.h b/planning_scene_rviz_plugin/include/moveit/planning_scene_rviz_plugin/planning_scene_display.h +index 99f9ab863..69ce6a7c1 100644 +--- a/planning_scene_rviz_plugin/include/moveit/planning_scene_rviz_plugin/planning_scene_display.h ++++ b/planning_scene_rviz_plugin/include/moveit/planning_scene_rviz_plugin/planning_scene_display.h +@@ -45,6 +45,20 @@ + #include + #endif + ++#include ++ ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_planning_scene_rviz_plugin_core_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_PLANNING_SCENE_RVIZ_PLUGIN_CORE_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_PLANNING_SCENE_RVIZ_PLUGIN_CORE_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_PLANNING_SCENE_RVIZ_PLUGIN_CORE_DECL ++#endif ++ + namespace Ogre + { + class SceneNode; +@@ -64,7 +78,7 @@ class EnumProperty; + + namespace moveit_rviz_plugin + { +-class PlanningSceneDisplay : public rviz::Display ++class MOVEIT_PLANNING_SCENE_RVIZ_PLUGIN_CORE_DECL PlanningSceneDisplay : public rviz::Display + { + Q_OBJECT + diff --git a/distros/noetic/patch/ros-noetic-moveit-ros-warehouse.win.patch b/distros/noetic/patch/ros-noetic-moveit-ros-warehouse.win.patch new file mode 100644 index 000000000..21d7f313d --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-ros-warehouse.win.patch @@ -0,0 +1,152 @@ +diff --git a/warehouse/include/moveit/warehouse/constraints_storage.h b/warehouse/include/moveit/warehouse/constraints_storage.h +index 337a57dc5..e6dfa9d27 100644 +--- a/warehouse/include/moveit/warehouse/constraints_storage.h ++++ b/warehouse/include/moveit/warehouse/constraints_storage.h +@@ -40,6 +40,18 @@ + #include + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_warehouse_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_WAREHOUSE_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_WAREHOUSE_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_WAREHOUSE_DECL ++#endif ++ + namespace moveit_warehouse + { + typedef warehouse_ros::MessageWithMetadata::ConstPtr ConstraintsWithMetadata; +@@ -50,11 +62,11 @@ MOVEIT_CLASS_FORWARD(ConstraintsStorage); + class ConstraintsStorage : public MoveItMessageStorage + { + public: +- static const std::string DATABASE_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string DATABASE_NAME; + +- static const std::string CONSTRAINTS_ID_NAME; +- static const std::string CONSTRAINTS_GROUP_NAME; +- static const std::string ROBOT_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string CONSTRAINTS_ID_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string CONSTRAINTS_GROUP_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string ROBOT_NAME; + + ConstraintsStorage(warehouse_ros::DatabaseConnection::Ptr conn); + +diff --git a/warehouse/include/moveit/warehouse/planning_scene_storage.h b/warehouse/include/moveit/warehouse/planning_scene_storage.h +index e7899729a..1db257174 100644 +--- a/warehouse/include/moveit/warehouse/planning_scene_storage.h ++++ b/warehouse/include/moveit/warehouse/planning_scene_storage.h +@@ -42,6 +42,18 @@ + #include + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_warehouse_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_WAREHOUSE_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_WAREHOUSE_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_WAREHOUSE_DECL ++#endif ++ + namespace moveit_warehouse + { + typedef warehouse_ros::MessageWithMetadata::ConstPtr PlanningSceneWithMetadata; +@@ -57,10 +69,10 @@ MOVEIT_CLASS_FORWARD(PlanningSceneStorage); + class PlanningSceneStorage : public MoveItMessageStorage + { + public: +- static const std::string DATABASE_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string DATABASE_NAME; + +- static const std::string PLANNING_SCENE_ID_NAME; +- static const std::string MOTION_PLAN_REQUEST_ID_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string PLANNING_SCENE_ID_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string MOTION_PLAN_REQUEST_ID_NAME; + + PlanningSceneStorage(warehouse_ros::DatabaseConnection::Ptr conn); + +diff --git a/warehouse/include/moveit/warehouse/state_storage.h b/warehouse/include/moveit/warehouse/state_storage.h +index e008a5fbd..83f34a01c 100644 +--- a/warehouse/include/moveit/warehouse/state_storage.h ++++ b/warehouse/include/moveit/warehouse/state_storage.h +@@ -40,6 +40,18 @@ + #include + #include + ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_warehouse_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_WAREHOUSE_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_WAREHOUSE_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_WAREHOUSE_DECL ++#endif ++ + namespace moveit_warehouse + { + typedef warehouse_ros::MessageWithMetadata::ConstPtr RobotStateWithMetadata; +@@ -50,10 +62,10 @@ MOVEIT_CLASS_FORWARD(RobotStateStorage); + class RobotStateStorage : public MoveItMessageStorage + { + public: +- static const std::string DATABASE_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string DATABASE_NAME; + +- static const std::string STATE_NAME; +- static const std::string ROBOT_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string STATE_NAME; ++ static MOVEIT_WAREHOUSE_DECL const std::string ROBOT_NAME; + + RobotStateStorage(warehouse_ros::DatabaseConnection::Ptr conn); + +diff --git a/warehouse/src/warehouse_connector.cpp b/warehouse/src/warehouse_connector.cpp +index d15e3cda8..216dfd6a1 100644 +--- a/warehouse/src/warehouse_connector.cpp ++++ b/warehouse/src/warehouse_connector.cpp +@@ -36,7 +36,9 @@ + + #include + #include ++#ifndef WIN32 + #include ++#endif + #include + #include + +@@ -48,12 +50,15 @@ WarehouseConnector::WarehouseConnector(const std::string& dbexec) : dbexec_(dbex + + WarehouseConnector::~WarehouseConnector() + { ++#ifndef WIN32 + if (child_pid_ != 0) + kill(child_pid_, SIGTERM); ++#endif + } + + bool WarehouseConnector::connectToDatabase(const std::string& dirname) + { ++#ifndef WIN32 + if (child_pid_ != 0) + kill(child_pid_, SIGTERM); + +@@ -98,5 +103,8 @@ bool WarehouseConnector::connectToDatabase(const std::string& dirname) + ros::WallDuration(1.0).sleep(); + } + return true; ++#else ++ return false; ++#endif + } + } // namespace moveit_warehouse diff --git a/distros/noetic/patch/ros-noetic-moveit-servo.patch b/distros/noetic/patch/ros-noetic-moveit-servo.patch new file mode 100644 index 000000000..0c25814f2 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-servo.patch @@ -0,0 +1,26 @@ +diff --git a/include/moveit_servo/servo_calcs.h b/include/moveit_servo/servo_calcs.h +index c67afb6e0..5d2488284 100644 +--- a/include/moveit_servo/servo_calcs.h ++++ b/include/moveit_servo/servo_calcs.h +@@ -265,7 +265,7 @@ private: + + const int gazebo_redundant_message_count_ = 30; + +- uint num_joints_; ++ std::size_t num_joints_; + + // True -> allow drift in this dimension. In the command frame. [x, y, z, roll, pitch, yaw] + std::array drift_dimensions_ = { { false, false, false, false, false, false } }; +diff --git a/src/cpp_interface_example/cpp_interface_example.cpp b/src/cpp_interface_example/cpp_interface_example.cpp +index 53e919ee3..028fb2fc0 100644 +--- a/src/cpp_interface_example/cpp_interface_example.cpp ++++ b/src/cpp_interface_example/cpp_interface_example.cpp +@@ -108,7 +108,7 @@ int main(int argc, char** argv) + auto joint_servo_pub = nh.advertise(servo.getParameters().joint_command_in_topic, 1); + + ros::Rate cmd_rate(100); +- uint num_commands = 0; ++ std::size_t num_commands = 0; + + // Send a few Cartesian velocity commands + while (ros::ok() && num_commands < 200) diff --git a/distros/noetic/patch/ros-noetic-moveit-setup-assistant.win.patch b/distros/noetic/patch/ros-noetic-moveit-setup-assistant.win.patch new file mode 100644 index 000000000..2e6ac07f1 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-setup-assistant.win.patch @@ -0,0 +1,61 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c39d7cfe2..9fc8981b0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -50,6 +50,7 @@ add_definitions(-DQT_NO_KEYWORDS) + find_package(PkgConfig) + pkg_check_modules(YAMLCPP REQUIRED yaml-cpp>=0.5) + include_directories(SYSTEM ${YAMLCPP_INCLUDE_DIRS}) ++link_directories(${YAMLCPP_LIBRARY_DIRS}) + + catkin_package( + INCLUDE_DIRS +diff --git a/src/tools/collision_linear_model.h b/src/tools/collision_linear_model.h +index 9cd06f5911..283145c1d3 100644 +--- a/src/tools/collision_linear_model.h ++++ b/src/tools/collision_linear_model.h +@@ -41,8 +41,21 @@ + #include + + #include "collision_matrix_model.h" ++#include + +-class CollisionLinearModel : public QAbstractProxyModel ++// Import/export for windows dll's and visibility for gcc shared libraries. ++ ++#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries ++ #ifdef moveit_setup_assistant_tools_EXPORTS // we are building a shared lib/dll ++ #define MOVEIT_SETUP_ASSISTANT_TOOLS_DECL ROS_HELPER_EXPORT ++ #else // we are using shared lib/dll ++ #define MOVEIT_SETUP_ASSISTANT_TOOLS_DECL ROS_HELPER_IMPORT ++ #endif ++#else // ros is being built around static libraries ++ #define MOVEIT_SETUP_ASSISTANT_TOOLS_DECL ++#endif ++ ++class MOVEIT_SETUP_ASSISTANT_TOOLS_DECL CollisionLinearModel : public QAbstractProxyModel + { + Q_OBJECT + +@@ -71,7 +84,7 @@ class CollisionLinearModel : public QAbstractProxyModel + }; + + /** proxy model to allow for sorting of CollisionLinearModel, considering sorting history */ +-class SortFilterProxyModel : public QSortFilterProxyModel ++class MOVEIT_SETUP_ASSISTANT_TOOLS_DECL SortFilterProxyModel : public QSortFilterProxyModel + { + Q_OBJECT + +diff --git a/src/tools/moveit_config_data.cpp b/src/tools/moveit_config_data.cpp +index ff2e3aa27..faf9a760d 100644 +--- a/src/tools/moveit_config_data.cpp ++++ b/src/tools/moveit_config_data.cpp +@@ -881,7 +881,7 @@ srdf::Model::GroupState MoveItConfigData::getDefaultStartPose() + if (!srdf_->group_states_.empty()) + return srdf_->group_states_[0]; + else +- return srdf::Model::GroupState{ .name_ = "todo_state_name", .group_ = "todo_group_name", .joint_values_ = {} }; ++ return srdf::Model::GroupState{ "todo_state_name", "todo_group_name", {} }; + } + + // ****************************************************************************************** diff --git a/distros/noetic/patch/ros-noetic-moveit-visual-tools.patch b/distros/noetic/patch/ros-noetic-moveit-visual-tools.patch new file mode 100644 index 000000000..fb0478713 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-visual-tools.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7b0544b..67994d2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -43,7 +43,7 @@ catkin_package( + + ## Build + include_directories(include) +-include_directories(SYSTEM ++include_directories( + ${catkin_INCLUDE_DIRS} + ${EIGEN3_INCLUDE_DIRS} + ) diff --git a/distros/noetic/patch/ros-noetic-moveit-visual-tools.win.patch b/distros/noetic/patch/ros-noetic-moveit-visual-tools.win.patch new file mode 100644 index 000000000..c04a83552 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-moveit-visual-tools.win.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2663c31..3344153 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -51,8 +51,6 @@ add_library(${PROJECT_NAME} + src/imarker_robot_state.cpp + src/imarker_end_effector.cpp + ) +-target_compile_options(${PROJECT_NAME} PRIVATE +- -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls) + set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${${PROJECT_NAME}_VERSION}) + add_dependencies(${PROJECT_NAME} graph_msgs_generate_messages_cpp) + target_link_libraries(${PROJECT_NAME} +@@ -61,8 +59,6 @@ target_link_libraries(${PROJECT_NAME} + + # Demo executable + add_executable(${PROJECT_NAME}_demo src/${PROJECT_NAME}_demo.cpp) +-target_compile_options(${PROJECT_NAME}_demo PRIVATE +- -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls) + target_link_libraries(${PROJECT_NAME}_demo + ${catkin_LIBRARIES} ${PROJECT_NAME} + ) diff --git a/distros/noetic/patch/ros-noetic-movie-publisher.patch b/distros/noetic/patch/ros-noetic-movie-publisher.patch new file mode 100644 index 000000000..f8cc68561 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-movie-publisher.patch @@ -0,0 +1,234 @@ +diff --git a/src/composers/CameraInfoComposer.cpp b/src/composers/CameraInfoComposer.cpp +index d6c9f3f..3cb7f22 100644 +--- a/src/composers/CameraInfoComposer.cpp ++++ b/src/composers/CameraInfoComposer.cpp +@@ -7,6 +7,7 @@ + * \author Martin Pecka + */ + ++#include + #include + #include + #include +diff --git a/src/composers/CameraIntrinsicsComposer.cpp b/src/composers/CameraIntrinsicsComposer.cpp +index 45df7e4..6f73944 100644 +--- a/src/composers/CameraIntrinsicsComposer.cpp ++++ b/src/composers/CameraIntrinsicsComposer.cpp +@@ -7,6 +7,7 @@ + * \author Martin Pecka + */ + ++#include + #include + #include + #include +diff --git a/src/composers/CameraNameComposer.cpp b/src/composers/CameraNameComposer.cpp +index 398d0f7..06b4c32 100644 +--- a/src/composers/CameraNameComposer.cpp ++++ b/src/composers/CameraNameComposer.cpp +@@ -7,6 +7,7 @@ + * \author Martin Pecka + */ + ++#include + #include + #include + #include +diff --git a/src/composers/ImuComposer.cpp b/src/composers/ImuComposer.cpp +index e4df54d..8f14b9b 100644 +--- a/src/composers/ImuComposer.cpp ++++ b/src/composers/ImuComposer.cpp +@@ -7,6 +7,7 @@ + * \author Martin Pecka + */ + ++#include + #include + #include + #include +diff --git a/src/composers/OpticalFrameTFComposer.cpp b/src/composers/OpticalFrameTFComposer.cpp +index c8ec880..c1482f8 100644 +--- a/src/composers/OpticalFrameTFComposer.cpp ++++ b/src/composers/OpticalFrameTFComposer.cpp +@@ -7,6 +7,7 @@ + * \author Martin Pecka + */ + ++#include + #include + #include + #include +diff --git a/src/composers/RollPitchComposer.cpp b/src/composers/RollPitchComposer.cpp +index f37ece6..302034d 100644 +--- a/src/composers/RollPitchComposer.cpp ++++ b/src/composers/RollPitchComposer.cpp +@@ -7,6 +7,7 @@ + * \author Martin Pecka + */ + ++#include + #include + #include + #include +diff --git a/src/composers/ZeroRollPitchTFComposer.cpp b/src/composers/ZeroRollPitchTFComposer.cpp +index 74947cc..3c309be 100644 +--- a/src/composers/ZeroRollPitchTFComposer.cpp ++++ b/src/composers/ZeroRollPitchTFComposer.cpp +@@ -7,6 +7,7 @@ + * \author Martin Pecka + */ + ++#include + #include + #include + #include +diff --git a/src/metadata/ExifBaseMetadataExtractor.cpp b/src/metadata/ExifBaseMetadataExtractor.cpp +index 961a2bd..c3f9be9 100644 +--- a/src/metadata/ExifBaseMetadataExtractor.cpp ++++ b/src/metadata/ExifBaseMetadataExtractor.cpp +@@ -10,6 +10,7 @@ + #include + + #include ++#include + #include + #include + #include +diff --git a/src/metadata/FileMetadataExtractor.cpp b/src/metadata/FileMetadataExtractor.cpp +index 46ad036..05917e4 100644 +--- a/src/metadata/FileMetadataExtractor.cpp ++++ b/src/metadata/FileMetadataExtractor.cpp +@@ -9,6 +9,7 @@ + + #include + ++#include + #include + #include + #include +diff --git a/src/metadata/FilenameMetadataExtractor.cpp b/src/metadata/FilenameMetadataExtractor.cpp +index 83e5401..4fbdc56 100644 +--- a/src/metadata/FilenameMetadataExtractor.cpp ++++ b/src/metadata/FilenameMetadataExtractor.cpp +@@ -9,6 +9,7 @@ + + #include + ++#include + #include + #include + #include +diff --git a/src/metadata/LibavStreamMetadataExtractor.cpp b/src/metadata/LibavStreamMetadataExtractor.cpp +index a78c50f..5d50cf5 100644 +--- a/src/metadata/LibavStreamMetadataExtractor.cpp ++++ b/src/metadata/LibavStreamMetadataExtractor.cpp +@@ -17,6 +17,7 @@ extern "C" + #include + } + ++#include + #include + #include + #include +@@ -121,7 +122,9 @@ cras::optional LibavStreamMetadataExtractor::getRotation() + + if (!rotation.has_value()) + { +- const auto displayMatrix = av_stream_get_side_data(this->data->stream, AV_PKT_DATA_DISPLAYMATRIX, nullptr); ++ const auto displayMatrixSideData = av_packet_side_data_get(this->data->stream->codecpar->coded_side_data, ++ this->data->stream->codecpar->nb_coded_side_data, AV_PKT_DATA_DISPLAYMATRIX); ++ const auto displayMatrix = displayMatrixSideData != nullptr ? displayMatrixSideData->data : nullptr; + if (displayMatrix) + { + rotation = -av_display_rotation_get(reinterpret_cast(displayMatrix)); +diff --git a/src/metadata_manager.cpp b/src/metadata_manager.cpp +index 42e868e..62f6073 100644 +--- a/src/metadata_manager.cpp ++++ b/src/metadata_manager.cpp +@@ -15,6 +15,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/src/movie.cpp b/src/movie.cpp +index a5d0902..025a219 100644 +--- a/src/movie.cpp ++++ b/src/movie.cpp +@@ -30,6 +30,7 @@ extern "C" { + #include + #include + #include ++#include + #include + #include + } +diff --git a/src/movie_private.cpp b/src/movie_private.cpp +index a1ee6ee..3bd2ae5 100644 +--- a/src/movie_private.cpp ++++ b/src/movie_private.cpp +@@ -51,7 +51,9 @@ extern "C" { + #include + #include + #include ++#include + #include ++#include + #include + #include + #include +@@ -579,13 +581,13 @@ ros::Time MoviePrivate::getTimestamp(const StreamTime& ptsTime) const + return result; + } + +-cras::expected, std::string> MoviePrivate::selectStream() ++cras::expected, std::string> MoviePrivate::selectStream() + { + int res = avformat_find_stream_info(this->formatContext, nullptr); + if (res < 0) + return cras::make_unexpected(cras::format("Could not get the stream info: %s", av_err2str(res))); + +- AVCodec* codec {nullptr}; ++ const AVCodec* codec {nullptr}; + + int selectedStreamIndex {0}; + if (this->config->forceStreamIndex().has_value()) +@@ -760,16 +762,17 @@ cras::expected MoviePrivate::addRotationFilter() + return cras::make_unexpected("Error creating filter source buffer"); + } + +- AVPixelFormat pix_fmts[] = {this->targetPixelFormat, AV_PIX_FMT_NONE}; +- auto buffersinkParams = av_buffersink_params_alloc(); +- buffersinkParams->pixel_fmts = pix_fmts; + if (avfilter_graph_create_filter( +- &this->filterBuffersinkContext, buffersink, "out", nullptr, buffersinkParams, this->filterGraph) < 0) ++ &this->filterBuffersinkContext, buffersink, "out", nullptr, nullptr, this->filterGraph) < 0) + { +- av_free(buffersinkParams); + return cras::make_unexpected("Error creating filter sink buffer"); + } +- av_free(buffersinkParams); ++ const AVPixelFormat pixFmts[] = {this->targetPixelFormat, AV_PIX_FMT_NONE}; ++ if (av_opt_set_int_list(this->filterBuffersinkContext, "pix_fmts", pixFmts, AV_PIX_FMT_NONE, ++ AV_OPT_SEARCH_CHILDREN) < 0) ++ { ++ return cras::make_unexpected("Error configuring filter sink pixel formats"); ++ } + + AVFilterInOut* filterOutputs = avfilter_inout_alloc(); + AVFilterInOut* filterInputs = avfilter_inout_alloc(); +diff --git a/src/movie_private.h b/src/movie_private.h +index 97d7003..b34c2cb 100644 +--- a/src/movie_private.h ++++ b/src/movie_private.h +@@ -208,7 +208,7 @@ struct MoviePrivate : public cras::HasLogger + * \brief Select the best quality stream and open it for decoding. + * \return Open stream with the best quality and its index in the list of streams. + */ +- cras::expected, std::string> selectStream(); ++ cras::expected, std::string> selectStream(); + /** + * \brief Open the given codec for decoding. + * \param[in] codec The codec to open. diff --git a/distros/noetic/patch/ros-noetic-mqtt-bridge.patch b/distros/noetic/patch/ros-noetic-mqtt-bridge.patch new file mode 100644 index 000000000..363cac762 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-mqtt-bridge.patch @@ -0,0 +1,10 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5542308..73ff08d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -18,5 +18,3 @@ install(DIRECTORY launch + install(DIRECTORY config + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} + ) +- +-add_custom_target(install_depends ALL COMMAND "pip3" "install" "--user" "-r" "${PROJECT_SOURCE_DIR}/requirements.txt") diff --git a/distros/noetic/patch/ros-noetic-mrpt2.patch b/distros/noetic/patch/ros-noetic-mrpt2.patch new file mode 100644 index 000000000..cdb6df3e2 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-mrpt2.patch @@ -0,0 +1,391 @@ +diff --git a/3rdparty/nanogui/CMakeLists.txt b/3rdparty/nanogui/CMakeLists.txt +index 5918d38..e36804d 100644 +--- a/3rdparty/nanogui/CMakeLists.txt ++++ b/3rdparty/nanogui/CMakeLists.txt +@@ -377,7 +377,8 @@ elseif (APPLE) + find_library(iokit_library IOKit) + target_link_libraries(${PROJECT_NAME} PRIVATE ${cocoa_library} ${opengl_library} ${corevideo_library} ${iokit_library}) + elseif(CMAKE_SYSTEM MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "BSD") +- target_link_libraries(${PROJECT_NAME} PRIVATE GL Xxf86vm Xrandr X11 pthread) # Xinerama Xcursor Xi ++ find_package(X11) ++ target_link_libraries(${PROJECT_NAME} PRIVATE GL pthread ${X11_LIBRARIES}) # Xinerama Xcursor Xi + if (NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD") + target_link_libraries(${PROJECT_NAME} PRIVATE rt) + endif() +diff --git a/apps/benchmarking-image-features/src/mainwindow.h b/apps/benchmarking-image-features/src/mainwindow.h +index 898de8f..7e27ae7 100644 +--- a/apps/benchmarking-image-features/src/mainwindow.h ++++ b/apps/benchmarking-image-features/src/mainwindow.h +@@ -215,7 +215,7 @@ class MainWindow : public QMainWindow + //! monocular single dataset + int tracking_image_counter; //!< counter for moving forward in the dataset + +- Tracker tracker_obj; // files_fullpath_tracking, int tracking_image_counter, + int remove_lost_feats, int add_new_feats, int max_feats, int patch_size, + int window_width, int window_height) +diff --git a/apps/benchmarking-image-features/src/tracker.h b/apps/benchmarking-image-features/src/tracker.h +index 36fe1bb..4ffb876 100644 +--- a/apps/benchmarking-image-features/src/tracker.h ++++ b/apps/benchmarking-image-features/src/tracker.h +@@ -51,10 +51,10 @@ using namespace mrpt::vision; + using namespace mrpt::math; + using namespace mrpt::img; + using namespace mrpt; +-using namespace cv; ++//using namespace cv; + using namespace std; + +-class Tracker ++class MRPTTracker + { + public: + bool hasResolution; +@@ -81,7 +81,7 @@ class Tracker + /** + * Tracker constructor to initialize the varibales for the tracker + */ +- Tracker(); ++ MRPTTracker(); + + /** + * trackThemAll this function tracks the features based on the parameters +diff --git a/cmakemodules/script_jsoncpp.cmake b/cmakemodules/script_jsoncpp.cmake +index ce10b5b..98dbac3 100644 +--- a/cmakemodules/script_jsoncpp.cmake ++++ b/cmakemodules/script_jsoncpp.cmake +@@ -6,8 +6,9 @@ option(DISABLE_JSONCPP "Forces NOT using JSONCPP, even if it could be found by C + mark_as_advanced(DISABLE_JSONCPP) + + if(NOT DISABLE_JSONCPP) +- find_package(jsoncpp QUIET) +- if(jsoncpp_FOUND) ++ # find_package(jsoncpp QUIET) ++ pkg_check_modules(JSONCPP jsoncpp) ++ if(JSONCPP_FOUND) + # cmake imported target: "jsoncpp_lib" + set(CMAKE_MRPT_HAS_JSONCPP 1) + set(CMAKE_MRPT_HAS_JSONCPP_SYSTEM 1) +diff --git a/cmakemodules/script_openni2.cmake b/cmakemodules/script_openni2.cmake +index a0fe762..619d865 100644 +--- a/cmakemodules/script_openni2.cmake ++++ b/cmakemodules/script_openni2.cmake +@@ -4,7 +4,7 @@ + # ========================================================= + set(CMAKE_MRPT_HAS_OPENNI2 0) + +-option(DISABLE_OPENNI2 "Disable the OpenNI2 library, even if automatically found" "OFF") ++option(DISABLE_OPENNI2 "Disable the OpenNI2 library, even if automatically found" "ON") + mark_as_advanced(DISABLE_OPENNI2) + + if (DISABLE_OPENNI2) # Allow the user to force not using this lib +diff --git a/cmakemodules/script_show_final_summary.cmake b/cmakemodules/script_show_final_summary.cmake +index ca6cdc0..7beaa08 100644 +--- a/cmakemodules/script_show_final_summary.cmake ++++ b/cmakemodules/script_show_final_summary.cmake +@@ -130,7 +130,7 @@ SHOW_CONFIG_LINE_SYSTEM("Assimp (3D models) " CMAKE_MRPT_HAS_AS + SHOW_CONFIG_LINE_SYSTEM("ffmpeg libs (Video streaming) " CMAKE_MRPT_HAS_FFMPEG "[avcodec ${LIBAVCODEC_VERSION}, avutil ${LIBAVUTIL_VERSION}, avformat ${LIBAVFORMAT_VERSION}]") + SHOW_CONFIG_LINE_SYSTEM("fyaml (YAML/JSON parsing) " CMAKE_MRPT_HAS_LIBFYAML) + SHOW_CONFIG_LINE_SYSTEM("gtest (Google unit testing library) " CMAKE_MRPT_HAS_GTEST ) +-SHOW_CONFIG_LINE_SYSTEM("jsoncpp (JSON format serialization) " CMAKE_MRPT_HAS_JSONCPP "[Version: ${jsoncpp_VERSION}]") ++SHOW_CONFIG_LINE_SYSTEM("jsoncpp (JSON format serialization) " CMAKE_MRPT_HAS_JSONCPP "[Version: ${JSONCPP_VERSION}]") + SHOW_CONFIG_LINE_SYSTEM("libjpeg (jpeg) " CMAKE_MRPT_HAS_JPEG) + SHOW_CONFIG_LINE_SYSTEM("liblas (ASPRS LAS LiDAR format) " CMAKE_MRPT_HAS_LIBLAS) + SHOW_CONFIG_LINE ("mexplus " CMAKE_MRPT_HAS_MATLAB) +diff --git a/cmakemodules/script_wxwidgets.cmake b/cmakemodules/script_wxwidgets.cmake +index 9cbd648..87ede40 100644 +--- a/cmakemodules/script_wxwidgets.cmake ++++ b/cmakemodules/script_wxwidgets.cmake +@@ -9,7 +9,7 @@ set(wxWidgets_MRPT_COMPONENTS_TO_SEARCH "base;core;gl;adv;aui;html" CACHE STRING + set(CMAKE_MRPT_HAS_WXWIDGETS 0) + set(wxWidgets_LIBRARIES "") + +-set(DISABLE_WXWIDGETS OFF CACHE BOOL "Forces compilation WITHOUT wxWidgets") ++set(DISABLE_WXWIDGETS ON CACHE BOOL "Forces compilation WITHOUT wxWidgets") + mark_as_advanced(DISABLE_WXWIDGETS) + if(DISABLE_WXWIDGETS) + return() +diff --git a/cmakemodules/script_xsens.cmake b/cmakemodules/script_xsens.cmake +index 1ca7406..ef6f8a0 100644 +--- a/cmakemodules/script_xsens.cmake ++++ b/cmakemodules/script_xsens.cmake +@@ -46,7 +46,7 @@ if (BUILD_XSENS) + # In Linux: libusb-1.0 + if(PKG_LIBUSB10_FOUND) + # Perfect, we have libusb-1.0 +- set(XSENS4_LIBS ${XSENS4_LIBS} ${PKG_LIBUDEV_LIBRARIES}) ++ set(XSENS4_LIBS ${XSENS4_LIBS} ${PKG_LIBUSB10_LIBRARIES}) + else(PKG_LIBUSB10_FOUND) + message(SEND_ERROR "BUILD_XSENS requires libusb-1.0. Install it or disable BUILD_XSENS") + endif(PKG_LIBUSB10_FOUND) +diff --git a/libs/comms/CMakeLists.txt b/libs/comms/CMakeLists.txt +index 8e24def..9ea433e 100644 +--- a/libs/comms/CMakeLists.txt ++++ b/libs/comms/CMakeLists.txt +@@ -18,5 +18,5 @@ endif() + target_link_libraries(comms PRIVATE Threads::Threads) + + if(CMAKE_MRPT_HAS_FTDI_SYSTEM) +- target_link_libraries(comms PRIVATE imp_ftdi) ++ target_link_libraries(comms PUBLIC imp_ftdi ${PKG_LIBUDEV_LIBRARIES} ${PKG_LIBUSB10_LIBRARIES}) + endif() +diff --git a/libs/core/CMakeLists.txt b/libs/core/CMakeLists.txt +index 47c6feb..a2ef97f 100644 +--- a/libs/core/CMakeLists.txt ++++ b/libs/core/CMakeLists.txt +@@ -16,6 +16,10 @@ if(BUILD_mrpt-core) + + target_link_libraries(core PRIVATE Threads::Threads) # for WorkerThreads + ++ if(UNIX AND NOT APPLE) ++ target_link_libraries(core PRIVATE rt) ++ endif() ++ + # Enforce C++17 in all dependent projects: + mrpt_lib_target_requires_cpp17(core) + +diff --git a/libs/gui/CMakeLists.txt b/libs/gui/CMakeLists.txt +index e551b17..c35a545 100644 +--- a/libs/gui/CMakeLists.txt ++++ b/libs/gui/CMakeLists.txt +@@ -65,4 +65,7 @@ if(BUILD_mrpt-gui) + target_link_libraries(gui PUBLIC mrpt::nanogui) + endif() + ++ find_package(X11) ++ target_link_libraries(gui PRIVATE ${X11_LIBRARIES}) ++ + endif() +diff --git a/libs/hwdrivers/CMakeLists.txt b/libs/hwdrivers/CMakeLists.txt +index c45fc79..d7d7c6c 100644 +--- a/libs/hwdrivers/CMakeLists.txt ++++ b/libs/hwdrivers/CMakeLists.txt +@@ -97,13 +97,17 @@ endif() + + # XSens MT4 required libs: + if (BUILD_XSENS) +- target_link_libraries(hwdrivers PRIVATE ${XSENS4_LIBS}) ++ target_link_libraries(hwdrivers PUBLIC ${XSENS4_LIBS}) + endif () + + if(UNIX) + target_link_libraries(hwdrivers PRIVATE dl) + endif() + ++if(UNIX AND NOT APPLE) ++ target_link_libraries(hwdrivers PRIVATE rt) ++endif() ++ + if(CMAKE_MRPT_HAS_OPENNI2) + target_link_libraries(hwdrivers PRIVATE ${MRPT_OPENNI2_LIBRARIES}) + endif() +diff --git a/libs/img/CMakeLists.txt b/libs/img/CMakeLists.txt +index 919b683..c4882b1 100644 +--- a/libs/img/CMakeLists.txt ++++ b/libs/img/CMakeLists.txt +@@ -21,13 +21,13 @@ if(BUILD_mrpt-img) + endif() + + if(CMAKE_MRPT_HAS_OPENCV) +- target_link_libraries(img PRIVATE imp_opencv) ++ target_link_libraries(img PUBLIC imp_opencv) + endif() + if(CMAKE_MRPT_HAS_JPEG) + if(NOT CMAKE_MRPT_HAS_JPEG_SYSTEM) + add_dependencies(img JPEG) + endif() +- target_link_libraries(img PRIVATE ${JPEG_LIBRARIES}) ++ target_link_libraries(img PUBLIC ${JPEG_LIBRARIES}) + endif() + + endif() +diff --git a/libs/maps/CMakeLists.txt b/libs/maps/CMakeLists.txt +index 55139c9..ed539f1 100644 +--- a/libs/maps/CMakeLists.txt ++++ b/libs/maps/CMakeLists.txt +@@ -30,7 +30,7 @@ define_mrpt_lib( + + if(BUILD_mrpt-maps) + if(CMAKE_MRPT_HAS_LIBLAS) +- target_link_libraries(maps PRIVATE ${LAS_LIBS}) ++ target_link_libraries(maps PUBLIC ${LAS_LIBS}) + endif() + + if (CMAKE_MRPT_HAS_OCTOMAP) +@@ -40,10 +40,10 @@ if(BUILD_mrpt-maps) + if(TARGET "EP_octomap") + add_dependencies(maps EP_octomap) + endif() +- target_link_libraries(maps PRIVATE ${OCTOMAP_LIBRARIES}) ++ target_link_libraries(maps PUBLIC ${OCTOMAP_LIBRARIES}) + endif() + +- target_link_libraries(maps PRIVATE ${MRPT_OPENGL_LIBS}) ++ target_link_libraries(maps PUBLIC ${MRPT_OPENGL_LIBS}) + + + # Windows only: the mxplus lib internally requires linking with opencv (sigh...) +diff --git a/libs/math/CMakeLists.txt b/libs/math/CMakeLists.txt +index 5c9cfbb..9213adb 100644 +--- a/libs/math/CMakeLists.txt ++++ b/libs/math/CMakeLists.txt +@@ -83,7 +83,7 @@ if(BUILD_mrpt-math) + endif() + + if (NOT "${SuiteSparse_LIBRARIES}" STREQUAL "") +- target_link_libraries(math PRIVATE ${SuiteSparse_LIBRARIES}) ++ target_link_libraries(math PUBLIC ${SuiteSparse_LIBRARIES}) + endif () + if (NOT "${SuiteSparse_LIBRARIES}" STREQUAL "") + target_include_directories(math PUBLIC ${SuiteSparse_INCLUDE_DIRS}) +diff --git a/libs/opengl/CMakeLists.txt b/libs/opengl/CMakeLists.txt +index 9a9ac68..4321632 100644 +--- a/libs/opengl/CMakeLists.txt ++++ b/libs/opengl/CMakeLists.txt +@@ -44,11 +44,11 @@ if(BUILD_mrpt-opengl) + endif() + + # Link against gl, glu, glut: +- target_link_libraries(opengl PRIVATE ++ target_link_libraries(opengl PUBLIC + ${MRPT_OPENGL_LIBS} + ) + if (TARGET mrpt_glew) # Basically, for Windows +- target_link_libraries(opengl PRIVATE mrpt_glew) ++ target_link_libraries(opengl PUBLIC mrpt_glew) + endif() + + # Link against assimp: +@@ -56,6 +56,6 @@ if(BUILD_mrpt-opengl) + if(TARGET "EP_assimp") + add_dependencies(opengl EP_assimp) + endif() +- target_link_libraries(opengl PRIVATE ${ASSIMP_LIBRARIES}) ++ target_link_libraries(opengl PUBLIC ${ASSIMP_LIBRARIES}) + endif () + endif() +diff --git a/libs/serialization/CMakeLists.txt b/libs/serialization/CMakeLists.txt +index 9b711d4..5f85caf 100644 +--- a/libs/serialization/CMakeLists.txt ++++ b/libs/serialization/CMakeLists.txt +@@ -1,16 +1,8 @@ + # Extra dependencies required by unit tests in this module: + # Include jsoncpp only if present (optional) +-if (CMAKE_MRPT_HAS_JSONCPP) +- if(TARGET "jsoncpp_lib") +- set(tst_json_dep "jsoncpp_lib") +- else() +- set(tst_json_dep "jsoncpp_lib_static") +- endif() +-else() +- set(tst_json_dep "") +-endif() ++# find_package(JsonCpp REQUIRED) + # define those deps: +-set_property(GLOBAL PROPERTY mrpt_serialization_UNIT_TEST_EXTRA_DEPS mrpt-io mrpt-poses ${tst_json_dep}) ++set_property(GLOBAL PROPERTY mrpt_serialization_UNIT_TEST_EXTRA_DEPS mrpt-io mrpt-poses ${JSONCPP_LIBRARIES}) + + #--------------------------------------------- + # Macro declared in "DeclareMRPTLib.cmake": +@@ -23,5 +15,5 @@ define_mrpt_lib( + ) + + if(BUILD_mrpt-serialization) +- target_link_libraries(serialization PRIVATE ${tst_json_dep}) ++ target_link_libraries(serialization PUBLIC ${JSONCPP_LIBRARIES}) + endif( ) +diff --git a/libs/serialization/include/mrpt/serialization/CSchemeArchive.h b/libs/serialization/include/mrpt/serialization/CSchemeArchive.h +index 744c14c..03ecf55 100644 +--- a/libs/serialization/include/mrpt/serialization/CSchemeArchive.h ++++ b/libs/serialization/include/mrpt/serialization/CSchemeArchive.h +@@ -70,12 +70,6 @@ class CSchemeArchive : public mrpt::serialization::CSchemeArchiveBase_impl + m_val = val; + return *m_parent; + } +- mrpt::serialization::CSchemeArchiveBase& operator=( +- const std::nullptr_t val) override +- { +- m_val = val; +- return *m_parent; +- } + mrpt::serialization::CSchemeArchiveBase& operator=( + const std::string val) override + { +diff --git a/libs/serialization/include/mrpt/serialization/CSchemeArchiveBase.h b/libs/serialization/include/mrpt/serialization/CSchemeArchiveBase.h +index dfaaf22..5ee7bc2 100644 +--- a/libs/serialization/include/mrpt/serialization/CSchemeArchiveBase.h ++++ b/libs/serialization/include/mrpt/serialization/CSchemeArchiveBase.h +@@ -32,7 +32,6 @@ class CSchemeArchiveBase_impl + virtual CSchemeArchiveBase& operator=(const uint64_t) = 0; + virtual CSchemeArchiveBase& operator=(const float) = 0; + virtual CSchemeArchiveBase& operator=(const double) = 0; +- virtual CSchemeArchiveBase& operator=(const std::nullptr_t) = 0; + virtual CSchemeArchiveBase& operator=(const std::string) = 0; + virtual CSchemeArchiveBase& operator=(bool) = 0; + +diff --git a/libs/system/CMakeLists.txt b/libs/system/CMakeLists.txt +index 37c858c..cb29260 100644 +--- a/libs/system/CMakeLists.txt ++++ b/libs/system/CMakeLists.txt +@@ -18,12 +18,15 @@ target_link_libraries(system PRIVATE Threads::Threads) + if(BUILD_mrpt-system) + if(WIN32) + target_link_libraries(system PRIVATE Dbghelp) # For mrpt::system::getCallStackBackTrace() +- else() +- target_link_libraries(system PRIVATE ${CMAKE_DL_LIBS}) # For mrpt::system::getCallStackBackTrace() ++ # else() ++ # target_link_libraries(system PRIVATE ${CMAKE_DL_LIBS}) # For mrpt::system::getCallStackBackTrace() + endif() + + # -ldl required by the plugin load mechanism loadPluginModule() + if(UNIX) + target_link_libraries(system PRIVATE dl) + endif() ++ if(UNIX AND NOT APPLE) ++ target_link_libraries(system PRIVATE rt) ++ endif() + endif() +diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt +index e7dd05b..75f5afb 100644 +--- a/python/CMakeLists.txt ++++ b/python/CMakeLists.txt +@@ -11,6 +11,7 @@ include_directories(include) + include_directories( + ${Boost_INCLUDE_DIRS} + ${PYTHON_INCLUDE_DIRS} ++ ${OpenCV_INCLUDE_DIRS} + ) + # Find Numpy include directory + execute_process( +@@ -60,7 +61,7 @@ add_definitions(-DROS_EXTENSIONS) + + target_link_libraries(pymrpt + ${Boost_LIBRARIES} +- ${Opencv_LIBRARIES} ++ ${OpenCV_LIBRARIES} + Python3::Python + ) + \ No newline at end of file diff --git a/distros/noetic/patch/ros-noetic-mrt-cmake-modules.patch b/distros/noetic/patch/ros-noetic-mrt-cmake-modules.patch new file mode 100644 index 000000000..fb0b8d3b7 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-mrt-cmake-modules.patch @@ -0,0 +1,14 @@ +diff --git a/cmake/Modules/Findgtest.cmake b/cmake/Modules/Findgtest.cmake +index c4d854c..1654a24 100644 +--- a/cmake/Modules/Findgtest.cmake ++++ b/cmake/Modules/Findgtest.cmake +@@ -4,5 +4,8 @@ if(CATKIN_ENABLE_TESTING) + set(gtest_INCLUDE_DIRS "") + set(gtest_LIBRARIES gtest) + else() +- message(FATAL_ERROR "CMake script only implemented for gtest as test_depend") ++ # Binary builds set CATKIN_ENABLE_TESTING=OFF. In that mode, avoid a hard ++ # failure and expose empty gtest vars so non-test targets can configure. ++ set(gtest_INCLUDE_DIRS "") ++ set(gtest_LIBRARIES "") + endif() diff --git a/distros/noetic/patch/ros-noetic-multirobot-map-merge.patch b/distros/noetic/patch/ros-noetic-multirobot-map-merge.patch new file mode 100644 index 000000000..ca6df0bc7 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-multirobot-map-merge.patch @@ -0,0 +1,13 @@ +diff --git a/src/combine_grids/estimation_internal.h b/src/combine_grids/estimation_internal.h +index 98c9428..5cd00fa 100644 +--- a/src/combine_grids/estimation_internal.h ++++ b/src/combine_grids/estimation_internal.h +@@ -65,7 +65,7 @@ static inline cv::Ptr chooseFeatureFinder(FeatureType type) + return cv::ORB::create(); + case FeatureType::SURF: + #ifdef HAVE_OPENCV_XFEATURES2D +- return xfeatures2d::SURF::create(); ++ return cv::xfeatures2d::SURF::create(); + #else + return cv::AKAZE::create(); + #endif diff --git a/distros/noetic/patch/ros-noetic-naoqi-driver.patch b/distros/noetic/patch/ros-noetic-naoqi-driver.patch new file mode 100644 index 000000000..0919d9207 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-naoqi-driver.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists_catkin.txt b/CMakeLists_catkin.txt +index 0978b90..fa5f6ec 100644 +--- a/CMakeLists_catkin.txt ++++ b/CMakeLists_catkin.txt +@@ -24,6 +24,7 @@ find_package(catkin COMPONENTS + ) + find_package(OpenCV) + find_package(orocos_kdl) ++find_package(Boost REQUIRED COMPONENTS program_options thread) + + add_definitions(-DLIBQI_VERSION=${naoqi_libqi_VERSION_MAJOR}${naoqi_libqi_VERSION_MINOR}) + +@@ -56,6 +57,7 @@ target_link_libraries( + ${catkin_LIBRARIES} + ${OpenCV_LIBRARIES} + ${orocos_kdl_LIBRARIES} ++ ${Boost_LIBRARIES} + ) + add_dependencies(naoqi_driver ${catkin_EXPORTED_TARGETS}) + install(TARGETS naoqi_driver DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) +@@ -71,6 +73,7 @@ target_link_libraries( + naoqi_driver_node + naoqi_driver + ${catkin_LIBRARIES} ++ ${Boost_LIBRARIES} + ) + install(TARGETS naoqi_driver_node DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}) + diff --git a/distros/noetic/patch/ros-noetic-naoqi-libqi.patch b/distros/noetic/patch/ros-noetic-naoqi-libqi.patch new file mode 100644 index 000000000..40cf06d88 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-naoqi-libqi.patch @@ -0,0 +1,681 @@ +diff --git a/qi/detail/executioncontext.hpp b/qi/detail/executioncontext.hpp +index 79e80477..5e81a315 100644 +--- a/qi/detail/executioncontext.hpp ++++ b/qi/detail/executioncontext.hpp +@@ -201,7 +201,7 @@ typename boost::disable_if, + promise.setup( + boost::bind(&detail::futureCancelAdapter, + boost::weak_ptr >(f.impl()))); +- f.connect(boost::bind(&detail::forwardError, _1, promise), FutureCallbackType_Sync); ++ f.connect(boost::bind(&detail::forwardError, boost::placeholders::_1, promise), FutureCallbackType_Sync); + return promise.future(); + } + +@@ -218,7 +218,7 @@ typename boost::disable_if, + promise.setup( + boost::bind(&detail::futureCancelAdapter, + boost::weak_ptr >(f.impl()))); +- f.connect(boost::bind(&detail::forwardError, _1, promise), FutureCallbackType_Sync); ++ f.connect(boost::bind(&detail::forwardError, boost::placeholders::_1, promise), FutureCallbackType_Sync); + return promise.future(); + } + +@@ -252,7 +252,7 @@ Future ExecutionContext::asyncAt(F&& callback, qi::SteadyClockTimePoint tp, E + qi::Future f = asyncAtImpl(std::move(topost), tp, options); + promise.setup(boost::bind(&detail::futureCancelAdapter, + boost::weak_ptr >(f.impl()))); +- f.connect(boost::bind(&detail::forwardError, _1, promise), FutureCallbackType_Sync); ++ f.connect(boost::bind(&detail::forwardError, boost::placeholders::_1, promise), FutureCallbackType_Sync); + return promise.future(); + } + +@@ -264,7 +264,7 @@ Future ExecutionContext::asyncDelay(F&& callback, qi::Duration delay, Executi + qi::Future f = asyncDelayImpl(std::move(topost), delay, options); + promise.setup(boost::bind(&detail::futureCancelAdapter, + boost::weak_ptr >(f.impl()))); +- f.connect(boost::bind(&detail::forwardError, _1, promise), FutureCallbackType_Sync); ++ f.connect(boost::bind(&detail::forwardError, boost::placeholders::_1, promise), FutureCallbackType_Sync); + return promise.future(); + } + } +diff --git a/qi/detail/future.hxx b/qi/detail/future.hxx +index cc5cc041..02949622 100644 +--- a/qi/detail/future.hxx ++++ b/qi/detail/future.hxx +@@ -437,11 +437,11 @@ namespace detail { + { + Future >* self = static_cast >*>(this); + +- Promise promise(boost::bind(&AddUnwrap >::_cancel, _1, ++ Promise promise(boost::bind(&AddUnwrap >::_cancel, boost::placeholders::_1, + boost::weak_ptr > >(self->_p))); + + self->connect( +- boost::bind(&AddUnwrap >::_forward, _1, promise), ++ boost::bind(&AddUnwrap >::_forward, boost::placeholders::_1, promise), + FutureCallbackType_Sync); + + return promise.future(); +@@ -541,7 +541,7 @@ namespace detail { + p.setup(boost::bind(&detail::futureCancelAdapter, + boost::weak_ptr >(f._p))); + f.connect(boost::function&)>( +- boost::bind(&detail::futureAdapter, _1, p))); ++ boost::bind(&detail::futureAdapter, boost::placeholders::_1, p))); + } + + template +@@ -550,7 +550,7 @@ namespace detail { + if (option == AdaptFutureOption_ForwardCancel) + p.setup(boost::bind(&detail::futureCancelAdapter, + boost::weak_ptr >(f._p))); +- const_cast&>(f).connect(boost::bind(detail::futureAdapter >, _1, p, ++ const_cast&>(f).connect(boost::bind(detail::futureAdapter >, boost::placeholders::_1, p, + FutureValueConverter())); + } + +@@ -560,7 +560,7 @@ namespace detail { + if (option == AdaptFutureOption_ForwardCancel) + p.setup(boost::bind(&detail::futureCancelAdapter, + boost::weak_ptr >(f._p))); +- const_cast&>(f).connect(boost::bind(detail::futureAdapter, _1, p, converter)); ++ const_cast&>(f).connect(boost::bind(detail::futureAdapter, boost::placeholders::_1, p, converter)); + } + + template +diff --git a/qi/detail/futurebarrier.hpp b/qi/detail/futurebarrier.hpp +index 73f33b23..b3556f4f 100644 +--- a/qi/detail/futurebarrier.hpp ++++ b/qi/detail/futurebarrier.hpp +@@ -114,7 +114,7 @@ class FutureBarrierPrivate { + * qi::Future fut = returnAsynchronouslyNumber(i); + * + * qi::Promise prom; +- * fut.connect(boost::bind(&mult42, prom, _1)); ++ * fut.connect(boost::bind(&mult42, prom, boost::placeholders::_1)); + * barrier.addFuture(prom.future()); + * + * // [1.2] +@@ -127,7 +127,7 @@ class FutureBarrierPrivate { + * + * // [2]: + * qi::Promise res; +- * barrier.future().connect(boost::bind(&sumList, res, _1)); ++ * barrier.future().connect(boost::bind(&sumList, res, boost::placeholders::_1)); + * return res.future(); + * } + * +diff --git a/qi/detail/trackable.hxx b/qi/detail/trackable.hxx +index 9ddbb464..0fbaf3dc 100644 +--- a/qi/detail/trackable.hxx ++++ b/qi/detail/trackable.hxx +@@ -23,14 +23,14 @@ namespace qi + : _wasDestroyed(false) + { + T* thisAsT = static_cast(this); +- _ptr = boost::shared_ptr(thisAsT, boost::bind(&Trackable::_destroyed, _1)); ++ _ptr = boost::shared_ptr(thisAsT, boost::bind(&Trackable::_destroyed, boost::placeholders::_1)); + } + + template + inline Trackable::Trackable(T* ptr) + : _wasDestroyed(false) + { +- _ptr = boost::shared_ptr(ptr, boost::bind(&Trackable::_destroyed, _1)); ++ _ptr = boost::shared_ptr(ptr, boost::bind(&Trackable::_destroyed, boost::placeholders::_1)); + } + + template +diff --git a/qi/type/detail/anyfunctionfactory.hxx b/qi/type/detail/anyfunctionfactory.hxx +index 32ebb091..129351dd 100644 +--- a/qi/type/detail/anyfunctionfactory.hxx ++++ b/qi/type/detail/anyfunctionfactory.hxx +@@ -568,7 +568,7 @@ KA_WARNING_DISABLE(, noexcept-type) + template + AnyFunction makeAnyFunctionBare(R (C::*fun)(const AnyArguments&)) + { +- AnyFunction res = AnyFunction::fromDynamicFunction(boost::bind(&bouncer, _1, fun)); ++ AnyFunction res = AnyFunction::fromDynamicFunction(boost::bind(&bouncer, boost::placeholders::_1, fun)); + // The signature storage in GO will drop first argument, and bug if none is present + const_cast &>(res.functionType()->argumentsType()).push_back(typeOf()); + return res; +@@ -578,7 +578,7 @@ KA_WARNING_DISABLE(, noexcept-type) + AnyFunction makeAnyFunctionBare(R (*fun)(const AnyArguments&)) + { + boost::function fu = fun; +- AnyFunction res = AnyFunction::fromDynamicFunction(boost::bind(&bouncerBF, _1, fun)); ++ AnyFunction res = AnyFunction::fromDynamicFunction(boost::bind(&bouncerBF, boost::placeholders::_1, fun)); + // The signature storage in GO will drop first argument, and bug if none is present + const_cast &>(res.functionType()->argumentsType()).push_back(typeOf()); + return res; +@@ -586,7 +586,7 @@ KA_WARNING_DISABLE(, noexcept-type) + + template AnyFunction makeAnyFunctionBare(boost::function fun) + { +- AnyFunction res = AnyFunction::fromDynamicFunction(boost::bind(&bouncerBF, _1, fun)); ++ AnyFunction res = AnyFunction::fromDynamicFunction(boost::bind(&bouncerBF, boost::placeholders::_1, fun)); + // The signature storage in GO will drop first argument, and bug if none is present + const_cast &>(res.functionType()->argumentsType()).push_back(typeOf()); + return res; +diff --git a/qi/type/detail/functionsignature.hxx b/qi/type/detail/functionsignature.hxx +index 1d2489e1..b87b7d4d 100644 +--- a/qi/type/detail/functionsignature.hxx ++++ b/qi/type/detail/functionsignature.hxx +@@ -89,7 +89,7 @@ namespace qi { + } + static qi::Signature makeSignature() + { +- // Reconstruct the boost::bind(instance, _1, _2...) signature ++ // Reconstruct the boost::bind(instance, boost::placeholders::_1, boost::placeholders::_2...) signature + using RetType = typename boost::function_types::result_type::type; + using MemArgsType = typename boost::function_types::parameter_types::type; + using ArgsType = typename boost::mpl::pop_front::type; +diff --git a/qi/type/detail/object.hxx b/qi/type/detail/object.hxx +index edc98cfa..61bd2581 100644 +--- a/qi/type/detail/object.hxx ++++ b/qi/type/detail/object.hxx +@@ -551,7 +551,7 @@ template inline Object::Object(T* ptr, boost::function + ObjectTypeInterface* otype = interface(); + if (deleter) + _obj = detail::ManagedObjectPtr(new GenericObject(otype, ptr), +- boost::bind(&Object::deleteCustomDeleter, _1, deleter)); ++ boost::bind(&Object::deleteCustomDeleter, boost::placeholders::_1, deleter)); + else + _obj = detail::ManagedObjectPtr(new GenericObject(otype, ptr), &deleteObject); + } +diff --git a/qi/type/detail/objecttypebuilder.hxx b/qi/type/detail/objecttypebuilder.hxx +index 1fe7bfca..e554ed25 100644 +--- a/qi/type/detail/objecttypebuilder.hxx ++++ b/qi/type/detail/objecttypebuilder.hxx +@@ -32,7 +32,7 @@ KA_WARNING_DISABLE(, noexcept-type) + getStrandAccessor() + { + return AnyFunction::from(boost::function( +- boost::bind(&callWithVoid, &T::strand, _1))); ++ boost::bind(&callWithVoid, &T::strand, boost::placeholders::_1))); + } + template + typename boost::disable_if, AnyFunction>::type +@@ -185,7 +185,7 @@ KA_WARNING_DISABLE(, noexcept-type) + unsigned int + ObjectTypeBuilderBase::advertiseSignal(const std::string& eventName, A accessor, int id, bool isSignalProperty) + { +- SignalMemberGetter fun = boost::bind(&signalAccess, accessor, _1); ++ SignalMemberGetter fun = boost::bind(&signalAccess, accessor, boost::placeholders::_1); + using FunctionType = typename detail::Accessor::value_type::FunctionType; + return xAdvertiseSignal(eventName, + detail::FunctionSignature::signature(), fun, id, isSignalProperty); +@@ -195,7 +195,7 @@ KA_WARNING_DISABLE(, noexcept-type) + unsigned int ObjectTypeBuilderBase::advertiseProperty(const std::string& name, A accessor) + { + unsigned int id = advertiseSignal(name, accessor, -1, true); +- PropertyMemberGetter pg = boost::bind(&propertyAccess, accessor, _1); ++ PropertyMemberGetter pg = boost::bind(&propertyAccess, accessor, boost::placeholders::_1); + using PropertyType = typename detail::Accessor::value_type::PropertyType; + return xAdvertiseProperty(name, typeOf()->signature(), pg, id); + } +diff --git a/qi/type/detail/typedispatcher.hxx b/qi/type/detail/typedispatcher.hxx +index 4140eb89..1168c589 100644 +--- a/qi/type/detail/typedispatcher.hxx ++++ b/qi/type/detail/typedispatcher.hxx +@@ -72,7 +72,7 @@ namespace qi { + auto go = detail::ManagedObjectPtr( + new GenericObject(static_cast(pointee.type()), + pointee.rawValue()), +- boost::bind(&AnyObject::deleteCustomDeleter, _1, ++ boost::bind(&AnyObject::deleteCustomDeleter, boost::placeholders::_1, + (boost::function)boost::bind(&AnyReference::destroy, + shared_ptr))); + AnyObject ao(std::move(go)); +diff --git a/qi/type/proxyproperty.hpp b/qi/type/proxyproperty.hpp +index ab0d07c2..04be2711 100644 +--- a/qi/type/proxyproperty.hpp ++++ b/qi/type/proxyproperty.hpp +@@ -74,7 +74,7 @@ namespace qi + + // property part + prop._asyncGetter = boost::bind(Getter{}, object, propertyName); +- prop._asyncSetter = boost::bind(Setter{}, _1, _2, object, propertyName); ++ prop._asyncSetter = boost::bind(Setter{}, boost::placeholders::_1, boost::placeholders::_2, object, propertyName); + } + + template +diff --git a/qi/type/proxysignal.hpp b/qi/type/proxysignal.hpp +index 7b12bb6c..b64e6d57 100644 +--- a/qi/type/proxysignal.hpp ++++ b/qi/type/proxysignal.hpp +@@ -128,7 +128,7 @@ namespace qi + .andThen(lifeSignal( + // Copy self instead of using `this` to avoid lifetime issues. + [self](SignalLink newLink) { +- self.signal->setOnSubscribers(self.lifeSignal(boost::bind(self, newLink, _1))); ++ self.signal->setOnSubscribers(self.lifeSignal(boost::bind(self, newLink, boost::placeholders::_1))); + })); + } + }; +@@ -174,13 +174,13 @@ namespace qi + signal.setOnSubscribers(lifeSignal( + boost::bind(resetBounceEventCallbackOnSubscribersContinuous(signal, lifeSignal, callSubs, + object, signalName), +- SignalBase::invalidSignalLink, _1))); ++ SignalBase::invalidSignalLink, boost::placeholders::_1))); + + // On signal trigger, just forward the trigger to the back-end. When the back-end gets + // triggered, we get notified back, because we connect to the back-end by the 'bounce event' + // callback, in which we can notify back our local subscribers. + signal.setTriggerOverride( +- boost::bind(&details_proxysignal::metaPostSignal, object, signalName, _1)); ++ boost::bind(&details_proxysignal::metaPostSignal, object, signalName, boost::placeholders::_1)); + } + + inline void tearDownProxy(SignalBase& sig) +diff --git a/src/application.cpp b/src/application.cpp +index b9cd0867..520709ca 100644 +--- a/src/application.cpp ++++ b/src/application.cpp +@@ -103,7 +103,7 @@ namespace qi { + case 1: + qiLogVerbose() << "Sending the stop command..."; + //register the signal again to call exit the next time if stop did not succeed +- Application::atSignal(boost::bind(&stop_handler, _1), signal_number); ++ Application::atSignal(boost::bind(&stop_handler, boost::placeholders::_1), signal_number); + // Stop might immediately trigger application destruction, so it has + // to go after atSignal. + Application::stop(); +@@ -312,12 +312,12 @@ namespace qi { + // run is called, so we catch sigint/sigterm, the default + // implementation call Application::stop that + // will make this loop exit. +- atSignal.emplace_back(boost::bind(stop_handler, _1), SIGTERM); +- atSignal.emplace_back(boost::bind(stop_handler, _1), SIGINT); ++ atSignal.emplace_back(boost::bind(stop_handler, boost::placeholders::_1), SIGTERM); ++ atSignal.emplace_back(boost::bind(stop_handler, boost::placeholders::_1), SIGINT); + + for(const auto& func: atSignal) + signalSets.emplace(signalSets.end(), *globalIoService, func.second)->async_wait( +- boost::bind(signal_handler, _1, _2, std::move(func.first))); ++ boost::bind(signal_handler, boost::placeholders::_1, boost::placeholders::_2, std::move(func.first))); + + // Call every function registered as "atRun" + for(auto& function: lazyGet(globalAtRun)) +diff --git a/src/eventloop.cpp b/src/eventloop.cpp +index 2ece4b41..fc8dde3c 100644 +--- a/src/eventloop.cpp ++++ b/src/eventloop.cpp +@@ -1015,7 +1015,7 @@ namespace qi { + ctx->target = this; + ctx->helper = helper; + ctx->maxDelay = maxDelay; +- ctx->promise = Promise(boost::bind(&monitor_cancel, _1, ctx)); ++ ctx->promise = Promise(boost::bind(&monitor_cancel, boost::placeholders::_1, ctx)); + ctx->isFired = false; + ctx->ending = false; + monitor_ping(ctx); +diff --git a/src/log.cpp b/src/log.cpp +index f7a2ea31..ba9ebcf1 100644 +--- a/src/log.cpp ++++ b/src/log.cpp +@@ -444,7 +444,7 @@ namespace qi { + id = addHandler("consoleloghandler", + boost::bind(&ConsoleLogHandler::log, + _glConsoleLogHandler, +- _1, _2, _3, _4, _5, _6, _7, _8), ++ boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4, boost::placeholders::_5, boost::placeholders::_6, boost::placeholders::_7, boost::placeholders::_8), + verb); + QI_ASSERT(id == 0 || id == invalidId); + } +@@ -909,7 +909,7 @@ namespace qi { + { + return addHandler(name, + boost::bind(adaptLogFuncHandler, +- fct, _1, _2, _3, _4, _5, _6, _7, _8), ++ fct, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4, boost::placeholders::_5, boost::placeholders::_6, boost::placeholders::_7, boost::placeholders::_8), + defaultLevel); + } + +diff --git a/src/messaging/boundobject.cpp b/src/messaging/boundobject.cpp +index d7296a82..612c0480 100644 +--- a/src/messaging/boundobject.cpp ++++ b/src/messaging/boundobject.cpp +@@ -158,7 +158,7 @@ namespace qi + if (!ms) + throw std::runtime_error("No such signal"); + QI_ASSERT(_currentSocket); +- AnyFunction mc = AnyFunction::fromDynamicFunction(boost::bind(&forwardEvent, _1, _serviceId, _objectId, eventId, ms->parametersSignature(), _currentSocket, asHostWeakPtr(), "")); ++ AnyFunction mc = AnyFunction::fromDynamicFunction(boost::bind(&forwardEvent, boost::placeholders::_1, _serviceId, _objectId, eventId, ms->parametersSignature(), _currentSocket, asHostWeakPtr(), "")); + qi::Future linking = _object.connect(eventId, mc); + auto& linkEntry = _links[_currentSocket][remoteSignalLinkId]; + linkEntry = RemoteSignalLink(linking, eventId); +@@ -175,7 +175,7 @@ namespace qi + if (!ms) + throw std::runtime_error("No such signal"); + QI_ASSERT(_currentSocket); +- AnyFunction mc = AnyFunction::fromDynamicFunction(boost::bind(&forwardEvent, _1, _serviceId, _objectId, eventId, ms->parametersSignature(), _currentSocket, asHostWeakPtr(), signature)); ++ AnyFunction mc = AnyFunction::fromDynamicFunction(boost::bind(&forwardEvent, boost::placeholders::_1, _serviceId, _objectId, eventId, ms->parametersSignature(), _currentSocket, asHostWeakPtr(), signature)); + qi::Future linking = _object.connect(eventId, mc); + auto& linkEntry = _links[_currentSocket][remoteSignalLinkId]; + linkEntry = RemoteSignalLink(linking, eventId); +@@ -400,7 +400,7 @@ namespace qi + _currentSocket.reset(); + + fut.connect(boost::bind +- (&BoundObject::serverResultAdapter, _1, retSig, _gethost(), socket, msg.address(), sig, ++ (&BoundObject::serverResultAdapter, boost::placeholders::_1, retSig, _gethost(), socket, msg.address(), sig, + CancelableKitWeak(_cancelables), cancelRequested)); + } + break; +diff --git a/src/messaging/message.cpp b/src/messaging/message.cpp +index 8e2ae7b3..5eba2f9f 100644 +--- a/src/messaging/message.cpp ++++ b/src/messaging/message.cpp +@@ -292,7 +292,7 @@ namespace qi + qi::BufferReader br(_buffer); + AnyReference res(type); + return AnyValue( +- decodeBinary(&br, res, boost::bind(deserializeObject, _1, socket), socket), ++ decodeBinary(&br, res, boost::bind(deserializeObject, boost::placeholders::_1, socket), socket), + false, // i.e. don't copy + true // i.e. become resource owner + ); +@@ -330,19 +330,19 @@ namespace qi + setError(ss.str()); + } + else +- encodeBinary(*conv, boost::bind(serializeObject, _1, context, socket), ++ encodeBinary(*conv, boost::bind(serializeObject, boost::placeholders::_1, context, socket), + socket); + } + else if (value.type()->kind() != qi::TypeKind_Void) + { +- encodeBinary(value, boost::bind(serializeObject, _1, context, socket), socket); ++ encodeBinary(value, boost::bind(serializeObject, boost::placeholders::_1, context, socket), socket); + } + } + + void Message::setValues(const std::vector& values, + boost::weak_ptr context, MessageSocketPtr socket) + { +- SerializeObjectCallback scb = boost::bind(serializeObject, _1, context, socket); ++ SerializeObjectCallback scb = boost::bind(serializeObject, boost::placeholders::_1, context, socket); + for (unsigned i = 0; i < values.size(); ++i) + encodeBinary(values[i], scb, socket); + } +@@ -372,7 +372,7 @@ namespace qi + AnyReference tuple = makeGenericTuplePtr(types, values); + AnyValue val(tuple, false, false); + encodeBinary(AnyReference::from(val), +- boost::bind(serializeObject, _1, context, socket), socket); ++ boost::bind(serializeObject, boost::placeholders::_1, context, socket), socket); + return; + } + /* This check does not makes sense for this transport layer who does not care, +diff --git a/src/messaging/objectregistrar.cpp b/src/messaging/objectregistrar.cpp +index 7b56d746..12d91b95 100644 +--- a/src/messaging/objectregistrar.cpp ++++ b/src/messaging/objectregistrar.cpp +@@ -131,7 +131,7 @@ namespace qi { + + // ack the Service directory to tell that we are ready + qi::Future fut2 = _sdClient->serviceReady(idx); +- fut2.connect(boost::bind(&serviceReady, _1, result, idx)); ++ fut2.connect(boost::bind(&serviceReady, boost::placeholders::_1, result, idx)); + } + + qi::Future ObjectRegistrar::registerService(const std::string &name, qi::AnyObject obj) +@@ -159,7 +159,7 @@ namespace qi { + + auto future = _sdClient->registerService(si); + future.connect( +- track(boost::bind(&ObjectRegistrar::onFutureFinished, this, _1, id, prom), &_tracker)); ++ track(boost::bind(&ObjectRegistrar::onFutureFinished, this, boost::placeholders::_1, id, prom), &_tracker)); + }, &_tracker)); + return prom.future(); + }; +diff --git a/src/messaging/remoteobject.cpp b/src/messaging/remoteobject.cpp +index d09956f9..e83ab921 100644 +--- a/src/messaging/remoteobject.cpp ++++ b/src/messaging/remoteobject.cpp +@@ -128,7 +128,7 @@ namespace qi { + qi::Future fut = + _self.async("metaObject", 0U); + fut.connect(trackWithFallback(&throwRemoteObjectDestroyedException, +- boost::bind(&RemoteObject::onMetaObject, this, _1, prom), ++ boost::bind(&RemoteObject::onMetaObject, this, boost::placeholders::_1, prom), + weak_from_this())); + return prom.future(); + } +@@ -500,7 +500,7 @@ namespace qi { + } + + rsl.future.connect(trackWithFallback(&throwRemoteObjectDestroyedException, +- boost::bind(&onEventConnected, this, _1, prom, uid), ++ boost::bind(&onEventConnected, this, boost::placeholders::_1, prom, uid), + weak_from_this())); + return prom.future(); + } +diff --git a/src/messaging/servicedirectory.cpp b/src/messaging/servicedirectory.cpp +index 13c0c243..4776b139 100644 +--- a/src/messaging/servicedirectory.cpp ++++ b/src/messaging/servicedirectory.cpp +@@ -551,7 +551,7 @@ namespace qi + void ServiceDirectory::_setServiceBoundObject(boost::shared_ptr bo) + { + serviceBoundObject = bo; +- bo->setOnSocketUnbound(boost::bind(&ServiceDirectory::removeClientSocket, this, _1)); ++ bo->setOnSocketUnbound(boost::bind(&ServiceDirectory::removeClientSocket, this, boost::placeholders::_1)); + } + + } // !qi +diff --git a/src/messaging/servicedirectoryclient.cpp b/src/messaging/servicedirectoryclient.cpp +index af2427d3..66dc79a4 100644 +--- a/src/messaging/servicedirectoryclient.cpp ++++ b/src/messaging/servicedirectoryclient.cpp +@@ -173,16 +173,16 @@ namespace qi { + qi::Future fut1 = _object.connect( + "serviceAdded", + boost::function( +- qi::bind(&ServiceDirectoryClient::onServiceAdded, this, _1, _2))); ++ qi::bind(&ServiceDirectoryClient::onServiceAdded, this, boost::placeholders::_1, boost::placeholders::_2))); + qi::Future fut2 = _object.connect( + "serviceRemoved", + boost::function( +- qi::bind(&ServiceDirectoryClient::onServiceRemoved, this, _1, _2))); ++ qi::bind(&ServiceDirectoryClient::onServiceRemoved, this, boost::placeholders::_1, boost::placeholders::_2))); + + fut1.then(track( +- boost::bind(&ServiceDirectoryClient::onSDEventConnected, this, _1, promise, true), this)); ++ boost::bind(&ServiceDirectoryClient::onSDEventConnected, this, boost::placeholders::_1, promise, true), this)); + fut2.then(track( +- boost::bind(&ServiceDirectoryClient::onSDEventConnected, this, _1, promise, false), this)); ++ boost::bind(&ServiceDirectoryClient::onSDEventConnected, this, boost::placeholders::_1, promise, false), this)); + } + + namespace service_directory_client_private +@@ -247,7 +247,7 @@ namespace qi { + service_directory_client_private::sendCapabilities(socket); + qi::Future future = _remoteObject->fetchMetaObject(); + future.connect(track( +- boost::bind(&ServiceDirectoryClient::onMetaObjectFetched, this, socket, _1, prom), this)); ++ boost::bind(&ServiceDirectoryClient::onMetaObjectFetched, this, socket, boost::placeholders::_1, prom), this)); + } + return; + } +@@ -274,7 +274,7 @@ namespace qi { + exchangeInvalidSignalLink(_stateData.sdSocketSocketEventSignalLink)); + qi::Future future = _remoteObject->fetchMetaObject(); + future.connect(track( +- boost::bind(&ServiceDirectoryClient::onMetaObjectFetched, this, socket, _1, prom), this)); ++ boost::bind(&ServiceDirectoryClient::onMetaObjectFetched, this, socket, boost::placeholders::_1, prom), this)); + return; + } + +@@ -371,7 +371,7 @@ namespace qi { + + connecting.connect( + track(boost::bind(&ServiceDirectoryClient::onSocketConnected, this, _stateData.sdSocket, +- _1, promise), this)); ++ boost::placeholders::_1, promise), this)); + return promise.future(); + } + +@@ -385,11 +385,11 @@ namespace qi { + _stateData.addSignalLink = _object.connect( + "serviceAdded", + boost::function( +- qi::bind(&ServiceDirectoryClient::onServiceAdded, this, _1, _2))).value(); ++ qi::bind(&ServiceDirectoryClient::onServiceAdded, this, boost::placeholders::_1, boost::placeholders::_2))).value(); + _stateData.removeSignalLink = _object.connect( + "serviceRemoved", + boost::function( +- qi::bind(&ServiceDirectoryClient::onServiceRemoved, this, _1, _2))).value(); ++ qi::bind(&ServiceDirectoryClient::onServiceRemoved, this, boost::placeholders::_1, boost::placeholders::_2))).value(); + } + + connected(); +diff --git a/src/messaging/session.cpp b/src/messaging/session.cpp +index eee30172..2bf22251 100644 +--- a/src/messaging/session.cpp ++++ b/src/messaging/session.cpp +@@ -45,7 +45,7 @@ namespace qi { + session->serviceUnregistered.setCallType(qi::MetaCallType_Queued); + + _sdClient.connected.connect(session->connected); +- _sdClient.disconnected.connect(&SessionPrivate::onServiceDirectoryClientDisconnected, this, _1); ++ _sdClient.disconnected.connect(&SessionPrivate::onServiceDirectoryClientDisconnected, this, boost::placeholders::_1); + _sdClient.disconnected.connect(session->disconnected); + _sdClient.serviceAdded.connect(session->serviceRegistered); + _sdClient.serviceRemoved.connect(session->serviceUnregistered); +@@ -480,7 +480,7 @@ namespace qi { + + qi::Promise promise; + promise.setOnCancel([ret](qi::Promise&) mutable { ret.cancel(); }); +- ret.then(qi::bind(qi::detail::futureAdapter, _1, promise)); ++ ret.then(qi::bind(qi::detail::futureAdapter, boost::placeholders::_1, promise)); + return promise.future(); + } + +diff --git a/src/messaging/sessionservice.cpp b/src/messaging/sessionservice.cpp +index 55029f49..7b4afdb2 100644 +--- a/src/messaging/sessionservice.cpp ++++ b/src/messaging/sessionservice.cpp +@@ -224,7 +224,7 @@ namespace qi { + qiLogVerbose() << "Fetching metaobject (1) for requestId = " << requestId; + metaObjFut.connect(track( + boost::bind( +- &Session_Service::onRemoteObjectComplete, this, _1, requestId), ++ &Session_Service::onRemoteObjectComplete, this, boost::placeholders::_1, requestId), + this)); + mustSetPromise = false; + } +@@ -262,7 +262,7 @@ namespace qi { + qiLogVerbose() << "Fetching metaobject (2) for requestId = " << requestId; + metaObjFut.connect(track( + boost::bind( +- &Session_Service::onRemoteObjectComplete, this, _1, requestId), ++ &Session_Service::onRemoteObjectComplete, this, boost::placeholders::_1, requestId), + this)); + mustSetPromise = false; + return; +@@ -567,7 +567,7 @@ namespace qi { + qiLogVerbose() << "Requesting socket from cache. service = '" << service << "', " + "requestId = " << *requestId; + Future f = _socketCache->socket(fut.value()); +- f.connect(track(boost::bind(&Session_Service::onTransportSocketResult, this, _1, *requestId), this)); ++ f.connect(track(boost::bind(&Session_Service::onTransportSocketResult, this, boost::placeholders::_1, *requestId), this)); + mustSetPromise = false; + }, this)); + return result; +diff --git a/src/messaging/transportserverasio_p.cpp b/src/messaging/transportserverasio_p.cpp +index cc6e21e7..fa1ed2e8 100644 +--- a/src/messaging/transportserverasio_p.cpp ++++ b/src/messaging/transportserverasio_p.cpp +@@ -93,7 +93,7 @@ namespace qi + } + _s = sock::makeSocketWithContextPtr(PTR_GET_IO_SERVICE(_acceptor), _sslContext); + _acceptor->async_accept(_s->lowest_layer(), +- boost::bind(_onAccept, shared_from_this(), _1, _s)); ++ boost::bind(_onAccept, shared_from_this(), boost::placeholders::_1, _s)); + } + + void TransportServerAsioPrivate::close() { +@@ -329,7 +329,7 @@ namespace qi + + _s = sock::makeSocketWithContextPtr(PTR_GET_IO_SERVICE(_acceptor), _sslContext); + _acceptor->async_accept(_s->lowest_layer(), +- boost::bind(_onAccept, shared_from_this(), _1, _s)); ++ boost::bind(_onAccept, shared_from_this(), boost::placeholders::_1, _s)); + _connectionPromise.setValue(0); + return _connectionPromise.future(); + } +diff --git a/src/periodictask.cpp b/src/periodictask.cpp +index 82997da8..417ccb71 100644 +--- a/src/periodictask.cpp ++++ b/src/periodictask.cpp +@@ -275,7 +275,7 @@ namespace qi + // _onTaskFinished needs to be executed even if the default thread pool is destroyed + // to achieve this we want _onTaskFinished to be executed in the thread setting the result. + _task.connect(qi::track(boost::bind( +- &PeriodicTaskPrivate::_onTaskFinished, this, _1), this), qi::FutureCallbackType_Sync); ++ &PeriodicTaskPrivate::_onTaskFinished, this, boost::placeholders::_1), this), qi::FutureCallbackType_Sync); + } + + void PeriodicTaskPrivate::_wrap() +diff --git a/src/type/anyreference.cpp b/src/type/anyreference.cpp +index 17565d92..bd83d545 100644 +--- a/src/type/anyreference.cpp ++++ b/src/type/anyreference.cpp +@@ -105,7 +105,7 @@ namespace detail + new GenericObject( + static_cast(pointedSrc._type), + pointedSrc._value, pointedSrc.to().uid()), +- boost::bind(dropIt, _1, qi::AnyValue(*this))); ++ boost::bind(dropIt, boost::placeholders::_1, qi::AnyValue(*this))); + return AnyReference::from(o).convert((TypeInterface*)targetType); + } + if (pointedDstPair.ownsReference()) +diff --git a/src/type/dynamicobject.cpp b/src/type/dynamicobject.cpp +index ea1eb72e..a72799fd 100644 +--- a/src/type/dynamicobject.cpp ++++ b/src/type/dynamicobject.cpp +@@ -520,7 +520,7 @@ namespace qi + + auto deleter = [&]() -> boost::function { + if (destroyObject || onDelete) +- return boost::bind(&cleanupDynamicObject, _1, destroyObject, onDelete); ++ return boost::bind(&cleanupDynamicObject, boost::placeholders::_1, destroyObject, onDelete); + else + return &AnyObject::deleteGenericObjectOnly; + }(); +diff --git a/src/messaging/sock/networkasio.hpp b/src/messaging/sock/networkasio.hpp +index 0069a52d..4fef529f 100644 +--- a/src/messaging/sock/networkasio.hpp ++++ b/src/messaging/sock/networkasio.hpp +@@ -20,6 +20,7 @@ namespace qi { namespace sock { + { + using acceptor_type = boost::asio::ip::tcp::acceptor; + using resolver_type = boost::asio::ip::tcp::resolver; ++ using executor_type = boost::asio::io_context::executor_type; + using ssl_context_type = boost::asio::ssl::context; + using ssl_socket_type = boost::asio::ssl::stream; + using socket_option_no_delay_type = boost::asio::ip::tcp::no_delay; +diff --git a/src/messaging/sock/socketwithcontext.hpp b/src/messaging/sock/socketwithcontext.hpp +index 9d25ae6d..5d9511d5 100644 +--- a/src/messaging/sock/socketwithcontext.hpp ++++ b/src/messaging/sock/socketwithcontext.hpp +@@ -1,6 +1,8 @@ + #pragma once + #ifndef _QI_SOCK_SOCKETWITHCONTEXT_HPP + #define _QI_SOCK_SOCKETWITHCONTEXT_HPP ++#include ++#include + #include + #include + #include "traits.hpp" +@@ -28,6 +30,7 @@ namespace qi { namespace sock { + using handshake_type = HandshakeSide; + using lowest_layer_type = Lowest; + using next_layer_type = typename socket_t::next_layer_type; ++ using executor_type = boost::asio::io_context::executor_type; + + SocketWithContext(io_service_t& io, const SslContextPtr& ctx) + : context(ctx) diff --git a/distros/noetic/patch/ros-noetic-octomap.patch b/distros/noetic/patch/ros-noetic-octomap.patch new file mode 100644 index 000000000..7d9ab6f0d --- /dev/null +++ b/distros/noetic/patch/ros-noetic-octomap.patch @@ -0,0 +1,168 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6c14a2d9..395f9cd7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,8 +1,6 @@ + CMAKE_MINIMUM_REQUIRED(VERSION 3.0.2) + PROJECT( octomap ) + +-set(CMAKE_INSTALL_LIBDIR "lib") +- + include(CTest) + include(GNUInstallDirs) + +@@ -57,7 +55,6 @@ LINK_DIRECTORIES(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) + + # Installation + +- + set(INSTALL_TARGETS_DEFAULT_ARGS + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" +diff --git a/include/octomap/OcTreeIterator.hxx b/include/octomap/OcTreeIterator.hxx +index 66ae63f8..5f2dd7e5 100644 +--- a/include/octomap/OcTreeIterator.hxx ++++ b/include/octomap/OcTreeIterator.hxx +@@ -39,8 +39,15 @@ + * const with respect to the tree. This file is included within + * OcTreeBaseImpl.h, you should probably not include this directly. + */ +- class iterator_base : public std::iterator{ ++ template ++ class iterator_base{ + public: ++ using iterator_category = std::forward_iterator_tag; ++ using value_type = NodeType; ++ using difference_type = NodeType; ++ using pointer = NodeType*; ++ using reference = NodeType&; ++ + struct StackElement; + /// Default ctor, only used for the end-iterator + iterator_base() : tree(NULL), maxDepth(0){} +@@ -204,16 +211,16 @@ + * } + * @endcode + */ +- class tree_iterator : public iterator_base { ++ class tree_iterator : public iterator_base { + public: +- tree_iterator() : iterator_base(){} ++ tree_iterator() : iterator_base(){} + /** + * Constructor of the iterator. + * + * @param ptree OcTreeBaseImpl on which the iterator is used on + * @param depth Maximum depth to traverse the tree. 0 (default): unlimited + */ +- tree_iterator(OcTreeBaseImpl const* ptree, uint8_t depth=0) : iterator_base(ptree, depth) {}; ++ tree_iterator(OcTreeBaseImpl const* ptree, uint8_t depth=0) : iterator_base(ptree, depth) {}; + + /// postfix increment operator of iterator (it++) + tree_iterator operator++(int){ +@@ -260,9 +267,9 @@ + * @endcode + * + */ +- class leaf_iterator : public iterator_base { ++ class leaf_iterator : public iterator_base { + public: +- leaf_iterator() : iterator_base(){} ++ leaf_iterator() : iterator_base(){} + + /** + * Constructor of the iterator. +@@ -270,7 +277,7 @@ + * @param ptree OcTreeBaseImpl on which the iterator is used on + * @param depth Maximum depth to traverse the tree. 0 (default): unlimited + */ +- leaf_iterator(OcTreeBaseImpl const* ptree, uint8_t depth=0) : iterator_base(ptree, depth) { ++ leaf_iterator(OcTreeBaseImpl const* ptree, uint8_t depth=0) : iterator_base(ptree, depth) { + // tree could be empty (= no stack) + if (this->stack.size() > 0){ + // skip forward to next valid leaf node: +@@ -280,7 +287,7 @@ + } + } + +- leaf_iterator(const leaf_iterator& other) : iterator_base(other) {}; ++ leaf_iterator(const leaf_iterator& other) : iterator_base(other) {}; + + /// postfix increment operator of iterator (it++) + leaf_iterator operator++(int){ +@@ -332,9 +339,9 @@ + * } + * @endcode + */ +- class leaf_bbx_iterator : public iterator_base { ++ class leaf_bbx_iterator : public iterator_base { + public: +- leaf_bbx_iterator() : iterator_base() {}; ++ leaf_bbx_iterator() : iterator_base() {}; + /** + * Constructor of the iterator. The bounding box corners min and max are + * converted into an OcTreeKey first. +@@ -351,7 +358,7 @@ + * @param depth Maximum depth to traverse the tree. 0 (default): unlimited + */ + leaf_bbx_iterator(OcTreeBaseImpl const* ptree, const point3d& min, const point3d& max, uint8_t depth=0) +- : iterator_base(ptree, depth) ++ : iterator_base(ptree, depth) + { + if (this->stack.size() > 0){ + assert(ptree); +@@ -379,7 +386,7 @@ + * @param depth Maximum depth to traverse the tree. 0 (default): unlimited + */ + leaf_bbx_iterator(OcTreeBaseImpl const* ptree, const OcTreeKey& min, const OcTreeKey& max, uint8_t depth=0) +- : iterator_base(ptree, depth), minKey(min), maxKey(max) ++ : iterator_base(ptree, depth), minKey(min), maxKey(max) + { + // tree could be empty (= no stack) + if (this->stack.size() > 0){ +@@ -389,7 +396,7 @@ + } + } + +- leaf_bbx_iterator(const leaf_bbx_iterator& other) : iterator_base(other) { ++ leaf_bbx_iterator(const leaf_bbx_iterator& other) : iterator_base(other) { + minKey = other.minKey; + maxKey = other.maxKey; + } +@@ -430,10 +437,10 @@ + protected: + + void singleIncrement(){ +- typename iterator_base::StackElement top = this->stack.top(); ++ typename iterator_base::StackElement top = this->stack.top(); + this->stack.pop(); + +- typename iterator_base::StackElement s; ++ typename iterator_base::StackElement s; + s.depth = top.depth +1; + key_type center_offset_key = this->tree->tree_max_val >> s.depth; + // push on stack in reverse order +diff --git a/src/testing/CMakeLists.txt b/src/testing/CMakeLists.txt +index eae2876d..5dc1d952 100644 +--- a/src/testing/CMakeLists.txt ++++ b/src/testing/CMakeLists.txt +@@ -50,4 +50,6 @@ if(BUILD_TESTING) + ADD_TEST (NAME test_mapcollection COMMAND test_mapcollection ${PROJECT_SOURCE_DIR}/share/data/mapcoll.txt) + ADD_TEST (NAME test_color_tree COMMAND test_color_tree) + ADD_TEST (NAME test_bbx COMMAND test_bbx) ++ ++ SET_TESTS_PROPERTIES (ReadGraph PROPERTIES DEPENDS InsertScan) + endif() +diff --git a/include/octomap/OcTreeBase.h b/include/octomap/OcTreeBase.h +index d53b4056..ce56da52 100644 +--- a/include/octomap/OcTreeBase.h ++++ b/include/octomap/OcTreeBase.h +@@ -43,7 +43,7 @@ namespace octomap { + template + class OcTreeBase : public OcTreeBaseImpl { + public: +- OcTreeBase(double res) : OcTreeBaseImpl(res) {}; ++ OcTreeBase(double res) : OcTreeBaseImpl(res) {}; + + /// virtual constructor: creates a new object of same type + /// (Covariant return type requires an up-to-date compiler) diff --git a/distros/noetic/patch/ros-noetic-octomap.win.patch b/distros/noetic/patch/ros-noetic-octomap.win.patch new file mode 100644 index 000000000..3bc95c33c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-octomap.win.patch @@ -0,0 +1,82 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 45b384f..7a47f77 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -11,14 +11,13 @@ SET (octomap_SRCS + ) + + # dynamic and static libs, see CMake FAQ: +-ADD_LIBRARY( octomap SHARED ${octomap_SRCS}) +-set_target_properties( octomap PROPERTIES +- VERSION ${OCTOMAP_VERSION} +- SOVERSION ${OCTOMAP_SOVERSION} +-) +-ADD_LIBRARY( octomap-static STATIC ${octomap_SRCS}) +-SET_TARGET_PROPERTIES(octomap-static PROPERTIES OUTPUT_NAME "octomap") +-add_dependencies(octomap-static octomath-static) ++# ADD_LIBRARY( octomap SHARED ${octomap_SRCS}) ++# set_target_properties( octomap PROPERTIES ++# VERSION ${OCTOMAP_VERSION} ++# SOVERSION ${OCTOMAP_SOVERSION} ++# ) ++ADD_LIBRARY( octomap STATIC ${octomap_SRCS}) ++SET_TARGET_PROPERTIES(octomap PROPERTIES OUTPUT_NAME "octomap") + + TARGET_LINK_LIBRARIES(octomap octomath) + +@@ -26,7 +25,7 @@ if(NOT EXISTS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap") + file(MAKE_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap") + endif() + +-export(TARGETS octomap octomap-static ++export(TARGETS octomap + APPEND FILE "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap/octomap-targets.cmake") + + ADD_SUBDIRECTORY( testing ) +@@ -67,7 +66,7 @@ TARGET_LINK_LIBRARIES(intersection_example octomap) + ADD_EXECUTABLE(octree2pointcloud octree2pointcloud.cpp) + TARGET_LINK_LIBRARIES(octree2pointcloud octomap) + +-install(TARGETS octomap octomap-static ++install(TARGETS octomap + EXPORT octomap-targets + INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" + ${INSTALL_TARGETS_DEFAULT_ARGS} +diff --git a/src/math/CMakeLists.txt b/src/math/CMakeLists.txt +index 3b47ec4..e163ba0 100644 +--- a/src/math/CMakeLists.txt ++++ b/src/math/CMakeLists.txt +@@ -5,24 +5,24 @@ SET (octomath_SRCS + ) + + +-ADD_LIBRARY( octomath SHARED ${octomath_SRCS}) ++# ADD_LIBRARY( octomath SHARED ${octomath_SRCS}) + +-SET_TARGET_PROPERTIES( octomath PROPERTIES +- VERSION ${OCTOMAP_VERSION} +- SOVERSION ${OCTOMAP_SOVERSION} +-) ++# SET_TARGET_PROPERTIES( octomath PROPERTIES ++# VERSION ${OCTOMAP_VERSION} ++# SOVERSION ${OCTOMAP_SOVERSION} ++# ) + +-ADD_LIBRARY( octomath-static STATIC ${octomath_SRCS}) +-SET_TARGET_PROPERTIES(octomath-static PROPERTIES OUTPUT_NAME "octomath") ++ADD_LIBRARY( octomath STATIC ${octomath_SRCS}) ++SET_TARGET_PROPERTIES(octomath PROPERTIES OUTPUT_NAME "octomath") + + if(NOT EXISTS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap") + file(MAKE_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap") + endif() + +-export(TARGETS octomath octomath-static ++export(TARGETS octomath + APPEND FILE "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap/octomap-targets.cmake") + +-install(TARGETS octomath octomath-static ++install(TARGETS octomath + EXPORT octomap-targets + INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" + ${INSTALL_TARGETS_DEFAULT_ARGS} diff --git a/distros/noetic/patch/ros-noetic-ompl.patch b/distros/noetic/patch/ros-noetic-ompl.patch new file mode 100644 index 000000000..603adf891 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ompl.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 53ecf24..29e75f0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -178,8 +178,8 @@ find_program(R_EXEC R) + + add_subdirectory(src) + add_subdirectory(py-bindings) +-add_subdirectory(tests) +-add_subdirectory(demos) ++# add_subdirectory(tests) ++# add_subdirectory(demos) + add_subdirectory(scripts) + add_subdirectory(doc) + diff --git a/distros/noetic/patch/ros-noetic-openslam-gmapping.patch b/distros/noetic/patch/ros-noetic-openslam-gmapping.patch new file mode 100644 index 000000000..47d09f564 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-openslam-gmapping.patch @@ -0,0 +1,1092 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3e37b59..eaef201 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,13 +4,19 @@ project(openslam_gmapping) + ## Find catkin macros and libraries + find_package(catkin REQUIRED) + ++include(GenerateExportHeader) ++set(EXPORT_HEADER_DIR "${CATKIN_DEVEL_PREFIX}/include") ++file(MAKE_DIRECTORY "${EXPORT_HEADER_DIR}") ++ + ################################### + ## catkin specific configuration ## + ################################### + ## The catkin_package macro generates cmake config files for your package + ## Declare things to be passed to dependent projects + catkin_package( +- INCLUDE_DIRS include ++ INCLUDE_DIRS ++ include ++ ${EXPORT_HEADER_DIR} + LIBRARIES utils sensor_base sensor_odometry sensor_range log configfile scanmatcher gridfastslam + ) + +@@ -20,7 +26,10 @@ catkin_package( + + ## Specify additional locations of header files + ## Your package locations should be listed before other locations +-include_directories(include) ++include_directories( ++ include ++ ${EXPORT_HEADER_DIR} ++) + + #SUBDIRS=utils sensor log configfile scanmatcher gridfastslam gui + +@@ -152,9 +161,13 @@ target_link_libraries(gridfastslam + # ) + + ## Mark executables and/or libraries for installation +-install(TARGETS utils autoptr_test sensor_base sensor_odometry sensor_range sensor_range log log_test log_plot scanstudio2carmen rdk2carmen configfile configfile_test scanmatcher scanmatch_test icptest gridfastslam gfs2log gfs2rec gfs2neff ++install(TARGETS utils sensor_base sensor_odometry sensor_range log configfile scanmatcher gridfastslam + ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} ++ RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION} ++) ++ ++install(TARGETS autoptr_test log_test log_plot scanstudio2carmen rdk2carmen configfile_test scanmatch_test icptest gfs2log gfs2rec gfs2neff + RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} + ) + +@@ -165,6 +178,27 @@ install(DIRECTORY include/gmapping + PATTERN ".svn" EXCLUDE + ) + ++generate_export_header(utils ++ EXPORT_FILE_NAME ${EXPORT_HEADER_DIR}/gmapping/utils/utils_export.h) ++generate_export_header(sensor_base ++ EXPORT_FILE_NAME ${EXPORT_HEADER_DIR}/gmapping/sensor/sensor_base/sensor_base_export.h) ++generate_export_header(sensor_odometry ++ EXPORT_FILE_NAME ${EXPORT_HEADER_DIR}/gmapping/sensor/sensor_odometry/sensor_odometry_export.h) ++generate_export_header(sensor_range ++ EXPORT_FILE_NAME ${EXPORT_HEADER_DIR}/gmapping/sensor/sensor_range/sensor_range_export.h) ++generate_export_header(log ++ EXPORT_FILE_NAME ${EXPORT_HEADER_DIR}/gmapping/log/log_export.h) ++generate_export_header(configfile ++ EXPORT_FILE_NAME ${EXPORT_HEADER_DIR}/gmapping/configfile/configfile_export.h) ++generate_export_header(scanmatcher ++ EXPORT_FILE_NAME ${EXPORT_HEADER_DIR}/gmapping/scanmatcher/scanmatcher_export.h) ++generate_export_header(gridfastslam ++ EXPORT_FILE_NAME ${EXPORT_HEADER_DIR}/gmapping/gridfastslam/gridfastslam_export.h) ++ ++install(DIRECTORY ++ ${EXPORT_HEADER_DIR}/ ++ DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}) ++ + ############# + ## Testing ## + ############# +diff --git a/carmenwrapper/carmenwrapper.cpp b/carmenwrapper/carmenwrapper.cpp +index 77a8ae5..786436f 100644 +--- a/carmenwrapper/carmenwrapper.cpp ++++ b/carmenwrapper/carmenwrapper.cpp +@@ -177,7 +177,7 @@ bool CarmenWrapper::getReading(RangeReading& reading){ + sem_wait(&m_dequeSem); + pthread_mutex_lock(&m_mutex); + if (!m_rangeDeque.empty()){ +-// cerr << __PRETTY_FUNCTION__ << ": queue size=" <num_readings, res, OrientedPoint(0,0,0), 0, 89.9); + m_sensorMap.insert(make_pair(string("FLASER"), m_rangeSensor)); + +- cout << __PRETTY_FUNCTION__ ++ cout << __func__ + << ": FrontLaser configured." + << " Readings " << m_rangeSensor->beams().size() + << " Resolution " << res << endl; +@@ -241,7 +241,7 @@ void CarmenWrapper::robot_rearlaser_handler(carmen_robot_laser_message* rearlase + m_rangeSensor=new RangeSensor("FLASER",frontlaser->num_readings, res, OrientedPoint(0,0,0), 0, 89.9); + m_sensorMap.insert(make_pair(string("FLASER"), m_rangeSensor)); + +- cout << __PRETTY_FUNCTION__ ++ cout << __func__ + << ": FrontLaser configured." + << " Readings " << m_rangeSensor->beams().size() + << " Resolution " << res << endl; +@@ -324,7 +324,7 @@ RangeReading CarmenWrapper::carmen2reading(const carmen_robot_laser_message& msg + m_frontLaser->updateBeamsLookup(); + m_sensorMap.insert(make_pair(sensorName, m_frontLaser)); + +- cout << __PRETTY_FUNCTION__ ++ cout << __func__ + << ": " << sensorName <<" configured." + << " Readings " << m_frontLaser->beams().size() + << " Resolution " << res << endl; +@@ -346,7 +346,7 @@ RangeReading CarmenWrapper::carmen2reading(const carmen_robot_laser_message& msg + m_rearLaser->updateBeamsLookup(); + m_sensorMap.insert(make_pair(sensorName, m_rearLaser)); + +- cout << __PRETTY_FUNCTION__ ++ cout << __func__ + << ": " << sensorName <<" configured." + << " Readings " << m_rearLaser->beams().size() + << " Resolution " << res << endl; +diff --git a/gfs-carmen/gfs-carmen.cpp b/gfs-carmen/gfs-carmen.cpp +index df477e4..eb20de4 100644 +--- a/gfs-carmen/gfs-carmen.cpp ++++ b/gfs-carmen/gfs-carmen.cpp +@@ -26,7 +26,7 @@ + #include + #include + +-#define DEBUG cout << __PRETTY_FUNCTION__ ++#define DEBUG cout << __func__ + + /* + Example file for interfacing carmen, and gfs. +@@ -227,10 +227,10 @@ int main(int argc, const char * const * argv){ + cerr << "Best Particle is " << best_idx << " with weight " << best_weight << endl; + + */ +- cerr << __PRETTY_FUNCTION__ << "CLONING... " << endl; ++ cerr << __func__ << "CLONING... " << endl; + GridSlamProcessor* newProcessor=processor->clone(); + cerr << "DONE" << endl; +- cerr << __PRETTY_FUNCTION__ << "DELETING... " << endl; ++ cerr << __func__ << "DELETING... " << endl; + delete processor; + cerr << "DONE" << endl; + processor=newProcessor; +diff --git a/gridfastslam/gridslamprocessor.cpp b/gridfastslam/gridslamprocessor.cpp +index 3466746..51fcf52 100644 +--- a/gridfastslam/gridslamprocessor.cpp ++++ b/gridfastslam/gridslamprocessor.cpp +@@ -71,7 +71,7 @@ using namespace std; + m_obsSigmaGain=gsp.m_obsSigmaGain; + + #ifdef MAP_CONSISTENCY_CHECK +- cerr << __PRETTY_FUNCTION__ << ": trajectories copy.... "; ++ cerr << __func__ << ": trajectories copy.... "; + #endif + TNodeVector v=gsp.getTrajectories(); + for (unsigned int i=0; i >::reference* const, int> PointerMap; + PointerMap pmap; + for (ParticleVector::const_iterator it=m_particles.begin(); it!=m_particles.end(); it++){ +@@ -116,17 +116,17 @@ using namespace std; + } + } + } +- cerr << __PRETTY_FUNCTION__ << ": Number of allocated chunks" << pmap.size() << endl; ++ cerr << __func__ << ": Number of allocated chunks" << pmap.size() << endl; + for(PointerMap::const_iterator it=pmap.begin(); it!=pmap.end(); it++) + assert(it->first->shares==(unsigned int)it->second); + +- cerr << __PRETTY_FUNCTION__ << ": SUCCESS, the error is somewhere else" << endl; ++ cerr << __func__ << ": SUCCESS, the error is somewhere else" << endl; + # endif + GridSlamProcessor* cloned=new GridSlamProcessor(*this); + + # ifdef MAP_CONSISTENCY_CHECK +- cerr << __PRETTY_FUNCTION__ << ": trajectories end" << endl; +- cerr << __PRETTY_FUNCTION__ << ": performing afterclone_fit_test" << endl; ++ cerr << __func__ << ": trajectories end" << endl; ++ cerr << __func__ << ": performing afterclone_fit_test" << endl; + ParticleVector::const_iterator jt=cloned->m_particles.begin(); + for (ParticleVector::const_iterator it=m_particles.begin(); it!=m_particles.end(); it++){ + const ScanMatcherMap& m1(it->map); +@@ -143,14 +143,14 @@ using namespace std; + } + } + } +- cerr << __PRETTY_FUNCTION__ << ": SUCCESS, the error is somewhere else" << endl; ++ cerr << __func__ << ": SUCCESS, the error is somewhere else" << endl; + # endif + return cloned; + } + + GridSlamProcessor::~GridSlamProcessor(){ +- cerr << __PRETTY_FUNCTION__ << ": Start" << endl; +- cerr << __PRETTY_FUNCTION__ << ": Deleting tree" << endl; ++ cerr << __func__ << ": Start" << endl; ++ cerr << __func__ << ": Deleting tree" << endl; + for (std::vector::iterator it=m_particles.begin(); it!=m_particles.end(); it++){ + #ifdef TREE_CONSISTENCY_CHECK + TNode* node=it->node; +@@ -164,7 +164,7 @@ using namespace std; + } + + # ifdef MAP_CONSISTENCY_CHECK +- cerr << __PRETTY_FUNCTION__ << ": performing predestruction_fit_test" << endl; ++ cerr << __func__ << ": performing predestruction_fit_test" << endl; + typedef std::map >::reference* const, int> PointerMap; + PointerMap pmap; + for (ParticleVector::const_iterator it=m_particles.begin(); it!=m_particles.end(); it++){ +@@ -183,10 +183,10 @@ using namespace std; + } + } + } +- cerr << __PRETTY_FUNCTION__ << ": Number of allocated chunks" << pmap.size() << endl; ++ cerr << __func__ << ": Number of allocated chunks" << pmap.size() << endl; + for(PointerMap::const_iterator it=pmap.begin(); it!=pmap.end(); it++) + assert(it->first->shares>=(unsigned int)it->second); +- cerr << __PRETTY_FUNCTION__ << ": SUCCESS, the error is somewhere else" << endl; ++ cerr << __func__ << ": SUCCESS, the error is somewhere else" << endl; + # endif + } + +diff --git a/gridfastslam/gridslamprocessor_tree.cpp b/gridfastslam/gridslamprocessor_tree.cpp +index 41685c6..390e2d1 100644 +--- a/gridfastslam/gridslamprocessor_tree.cpp ++++ b/gridfastslam/gridslamprocessor_tree.cpp +@@ -57,22 +57,22 @@ GridSlamProcessor::TNodeVector GridSlamProcessor::getTrajectories() const{ + assert(newnode->childs==0); + if (newnode->parent){ + parentCache.insert(make_pair(newnode->parent, newnode)); +- //cerr << __PRETTY_FUNCTION__ << ": node " << newnode->parent << " flag=" << newnode->parent->flag<< endl; ++ //cerr << __func__ << ": node " << newnode->parent << " flag=" << newnode->parent->flag<< endl; + if (! newnode->parent->flag){ +- //cerr << __PRETTY_FUNCTION__ << ": node " << newnode->parent << " flag=" << newnode->parent->flag<< endl; ++ //cerr << __func__ << ": node " << newnode->parent << " flag=" << newnode->parent->flag<< endl; + newnode->parent->flag=true; + border.push_back(newnode->parent); + } + } + } + +- //cerr << __PRETTY_FUNCTION__ << ": border.size(INITIAL)=" << border.size() << endl; +- //cerr << __PRETTY_FUNCTION__ << ": parentCache.size()=" << parentCache.size() << endl; ++ //cerr << __func__ << ": border.size(INITIAL)=" << border.size() << endl; ++ //cerr << __func__ << ": parentCache.size()=" << parentCache.size() << endl; + while (! border.empty()){ +- //cerr << __PRETTY_FUNCTION__ << ": border.size(PREPROCESS)=" << border.size() << endl; +- //cerr << __PRETTY_FUNCTION__ << ": parentCache.size(PREPROCESS)=" << parentCache.size() << endl; ++ //cerr << __func__ << ": border.size(PREPROCESS)=" << border.size() << endl; ++ //cerr << __func__ << ": parentCache.size(PREPROCESS)=" << parentCache.size() << endl; + const TNode* node=border.front(); +- //cerr << __PRETTY_FUNCTION__ << ": node " << node << endl; ++ //cerr << __func__ << ": node " << node << endl; + border.pop_front(); + if (! node) + continue; +@@ -91,7 +91,7 @@ GridSlamProcessor::TNodeVector GridSlamProcessor::getTrajectories() const{ + } + ////cerr << endl; + parentCache.erase(p.first, p.second); +- //cerr << __PRETTY_FUNCTION__ << ": parentCache.size(POSTERASE)=" << parentCache.size() << endl; ++ //cerr << __func__ << ": parentCache.size(POSTERASE)=" << parentCache.size() << endl; + assert(childs==newnode->childs); + + //unmark the node +@@ -104,7 +104,7 @@ GridSlamProcessor::TNodeVector GridSlamProcessor::getTrajectories() const{ + } + //insert the parent in the cache + } +- //cerr << __PRETTY_FUNCTION__ << " : checking cloned trajectories" << endl; ++ //cerr << __func__ << " : checking cloned trajectories" << endl; + for (unsigned int i=0; i ++#ifndef _WIN32 ++ #include ++#endif + #include "gmapping/gui/gsp_thread.h" + + using namespace GMapping; +diff --git a/gui/gsp_thread.cpp b/gui/gsp_thread.cpp +index f1dc278..1300334 100644 +--- a/gui/gsp_thread.cpp ++++ b/gui/gsp_thread.cpp +@@ -29,7 +29,7 @@ + #include + #endif + +-#define DEBUG cout << __PRETTY_FUNCTION__ ++#define DEBUG cout << __func__ + + using namespace std; + +diff --git a/gui/qparticleviewer.cpp b/gui/qparticleviewer.cpp +index 846e33b..ccf58e7 100644 +--- a/gui/qparticleviewer.cpp ++++ b/gui/qparticleviewer.cpp +@@ -201,7 +201,7 @@ void QParticleViewer::drawMap(const ScanMatcherMap& map){ + Point wmax=Point(pic2map(IntPoint(m_pixmap->width()/2,-m_pixmap->height()/2))); + IntPoint imin=map.world2map(wmin); + IntPoint imax=map.world2map(wmax); +- /* cout << __PRETTY_FUNCTION__ << endl; ++ /* cout << __func__ << endl; + cout << " viewCenter=" << viewCenter.x << "," << viewCenter.y << endl; + cout << " wmin=" << wmin.x << "," << wmin.y << " wmax=" << wmax.x << "," << wmax.y << endl; + cout << " imin=" << imin.x << "," << imin.y << " imax=" << imax.x << "," << imax.y << endl; +diff --git a/include/gmapping/configfile/configfile.h b/include/gmapping/configfile/configfile.h +index 4f4a601..140a731 100644 +--- a/include/gmapping/configfile/configfile.h ++++ b/include/gmapping/configfile/configfile.h +@@ -26,10 +26,11 @@ + #include + #include + #include ++#include + + namespace GMapping{ + +-class AutoVal { ++class CONFIGFILE_EXPORT AutoVal { + public: + AutoVal() {}; + explicit AutoVal(const std::string&); +@@ -62,7 +63,7 @@ private: + std::string m_value; + }; + +-class ConfigFile { ++class CONFIGFILE_EXPORT ConfigFile { + std::map m_content; + + public: +diff --git a/include/gmapping/grid/array2d.h b/include/gmapping/grid/array2d.h +index 2494350..0d0c4eb 100644 +--- a/include/gmapping/grid/array2d.h ++++ b/include/gmapping/grid/array2d.h +@@ -56,7 +56,7 @@ Array2D::Array2D(int xsize, int ysize){ + m_cells=0; + } + if (debug){ +- std::cerr << __PRETTY_FUNCTION__ << std::endl; ++ std::cerr << __func__ << std::endl; + std::cerr << "m_xsize= " << m_xsize<< std::endl; + std::cerr << "m_ysize= " << m_ysize<< std::endl; + } +@@ -79,7 +79,7 @@ Array2D & Array2D::operator=(const Array2D & + m_cells[x][y]=g.m_cells[x][y]; + + if (debug){ +- std::cerr << __PRETTY_FUNCTION__ << std::endl; ++ std::cerr << __func__ << std::endl; + std::cerr << "m_xsize= " << m_xsize<< std::endl; + std::cerr << "m_ysize= " << m_ysize<< std::endl; + } +@@ -97,7 +97,7 @@ Array2D::Array2D(const Array2D & g){ + m_cells[x][y]=g.m_cells[x][y]; + } + if (debug){ +- std::cerr << __PRETTY_FUNCTION__ << std::endl; ++ std::cerr << __func__ << std::endl; + std::cerr << "m_xsize= " << m_xsize<< std::endl; + std::cerr << "m_ysize= " << m_ysize<< std::endl; + } +@@ -106,7 +106,7 @@ Array2D::Array2D(const Array2D & g){ + template + Array2D::~Array2D(){ + if (debug){ +- std::cerr << __PRETTY_FUNCTION__ << std::endl; ++ std::cerr << __func__ << std::endl; + std::cerr << "m_xsize= " << m_xsize<< std::endl; + std::cerr << "m_ysize= " << m_ysize<< std::endl; + } +@@ -121,7 +121,7 @@ Array2D::~Array2D(){ + template + void Array2D::clear(){ + if (debug){ +- std::cerr << __PRETTY_FUNCTION__ << std::endl; ++ std::cerr << __func__ << std::endl; + std::cerr << "m_xsize= " << m_xsize<< std::endl; + std::cerr << "m_ysize= " << m_ysize<< std::endl; + } +diff --git a/include/gmapping/gridfastslam/gfsreader.h b/include/gmapping/gridfastslam/gfsreader.h +index 16041f3..18ab997 100644 +--- a/include/gmapping/gridfastslam/gfsreader.h ++++ b/include/gmapping/gridfastslam/gfsreader.h +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include + + #define MAX_LINE_LENGHT (1000000) + +@@ -16,7 +17,7 @@ namespace GFSReader{ + + using namespace std; + +-struct Record{ ++struct GRIDFASTSLAM_EXPORT Record{ + unsigned int dim; + double time; + virtual ~Record(); +@@ -24,13 +25,13 @@ struct Record{ + virtual void write(ostream& os); + }; + +-struct CommentRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT CommentRecord: public Record{ + string text; + virtual void read(istream& is); + virtual void write(ostream& os); + }; + +-struct PoseRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT PoseRecord: public Record{ + PoseRecord(bool ideal=false); + void read(istream& is); + virtual void write(ostream& os); +@@ -38,13 +39,13 @@ struct PoseRecord: public Record{ + OrientedPoint pose; + }; + +-struct NeffRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT NeffRecord: public Record{ + void read(istream& is); + virtual void write(ostream& os); + double neff; + }; + +-struct EntropyRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT EntropyRecord: public Record{ + void read(istream& is); + virtual void write(ostream& os); + double poseEntropy; +@@ -53,23 +54,23 @@ struct EntropyRecord: public Record{ + }; + + +-struct OdometryRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT OdometryRecord: public Record{ + virtual void read(istream& is); + vector poses; + }; + +-struct RawOdometryRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT RawOdometryRecord: public Record{ + virtual void read(istream& is); + OrientedPoint pose; + }; + +-struct ScanMatchRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT ScanMatchRecord: public Record{ + virtual void read(istream& is); + vector poses; + vector weights; + }; + +-struct LaserRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT LaserRecord: public Record{ + virtual void read(istream& is); + virtual void write(ostream& os); + vector readings; +@@ -77,12 +78,12 @@ struct LaserRecord: public Record{ + double weight; + }; + +-struct ResampleRecord: public Record{ ++struct GRIDFASTSLAM_EXPORT ResampleRecord: public Record{ + virtual void read(istream& is); + vector indexes; + }; + +-struct RecordList: public list{ ++struct GRIDFASTSLAM_EXPORT RecordList: public list{ + mutable int sampleSize; + istream& read(istream& is); + double getLogWeight(unsigned int i) const; +diff --git a/include/gmapping/gridfastslam/gridslamprocessor.h b/include/gmapping/gridfastslam/gridslamprocessor.h +index 3b7f650..6595b51 100644 +--- a/include/gmapping/gridfastslam/gridslamprocessor.h ++++ b/include/gmapping/gridfastslam/gridslamprocessor.h +@@ -14,6 +14,7 @@ + #include + #include + #include "gmapping/gridfastslam/motionmodel.h" ++#include + + + namespace GMapping { +@@ -31,7 +32,7 @@ namespace GMapping { + In order to avoid unnecessary computation the filter state is updated + only when the robot moves more than a given threshold. + */ +- class GridSlamProcessor{ ++ class GRIDFASTSLAM_EXPORT GridSlamProcessor{ + public: + + +diff --git a/include/gmapping/gui/gsp_thread.h b/include/gmapping/gui/gsp_thread.h +index 8be4529..5c64232 100644 +--- a/include/gmapping/gui/gsp_thread.h ++++ b/include/gmapping/gui/gsp_thread.h +@@ -23,8 +23,10 @@ + #ifndef GSP_THREAD_H + #define GSP_THREAD_H + +-#include +-#include ++#ifndef _WIN32 ++ #include ++ #include ++#endif + #include + #include + #include +diff --git a/include/gmapping/log/carmenconfiguration.h b/include/gmapping/log/carmenconfiguration.h +index ee5188f..4eace72 100644 +--- a/include/gmapping/log/carmenconfiguration.h ++++ b/include/gmapping/log/carmenconfiguration.h +@@ -7,10 +7,11 @@ + #include + #include + #include "gmapping/log/configuration.h" ++#include + + namespace GMapping { + +-class CarmenConfiguration: public Configuration, public std::map >{ ++class LOG_EXPORT CarmenConfiguration: public Configuration, public std::map >{ + public: + virtual std::istream& load(std::istream& is); + virtual SensorMap computeSensorMap() const; +diff --git a/include/gmapping/log/configuration.h b/include/gmapping/log/configuration.h +index ce1c81c..0c74444 100644 +--- a/include/gmapping/log/configuration.h ++++ b/include/gmapping/log/configuration.h +@@ -3,10 +3,11 @@ + + #include + #include ++#include + + namespace GMapping { + +-class Configuration{ ++class LOG_EXPORT Configuration{ + public: + virtual ~Configuration(); + virtual SensorMap computeSensorMap() const=0; +diff --git a/include/gmapping/log/sensorlog.h b/include/gmapping/log/sensorlog.h +index d380a3f..ec3bf16 100644 +--- a/include/gmapping/log/sensorlog.h ++++ b/include/gmapping/log/sensorlog.h +@@ -9,10 +9,11 @@ + #include + #include + #include "gmapping/log/configuration.h" ++#include + + namespace GMapping { + +-class SensorLog : public std::list{ ++class LOG_EXPORT SensorLog : public std::list{ + public: + SensorLog(const SensorMap&); + ~SensorLog(); +diff --git a/include/gmapping/log/sensorstream.h b/include/gmapping/log/sensorstream.h +index 2551ba8..227c28f 100644 +--- a/include/gmapping/log/sensorstream.h ++++ b/include/gmapping/log/sensorstream.h +@@ -3,9 +3,10 @@ + + #include + #include "gmapping/log/sensorlog.h" ++#include + + namespace GMapping { +-class SensorStream{ ++class LOG_EXPORT SensorStream{ + public: + SensorStream(const SensorMap& sensorMap); + virtual ~SensorStream(); +@@ -20,7 +21,7 @@ class SensorStream{ + static RangeReading* parseRange(std::istream& is, const RangeSensor* ); + }; + +-class InputSensorStream: public SensorStream{ ++class LOG_EXPORT InputSensorStream: public SensorStream{ + public: + InputSensorStream(const SensorMap& sensorMap, std::istream& is); + virtual operator bool() const; +@@ -32,7 +33,7 @@ class InputSensorStream: public SensorStream{ + std::istream& m_inputStream; + }; + +-class LogSensorStream: public SensorStream{ ++class LOG_EXPORT LogSensorStream: public SensorStream{ + public: + LogSensorStream(const SensorMap& sensorMap, const SensorLog* log); + virtual operator bool() const; +diff --git a/include/gmapping/scanmatcher/scanmatcher.h b/include/gmapping/scanmatcher/scanmatcher.h +index c970ae1..d9d4871 100644 +--- a/include/gmapping/scanmatcher/scanmatcher.h ++++ b/include/gmapping/scanmatcher/scanmatcher.h +@@ -7,11 +7,12 @@ + #include + #include + #include ++#include + #define LASER_MAXBEAMS 2048 + + namespace GMapping { + +-class ScanMatcher{ ++class SCANMATCHER_EXPORT ScanMatcher{ + public: + typedef Covariance3 CovarianceMatrix; + +diff --git a/include/gmapping/scanmatcher/scanmatcherprocessor.h b/include/gmapping/scanmatcher/scanmatcherprocessor.h +index b35ccb4..4cec5a9 100644 +--- a/include/gmapping/scanmatcher/scanmatcherprocessor.h ++++ b/include/gmapping/scanmatcher/scanmatcherprocessor.h +@@ -6,10 +6,11 @@ + #include + //#include + #include "gmapping/scanmatcher/scanmatcher.h" ++#include + + namespace GMapping { + +-class ScanMatcherProcessor{ ++class SCANMATCHER_EXPORT ScanMatcherProcessor{ + public: + ScanMatcherProcessor(const ScanMatcherMap& m); + ScanMatcherProcessor (double xmin, double ymin, double xmax, double ymax, double delta, double patchdelta); +diff --git a/include/gmapping/sensor/sensor_base/sensor.h b/include/gmapping/sensor/sensor_base/sensor.h +index 4368809..492b892 100644 +--- a/include/gmapping/sensor/sensor_base/sensor.h ++++ b/include/gmapping/sensor/sensor_base/sensor.h +@@ -3,10 +3,11 @@ + + #include + #include ++#include + + namespace GMapping{ + +-class Sensor{ ++class SENSOR_BASE_EXPORT Sensor{ + public: + Sensor(const std::string& name=""); + virtual ~Sensor(); +diff --git a/include/gmapping/sensor/sensor_base/sensoreading.h b/include/gmapping/sensor/sensor_base/sensoreading.h +index a51797b..22dda2f 100644 +--- a/include/gmapping/sensor/sensor_base/sensoreading.h ++++ b/include/gmapping/sensor/sensor_base/sensoreading.h +@@ -2,9 +2,11 @@ + #define SENSORREADING_H + + #include "gmapping/sensor/sensor_base/sensor.h" ++#include ++ + namespace GMapping{ + +-class SensorReading{ ++class SENSOR_BASE_EXPORT SensorReading{ + public: + SensorReading(const Sensor* s=0, double time=0); + inline double getTime() const {return m_time;} +diff --git a/include/gmapping/sensor/sensor_base/sensorreading.h b/include/gmapping/sensor/sensor_base/sensorreading.h +index 964ee3d..7d2edfd 100644 +--- a/include/gmapping/sensor/sensor_base/sensorreading.h ++++ b/include/gmapping/sensor/sensor_base/sensorreading.h +@@ -2,9 +2,11 @@ + #define SENSORREADING_H + + #include "gmapping/sensor/sensor_base/sensor.h" ++#include ++ + namespace GMapping{ + +-class SensorReading{ ++class SENSOR_BASE_EXPORT SensorReading{ + public: + SensorReading(const Sensor* s=0, double time=0); + virtual ~SensorReading(); +diff --git a/include/gmapping/sensor/sensor_odometry/odometryreading.h b/include/gmapping/sensor/sensor_odometry/odometryreading.h +index d007d19..2cb09e6 100644 +--- a/include/gmapping/sensor/sensor_odometry/odometryreading.h ++++ b/include/gmapping/sensor/sensor_odometry/odometryreading.h +@@ -5,10 +5,11 @@ + #include + #include + #include "gmapping/sensor/sensor_odometry/odometrysensor.h" ++#include + + namespace GMapping{ + +-class OdometryReading: public SensorReading{ ++class SENSOR_ODOMETRY_EXPORT OdometryReading: public SensorReading{ + public: + OdometryReading(const OdometrySensor* odo, double time=0); + inline const OrientedPoint& getPose() const {return m_pose;} +diff --git a/include/gmapping/sensor/sensor_odometry/odometrysensor.h b/include/gmapping/sensor/sensor_odometry/odometrysensor.h +index 1d18bd3..3caf1a7 100644 +--- a/include/gmapping/sensor/sensor_odometry/odometrysensor.h ++++ b/include/gmapping/sensor/sensor_odometry/odometrysensor.h +@@ -3,10 +3,11 @@ + + #include + #include ++#include + + namespace GMapping{ + +-class OdometrySensor: public Sensor{ ++class SENSOR_ODOMETRY_EXPORT OdometrySensor: public Sensor{ + public: + OdometrySensor(const std::string& name, bool ideal=false); + inline bool isIdeal() const { return m_ideal; } +diff --git a/include/gmapping/sensor/sensor_range/rangereading.h b/include/gmapping/sensor/sensor_range/rangereading.h +index b715a8e..692f571 100644 +--- a/include/gmapping/sensor/sensor_range/rangereading.h ++++ b/include/gmapping/sensor/sensor_range/rangereading.h +@@ -4,10 +4,17 @@ + #include + #include + #include "gmapping/sensor/sensor_range/rangesensor.h" ++#include ++ ++#ifdef _MSC_VER ++namespace std { ++ extern template class __declspec(dllexport) vector; ++}; ++#endif + + namespace GMapping{ + +-class RangeReading: public SensorReading, public std::vector{ ++class SENSOR_RANGE_EXPORT RangeReading: public SensorReading, public std::vector{ + public: + RangeReading(const RangeSensor* rs, double time=0); + RangeReading(unsigned int n_beams, const double* d, const RangeSensor* rs, double time=0); +diff --git a/include/gmapping/sensor/sensor_range/rangesensor.h b/include/gmapping/sensor/sensor_range/rangesensor.h +index 65feffb..2e20653 100644 +--- a/include/gmapping/sensor/sensor_range/rangesensor.h ++++ b/include/gmapping/sensor/sensor_range/rangesensor.h +@@ -4,10 +4,11 @@ + #include + #include + #include ++#include + + namespace GMapping{ + +-class RangeSensor: public Sensor{ ++class SENSOR_RANGE_EXPORT RangeSensor: public Sensor{ + friend class Configuration; + friend class CarmenConfiguration; + friend class CarmenWrapper; +diff --git a/include/gmapping/utils/gvalues.h b/include/gmapping/utils/gvalues.h +index a908f42..5223b9e 100644 +--- a/include/gmapping/utils/gvalues.h ++++ b/include/gmapping/utils/gvalues.h +@@ -15,6 +15,7 @@ + #ifndef __DRAND48_DEFINED__ + #define __DRAND48_DEFINED__ + inline double drand48() { return double(rand()) / RAND_MAX;} ++ inline void srand48(unsigned int seed) { srand(seed); } + #endif + #ifndef M_PI + #define M_PI 3.1415926535897932384626433832795 +diff --git a/include/gmapping/utils/movement.h b/include/gmapping/utils/movement.h +index aabe36d..bd27d83 100644 +--- a/include/gmapping/utils/movement.h ++++ b/include/gmapping/utils/movement.h +@@ -2,11 +2,12 @@ + #define FSRMOVEMENT_H + + #include "gmapping/utils/point.h" ++#include + + namespace GMapping { + + /** fsr-movement (forward, sideward, rotate) **/ +-class FSRMovement { ++class UTILS_EXPORT FSRMovement { + public: + FSRMovement(double f=0.0, double s=0.0, double r=0.0); + FSRMovement(const FSRMovement& src); +diff --git a/include/gmapping/utils/point.h b/include/gmapping/utils/point.h +index 3735aed..26db185 100644 +--- a/include/gmapping/utils/point.h ++++ b/include/gmapping/utils/point.h +@@ -5,7 +5,7 @@ + #include + #include "gmapping/utils/gvalues.h" + +-#define DEBUG_STREAM cerr << __PRETTY_FUNCTION__ << ":" //FIXME ++#define DEBUG_STREAM cerr << __func__ << ":" //FIXME + + namespace GMapping { + +diff --git a/include/gmapping/utils/printmemusage.h b/include/gmapping/utils/printmemusage.h +index fc7fd91..ed61adf 100644 +--- a/include/gmapping/utils/printmemusage.h ++++ b/include/gmapping/utils/printmemusage.h +@@ -1,13 +1,16 @@ + #ifndef PRINTMEMUSAGE_H + #define PRINTMEMUSAGE_H + #include +-#include ++#ifndef _WIN32 ++ #include ++#endif + #include + #include + #include ++#include + + namespace GMapping{ +- void printmemusage(); ++ void UTILS_EXPORT printmemusage(); + }; + + #endif +diff --git a/include/gmapping/utils/printpgm.h b/include/gmapping/utils/printpgm.h +index d9a3b8a..2774909 100644 +--- a/include/gmapping/utils/printpgm.h ++++ b/include/gmapping/utils/printpgm.h +@@ -1,7 +1,9 @@ + #include + #include + #include +-#include ++#ifndef _WIN32 ++ #include ++#endif + + + using namespace std; +diff --git a/include/gmapping/utils/stat.h b/include/gmapping/utils/stat.h +index 62e14fa..74ac601 100644 +--- a/include/gmapping/utils/stat.h ++++ b/include/gmapping/utils/stat.h +@@ -3,17 +3,18 @@ + #include "gmapping/utils/point.h" + #include + #include "gmapping/utils/gvalues.h" ++#include + + namespace GMapping { + + /**stupid utility function for drawing particles form a zero mean, sigma variance normal distribution + probably it should not go there*/ +-double sampleGaussian(double sigma,unsigned long int S=0); ++double UTILS_EXPORT sampleGaussian(double sigma,unsigned int S=0); + +-double evalGaussian(double sigmaSquare, double delta); +-double evalLogGaussian(double sigmaSquare, double delta); +-int sampleUniformInt(int max); +-double sampleUniformDouble(double min, double max); ++double UTILS_EXPORT evalGaussian(double sigmaSquare, double delta); ++double UTILS_EXPORT evalLogGaussian(double sigmaSquare, double delta); ++int UTILS_EXPORT sampleUniformInt(int max); ++double UTILS_EXPORT sampleUniformDouble(double min, double max); + + struct Covariance3{ + Covariance3 operator + (const Covariance3 & cov) const; +@@ -34,7 +35,7 @@ struct Gaussian3{ + OrientedPoint mean; + EigenCovariance3 covariance; + Covariance3 cov; +- double eval(const OrientedPoint& p) const; ++ double UTILS_EXPORT eval(const OrientedPoint& p) const; + void computeFromSamples(const std::vector & poses); + void computeFromSamples(const std::vector & poses, const std::vector& weights ); + }; +diff --git a/log/carmenconfiguration.cpp b/log/carmenconfiguration.cpp +index 7cac05e..9061da8 100644 +--- a/log/carmenconfiguration.cpp ++++ b/log/carmenconfiguration.cpp +@@ -131,12 +131,12 @@ SensorMap CarmenConfiguration::computeSensorMap() const{ + const vector & soff=key->second; + + if( (soff.size()/3newFormat){ + string laser_type, start_angle, field_of_view, angular_resolution, maximum_range, accuracy, remission_mode; + is >> laser_type>> start_angle>> field_of_view>> angular_resolution>> maximum_range>> accuracy>> remission_mode; +diff --git a/scanmatcher/scanmatch_test.cpp b/scanmatcher/scanmatch_test.cpp +index a9a3ccc..a2fc94a 100644 +--- a/scanmatcher/scanmatch_test.cpp ++++ b/scanmatcher/scanmatch_test.cpp +@@ -3,7 +3,9 @@ + #include + #include + #include +-#include ++#ifndef _WIN32 ++ #include ++#endif + #include + #include + #include "gmapping/scanmatcher/scanmatcherprocessor.h" +@@ -11,7 +13,7 @@ + using namespace std; + using namespace GMapping; + +-#define DEBUG cout << __PRETTY_FUNCTION__ ++#define DEBUG cout << __func__ + #define MAX_STRING_LENGTH 1024 + + int main(int argc, const char * const * argv){ +diff --git a/scanmatcher/scanmatcher.cpp b/scanmatcher/scanmatcher.cpp +index 5d7f291..f7fb885 100644 +--- a/scanmatcher/scanmatcher.cpp ++++ b/scanmatcher/scanmatcher.cpp +@@ -341,7 +341,7 @@ double ScanMatcher::optimize(OrientedPoint& pnew, const ScanMatcherMap& map, con + double adelta=m_optAngularDelta, ldelta=m_optLinearDelta; + unsigned int refinement=0; + enum Move{Front, Back, Left, Right, TurnLeft, TurnRight, Done}; +-/* cout << __PRETTY_FUNCTION__<< " readings: "; ++/* cout << __func__<< " readings: "; + for (int i=0; i + //#include + #include ++#include "gmapping/utils/gvalues.h" + #include "gmapping/utils/stat.h" + + namespace GMapping { +@@ -45,7 +46,7 @@ double pf_ran_gaussian(double sigma) + return(sigma * x2 * sqrt(-2.0*log(w)/w)); + } + +-double sampleGaussian(double sigma, unsigned long int S) { ++double sampleGaussian(double sigma, unsigned int S) { + /* + static gsl_rng * r = NULL; + if(r==NULL) { +@@ -56,7 +57,7 @@ double sampleGaussian(double sigma, unsigned long int S) { + if (S!=0) + { + //gsl_rng_set(r, S); +- srand48(S); ++ srand(S); + } + if (sigma==0) + return 0; diff --git a/distros/noetic/patch/ros-noetic-openslam-gmapping.win.patch b/distros/noetic/patch/ros-noetic-openslam-gmapping.win.patch new file mode 100644 index 000000000..4cccf3b70 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-openslam-gmapping.win.patch @@ -0,0 +1,7 @@ +diff --git a/utils/stat.cpp b/utils/stat.cpp +index 30536c4..d99056b 100644 +--- a/utils/stat.cpp ++++ b/utils/stat.cpp +@@ -7,1 +7,1 @@ +-#include ++#include diff --git a/distros/noetic/patch/ros-noetic-osqp-vendor.patch b/distros/noetic/patch/ros-noetic-osqp-vendor.patch new file mode 100644 index 000000000..7ca9669c8 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-osqp-vendor.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9ed7604..9062370 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -13,9 +13,9 @@ macro(build_osqp) + endif() + + include(ExternalProject) +- externalproject_add(osqp-v0.6.1.dev0 ++ externalproject_add(osqp-v0.6.2 + GIT_REPOSITORY https://github.com/oxfordcontrol/osqp.git +- GIT_TAG v0.6.1.dev0 ++ GIT_TAG v0.6.2 + GIT_SHALLOW ON + TIMEOUT 60 + CMAKE_ARGS +@@ -38,4 +38,4 @@ build_osqp() + catkin_package( + LIBRARIES osqp + DEPENDS osqp +- CFG_EXTRAS osqp_vendor-extras.cmake) ++ CFG_EXTRAS ${CMAKE_CURRENT_SOURCE_DIR}/osqp_vendor-extras.cmake) diff --git a/distros/noetic/patch/ros-noetic-pcl-ros.patch b/distros/noetic/patch/ros-noetic-pcl-ros.patch new file mode 100644 index 000000000..51dc44fd0 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-pcl-ros.patch @@ -0,0 +1,1056 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2466227d..6230e32e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,15 +1,10 @@ + cmake_minimum_required(VERSION 3.0.2) + project(pcl_ros) + ++if(MSVC) ++ add_compile_options("/FI${CMAKE_CURRENT_SOURCE_DIR}/include/pcl_ros/tf2_msvc_compat.h") ++endif() ++ +-# CMake 3.1 added support for CMAKE_CXX_STANDARD to manage the C++ standard version +-# Use CMake C++ standard management where possible for better interoperability +-# with dependencies that export target standards and/or features +-if (${CMAKE_VERSION} VERSION_LESS "3.1") +- add_compile_options(-std=c++14) +-else() +- set(CMAKE_CXX_STANDARD 14) +-endif() +- + ## Find catkin packages + find_package(catkin REQUIRED COMPONENTS + dynamic_reconfigure +diff --git a/include/pcl_ros/tf2_msvc_compat.h b/include/pcl_ros/tf2_msvc_compat.h +new file mode 100644 +index 00000000..18532253 +--- /dev/null ++++ b/include/pcl_ros/tf2_msvc_compat.h +@@ -0,0 +1,12 @@ ++#ifndef PCL_ROS_TF2_MSVC_COMPAT_H_ ++#define PCL_ROS_TF2_MSVC_COMPAT_H_ ++ ++#ifdef _MSC_VER ++namespace tf2 ++{ ++template B toMsg(const A& a); ++template void fromMsg(const A&, B& b); ++} ++#endif ++ ++#endif // PCL_ROS_TF2_MSVC_COMPAT_H_ +diff --git a/include/pcl_ros/point_cloud.h b/include/pcl_ros/point_cloud.h +index 1e038276..26e36c1b 100644 +--- a/include/pcl_ros/point_cloud.h ++++ b/include/pcl_ros/point_cloud.h +@@ -3,11 +3,12 @@ + + #include + #include +-#include ++#include + #include + #include + #include + #include ++#include // for BOOST_FOREACH + #include + #include + #include +diff --git a/include/pcl_ros/pcl_nodelet.h b/include/pcl_ros/pcl_nodelet.h +index ebd94e06..f01a3524 100644 +--- a/include/pcl_ros/pcl_nodelet.h ++++ b/include/pcl_ros/pcl_nodelet.h +@@ -60,6 +60,7 @@ + #include + + // Include TF ++#include + #include + + using pcl_conversions::fromPCL; +diff --git a/include/pcl_ros/io/concatenate_data.h b/include/pcl_ros/io/concatenate_data.h +index 911761ad..587a57d2 100644 +--- a/include/pcl_ros/io/concatenate_data.h ++++ b/include/pcl_ros/io/concatenate_data.h +@@ -39,6 +39,7 @@ + #define PCL_IO_CONCATENATE_DATA_H_ + + // ROS includes ++#include + #include + #include + #include +diff --git a/include/pcl_ros/transforms.h b/include/pcl_ros/transforms.h +index e996b157..d58d8fef 100644 +--- a/include/pcl_ros/transforms.h ++++ b/include/pcl_ros/transforms.h +@@ -39,6 +39,7 @@ + #include + #include ++#include + #include + #include + #include + + namespace pcl_ros +diff --git a/src/pcl_ros/features/boundary.cpp b/src/pcl_ros/features/boundary.cpp +index 26ee07c1..61ae786a 100644 +--- a/src/pcl_ros/features/boundary.cpp ++++ b/src/pcl_ros/features/boundary.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/boundary.h" + + void +diff --git a/src/pcl_ros/features/feature.cpp b/src/pcl_ros/features/feature.cpp +index 8647e4eb..c36bd499 100644 +--- a/src/pcl_ros/features/feature.cpp ++++ b/src/pcl_ros/features/feature.cpp +@@ -35,7 +35,7 @@ + * + */ + +-//#include ++//#include + // Include the implementations here instead of compiling them separately to speed up compile time + //#include "normal_3d.cpp" + //#include "boundary.cpp" +@@ -80,7 +80,7 @@ pcl_ros::Feature::onInit () + + // Enable the dynamic reconfigure service + srv_ = boost::make_shared > (*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&Feature::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&Feature::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + NODELET_DEBUG ("[%s::onInit] Nodelet successfully created with the following parameters:\n" +@@ -124,7 +124,7 @@ pcl_ros::Feature::subscribe () + } + else // Use only indices + { +- sub_input_filter_.registerCallback (bind (&Feature::input_callback, this, _1)); ++ sub_input_filter_.registerCallback (bind (&Feature::input_callback, this, boost::placeholders::_1)); + // surface not enabled, connect the input-indices duo and register + if (approximate_sync_) + sync_input_surface_indices_a_->connectInput (sub_input_filter_, nf_pc_, sub_indices_filter_); +@@ -134,7 +134,7 @@ pcl_ros::Feature::subscribe () + } + else // Use only surface + { +- sub_input_filter_.registerCallback (bind (&Feature::input_callback, this, _1)); ++ sub_input_filter_.registerCallback (bind (&Feature::input_callback, this, boost::placeholders::_1)); + // indices not enabled, connect the input-surface duo and register + sub_surface_filter_.subscribe (*pnh_, "surface", max_queue_size_); + if (approximate_sync_) +@@ -144,13 +144,13 @@ pcl_ros::Feature::subscribe () + } + // Register callbacks + if (approximate_sync_) +- sync_input_surface_indices_a_->registerCallback (bind (&Feature::input_surface_indices_callback, this, _1, _2, _3)); ++ sync_input_surface_indices_a_->registerCallback (bind (&Feature::input_surface_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); + else +- sync_input_surface_indices_e_->registerCallback (bind (&Feature::input_surface_indices_callback, this, _1, _2, _3)); ++ sync_input_surface_indices_e_->registerCallback (bind (&Feature::input_surface_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); + } + else + // Subscribe in an old fashion to input only (no filters) +- sub_input_ = pnh_->subscribe ("input", max_queue_size_, bind (&Feature::input_surface_indices_callback, this, _1, PointCloudInConstPtr (), PointIndicesConstPtr ())); ++ sub_input_ = pnh_->subscribe ("input", max_queue_size_, bind (&Feature::input_surface_indices_callback, this, boost::placeholders::_1, PointCloudInConstPtr (), PointIndicesConstPtr ())); + } + + //////////////////////////////////////////////////////////////////////////////////////////// +@@ -300,7 +300,7 @@ pcl_ros::FeatureFromNormals::onInit () + + // Enable the dynamic reconfigure service + srv_ = boost::make_shared > (*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&FeatureFromNormals::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&FeatureFromNormals::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + NODELET_DEBUG ("[%s::onInit] Nodelet successfully created with the following parameters:\n" +@@ -345,7 +345,7 @@ pcl_ros::FeatureFromNormals::subscribe () + } + else // Use only indices + { +- sub_input_filter_.registerCallback (bind (&FeatureFromNormals::input_callback, this, _1)); ++ sub_input_filter_.registerCallback (bind (&FeatureFromNormals::input_callback, this, boost::placeholders::_1)); + if (approximate_sync_) + // surface not enabled, connect the input-indices duo and register + sync_input_normals_surface_indices_a_->connectInput (sub_input_filter_, sub_normals_filter_, nf_pc_, sub_indices_filter_); +@@ -359,7 +359,7 @@ pcl_ros::FeatureFromNormals::subscribe () + // indices not enabled, connect the input-surface duo and register + sub_surface_filter_.subscribe (*pnh_, "surface", max_queue_size_); + +- sub_input_filter_.registerCallback (bind (&FeatureFromNormals::input_callback, this, _1)); ++ sub_input_filter_.registerCallback (bind (&FeatureFromNormals::input_callback, this, boost::placeholders::_1)); + if (approximate_sync_) + sync_input_normals_surface_indices_a_->connectInput (sub_input_filter_, sub_normals_filter_, sub_surface_filter_, nf_pi_); + else +@@ -368,7 +368,7 @@ pcl_ros::FeatureFromNormals::subscribe () + } + else + { +- sub_input_filter_.registerCallback (bind (&FeatureFromNormals::input_callback, this, _1)); ++ sub_input_filter_.registerCallback (bind (&FeatureFromNormals::input_callback, this, boost::placeholders::_1)); + + if (approximate_sync_) + sync_input_normals_surface_indices_a_->connectInput (sub_input_filter_, sub_normals_filter_, nf_pc_, nf_pi_); +@@ -378,9 +378,9 @@ pcl_ros::FeatureFromNormals::subscribe () + + // Register callbacks + if (approximate_sync_) +- sync_input_normals_surface_indices_a_->registerCallback (bind (&FeatureFromNormals::input_normals_surface_indices_callback, this, _1, _2, _3, _4)); ++ sync_input_normals_surface_indices_a_->registerCallback (bind (&FeatureFromNormals::input_normals_surface_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4)); + else +- sync_input_normals_surface_indices_e_->registerCallback (bind (&FeatureFromNormals::input_normals_surface_indices_callback, this, _1, _2, _3, _4)); ++ sync_input_normals_surface_indices_e_->registerCallback (bind (&FeatureFromNormals::input_normals_surface_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4)); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +diff --git a/src/pcl_ros/features/fpfh.cpp b/src/pcl_ros/features/fpfh.cpp +index 53be549c..f49b05ef 100644 +--- a/src/pcl_ros/features/fpfh.cpp ++++ b/src/pcl_ros/features/fpfh.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/fpfh.h" + + void +diff --git a/src/pcl_ros/features/fpfh_omp.cpp b/src/pcl_ros/features/fpfh_omp.cpp +index e4adcabb..c811a401 100644 +--- a/src/pcl_ros/features/fpfh_omp.cpp ++++ b/src/pcl_ros/features/fpfh_omp.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/fpfh_omp.h" + + void +diff --git a/src/pcl_ros/features/moment_invariants.cpp b/src/pcl_ros/features/moment_invariants.cpp +index a6e2249a..52801fff 100644 +--- a/src/pcl_ros/features/moment_invariants.cpp ++++ b/src/pcl_ros/features/moment_invariants.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/moment_invariants.h" + + void +diff --git a/src/pcl_ros/features/normal_3d.cpp b/src/pcl_ros/features/normal_3d.cpp +index 042186a9..3ca08fb9 100644 +--- a/src/pcl_ros/features/normal_3d.cpp ++++ b/src/pcl_ros/features/normal_3d.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/normal_3d.h" + + void +diff --git a/src/pcl_ros/features/normal_3d_omp.cpp b/src/pcl_ros/features/normal_3d_omp.cpp +index 3e92d2f2..96535079 100644 +--- a/src/pcl_ros/features/normal_3d_omp.cpp ++++ b/src/pcl_ros/features/normal_3d_omp.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/normal_3d_omp.h" + + void +diff --git a/src/pcl_ros/features/normal_3d_tbb.cpp b/src/pcl_ros/features/normal_3d_tbb.cpp +index 680a4a02..85261766 100644 +--- a/src/pcl_ros/features/normal_3d_tbb.cpp ++++ b/src/pcl_ros/features/normal_3d_tbb.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/normal_3d_tbb.h" + + #if defined HAVE_TBB +diff --git a/src/pcl_ros/features/pfh.cpp b/src/pcl_ros/features/pfh.cpp +index dd8409e2..b00cadc4 100644 +--- a/src/pcl_ros/features/pfh.cpp ++++ b/src/pcl_ros/features/pfh.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/pfh.h" + + void +diff --git a/src/pcl_ros/features/principal_curvatures.cpp b/src/pcl_ros/features/principal_curvatures.cpp +index 501d686e..f8fe44ce 100644 +--- a/src/pcl_ros/features/principal_curvatures.cpp ++++ b/src/pcl_ros/features/principal_curvatures.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/principal_curvatures.h" + + void +diff --git a/src/pcl_ros/features/shot.cpp b/src/pcl_ros/features/shot.cpp +index ed6ba44b..085855f6 100644 +--- a/src/pcl_ros/features/shot.cpp ++++ b/src/pcl_ros/features/shot.cpp +@@ -34,7 +34,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/shot.h" + + void +diff --git a/src/pcl_ros/features/shot_omp.cpp b/src/pcl_ros/features/shot_omp.cpp +index 4563f123..eea70059 100644 +--- a/src/pcl_ros/features/shot_omp.cpp ++++ b/src/pcl_ros/features/shot_omp.cpp +@@ -34,7 +34,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/shot_omp.h" + + void +diff --git a/src/pcl_ros/features/vfh.cpp b/src/pcl_ros/features/vfh.cpp +index ece448fd..e1f6a40a 100644 +--- a/src/pcl_ros/features/vfh.cpp ++++ b/src/pcl_ros/features/vfh.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/features/vfh.h" + + void +diff --git a/src/pcl_ros/filters/crop_box.cpp b/src/pcl_ros/filters/crop_box.cpp +index 2392e2bc..70ab986b 100644 +--- a/src/pcl_ros/filters/crop_box.cpp ++++ b/src/pcl_ros/filters/crop_box.cpp +@@ -36,7 +36,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/filters/crop_box.h" + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -46,7 +46,7 @@ pcl_ros::CropBox::child_init (ros::NodeHandle &nh, bool &has_service) + // Enable the dynamic reconfigure service + has_service = true; + srv_ = boost::make_shared > (nh); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&CropBox::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&CropBox::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + return (true); +diff --git a/src/pcl_ros/filters/extract_indices.cpp b/src/pcl_ros/filters/extract_indices.cpp +index e92407a9..73ab4074 100644 +--- a/src/pcl_ros/filters/extract_indices.cpp ++++ b/src/pcl_ros/filters/extract_indices.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/filters/extract_indices.h" + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -45,7 +45,7 @@ pcl_ros::ExtractIndices::child_init (ros::NodeHandle &nh, bool &has_service) + has_service = true; + + srv_ = boost::make_shared > (nh); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&ExtractIndices::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&ExtractIndices::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + use_indices_ = true; +diff --git a/src/pcl_ros/filters/filter.cpp b/src/pcl_ros/filters/filter.cpp +index 0bfe6d3d..e704912b 100644 +--- a/src/pcl_ros/filters/filter.cpp ++++ b/src/pcl_ros/filters/filter.cpp +@@ -116,18 +116,18 @@ pcl_ros::Filter::subscribe() + { + sync_input_indices_a_ = boost::make_shared > >(max_queue_size_); + sync_input_indices_a_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_a_->registerCallback (bind (&Filter::input_indices_callback, this, _1, _2)); ++ sync_input_indices_a_->registerCallback (bind (&Filter::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + else + { + sync_input_indices_e_ = boost::make_shared > >(max_queue_size_); + sync_input_indices_e_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_e_->registerCallback (bind (&Filter::input_indices_callback, this, _1, _2)); ++ sync_input_indices_e_->registerCallback (bind (&Filter::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + } + else + // Subscribe in an old fashion to input only (no filters) +- sub_input_ = pnh_->subscribe ("input", max_queue_size_, bind (&Filter::input_indices_callback, this, _1, pcl_msgs::PointIndicesConstPtr ())); ++ sub_input_ = pnh_->subscribe ("input", max_queue_size_, bind (&Filter::input_indices_callback, this, boost::placeholders::_1, pcl_msgs::PointIndicesConstPtr ())); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -164,7 +164,7 @@ pcl_ros::Filter::onInit () + if (!has_service) + { + srv_ = boost::make_shared > (*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&Filter::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&Filter::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + } + +diff --git a/src/pcl_ros/filters/passthrough.cpp b/src/pcl_ros/filters/passthrough.cpp +index 110fbac5..73fd2c96 100644 +--- a/src/pcl_ros/filters/passthrough.cpp ++++ b/src/pcl_ros/filters/passthrough.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/filters/passthrough.h" + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -45,7 +45,7 @@ pcl_ros::PassThrough::child_init (ros::NodeHandle &nh, bool &has_service) + // Enable the dynamic reconfigure service + has_service = true; + srv_ = boost::make_shared > (nh); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&PassThrough::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&PassThrough::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + return (true); +diff --git a/src/pcl_ros/filters/project_inliers.cpp b/src/pcl_ros/filters/project_inliers.cpp +index 704dc484..cdc39980 100644 +--- a/src/pcl_ros/filters/project_inliers.cpp ++++ b/src/pcl_ros/filters/project_inliers.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/filters/project_inliers.h" + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -99,13 +99,13 @@ pcl_ros::ProjectInliers::subscribe () + { + sync_input_indices_model_a_ = boost::make_shared > > (max_queue_size_); + sync_input_indices_model_a_->connectInput (sub_input_filter_, sub_indices_filter_, sub_model_); +- sync_input_indices_model_a_->registerCallback (bind (&ProjectInliers::input_indices_model_callback, this, _1, _2, _3)); ++ sync_input_indices_model_a_->registerCallback (bind (&ProjectInliers::input_indices_model_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); + } + else + { + sync_input_indices_model_e_ = boost::make_shared > > (max_queue_size_); + sync_input_indices_model_e_->connectInput (sub_input_filter_, sub_indices_filter_, sub_model_); +- sync_input_indices_model_e_->registerCallback (bind (&ProjectInliers::input_indices_model_callback, this, _1, _2, _3)); ++ sync_input_indices_model_e_->registerCallback (bind (&ProjectInliers::input_indices_model_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); + } + } + +diff --git a/src/pcl_ros/filters/radius_outlier_removal.cpp b/src/pcl_ros/filters/radius_outlier_removal.cpp +index 331c6487..aa5c91fa 100644 +--- a/src/pcl_ros/filters/radius_outlier_removal.cpp ++++ b/src/pcl_ros/filters/radius_outlier_removal.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/filters/radius_outlier_removal.h" + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -45,7 +45,7 @@ pcl_ros::RadiusOutlierRemoval::child_init (ros::NodeHandle &nh, bool &has_servic + // Enable the dynamic reconfigure service + has_service = true; + srv_ = boost::make_shared > (nh); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&RadiusOutlierRemoval::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&RadiusOutlierRemoval::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + return (true); +diff --git a/src/pcl_ros/filters/statistical_outlier_removal.cpp b/src/pcl_ros/filters/statistical_outlier_removal.cpp +index 2085dee6..e6e74cd1 100644 +--- a/src/pcl_ros/filters/statistical_outlier_removal.cpp ++++ b/src/pcl_ros/filters/statistical_outlier_removal.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/filters/statistical_outlier_removal.h" + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -45,7 +45,7 @@ pcl_ros::StatisticalOutlierRemoval::child_init (ros::NodeHandle &nh, bool &has_s + // Enable the dynamic reconfigure service + has_service = true; + srv_ = boost::make_shared > (nh); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&StatisticalOutlierRemoval::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&StatisticalOutlierRemoval::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + return (true); +diff --git a/src/pcl_ros/filters/voxel_grid.cpp b/src/pcl_ros/filters/voxel_grid.cpp +index a3bf77f2..07687f7f 100644 +--- a/src/pcl_ros/filters/voxel_grid.cpp ++++ b/src/pcl_ros/filters/voxel_grid.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/filters/voxel_grid.h" + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -45,7 +45,7 @@ pcl_ros::VoxelGrid::child_init (ros::NodeHandle &nh, bool &has_service) + // Enable the dynamic reconfigure service + has_service = true; + srv_ = boost::make_shared > (nh); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&VoxelGrid::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&VoxelGrid::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + return (true); +diff --git a/src/pcl_ros/io/bag_io.cpp b/src/pcl_ros/io/bag_io.cpp +index 4209d9af..902ce2f5 100644 +--- a/src/pcl_ros/io/bag_io.cpp ++++ b/src/pcl_ros/io/bag_io.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include + #include "pcl_ros/io/bag_io.h" + +diff --git a/src/pcl_ros/io/concatenate_data.cpp b/src/pcl_ros/io/concatenate_data.cpp +index 458c6bfe..47d0bb4a 100644 +--- a/src/pcl_ros/io/concatenate_data.cpp ++++ b/src/pcl_ros/io/concatenate_data.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/transforms.h" + #include "pcl_ros/io/concatenate_data.h" + +@@ -118,7 +118,7 @@ pcl_ros::PointCloudConcatenateDataSynchronizer::subscribe () + } + + // Bogus null filter +- filters_[0]->registerCallback (bind (&PointCloudConcatenateDataSynchronizer::input_callback, this, _1)); ++ filters_[0]->registerCallback (bind (&PointCloudConcatenateDataSynchronizer::input_callback, this, boost::placeholders::_1)); + + switch (input_topics_.size ()) + { +@@ -186,9 +186,9 @@ pcl_ros::PointCloudConcatenateDataSynchronizer::subscribe () + } + + if (approximate_sync_) +- ts_a_->registerCallback (boost::bind (&PointCloudConcatenateDataSynchronizer::input, this, _1, _2, _3, _4, _5, _6, _7, _8)); ++ ts_a_->registerCallback (boost::bind (&PointCloudConcatenateDataSynchronizer::input, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4, boost::placeholders::_5, boost::placeholders::_6, boost::placeholders::_7, boost::placeholders::_8)); + else +- ts_e_->registerCallback (boost::bind (&PointCloudConcatenateDataSynchronizer::input, this, _1, _2, _3, _4, _5, _6, _7, _8)); ++ ts_e_->registerCallback (boost::bind (&PointCloudConcatenateDataSynchronizer::input, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4, boost::placeholders::_5, boost::placeholders::_6, boost::placeholders::_7, boost::placeholders::_8)); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +diff --git a/src/pcl_ros/io/concatenate_fields.cpp b/src/pcl_ros/io/concatenate_fields.cpp +index b9567c3a..8b6b3c89 100644 +--- a/src/pcl_ros/io/concatenate_fields.cpp ++++ b/src/pcl_ros/io/concatenate_fields.cpp +@@ -37,7 +37,7 @@ + + /** \author Radu Bogdan Rusu */ + +-#include ++#include + #include "pcl_ros/io/concatenate_fields.h" + + #include +diff --git a/src/pcl_ros/io/io.cpp b/src/pcl_ros/io/io.cpp +index a2dcd458..58ff1152 100644 +--- a/src/pcl_ros/io/io.cpp ++++ b/src/pcl_ros/io/io.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include + #include + //#include +diff --git a/src/pcl_ros/io/pcd_io.cpp b/src/pcl_ros/io/pcd_io.cpp +index 9adf6882..31fca766 100644 +--- a/src/pcl_ros/io/pcd_io.cpp ++++ b/src/pcl_ros/io/pcd_io.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include + + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +diff --git a/src/pcl_ros/segmentation/extract_clusters.cpp b/src/pcl_ros/segmentation/extract_clusters.cpp +index 5599b408..e9a03621 100644 +--- a/src/pcl_ros/segmentation/extract_clusters.cpp ++++ b/src/pcl_ros/segmentation/extract_clusters.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include + #include "pcl_ros/segmentation/extract_clusters.h" + +@@ -76,7 +76,7 @@ pcl_ros::EuclideanClusterExtraction::onInit () + + // Enable the dynamic reconfigure service + srv_ = boost::make_shared > (*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&EuclideanClusterExtraction::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&EuclideanClusterExtraction::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + NODELET_DEBUG ("[%s::onInit] Nodelet successfully created with the following parameters:\n" +@@ -108,18 +108,18 @@ pcl_ros::EuclideanClusterExtraction::subscribe () + { + sync_input_indices_a_ = boost::make_shared > > (max_queue_size_); + sync_input_indices_a_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_a_->registerCallback (bind (&EuclideanClusterExtraction::input_indices_callback, this, _1, _2)); ++ sync_input_indices_a_->registerCallback (bind (&EuclideanClusterExtraction::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + else + { + sync_input_indices_e_ = boost::make_shared > > (max_queue_size_); + sync_input_indices_e_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_e_->registerCallback (bind (&EuclideanClusterExtraction::input_indices_callback, this, _1, _2)); ++ sync_input_indices_e_->registerCallback (bind (&EuclideanClusterExtraction::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + } + else + // Subscribe in an old fashion to input only (no filters) +- sub_input_ = pnh_->subscribe ("input", max_queue_size_, bind (&EuclideanClusterExtraction::input_indices_callback, this, _1, PointIndicesConstPtr ())); ++ sub_input_ = pnh_->subscribe ("input", max_queue_size_, bind (&EuclideanClusterExtraction::input_indices_callback, this, boost::placeholders::_1, PointIndicesConstPtr ())); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +diff --git a/src/pcl_ros/segmentation/extract_polygonal_prism_data.cpp b/src/pcl_ros/segmentation/extract_polygonal_prism_data.cpp +index ff823b19..4d31ea80 100644 +--- a/src/pcl_ros/segmentation/extract_polygonal_prism_data.cpp ++++ b/src/pcl_ros/segmentation/extract_polygonal_prism_data.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/transforms.h" + #include "pcl_ros/segmentation/extract_polygonal_prism_data.h" + +@@ -53,7 +53,7 @@ pcl_ros::ExtractPolygonalPrismData::onInit () + + // Enable the dynamic reconfigure service + srv_ = boost::make_shared > (*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&ExtractPolygonalPrismData::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&ExtractPolygonalPrismData::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + // Advertise the output topics +@@ -85,7 +85,7 @@ pcl_ros::ExtractPolygonalPrismData::subscribe () + } + else + { +- sub_input_filter_.registerCallback (bind (&ExtractPolygonalPrismData::input_callback, this, _1)); ++ sub_input_filter_.registerCallback (bind (&ExtractPolygonalPrismData::input_callback, this, boost::placeholders::_1)); + + if (approximate_sync_) + sync_input_hull_indices_a_->connectInput (sub_input_filter_, sub_hull_filter_, nf_); +@@ -94,9 +94,9 @@ pcl_ros::ExtractPolygonalPrismData::subscribe () + } + // Register callbacks + if (approximate_sync_) +- sync_input_hull_indices_a_->registerCallback (bind (&ExtractPolygonalPrismData::input_hull_indices_callback, this, _1, _2, _3)); ++ sync_input_hull_indices_a_->registerCallback (bind (&ExtractPolygonalPrismData::input_hull_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); + else +- sync_input_hull_indices_e_->registerCallback (bind (&ExtractPolygonalPrismData::input_hull_indices_callback, this, _1, _2, _3)); ++ sync_input_hull_indices_e_->registerCallback (bind (&ExtractPolygonalPrismData::input_hull_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +diff --git a/src/pcl_ros/segmentation/sac_segmentation.cpp b/src/pcl_ros/segmentation/sac_segmentation.cpp +index bc7b97e7..4ca23d65 100644 +--- a/src/pcl_ros/segmentation/sac_segmentation.cpp ++++ b/src/pcl_ros/segmentation/sac_segmentation.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/segmentation/sac_segmentation.h" + + #include +@@ -107,7 +107,7 @@ pcl_ros::SACSegmentation::onInit () + + // Enable the dynamic reconfigure service + srv_ = boost::make_shared >(*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&SACSegmentation::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&SACSegmentation::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + NODELET_DEBUG ("[%s::onInit] Nodelet successfully created with the following parameters:\n" +@@ -144,15 +144,15 @@ pcl_ros::SACSegmentation::subscribe () + if (latched_indices_) + { + // Subscribe to a callback that saves the indices +- sub_indices_filter_.registerCallback (bind (&SACSegmentation::indices_callback, this, _1)); ++ sub_indices_filter_.registerCallback (bind (&SACSegmentation::indices_callback, this, boost::placeholders::_1)); + // Subscribe to a callback that sets the header of the saved indices to the cloud header +- sub_input_filter_.registerCallback (bind (&SACSegmentation::input_callback, this, _1)); ++ sub_input_filter_.registerCallback (bind (&SACSegmentation::input_callback, this, boost::placeholders::_1)); + + // Synchronize the two topics. No need for an approximate synchronizer here, as we'll + // match the timestamps exactly + sync_input_indices_e_ = boost::make_shared > > (max_queue_size_); + sync_input_indices_e_->connectInput (sub_input_filter_, nf_pi_); +- sync_input_indices_e_->registerCallback (bind (&SACSegmentation::input_indices_callback, this, _1, _2)); ++ sync_input_indices_e_->registerCallback (bind (&SACSegmentation::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + // "latched_indices" not set, proceed with regular pairs + else +@@ -161,19 +161,19 @@ pcl_ros::SACSegmentation::subscribe () + { + sync_input_indices_a_ = boost::make_shared > > (max_queue_size_); + sync_input_indices_a_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_a_->registerCallback (bind (&SACSegmentation::input_indices_callback, this, _1, _2)); ++ sync_input_indices_a_->registerCallback (bind (&SACSegmentation::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + else + { + sync_input_indices_e_ = boost::make_shared > > (max_queue_size_); + sync_input_indices_e_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_e_->registerCallback (bind (&SACSegmentation::input_indices_callback, this, _1, _2)); ++ sync_input_indices_e_->registerCallback (bind (&SACSegmentation::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + } + } + else + // Subscribe in an old fashion to input only (no filters) +- sub_input_ = pnh_->subscribe ("input", max_queue_size_, bind (&SACSegmentation::input_indices_callback, this, _1, PointIndicesConstPtr ())); ++ sub_input_ = pnh_->subscribe ("input", max_queue_size_, bind (&SACSegmentation::input_indices_callback, this, boost::placeholders::_1, PointIndicesConstPtr ())); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +@@ -367,7 +367,7 @@ pcl_ros::SACSegmentationFromNormals::onInit () + + // Enable the dynamic reconfigure service + srv_ = boost::make_shared > (*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&SACSegmentationFromNormals::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&SACSegmentationFromNormals::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + // Advertise the output topics +@@ -471,7 +471,7 @@ pcl_ros::SACSegmentationFromNormals::subscribe () + else + { + // Create a different callback for copying over the timestamp to fake indices +- sub_input_filter_.registerCallback (bind (&SACSegmentationFromNormals::input_callback, this, _1)); ++ sub_input_filter_.registerCallback (bind (&SACSegmentationFromNormals::input_callback, this, boost::placeholders::_1)); + + if (approximate_sync_) + sync_input_normals_indices_a_->connectInput (sub_input_filter_, sub_normals_filter_, nf_); +@@ -480,9 +480,9 @@ pcl_ros::SACSegmentationFromNormals::subscribe () + } + + if (approximate_sync_) +- sync_input_normals_indices_a_->registerCallback (bind (&SACSegmentationFromNormals::input_normals_indices_callback, this, _1, _2, _3)); ++ sync_input_normals_indices_a_->registerCallback (bind (&SACSegmentationFromNormals::input_normals_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); + else +- sync_input_normals_indices_e_->registerCallback (bind (&SACSegmentationFromNormals::input_normals_indices_callback, this, _1, _2, _3)); ++ sync_input_normals_indices_e_->registerCallback (bind (&SACSegmentationFromNormals::input_normals_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +diff --git a/src/pcl_ros/segmentation/segment_differences.cpp b/src/pcl_ros/segmentation/segment_differences.cpp +index e3979549..1066ea3f 100644 +--- a/src/pcl_ros/segmentation/segment_differences.cpp ++++ b/src/pcl_ros/segmentation/segment_differences.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/segmentation/segment_differences.h" + + ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +@@ -65,20 +65,20 @@ pcl_ros::SegmentDifferences::subscribe () + + // Enable the dynamic reconfigure service + srv_ = boost::make_shared > (*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&SegmentDifferences::config_callback, this, _1, _2); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&SegmentDifferences::config_callback, this, boost::placeholders::_1, boost::placeholders::_2); + srv_->setCallback (f); + + if (approximate_sync_) + { + sync_input_target_a_ = boost::make_shared > > (max_queue_size_); + sync_input_target_a_->connectInput (sub_input_filter_, sub_target_filter_); +- sync_input_target_a_->registerCallback (bind (&SegmentDifferences::input_target_callback, this, _1, _2)); ++ sync_input_target_a_->registerCallback (bind (&SegmentDifferences::input_target_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + else + { + sync_input_target_e_ = boost::make_shared > > (max_queue_size_); + sync_input_target_e_->connectInput (sub_input_filter_, sub_target_filter_); +- sync_input_target_e_->registerCallback (bind (&SegmentDifferences::input_target_callback, this, _1, _2)); ++ sync_input_target_e_->registerCallback (bind (&SegmentDifferences::input_target_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + } + +diff --git a/src/pcl_ros/surface/convex_hull.cpp b/src/pcl_ros/surface/convex_hull.cpp +index 75903889..08f52f42 100644 +--- a/src/pcl_ros/surface/convex_hull.cpp ++++ b/src/pcl_ros/surface/convex_hull.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/surface/convex_hull.h" + #include + +@@ -76,19 +76,19 @@ pcl_ros::ConvexHull2D::subscribe() + sync_input_indices_a_ = boost::make_shared > >(max_queue_size_); + // surface not enabled, connect the input-indices duo and register + sync_input_indices_a_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_a_->registerCallback (bind (&ConvexHull2D::input_indices_callback, this, _1, _2)); ++ sync_input_indices_a_->registerCallback (bind (&ConvexHull2D::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + else + { + sync_input_indices_e_ = boost::make_shared > >(max_queue_size_); + // surface not enabled, connect the input-indices duo and register + sync_input_indices_e_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_e_->registerCallback (bind (&ConvexHull2D::input_indices_callback, this, _1, _2)); ++ sync_input_indices_e_->registerCallback (bind (&ConvexHull2D::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + } + else + // Subscribe in an old fashion to input only (no filters) +- sub_input_ = pnh_->subscribe ("input", 1, bind (&ConvexHull2D::input_indices_callback, this, _1, PointIndicesConstPtr ())); ++ sub_input_ = pnh_->subscribe ("input", 1, bind (&ConvexHull2D::input_indices_callback, this, boost::placeholders::_1, PointIndicesConstPtr ())); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +diff --git a/src/pcl_ros/surface/moving_least_squares.cpp b/src/pcl_ros/surface/moving_least_squares.cpp +index 9fd2e348..8baa9cb6 100644 +--- a/src/pcl_ros/surface/moving_least_squares.cpp ++++ b/src/pcl_ros/surface/moving_least_squares.cpp +@@ -35,7 +35,7 @@ + * + */ + +-#include ++#include + #include "pcl_ros/surface/moving_least_squares.h" + ////////////////////////////////////////////////////////////////////////////////////////////// + void +@@ -62,7 +62,7 @@ pcl_ros::MovingLeastSquares::onInit () + + // Enable the dynamic reconfigure service + srv_ = boost::make_shared > (*pnh_); +- dynamic_reconfigure::Server::CallbackType f = boost::bind (&MovingLeastSquares::config_callback, this, _1, _2 ); ++ dynamic_reconfigure::Server::CallbackType f = boost::bind (&MovingLeastSquares::config_callback, this, boost::placeholders::_1, boost::placeholders::_2 ); + srv_->setCallback (f); + + // ---[ Optional parameters +@@ -93,19 +93,19 @@ pcl_ros::MovingLeastSquares::subscribe () + sync_input_indices_a_ = boost::make_shared > >(max_queue_size_); + // surface not enabled, connect the input-indices duo and register + sync_input_indices_a_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_a_->registerCallback (bind (&MovingLeastSquares::input_indices_callback, this, _1, _2)); ++ sync_input_indices_a_->registerCallback (bind (&MovingLeastSquares::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + else + { + sync_input_indices_e_ = boost::make_shared > >(max_queue_size_); + // surface not enabled, connect the input-indices duo and register + sync_input_indices_e_->connectInput (sub_input_filter_, sub_indices_filter_); +- sync_input_indices_e_->registerCallback (bind (&MovingLeastSquares::input_indices_callback, this, _1, _2)); ++ sync_input_indices_e_->registerCallback (bind (&MovingLeastSquares::input_indices_callback, this, boost::placeholders::_1, boost::placeholders::_2)); + } + } + else + // Subscribe in an old fashion to input only (no filters) +- sub_input_ = pnh_->subscribe ("input", 1, bind (&MovingLeastSquares::input_indices_callback, this, _1, PointIndicesConstPtr ())); ++ sub_input_ = pnh_->subscribe ("input", 1, bind (&MovingLeastSquares::input_indices_callback, this, boost::placeholders::_1, PointIndicesConstPtr ())); + } + + ////////////////////////////////////////////////////////////////////////////////////////////// +diff --git a/src/test/test_tf_message_filter_pcl.cpp b/src/test/test_tf_message_filter_pcl.cpp +index 073e358c..b324fc8a 100644 +--- a/src/test/test_tf_message_filter_pcl.cpp ++++ b/src/test/test_tf_message_filter_pcl.cpp +@@ -37,7 +37,7 @@ + #include + #include + +-#include ++#include + #include + + #include +@@ -104,7 +104,7 @@ TEST(MessageFilter, noTransforms) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "frame1", 1); +- filter.registerCallback(boost::bind(&Notification::notify, &n, _1)); ++ filter.registerCallback(boost::bind(&Notification::notify, &n, boost::placeholders::_1)); + + boost::shared_ptr msg(new PCDType); + ros::Time stamp = ros::Time::now(); +@@ -120,7 +120,7 @@ TEST(MessageFilter, noTransformsSameFrame) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "frame1", 1); +- filter.registerCallback(boost::bind(&Notification::notify, &n, _1)); ++ filter.registerCallback(boost::bind(&Notification::notify, &n, boost::placeholders::_1)); + + boost::shared_ptr msg(new PCDType); + ros::Time stamp = ros::Time::now(); +@@ -136,7 +136,7 @@ TEST(MessageFilter, preexistingTransforms) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "frame1", 1); +- filter.registerCallback(boost::bind(&Notification::notify, &n, _1)); ++ filter.registerCallback(boost::bind(&Notification::notify, &n, boost::placeholders::_1)); + + boost::shared_ptr msg(new PCDType); + +@@ -157,7 +157,7 @@ TEST(MessageFilter, postTransforms) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "frame1", 1); +- filter.registerCallback(boost::bind(&Notification::notify, &n, _1)); ++ filter.registerCallback(boost::bind(&Notification::notify, &n, boost::placeholders::_1)); + + ros::Time stamp = ros::Time::now(); + boost::shared_ptr msg(new PCDType); +@@ -182,8 +182,8 @@ TEST(MessageFilter, queueSize) + tf::TransformListener tf_client; + Notification n(10); + MessageFilter filter(tf_client, "frame1", 10); +- filter.registerCallback(boost::bind(&Notification::notify, &n, _1)); +- filter.registerFailureCallback(boost::bind(&Notification::failure, &n, _1, _2)); ++ filter.registerCallback(boost::bind(&Notification::notify, &n, boost::placeholders::_1)); ++ filter.registerFailureCallback(boost::bind(&Notification::failure, &n, boost::placeholders::_1, boost::placeholders::_2)); + + ros::Time stamp = ros::Time::now(); + std::uint64_t pcl_stamp; +@@ -215,7 +215,7 @@ TEST(MessageFilter, setTargetFrame) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "frame1", 1); +- filter.registerCallback(boost::bind(&Notification::notify, &n, _1)); ++ filter.registerCallback(boost::bind(&Notification::notify, &n, boost::placeholders::_1)); + filter.setTargetFrame("frame1000"); + + ros::Time stamp = ros::Time::now(); +@@ -237,7 +237,7 @@ TEST(MessageFilter, multipleTargetFrames) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "", 1); +- filter.registerCallback(boost::bind(&Notification::notify, &n, _1)); ++ filter.registerCallback(boost::bind(&Notification::notify, &n, boost::placeholders::_1)); + + std::vector target_frames; + target_frames.push_back("frame1"); +@@ -276,7 +276,7 @@ TEST(MessageFilter, tolerance) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "frame1", 1); +- filter.registerCallback(boost::bind(&Notification::notify, &n, _1)); ++ filter.registerCallback(boost::bind(&Notification::notify, &n, boost::placeholders::_1)); + filter.setTolerance(offset); + + ros::Time stamp = ros::Time::now(); +@@ -316,7 +316,7 @@ TEST(MessageFilter, outTheBackFailure) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "frame1", 1); +- filter.registerFailureCallback(boost::bind(&Notification::failure, &n, _1, _2)); ++ filter.registerFailureCallback(boost::bind(&Notification::failure, &n, boost::placeholders::_1, boost::placeholders::_2)); + + ros::Time stamp = ros::Time::now(); + boost::shared_ptr msg(new PCDType); +@@ -339,7 +339,7 @@ TEST(MessageFilter, emptyFrameIDFailure) + tf::TransformListener tf_client; + Notification n(1); + MessageFilter filter(tf_client, "frame1", 1); +- filter.registerFailureCallback(boost::bind(&Notification::failure, &n, _1, _2)); ++ filter.registerFailureCallback(boost::bind(&Notification::failure, &n, boost::placeholders::_1, boost::placeholders::_2)); + + boost::shared_ptr msg(new PCDType); + msg->header.frame_id = ""; +diff --git a/src/transforms.cpp b/src/transforms.cpp +index aa00aa00..bb00bb00 100644 +--- a/src/transforms.cpp ++++ b/src/transforms.cpp +@@ -35,6 +35,7 @@ + */ + + #include ++#include "pcl_ros/tf2_msvc_compat.h" + #include + #include + #include "pcl_ros/transforms.h" diff --git a/distros/noetic/patch/ros-noetic-pid.patch b/distros/noetic/patch/ros-noetic-pid.patch new file mode 100644 index 000000000..f402bdbb8 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-pid.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2fbeae5..0e5cfcf 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,7 @@ + cmake_minimum_required(VERSION 2.8.3) + project(pid) + +-add_compile_options(-std=c++11) ++add_compile_options(-std=c++14) + + find_package(catkin REQUIRED COMPONENTS + roscpp diff --git a/distros/noetic/patch/ros-noetic-pilz-industrial-motion-planner.patch b/distros/noetic/patch/ros-noetic-pilz-industrial-motion-planner.patch new file mode 100644 index 000000000..9bc484ed4 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-pilz-industrial-motion-planner.patch @@ -0,0 +1,54 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a67a3318c..e6e07c89b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -109,7 +109,7 @@ add_library(planning_context_loader_ptp + src/joint_limits_container.cpp + ) + target_link_libraries(planning_context_loader_ptp +- ${catkin_LIBRARIES}) ++ ${catkin_LIBRARIES} ${PROJECT_NAME}) + + add_library(planning_context_loader_lin + src/planning_context_loader_lin.cpp +@@ -120,7 +120,7 @@ add_library(planning_context_loader_lin + src/velocity_profile_atrap.cpp + ) + target_link_libraries(planning_context_loader_lin +- ${catkin_LIBRARIES}) ++ ${catkin_LIBRARIES} ${PROJECT_NAME}) + + add_library(planning_context_loader_circ + src/planning_context_loader_circ.cpp +@@ -131,13 +131,16 @@ add_library(planning_context_loader_circ + src/path_circle_generator.cpp + ) + target_link_libraries(planning_context_loader_circ +- ${catkin_LIBRARIES}) ++ ${PROJECT_NAME} ${catkin_LIBRARIES} ${PROJECT_NAME}) + + add_library(command_list_manager + src/command_list_manager.cpp +- src/plan_components_builder.cpp) ++ src/plan_components_builder.cpp ++ src/trajectory_functions.cpp ++ src/trajectory_blender_transition_window.cpp ++ ) + target_link_libraries(command_list_manager +- ${catkin_LIBRARIES}) ++ ${PROJECT_NAME} ${catkin_LIBRARIES}) + add_dependencies(command_list_manager + ${catkin_EXPORTED_TARGETS}) + +@@ -152,9 +155,10 @@ add_library(sequence_capability + src/limits_container.cpp + src/cartesian_limit.cpp + src/cartesian_limits_aggregator.cpp ++ src/trajectory_functions.cpp + ) + target_link_libraries(sequence_capability +- ${catkin_LIBRARIES}) ++ ${catkin_LIBRARIES} ${PROJECT_NAME}) + add_dependencies(sequence_capability + ${catkin_EXPORTED_TARGETS}) + diff --git a/distros/noetic/patch/ros-noetic-plotjuggler.patch b/distros/noetic/patch/ros-noetic-plotjuggler.patch new file mode 100644 index 000000000..c30ee4267 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-plotjuggler.patch @@ -0,0 +1,647 @@ +diff --git a/cmake/FindXCB.cmake b/cmake/FindXCB.cmake +new file mode 100644 +index 00000000..a2e2757a +--- /dev/null ++++ b/cmake/FindXCB.cmake +@@ -0,0 +1,51 @@ ++# - FindXCB ++# ++# Copyright 2015 Valve Coporation ++ ++find_package(PkgConfig) ++ ++if(NOT XCB_FIND_COMPONENTS) ++ set(XCB_FIND_COMPONENTS xcb) ++endif() ++ ++include(FindPackageHandleStandardArgs) ++set(XCB_FOUND true) ++set(XCB_INCLUDE_DIRS "") ++set(XCB_LIBRARIES "") ++foreach(comp ${XCB_FIND_COMPONENTS}) ++ # component name ++ string(TOUPPER ${comp} compname) ++ string(REPLACE "-" "_" compname ${compname}) ++ # header name ++ string(REPLACE "xcb-" "" headername xcb/${comp}.h) ++ # library name ++ set(libname ${comp}) ++ ++ pkg_check_modules(PC_${comp} QUIET ${comp}) ++ ++ find_path(${compname}_INCLUDE_DIR NAMES ${headername} ++ HINTS ++ ${PC_${comp}_INCLUDEDIR} ++ ${PC_${comp}_INCLUDE_DIRS} ++ ) ++ ++ find_library(${compname}_LIBRARY NAMES ${libname} ++ HINTS ++ ${PC_${comp}_LIBDIR} ++ ${PC_${comp}_LIBRARY_DIRS} ++ ) ++ ++ find_package_handle_standard_args(${comp} ++ FOUND_VAR ${comp}_FOUND ++ REQUIRED_VARS ${compname}_INCLUDE_DIR ${compname}_LIBRARY) ++ mark_as_advanced(${compname}_INCLUDE_DIR ${compname}_LIBRARY) ++ ++ list(APPEND XCB_INCLUDE_DIRS ${${compname}_INCLUDE_DIR}) ++ list(APPEND XCB_LIBRARIES ${${compname}_LIBRARY}) ++ ++ if(NOT ${comp}_FOUND) ++ set(XCB_FOUND false) ++ endif() ++endforeach() ++ ++list(REMOVE_DUPLICATES XCB_INCLUDE_DIRS) +diff --git a/3rdparty/nlohmann/json.hpp b/3rdparty/nlohmann/json.hpp +index cb27e058..cecdb1fd 100644 +--- a/3rdparty/nlohmann/json.hpp ++++ b/3rdparty/nlohmann/json.hpp +@@ -3198,6 +3198,7 @@ template struct identity_tag {}; + #include // false_type, is_constructible, is_integral, is_same, true_type + #include // declval + #include // tuple ++#include // char_traits + + // #include + +@@ -3261,6 +3262,7 @@ struct iterator_traits::value>> + + + // #include ++// #include + + + namespace nlohmann +@@ -3272,6 +3274,7 @@ NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin); + + + // #include ++// #include + + + namespace nlohmann +@@ -3482,6 +3485,63 @@ struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json::value >> + }; + + ++///////////////// ++// char_traits // ++///////////////// ++ ++// Primary template of char_traits calls std char_traits ++template ++struct char_traits : std::char_traits ++{}; ++ ++// Explicitly define char traits for unsigned char since it is not standard ++template<> ++struct char_traits : std::char_traits ++{ ++ using char_type = unsigned char; ++ using int_type = uint64_t; ++ ++ // Redefine to_int_type function ++ static int_type to_int_type(char_type c) noexcept ++ { ++ return static_cast(c); ++ } ++ ++ static char_type to_char_type(int_type i) noexcept ++ { ++ return static_cast(i); ++ } ++ ++ static constexpr int_type eof() noexcept ++ { ++ return static_cast(EOF); ++ } ++}; ++ ++// Explicitly define char traits for signed char since it is not standard ++template<> ++struct char_traits : std::char_traits ++{ ++ using char_type = signed char; ++ using int_type = uint64_t; ++ ++ // Redefine to_int_type function ++ static int_type to_int_type(char_type c) noexcept ++ { ++ return static_cast(c); ++ } ++ ++ static char_type to_char_type(int_type i) noexcept ++ { ++ return static_cast(i); ++ } ++ ++ static constexpr int_type eof() noexcept ++ { ++ return static_cast(EOF); ++ } ++}; ++ + /////////////////// + // is_ functions // + /////////////////// +@@ -5342,16 +5402,16 @@ class iterator_input_adapter + : current(std::move(first)), end(std::move(last)) + {} + +- typename std::char_traits::int_type get_character() ++ typename char_traits::int_type get_character() + { + if (JSON_HEDLEY_LIKELY(current != end)) + { +- auto result = std::char_traits::to_int_type(*current); ++ auto result = char_traits::to_int_type(*current); + std::advance(current, 1); + return result; + } + +- return std::char_traits::eof(); ++ return char_traits::eof(); + } + + private: +@@ -6517,7 +6577,7 @@ class lexer : public lexer_base + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using char_type = typename InputAdapterType::char_type; +- using char_int_type = typename std::char_traits::int_type; ++ using char_int_type = typename char_traits::int_type; + + public: + using token_type = typename lexer_base::token_type; +@@ -6667,7 +6727,7 @@ class lexer : public lexer_base + switch (get()) + { + // end of file while parsing string +- case std::char_traits::eof(): ++ case char_traits::eof(): + { + error_message = "invalid string: missing closing quote"; + return token_type::parse_error; +@@ -7256,7 +7316,7 @@ class lexer : public lexer_base + { + case '\n': + case '\r': +- case std::char_traits::eof(): ++ case char_traits::eof(): + case '\0': + return true; + +@@ -7273,7 +7333,7 @@ class lexer : public lexer_base + { + switch (get()) + { +- case std::char_traits::eof(): ++ case char_traits::eof(): + case '\0': + { + error_message = "invalid comment; missing closing '*/'"; +@@ -7702,10 +7762,10 @@ scan_number_done: + token_type scan_literal(const char_type* literal_text, const std::size_t length, + token_type return_type) + { +- JSON_ASSERT(std::char_traits::to_char_type(current) == literal_text[0]); ++ JSON_ASSERT(char_traits::to_char_type(current) == literal_text[0]); + for (std::size_t i = 1; i < length; ++i) + { +- if (JSON_HEDLEY_UNLIKELY(std::char_traits::to_char_type(get()) != literal_text[i])) ++ if (JSON_HEDLEY_UNLIKELY(char_traits::to_char_type(get()) != literal_text[i])) + { + error_message = "invalid literal"; + return token_type::parse_error; +@@ -7723,7 +7783,7 @@ scan_number_done: + { + token_buffer.clear(); + token_string.clear(); +- token_string.push_back(std::char_traits::to_char_type(current)); ++ token_string.push_back(char_traits::to_char_type(current)); + } + + /* +@@ -7731,7 +7791,7 @@ scan_number_done: + + This function provides the interface to the used input adapter. It does + not throw in case the input reached EOF, but returns a +- `std::char_traits::eof()` in that case. Stores the scanned characters ++ `char_traits::eof()` in that case. Stores the scanned characters + for use in error messages. + + @return character read from the input +@@ -7751,9 +7811,9 @@ scan_number_done: + current = ia.get_character(); + } + +- if (JSON_HEDLEY_LIKELY(current != std::char_traits::eof())) ++ if (JSON_HEDLEY_LIKELY(current != char_traits::eof())) + { +- token_string.push_back(std::char_traits::to_char_type(current)); ++ token_string.push_back(char_traits::to_char_type(current)); + } + + if (current == '\n') +@@ -7792,7 +7852,7 @@ scan_number_done: + --position.chars_read_current_line; + } + +- if (JSON_HEDLEY_LIKELY(current != std::char_traits::eof())) ++ if (JSON_HEDLEY_LIKELY(current != char_traits::eof())) + { + JSON_ASSERT(!token_string.empty()); + token_string.pop_back(); +@@ -7986,7 +8046,7 @@ scan_number_done: + // end of input (the null byte is needed when parsing from + // string literals) + case '\0': +- case std::char_traits::eof(): ++ case char_traits::eof(): + return token_type::end_of_input; + + // error +@@ -8004,7 +8064,7 @@ scan_number_done: + const bool ignore_comments = false; + + /// the current character +- char_int_type current = std::char_traits::eof(); ++ char_int_type current = char_traits::eof(); + + /// whether the next get() call should just return current + bool next_unget = false; +@@ -8235,7 +8295,7 @@ class binary_reader + using binary_t = typename BasicJsonType::binary_t; + using json_sax_t = SAX; + using char_type = typename InputAdapterType::char_type; +- using char_int_type = typename std::char_traits::int_type; ++ using char_int_type = typename char_traits::int_type; + + public: + /*! +@@ -8307,7 +8367,7 @@ class binary_reader + get(); + } + +- if (JSON_HEDLEY_UNLIKELY(current != std::char_traits::eof())) ++ if (JSON_HEDLEY_UNLIKELY(current != char_traits::eof())) + { + return sax->parse_error(chars_read, get_token_string(), + parse_error::create(110, chars_read, exception_message(format, "expected end of input; last byte: 0x" + get_token_string(), "value"), BasicJsonType())); +@@ -8389,7 +8449,7 @@ class binary_reader + return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "string length must be at least 1, is " + std::to_string(len), "string"), BasicJsonType())); + } + +- return get_string(input_format_t::bson, len - static_cast(1), result) && get() != std::char_traits::eof(); ++ return get_string(input_format_t::bson, len - static_cast(1), result) && get() != char_traits::eof(); + } + + /*! +@@ -8580,7 +8640,7 @@ class binary_reader + switch (get_char ? get() : current) + { + // EOF +- case std::char_traits::eof(): ++ case char_traits::eof(): + return unexpect_eof(input_format_t::cbor, "value"); + + // Integer 0x00..0x17 (0..23) +@@ -9350,7 +9410,7 @@ class binary_reader + switch (get()) + { + // EOF +- case std::char_traits::eof(): ++ case char_traits::eof(): + return unexpect_eof(input_format_t::msgpack, "value"); + + // positive fixint +@@ -10172,7 +10232,7 @@ class binary_reader + { + switch (prefix) + { +- case std::char_traits::eof(): // EOF ++ case char_traits::eof(): // EOF + return unexpect_eof(input_format_t::ubjson, "value"); + + case 'T': // true +@@ -10478,7 +10538,7 @@ class binary_reader + + This function provides the interface to the used input adapter. It does + not throw in case the input reached EOF, but returns a -'ve valued +- `std::char_traits::eof()` in that case. ++ `char_traits::eof()` in that case. + + @return character read from the input + */ +@@ -10618,7 +10678,7 @@ class binary_reader + JSON_HEDLEY_NON_NULL(3) + bool unexpect_eof(const input_format_t format, const char* context) const + { +- if (JSON_HEDLEY_UNLIKELY(current == std::char_traits::eof())) ++ if (JSON_HEDLEY_UNLIKELY(current == char_traits::eof())) + { + return sax->parse_error(chars_read, "", + parse_error::create(110, chars_read, exception_message(format, "unexpected end of input", context), BasicJsonType())); +@@ -10679,7 +10739,7 @@ class binary_reader + InputAdapterType ia; + + /// the current character +- char_int_type current = std::char_traits::eof(); ++ char_int_type current = char_traits::eof(); + + /// the number of characters read + std::size_t chars_read = 0; +@@ -16102,8 +16162,8 @@ class serializer + error_handler_t error_handler_ = error_handler_t::strict) + : o(std::move(s)) + , loc(std::localeconv()) +- , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits::to_char_type(* (loc->thousands_sep))) +- , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits::to_char_type(* (loc->decimal_point))) ++ , thousands_sep(loc->thousands_sep == nullptr ? '\0' : char_traits::to_char_type(* (loc->thousands_sep))) ++ , decimal_point(loc->decimal_point == nullptr ? '\0' : char_traits::to_char_type(* (loc->decimal_point))) + , indent_char(ichar) + , indent_string(512, indent_char) + , error_handler(error_handler_) +diff --git a/plotjuggler_plugins/ParserProtobuf/error_collectors.cpp b/plotjuggler_plugins/ParserProtobuf/error_collectors.cpp +index 761e0b73..b7ce4129 100644 +--- a/plotjuggler_plugins/ParserProtobuf/error_collectors.cpp ++++ b/plotjuggler_plugins/ParserProtobuf/error_collectors.cpp +@@ -2,38 +2,38 @@ + #include + #include + +-void FileErrorCollector::AddError(const std::string& filename, int line, int, +- const std::string& message) ++void FileErrorCollector::RecordError(const absl::string_view filename, int line, int, ++ const absl::string_view message) + { + auto msg = QString("File: [%1] Line: [%2] Message: %3\n\n") +- .arg(QString::fromStdString(filename)) ++ .arg(QString::fromStdString(std::string(filename))) + .arg(line) +- .arg(QString::fromStdString(message)); ++ .arg(QString::fromStdString(std::string(message))); + + _errors.push_back(msg); + } + +-void FileErrorCollector::AddWarning(const std::string& filename, int line, int, +- const std::string& message) ++void FileErrorCollector::RecordWarning(const absl::string_view filename, int line, int, ++ const absl::string_view message) + { + auto msg = QString("Warning [%1] line %2: %3") +- .arg(QString::fromStdString(filename)) ++ .arg(QString::fromStdString(std::string(filename))) + .arg(line) +- .arg(QString::fromStdString(message)); ++ .arg(QString::fromStdString(std::string(message))); + qDebug() << msg; + } + +-void IoErrorCollector::AddError(int line, google::protobuf::io::ColumnNumber, +- const std::string& message) ++void IoErrorCollector::RecordError(int line, google::protobuf::io::ColumnNumber, ++ const absl::string_view message) + { + _errors.push_back( +- QString("Line: [%1] Message: %2\n").arg(line).arg(QString::fromStdString(message))); ++ QString("Line: [%1] Message: %2\n").arg(line).arg(QString::fromStdString(std::string(message)))); + } + +-void IoErrorCollector::AddWarning(int line, google::protobuf::io::ColumnNumber column, +- const std::string& message) ++void IoErrorCollector::RecordWarning(int line, google::protobuf::io::ColumnNumber column, ++ const absl::string_view message) + { + qDebug() << QString("Line: [%1] Message: %2\n") + .arg(line) +- .arg(QString::fromStdString(message)); ++ .arg(QString::fromStdString(std::string(message))); + } +diff --git a/plotjuggler_plugins/ParserProtobuf/error_collectors.h b/plotjuggler_plugins/ParserProtobuf/error_collectors.h +index f70a881f..7afe1fea 100644 +--- a/plotjuggler_plugins/ParserProtobuf/error_collectors.h ++++ b/plotjuggler_plugins/ParserProtobuf/error_collectors.h +@@ -3,17 +3,18 @@ + + #include + #include ++#include + + #include + + class IoErrorCollector : public google::protobuf::io::ErrorCollector + { + public: +- void AddError(int line, google::protobuf::io::ColumnNumber column, +- const std::string& message) override; ++ void RecordError(int line, google::protobuf::io::ColumnNumber column, ++ const absl::string_view message) override; + +- void AddWarning(int line, google::protobuf::io::ColumnNumber column, +- const std::string& message) override; ++ void RecordWarning(int line, google::protobuf::io::ColumnNumber column, ++ const absl::string_view message) override; + + const QStringList& errors() + { +@@ -27,11 +28,11 @@ private: + class FileErrorCollector : public google::protobuf::compiler::MultiFileErrorCollector + { + public: +- void AddError(const std::string& filename, int line, int, +- const std::string& message) override; ++ void RecordError(const absl::string_view filename, int line, int, ++ const absl::string_view message) override; + +- void AddWarning(const std::string& filename, int line, int, +- const std::string& message) override; ++ void RecordWarning(const absl::string_view filename, int line, int, ++ const absl::string_view message) override; + + const QStringList& errors() + { +diff --git a/3rdparty/Qt-Advanced-Docking/CMakeLists.txt b/3rdparty/Qt-Advanced-Docking/CMakeLists.txt +index 6b650f1b..82c58edb 100644 +--- a/3rdparty/Qt-Advanced-Docking/CMakeLists.txt ++++ b/3rdparty/Qt-Advanced-Docking/CMakeLists.txt +@@ -67,7 +67,9 @@ target_link_libraries(qt_advanced_docking PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets + + if(UNIX AND NOT APPLE) + target_link_libraries(qt_advanced_docking PUBLIC Qt5::X11Extras) +- target_link_libraries(qt_advanced_docking PRIVATE xcb) ++ find_package(XCB REQUIRED) ++ target_link_libraries(qt_advanced_docking PRIVATE ${XCB_LIBRARIES}) ++ target_include_directories(qt_advanced_docking SYSTEM PUBLIC ${XCB_INCLUDE_DIRS}) + endif() + + set_target_properties(qt_advanced_docking PROPERTIES +diff --git a/3rdparty/lua-5.4.3/CMakeLists.txt b/3rdparty/lua-5.4.3/CMakeLists.txt +index ad3dc012..a3da197b 100644 +--- a/3rdparty/lua-5.4.3/CMakeLists.txt ++++ b/3rdparty/lua-5.4.3/CMakeLists.txt +@@ -1,3 +1,5 @@ ++include_directories( ./src ) ++ + set(LUA_LIB_SRCS + ${CMAKE_CURRENT_SOURCE_DIR}/src/lapi.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/lcode.c +@@ -32,7 +34,7 @@ set(LUA_LIB_SRCS + ${CMAKE_CURRENT_SOURCE_DIR}/src/loadlib.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/linit.c + ) +-set(LUA_LIB_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/src) ++# set(LUA_LIB_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/src) + + if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang|AppleClang") + add_compile_options(-fPIC) +@@ -42,7 +44,7 @@ add_library(lua_static STATIC + ${LUA_LIB_SRCS} + ${CMAKE_CURRENT_SOURCE_DIR}/src/lua.c + ) +-target_include_directories(lua_static PUBLIC ${LUA_LIB_INCLUDE}) ++# target_include_directories(lua_static PUBLIC ${LUA_LIB_INCLUDE}) + + add_library(lua_objects OBJECT ${LUA_LIB_SRCS}) + +@@ -55,3 +57,11 @@ if(EMSCRIPTEN) + endif() + target_compile_definitions(lua_static PUBLIC ${LUA_DEFINITIONS}) + ++install( ++ TARGETS ++ lua_static ++ EXPORT export_lua_static ++ LIBRARY DESTINATION lib ++ ARCHIVE DESTINATION lib ++ RUNTIME DESTINATION bin ++ INCLUDES DESTINATION include ) +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 16477dd3..859f7320 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.10.2) ++cmake_minimum_required(VERSION 3.20) + + PROJECT(plotjuggler LANGUAGES C CXX VERSION 3.9.1) + +@@ -94,18 +94,6 @@ if (NOT WIN32) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer") + endif() + +-if(APPLE AND EXISTS /usr/local/opt/qt5) +- # Homebrew installs Qt5 (up to at least 5.9.1) in +- # /usr/local/qt5, ensure it can be found by CMake since +- # it is not in the default /usr/local prefix. +- # source: https://github.com/Homebrew/homebrew-core/issues/8392#issuecomment-325226494 +- list(APPEND CMAKE_PREFIX_PATH "/usr/local/opt/qt5") +- set(CMAKE_MACOSX_RPATH 1) +-elseif(APPLE AND EXISTS /opt/homebrew/opt/qt@5) +- list(APPEND CMAKE_PREFIX_PATH "/opt/homebrew/opt/qt@5") +- set(CMAKE_MACOSX_RPATH 1) +-endif() +- + find_package(Qt5 REQUIRED COMPONENTS + Core + Widgets +@@ -120,11 +108,9 @@ find_package(Qt5 REQUIRED COMPONENTS + set( QT_LINK_LIBRARIES + Qt5::Core + Qt5::Widgets +- Qt5::PrintSupport + Qt5::Xml + Qt5::Concurrent + Qt5::Svg +- Qt5::OpenGL + Qt5::WebSockets + ) + +@@ -191,7 +177,7 @@ if (BASE_AS_SHARED) + ${PLOTJUGGLER_BASE_SRC} + ${PLOTJUGGLER_BASE_MOCS} + ) +- target_link_libraries(plotjuggler_base PRIVATE lua_objects plotjuggler_qwt_objects) ++ target_link_libraries(plotjuggler_base PRIVATE ${QT_LINK_LIBRARIES} lua_objects plotjuggler_qwt_objects) + else() + add_library(plotjuggler_base STATIC + ${PLOTJUGGLER_BASE_SRC} +@@ -199,13 +185,6 @@ else() + ) + endif() + +-# target_link_libraries(plotjuggler_base plotjuggler_qwt) +- +-target_include_directories(plotjuggler_base INTERFACE +- $ +- $ +-) +- + ######################### INSTALL #################################### + + if(COMPILING_WITH_CATKIN) +diff --git a/plotjuggler_plugins/ParserProtobuf/CMakeLists.txt b/plotjuggler_plugins/ParserProtobuf/CMakeLists.txt +index f399fdad..4c89c787 100644 +--- a/plotjuggler_plugins/ParserProtobuf/CMakeLists.txt ++++ b/plotjuggler_plugins/ParserProtobuf/CMakeLists.txt +@@ -1,13 +1,6 @@ +-if(BUILDING_WITH_CONAN) +- message(STATUS "Finding Protobuf with conan") +- set(Protobuf_LIBS protobuf::libprotobuf) +-else() +- message(STATUS "Finding Protobuf without package managers") +- find_package(Protobuf QUIET) +- set(Protobuf_LIBS ${Protobuf_LIBRARIES}) +-endif() ++set(Protobuf_LIBS protobuf::libprotobuf) + +-find_package(Protobuf QUIET) ++find_package(Protobuf QUIET CONFIG) + + if( Protobuf_FOUND) + +diff --git a/plotjuggler_plugins/ParserProtobuf/protobuf_factory.cpp b/plotjuggler_plugins/ParserProtobuf/protobuf_factory.cpp +index 57fdd022..12f66e80 100644 +--- a/plotjuggler_plugins/ParserProtobuf/protobuf_factory.cpp ++++ b/plotjuggler_plugins/ParserProtobuf/protobuf_factory.cpp +@@ -83,7 +83,8 @@ void ParserFactoryProtobuf::importFile(QString filename) + + for (int i = 0; i < info.file_descriptor->message_type_count(); i++) + { +- const std::string& type_name = info.file_descriptor->message_type(i)->name(); ++ const std::string type_name = ++ std::string(info.file_descriptor->message_type(i)->name()); + auto descriptor = info.file_descriptor->FindMessageTypeByName(type_name); + QString type_qname = QString::fromStdString(type_name); + info.descriptors.insert({ type_qname, descriptor }); +diff --git a/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp b/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp +index 5d2ae73a..f8fca4ff 100644 +--- a/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp ++++ b/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp +@@ -60,7 +60,8 @@ bool ProtobufParser::parseMessage(const MessageRef serialized_msg, double& times + auto field = descriptor->field(index); + + std::string key = +- prefix.empty() ? field->name() : fmt::format("{}/{}", prefix, field->name()); ++ prefix.empty() ? std::string(field->name()) : ++ fmt::format("{}/{}", prefix, field->name()); + if (is_map) + { + // Map messages only have 2 fields: key and value. The key will be represented in +diff --git a/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp b/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp +index f8fca4ff..2ff1367c 100644 +--- a/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp ++++ b/plotjuggler_plugins/ParserProtobuf/protobuf_parser.cpp +@@ -161,7 +161,7 @@ bool ProtobufParser::parseMessage(const MessageRef serialized_msg, double& times + reflection->GetRepeatedEnum(msg, field, index); + + auto& series = this->getStringSeries(key + suffix); +- series.pushBack({ timestamp, tmp->name() }); ++ series.pushBack({ timestamp, std::string(tmp->name()) }); + is_double = false; + } + break; diff --git a/distros/noetic/patch/ros-noetic-plotjuggler.unix.patch b/distros/noetic/patch/ros-noetic-plotjuggler.unix.patch new file mode 100644 index 000000000..85524b2e8 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-plotjuggler.unix.patch @@ -0,0 +1,20 @@ +diff --git a/3rdparty/sol/sol.hpp b/3rdparty/sol/sol.hpp +index 0bb68ebe..20855338 100644 +--- a/3rdparty/sol/sol.hpp ++++ b/3rdparty/sol/sol.hpp +@@ -6747,12 +6747,9 @@ namespace sol { + /// one. + /// + /// \group emplace +- template +- T& emplace(Args&&... args) noexcept { +- static_assert(std::is_constructible::value, "T must be constructible with Args"); +- +- *this = nullopt; +- this->construct(std::forward(args)...); ++ T& emplace(T& arg) noexcept { ++ m_value = &arg; ++ return **this; + } + + /// Swaps this optional with the other. diff --git a/distros/noetic/patch/ros-noetic-plotjuggler.win.patch b/distros/noetic/patch/ros-noetic-plotjuggler.win.patch new file mode 100644 index 000000000..359edbb1b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-plotjuggler.win.patch @@ -0,0 +1,20 @@ +diff --git a/3rdparty/sol/sol.hpp b/3rdparty/sol/sol.hpp +index 0bb68ebe..20855338 100644 +--- a/3rdparty/sol/sol.hpp ++++ b/3rdparty/sol/sol.hpp +@@ -6747,12 +6747,9 @@ namespace sol { + /// one. + /// + /// \group emplace +- template +- T& emplace(Args&&... args) noexcept { +- static_assert(std::is_constructible::value, "T must be constructible with Args"); +- +- *this = nullopt; +- this->construct(std::forward(args)...); ++ T& emplace(T& arg) noexcept { ++ m_value = &arg; ++ return **this; + } + + /// Swaps this optional with the other. diff --git a/distros/noetic/patch/ros-noetic-pluginlib-tutorials.patch b/distros/noetic/patch/ros-noetic-pluginlib-tutorials.patch new file mode 100644 index 000000000..39c0b642a --- /dev/null +++ b/distros/noetic/patch/ros-noetic-pluginlib-tutorials.patch @@ -0,0 +1,26 @@ +diff --git a/pluginlib_tutorials/CMakeLists.txt b/pluginlib_tutorials/CMakeLists.txt +index 6a9b5ec..370d6d9 100644 +--- a/pluginlib_tutorials/CMakeLists.txt ++++ b/pluginlib_tutorials/CMakeLists.txt +@@ -3,6 +3,7 @@ project(pluginlib_tutorials) + + ## Find catkin dependencies + find_package(catkin REQUIRED COMPONENTS pluginlib roscpp) ++find_package(console_bridge) + + ## Find Boost (headers only) + find_package(Boost REQUIRED) +@@ -19,11 +20,11 @@ include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) + + ## pluginlib_tutorials library + add_library(pluginlib_tutorials src/polygon_plugins.cpp) +-target_link_libraries(pluginlib_tutorials ${catkin_LIBRARIES}) ++target_link_libraries(pluginlib_tutorials ${catkin_LIBRARIES} console_bridge::console_bridge) + + ## polygon_loader executable + add_executable(polygon_loader src/polygon_loader.cpp) +-target_link_libraries(polygon_loader ${catkin_LIBRARIES}) ++target_link_libraries(polygon_loader ${catkin_LIBRARIES} console_bridge::console_bridge) + + ## Mark executables and/or libraries for installation + install(TARGETS pluginlib_tutorials polygon_loader diff --git a/distros/noetic/patch/ros-noetic-pluginlib.win.patch b/distros/noetic/patch/ros-noetic-pluginlib.win.patch new file mode 100644 index 000000000..9aebeee1c --- /dev/null +++ b/distros/noetic/patch/ros-noetic-pluginlib.win.patch @@ -0,0 +1,37 @@ +diff --git a/include/pluginlib/class_loader_imp.hpp b/include/pluginlib/class_loader_imp.hpp +index d45b591..6b18c37 100644 +--- a/include/pluginlib/class_loader_imp.hpp ++++ b/include/pluginlib/class_loader_imp.hpp +@@ -357,12 +357,32 @@ std::vector ClassLoader::getAllLibraryPathsToTry( + std::string stripped_library_name = stripAllButFileFromPath(library_name); + std::string stripped_library_name_with_extension = stripped_library_name + non_debug_suffix; + ++ #ifdef _WIN32 ++ boost::filesystem::path winlib(library_name); ++ std::string additional_lib, stripped_additional_lib; ++ std::string win_filename = winlib.filename().string(); ++ if (win_filename.size() >= 3 && win_filename.substr(0, 3) == "lib") ++ { ++ additional_lib = (winlib.remove_filename() / win_filename.substr(3)).string() + non_debug_suffix; ++ stripped_additional_lib = win_filename.substr(3) + non_debug_suffix; ++ } ++ #endif ++ + const std::string path_separator = getPathSeparator(); + + for (unsigned int c = 0; c < all_paths_without_extension.size(); c++) { + std::string current_path = all_paths_without_extension.at(c); + all_paths.push_back(current_path + path_separator + library_name_with_extension); + all_paths.push_back(current_path + path_separator + stripped_library_name_with_extension); ++ ++ #ifdef _WIN32 ++ if (!additional_lib.empty()) ++ { ++ all_paths.push_back(current_path + path_separator + additional_lib); ++ all_paths.push_back(current_path + path_separator + stripped_additional_lib); ++ } ++ #endif ++ + // We're in debug mode, try debug libraries as well + if (debug_library_suffix) { + all_paths.push_back( diff --git a/distros/noetic/patch/ros-noetic-pybind11-catkin.patch b/distros/noetic/patch/ros-noetic-pybind11-catkin.patch new file mode 100644 index 000000000..cc433e7ad --- /dev/null +++ b/distros/noetic/patch/ros-noetic-pybind11-catkin.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5b63626..03d9fe8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -11,9 +11,6 @@ ExternalProject_Add(pybind11_src + -DPYBIND11_TEST=OFF + -DPYBIND11_INSTALL=ON + -DCMAKE_INSTALL_PREFIX=${PROJECT_BINARY_DIR}/install +- # Workaround if DESTDIR is set +- # See https://gitlab.kitware.com/cmake/cmake/-/issues/18165. +- INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} DESTDIR= install + ) + + # Copy cmake/pybind11 and include/pybind11 to corresponding devel space folders diff --git a/distros/noetic/patch/ros-noetic-python-qt-binding.patch b/distros/noetic/patch/ros-noetic-python-qt-binding.patch new file mode 100644 index 000000000..d9763b895 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-python-qt-binding.patch @@ -0,0 +1,252 @@ +diff --git a/src/python_qt_binding/__init__.py b/src/python_qt_binding/__init__.py +index 1e209de..c40ad0b 100644 +--- a/src/python_qt_binding/__init__.py ++++ b/src/python_qt_binding/__init__.py +@@ -66,3 +66,11 @@ + del module + + del sys ++ ++import os ++from .QtGui import QIcon ++current_theme_path = QIcon.themeSearchPaths() ++conda_path = os.environ['CONDA_PREFIX'] ++QIcon.setThemeSearchPaths(current_theme_path + [os.path.join(conda_path, 'share/icons/')]) ++QIcon.setThemeName('Adwaita') ++del os + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8db3c7b..892d81c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,4 +10,5 @@ install(FILES + cmake/shiboken_helper.cmake + cmake/sip_configure.py + cmake/sip_helper.cmake ++ cmake/pyproject.toml.in + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/cmake) +diff --git a/cmake/sip_configure.py b/cmake/sip_configure.py +index 4886059..a2b06fe 100644 +--- a/cmake/sip_configure.py ++++ b/cmake/sip_configure.py +@@ -181,6 +181,7 @@ def split_paths(paths): + # Force c++14 + if sys.platform == 'win32': + makefile.extra_cxxflags.append('/std:c++14') ++ makefile.extra_cxxflags.append('/DROS_BUILD_SHARED_LIBS=1') + # The __cplusplus flag is not properly set on Windows for backwards + # compatibilty. This flag sets it correctly + makefile.CXXFLAGS.append('/Zc:__cplusplus') +@@ -190,6 +191,22 @@ def split_paths(paths): + # Finalise the Makefile, preparing it to be saved to disk + makefile.finalise() + ++# ---- Force C++14 and override any gnu++11 etc. ---- ++cxxflags = makefile.CXXFLAGS.as_list() ++ ++# Remove any existing standard flags ++cxxflags = [ ++ f for f in cxxflags ++ if not f.startswith('-std=') and not f.startswith('/std:') ++] ++ ++if sys.platform == 'win32': ++ cxxflags.append('/std:c++14') ++else: ++ cxxflags.append('-std=c++14') ++ ++makefile.CXXFLAGS.set(cxxflags) ++ + # Replace Qt variables from libraries + libs = makefile.LIBS.as_list() + for i in range(len(libs)): +diff --git a/cmake/pyproject.toml.in b/cmake/pyproject.toml.in +new file mode 100644 +index 0000000..9353bab +--- /dev/null ++++ b/cmake/pyproject.toml.in +@@ -0,0 +1,27 @@ ++# Specify sip v5 as the build system for the package. ++[build-system] ++requires = ["PyQt-builder >=1, <2"] ++build-backend = "sipbuild.api" ++ ++[tool.sip] ++project-factory = "pyqtbuild:PyQtProject" ++ ++[tool.sip.builder] ++qmake = "@QMAKE_EXECUTABLE@" ++qmake-settings = ["CONFIG += c++14"] ++[tool.sip.project] ++sip-files-dir = "@SIP_FILES_DIR@" ++build-dir = "@SIP_BUILD_DIR@" ++verbose = true ++# Specify the PEP 566 metadata for the project. ++[tool.sip.metadata] ++name = "lib@PROJECT_NAME@" ++ ++[tool.sip.bindings.libqt_gui_cpp_sip] ++sip-file = "@SIP_FILE@" ++include-dirs = [@SIP_INCLUDE_DIRS@] ++libraries = [@SIP_LIBARIES@] ++library-dirs = [@SIP_LIBRARY_DIRS@] ++qmake-QT = ["widgets"] ++define-macros = [@SIP_EXTRA_DEFINES@] ++exceptions = true +diff --git a/cmake/sip_helper.cmake b/cmake/sip_helper.cmake +index a055cf5..8f32039 100644 +--- a/cmake/sip_helper.cmake ++++ b/cmake/sip_helper.cmake +@@ -18,7 +18,7 @@ execute_process( + if(PYTHON_SIP_EXECUTABLE) + string(STRIP ${PYTHON_SIP_EXECUTABLE} SIP_EXECUTABLE) + else() +- find_program(SIP_EXECUTABLE sip) ++ find_program(SIP_EXECUTABLE NAMES sip sip-build) + endif() + + if(SIP_EXECUTABLE) +@@ -29,6 +29,15 @@ else() + set(sip_helper_NOTFOUND TRUE) + endif() + ++if(sip_helper_FOUND) ++ execute_process( ++ COMMAND ${SIP_EXECUTABLE} -V ++ OUTPUT_VARIABLE SIP_VERSION ++ ERROR_QUIET) ++ # string(STRIP ${SIP_VERSION} SIP_VERSION) ++ # message(STATUS "SIP binding generator version: ${SIP_VERSION}") ++endif() ++ + # + # Run the SIP generator and compile the generated code into a library. + # +@@ -89,32 +98,107 @@ function(build_sip_binding PROJECT_NAME SIP_FILE) + # SIP configure doesn't handle CMake targets + catkin_replace_imported_library_targets(LIBRARIES ${LIBRARIES}) + +- add_custom_command( +- OUTPUT ${SIP_BUILD_DIR}/Makefile +- COMMAND ${PYTHON_EXECUTABLE} ${sip_SIP_CONFIGURE} ${SIP_BUILD_DIR} ${SIP_FILE} ${sip_LIBRARY_DIR} \"${INCLUDE_DIRS}\" \"${LIBRARIES}\" \"${LIBRARY_DIRS}\" \"${LDFLAGS_OTHER}\" \"${EXTRA_DEFINES}\" +- DEPENDS ${sip_SIP_CONFIGURE} ${SIP_FILE} ${sip_DEPENDS} +- WORKING_DIRECTORY ${sip_SOURCE_DIR} +- COMMENT "Running SIP generator for ${PROJECT_NAME} Python bindings..." +- ) ++ if(TRUE) ++ # Since v5, SIP implements the backend per PEP 517, PEP 518 ++ # Here we synthesize `pyproject.toml` and run `pip install` ++ ++ find_program(QMAKE_EXECUTABLE NAMES qmake REQUIRED) + +- if(NOT EXISTS "${sip_LIBRARY_DIR}") ++ file(REMOVE_RECURSE ${SIP_BUILD_DIR}) + file(MAKE_DIRECTORY ${sip_LIBRARY_DIR}) +- endif() + +- if(WIN32) +- set(MAKE_EXECUTABLE NMake.exe) ++ set(SIP_FILES_DIR ${sip_SOURCE_DIR}) ++ ++ set(SIP_INCLUDE_DIRS "") ++ foreach(_x ${INCLUDE_DIRS}) ++ set(SIP_INCLUDE_DIRS "${SIP_INCLUDE_DIRS},\"${_x}\"") ++ endforeach() ++ string(REGEX REPLACE "^," "" SIP_INCLUDE_DIRS ${SIP_INCLUDE_DIRS}) ++ ++ # SIP expects the libraries WITHOUT the file extension. ++ set(SIP_LIBARIES "") ++ set(SIP_LIBRARY_DIRS "") ++ ++ if(APPLE) ++ set(LIBRARIES_TO_LOOP ${LIBRARIES}) ++ else() ++ set(LIBRARIES_TO_LOOP ${LIBRARIES} ${PYTHON_LIBRARIES}) ++ endif() ++ ++ # message(WARNING "test LIBRARIES_TO_LOOP: ${LIBRARIES_TO_LOOP}") ++ ++ foreach(_x ${LIBRARIES_TO_LOOP}) ++ get_filename_component(_x_NAME "${_x}" NAME_WLE) ++ get_filename_component(_x_DIR "${_x}" DIRECTORY) ++ get_filename_component(_x "${_x_DIR}/${_x_NAME}" ABSOLUTE) ++ STRING(REGEX REPLACE "^lib" "" _x_NAME_NOPREFIX ${_x_NAME}) ++ ++ string(FIND "${_x_NAME_NOPREFIX}" "$" "" _x_NAME_NOPREFIX ${_x_NAME_NOPREFIX}) ++ if(NOT "${out2}" EQUAL -1) ++ message(STATUS "IGNORE: ${_x_NAME_NOPREFIX}") ++ else() ++ set(SIP_LIBARIES "${SIP_LIBARIES},\"${_x_NAME_NOPREFIX}\"") ++ endif() ++ else() ++ set(SIP_LIBARIES "${SIP_LIBARIES},\"${_x_NAME_NOPREFIX}\"") ++ set(SIP_LIBRARY_DIRS "${SIP_LIBRARY_DIRS},\"${_x_DIR}\"") ++ endif() ++ endforeach() ++ string(REGEX REPLACE "^," "" SIP_LIBARIES ${SIP_LIBARIES}) ++ message(WARNING "test SIP_LIBARIES: ${SIP_LIBARIES}") ++ foreach(_x ${LIBRARY_DIRS}) ++ set(SIP_LIBRARY_DIRS "${SIP_LIBRARY_DIRS},\"${_x}\"") ++ endforeach() ++ string(REGEX REPLACE "^," "" SIP_LIBRARY_DIRS ${SIP_LIBRARY_DIRS}) ++ ++ message(WARNING "test lib dir: ${SIP_LIBRARY_DIRS}") ++ # TODO: ++ # I don't know what to do about LDFLAGS_OTHER ++ # what's the equivalent construct in sip5? ++ ++ configure_file( ++ ${__PYTHON_QT_BINDING_SIP_HELPER_DIR}/pyproject.toml.in ++ ${sip_BINARY_DIR}/sip/pyproject.toml ++ ) ++ add_custom_command( ++ OUTPUT ${sip_LIBRARY_DIR}/lib${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX} ++ COMMAND ${PYTHON_EXECUTABLE} -m pip install . --target ${sip_LIBRARY_DIR} --no-deps -vvv --upgrade ++ DEPENDS ${sip_SIP_CONFIGURE} ${SIP_FILE} ${sip_DEPENDS} ++ WORKING_DIRECTORY ${sip_BINARY_DIR}/sip ++ COMMENT "Running SIP-build generator for ${PROJECT_NAME} Python bindings..." ++ ) + else() +- set(MAKE_EXECUTABLE "\$(MAKE)") ++ add_custom_command( ++ OUTPUT ${SIP_BUILD_DIR}/Makefile ++ COMMAND ${PYTHON_EXECUTABLE} ${sip_SIP_CONFIGURE} ${SIP_BUILD_DIR} ${SIP_FILE} ${sip_LIBRARY_DIR} \"${INCLUDE_DIRS}\" \"${LIBRARIES}\" \"${LIBRARY_DIRS}\" \"${LDFLAGS_OTHER}\" \"${EXTRA_DEFINES}\" ++ DEPENDS ${sip_SIP_CONFIGURE} ${SIP_FILE} ${sip_DEPENDS} ++ WORKING_DIRECTORY ${sip_SOURCE_DIR} ++ COMMENT "Running SIP generator for ${PROJECT_NAME} Python bindings..." ++ ) ++ ++ if(NOT EXISTS "${sip_LIBRARY_DIR}") ++ file(MAKE_DIRECTORY ${sip_LIBRARY_DIR}) ++ endif() ++ ++ if(WIN32) ++ set(MAKE_EXECUTABLE NMake.exe) ++ else() ++ set(MAKE_EXECUTABLE make) ++ endif() ++ ++ add_custom_command( ++ OUTPUT ${sip_LIBRARY_DIR}/lib${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX} ++ COMMAND ${MAKE_EXECUTABLE} ++ DEPENDS ${SIP_BUILD_DIR}/Makefile ++ WORKING_DIRECTORY ${SIP_BUILD_DIR} ++ COMMENT "Compiling generated code for ${PROJECT_NAME} Python bindings..." ++ ) + endif() + +- add_custom_command( +- OUTPUT ${sip_LIBRARY_DIR}/lib${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX} +- COMMAND ${MAKE_EXECUTABLE} +- DEPENDS ${SIP_BUILD_DIR}/Makefile +- WORKING_DIRECTORY ${SIP_BUILD_DIR} +- COMMENT "Compiling generated code for ${PROJECT_NAME} Python bindings..." +- ) +- + add_custom_target(lib${PROJECT_NAME} ALL + DEPENDS ${sip_LIBRARY_DIR}/lib${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX} + COMMENT "Meta target for ${PROJECT_NAME} Python bindings..." diff --git a/distros/noetic/patch/ros-noetic-python-qt-binding.win.patch b/distros/noetic/patch/ros-noetic-python-qt-binding.win.patch new file mode 100644 index 000000000..cfef21e81 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-python-qt-binding.win.patch @@ -0,0 +1,18 @@ +diff --git a/cmake/sip_helper.cmake b/cmake/sip_helper.cmake +index a055cf5..6e3b19c 100644 +--- a/cmake/sip_helper.cmake ++++ b/cmake/sip_helper.cmake +@@ -75,8 +75,11 @@ function(build_sip_binding PROJECT_NAME SIP_FILE) + + set(SIP_BUILD_DIR ${sip_BINARY_DIR}/sip/${PROJECT_NAME}) + +- set(INCLUDE_DIRS ${${PROJECT_NAME}_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}) +- set(LIBRARY_DIRS ${${PROJECT_NAME}_LIBRARY_DIRS}) ++ find_package(Qt5Core REQUIRED) ++ find_package(Qt5Widgets REQUIRED) ++ ++ set(INCLUDE_DIRS ${${PROJECT_NAME}_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} ${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS}) ++ set(LIBRARY_DIRS ${${PROJECT_NAME}_LIBRARY_DIRS} ${Qt5Core_LIBRARY_DIRS} ${Qt5Widgets_LIBRARY_DIRS}) + set(LDFLAGS_OTHER ${${PROJECT_NAME}_LDFLAGS_OTHER}) + + set(EXTRA_DEFINES "") diff --git a/distros/noetic/patch/ros-noetic-qt-gui-cpp.patch b/distros/noetic/patch/ros-noetic-qt-gui-cpp.patch new file mode 100644 index 000000000..8420016de --- /dev/null +++ b/distros/noetic/patch/ros-noetic-qt-gui-cpp.patch @@ -0,0 +1,76 @@ +diff --git a/src/qt_gui_cpp/CMakeLists.txt b/src/qt_gui_cpp/CMakeLists.txt +index 9e9a0b92..82a91a9d 100644 +--- a/src/qt_gui_cpp/CMakeLists.txt ++++ b/src/qt_gui_cpp/CMakeLists.txt +@@ -1,6 +1,6 @@ + set(Python_ADDITIONAL_VERSIONS "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") + find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED) +-find_package(Qt5Widgets REQUIRED) ++find_package(Qt5 COMPONENTS Core Gui Widgets REQUIRED) + if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") + endif() +diff --git a/src/qt_gui_cpp_sip/CMakeLists.txt b/src/qt_gui_cpp_sip/CMakeLists.txt +index 370457fe..5fbae184 100644 +--- a/src/qt_gui_cpp_sip/CMakeLists.txt ++++ b/src/qt_gui_cpp_sip/CMakeLists.txt +@@ -26,12 +26,33 @@ set(qt_gui_cpp_sip_DEPENDENT_FILES + ${qt_gui_cpp_HDRS_DIR}/settings.h + ) + ++find_package(Python REQUIRED COMPONENTS Interpreter Development) ++find_package(TinyXML REQUIRED) ++ + # maintain context for different named target + set(qt_gui_cpp_sip_INCLUDE_DIRS ${qt_gui_cpp_INCLUDE_DIRS} "${CMAKE_CURRENT_SOURCE_DIR}/../../include" ${catkin_INCLUDE_DIRS}) +-set(qt_gui_cpp_sip_LIBRARIES ${qt_gui_cpp_LIBRARIES} ${PROJECT_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) +-set(qt_gui_cpp_sip_LIBRARY_DIRS ${qt_gui_cpp_LIBRARY_DIRS} ${CATKIN_DEVEL_PREFIX}/lib) ++set(_qt_gui_cpp_sip_LIBRARIES ${qt_gui_cpp_LIBRARIES} ${PROJECT_NAME} ${Boost_LIBRARIES} ${TinyXML_LIBRARIES}) ++ ++if(NOT APPLE) ++ set(_qt_gui_cpp_sip_LIBRARIES ${_qt_gui_cpp_sip_LIBRARIES} Python::Python) ++endif() ++ ++message(WARNING "CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}") ++set(qt_gui_cpp_sip_LIBRARY_DIRS ${CMAKE_BINARY_DIR} ${qt_gui_cpp_LIBRARY_DIRS} ${CATKIN_DEVEL_PREFIX}/lib /usr/lib/${CMAKE_SYSTEM_PROCESSOR}-linux-gnu/) + set(qt_gui_cpp_sip_LDFLAGS_OTHER ${qt_gui_cpp_LDFLAGS_OTHER}) + ++# sip needs libraries to have resolved paths and cannot link to cmake targets ++foreach(_lib_name_raw ${_qt_gui_cpp_sip_LIBRARIES}) ++ string(REGEX REPLACE "\\.so\\.[0-9,\\.]*" ".so" _lib_name ${_lib_name_raw}) ++ if(TARGET ${_lib_name}) ++ # Use a nifty cmake generator expression to resolve the target location ++ list(APPEND qt_gui_cpp_sip_LIBRARIES $) ++ else() ++ # This library should work as is ++ list(APPEND qt_gui_cpp_sip_LIBRARIES ${_lib_name}) ++ endif() ++endforeach() ++ + find_package(python_qt_binding REQUIRED) + include(${python_qt_binding_EXTRAS_DIR}/sip_helper.cmake) + +@@ -47,11 +68,11 @@ if(sip_helper_FOUND) + ) + + if(APPLE) +- set(LIBQT_GUI_CPP_SIP_SUFFIX .so) ++ set(LIBQT_GUI_CPP_SIP_SUFFIX ".cpython-${Python_VERSION_MAJOR}${Python_VERSION_MINOR}-darwin.so") + elseif(WIN32) + set(LIBQT_GUI_CPP_SIP_SUFFIX .pyd) + else() +- set(LIBQT_GUI_CPP_SIP_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}) ++ set(LIBQT_GUI_CPP_SIP_SUFFIX ".cpython-${Python_VERSION_MAJOR}${Python_VERSION_MINOR}-${CMAKE_SYSTEM_PROCESSOR}-linux-gnu${CMAKE_SHARED_LIBRARY_SUFFIX}") + endif() + + install(FILES ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}/libqt_gui_cpp_sip${LIBQT_GUI_CPP_SIP_SUFFIX} +diff --git a/src/qt_gui_cpp_sip/qt_gui_cpp.sip b/src/qt_gui_cpp_sip/qt_gui_cpp.sip +index ef3c52d7..cd02078d 100644 +--- a/src/qt_gui_cpp_sip/qt_gui_cpp.sip ++++ b/src/qt_gui_cpp_sip/qt_gui_cpp.sip +@@ -1,4 +1,4 @@ +-%Module libqt_gui_cpp_sip 1 ++%Module libqt_gui_cpp_sip + + %Import QtCore/QtCoremod.sip + %Import QtGui/QtGuimod.sip diff --git a/distros/noetic/patch/ros-noetic-realsense2-camera.patch b/distros/noetic/patch/ros-noetic-realsense2-camera.patch new file mode 100644 index 000000000..af7b4458e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-realsense2-camera.patch @@ -0,0 +1,39 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 338528c..1755efa 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,6 @@ + cmake_minimum_required(VERSION 2.8.3) + project(realsense2_camera) +-add_compile_options(-std=c++11) ++add_compile_options(-std=c++14) + + option(BUILD_WITH_OPENMP "Use OpenMP" OFF) + option(SET_USER_BREAK_AT_STARTUP "Set user wait point in startup (for debug)" OFF) +@@ -62,7 +62,7 @@ endif() + + if (WIN32) + else() +-set(CMAKE_CXX_FLAGS "-fPIE -fPIC -std=c++11 -D_FORTIFY_SOURCE=2 -fstack-protector -Wformat -Wformat-security -Wall ${CMAKE_CXX_FLAGS}") ++set(CMAKE_CXX_FLAGS "-fPIE -fPIC -std=c++14 -D_FORTIFY_SOURCE=2 -fstack-protector -Wformat -Wformat-security -Wall ${CMAKE_CXX_FLAGS}") + endif() + + add_message_files( +@@ -158,4 +158,3 @@ install(DIRECTORY rviz/ + install(FILES nodelet_plugins.xml + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} + ) +- +diff --git a/src/base_realsense_node.cpp b/src/base_realsense_node.cpp +index 1ea3595..6554ceb 100644 +--- a/src/base_realsense_node.cpp ++++ b/src/base_realsense_node.cpp +@@ -2170,7 +2170,7 @@ void BaseRealSenseNode::publishPointCloud(rs2::points pc, const ros::Time& t, co + return; + ROS_INFO_STREAM_ONCE("publishing " << (_ordered_pc ? "" : "un") << "ordered pointcloud."); + +- rs2_stream texture_source_id = static_cast(_pointcloud_filter->get_option(rs2_option::RS2_OPTION_STREAM_FILTER)); ++ rs2_stream texture_source_id = static_cast((int)_pointcloud_filter->get_option(rs2_option::RS2_OPTION_STREAM_FILTER)); + bool use_texture = texture_source_id != RS2_STREAM_ANY; + static int warn_count(0); + static const int DISPLAY_WARN_NUMBER(5); diff --git a/distros/noetic/patch/ros-noetic-robot-calibration.patch b/distros/noetic/patch/ros-noetic-robot-calibration.patch new file mode 100644 index 000000000..f2185fcdd --- /dev/null +++ b/distros/noetic/patch/ros-noetic-robot-calibration.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b73bd5b..ea1b825 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3) + project(robot_calibration) + + if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall") + endif() + + find_package(Boost REQUIRED system thread) + diff --git a/distros/noetic/patch/ros-noetic-robot-localization.patch b/distros/noetic/patch/ros-noetic-robot-localization.patch new file mode 100644 index 000000000..42fea44f3 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-robot-localization.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cc7f334..bb20912 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -49,9 +49,6 @@ if(NOT EIGEN3_FOUND) + set(EIGEN_PACKAGE Eigen) + endif() + +-if(NOT MSVC) +- set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wall;-Werror") +-endif() + add_definitions(-DEIGEN_NO_DEBUG -DEIGEN_MPL2_ONLY) + + set(ROSLINT_CPP_OPTS "--filter=-build/c++11,-runtime/references") diff --git a/distros/noetic/patch/ros-noetic-robot-localization.win.patch b/distros/noetic/patch/ros-noetic-robot-localization.win.patch new file mode 100644 index 000000000..337a41067 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-robot-localization.win.patch @@ -0,0 +1,17 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cc7f3341..eac0a60f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -115,7 +115,6 @@ catkin_package( + DEPENDS + ${EIGEN_PACKAGE} + GeographicLib +- YAML_CPP + ) + + ########### +@@ -131,4 +130,2 @@ include_directories( +-link_directories(${YAML_CPP_LIBRARY_DIRS}) +- + # Library definitions + add_library(filter_utilities src/filter_utilities.cpp) diff --git a/distros/noetic/patch/ros-noetic-ros-babel-fish.patch b/distros/noetic/patch/ros-noetic-ros-babel-fish.patch new file mode 100644 index 000000000..c660af13e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ros-babel-fish.patch @@ -0,0 +1,548 @@ +diff --git a/ros_babel_fish/CMakeLists.txt b/ros_babel_fish/CMakeLists.txt +index 45e26fe..d625e0f 100644 +--- a/ros_babel_fish/CMakeLists.txt ++++ b/ros_babel_fish/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5.1) ++cmake_minimum_required(VERSION 3.10.2) + project(ros_babel_fish VERSION 0.9.1) + + # If the value doesn't fit, an exception is thrown in any case because that could result in unexpected behavior and can not be ignored lightly +@@ -9,9 +9,9 @@ if (WARN_ON_INCOMPATIBLE_TYPE) + endif () + + ## Compile as C++11, supported in ROS Kinetic and newer +-add_compile_options(-std=c++11) ++set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD_REQUIRED ON) + +-add_definitions(-Wall -Wextra) + + #set(CMAKE_BUILD_TYPE "Debug") + +@@ -20,6 +20,7 @@ add_definitions(-Wall -Wextra) + ## is used, also find other catkin packages + find_package(catkin REQUIRED COMPONENTS actionlib roscpp roslib std_msgs) + find_package(OpenSSL REQUIRED) ++find_package(Boost REQUIRED COMPONENTS filesystem) + + ################################### + ## catkin specific configuration ## +@@ -34,7 +35,7 @@ catkin_package( + INCLUDE_DIRS include + LIBRARIES ${PROJECT_NAME} + CATKIN_DEPENDS actionlib roscpp roslib +- DEPENDS OPENSSL ++ DEPENDS OPENSSL Boost + ) + + ########### +@@ -46,13 +47,13 @@ catkin_package( + include_directories( + include + ${catkin_INCLUDE_DIRS} ++ ${Boost_INCLUDE_DIRS} + ${OPENSSL_INCLUDE_DIR} + ) + + set(LIBRARIES + ${catkin_LIBRARIES} + OpenSSL::SSL +- stdc++fs + ) + + set(SOURCES +diff --git a/ros_babel_fish/examples/rosbag_frame_ids.cpp b/ros_babel_fish/examples/rosbag_frame_ids.cpp +index 1aae260..ab0f36e 100644 +--- a/ros_babel_fish/examples/rosbag_frame_ids.cpp ++++ b/ros_babel_fish/examples/rosbag_frame_ids.cpp +@@ -47,7 +47,7 @@ public: + + const uint8_t *buffer() const final + { +- if ( buffer_.empty() and size() > 0 ) ++ if ( buffer_.empty() && size() > 0 ) + { + buffer_.resize( size()); + ros::serialization::OStream stream( buffer_.data(), buffer_.size()); +diff --git a/ros_babel_fish/include/ros_babel_fish/actionlib/client/babel_fish_action_client.h b/ros_babel_fish/include/ros_babel_fish/actionlib/client/babel_fish_action_client.h +index 8714b5b..a7c1580 100644 +--- a/ros_babel_fish/include/ros_babel_fish/actionlib/client/babel_fish_action_client.h ++++ b/ros_babel_fish/include/ros_babel_fish/actionlib/client/babel_fish_action_client.h +@@ -179,20 +179,20 @@ private: + // Start publishers and subscribers + goal_pub_ = advertiseGoal( description, "goal", static_cast(pub_queue_size), + boost::bind( &ConnectionMonitor::goalConnectCallback, connection_monitor_, +- _1 ), ++ boost::placeholders::_1 ), + boost::bind( &ConnectionMonitor::goalDisconnectCallback, +- connection_monitor_, _1 ), ++ connection_monitor_, boost::placeholders::_1 ), + queue ); + cancel_pub_ = + queue_advertise( "cancel", static_cast(pub_queue_size), + boost::bind( &ConnectionMonitor::cancelConnectCallback, +- connection_monitor_, _1 ), ++ connection_monitor_, boost::placeholders::_1 ), + boost::bind( &ConnectionMonitor::cancelDisconnectCallback, +- connection_monitor_, _1 ), ++ connection_monitor_, boost::placeholders::_1 ), + queue ); + +- manager_.registerSendGoalFunc( boost::bind( &ActionClientT::sendGoalFunc, this, _1 )); +- manager_.registerCancelFunc( boost::bind( &ActionClientT::sendCancelFunc, this, _1 )); ++ manager_.registerSendGoalFunc( boost::bind( &ActionClientT::sendGoalFunc, this, boost::placeholders::_1 )); ++ manager_.registerCancelFunc( boost::bind( &ActionClientT::sendCancelFunc, this, boost::placeholders::_1 )); + } + + ros::Publisher advertiseGoal( const ::ros_babel_fish::MessageDescription::ConstPtr &description, +@@ -235,7 +235,7 @@ private: + ops.datatype = ros::message_traits::datatype(); + ops.helper = ros::SubscriptionCallbackHelperPtr( + new ros::SubscriptionCallbackHelperT &>( +- boost::bind( fp, obj, _1 ) ++ boost::bind( fp, obj, boost::placeholders::_1 ) + ) + ); + return n_.subscribe( ops ); +diff --git a/ros_babel_fish/include/ros_babel_fish/actionlib/client/simple_action_client.h b/ros_babel_fish/include/ros_babel_fish/actionlib/client/simple_action_client.h +index 29e4db8..ed69bdf 100644 +--- a/ros_babel_fish/include/ros_babel_fish/actionlib/client/simple_action_client.h ++++ b/ros_babel_fish/include/ros_babel_fish/actionlib/client/simple_action_client.h +@@ -319,8 +319,8 @@ void SimpleActionClient<::ros_babel_fish::BabelFishAction_ > + cur_simple_state_ = SimpleGoalState::PENDING; + + // Send the goal to the ActionServer +- gh_ = ac_->sendGoal( goal, boost::bind( &SimpleActionClientT::handleTransition, this, _1 ), +- boost::bind( &SimpleActionClientT::handleFeedback, this, _1, _2 )); ++ gh_ = ac_->sendGoal( goal, boost::bind( &SimpleActionClientT::handleTransition, this, boost::placeholders::_1 ), ++ boost::bind( &SimpleActionClientT::handleFeedback, this, boost::placeholders::_1, boost::placeholders::_2 )); + } + + template +diff --git a/ros_babel_fish/include/ros_babel_fish/message.h b/ros_babel_fish/include/ros_babel_fish/message.h +index 278378c..50d36ec 100644 +--- a/ros_babel_fish/include/ros_babel_fish/message.h ++++ b/ros_babel_fish/include/ros_babel_fish/message.h +@@ -8,7 +8,16 @@ + #include "ros_babel_fish/exceptions/babel_fish_exception.h" + #include + ++#include + #include ++#include ++ ++#ifdef _WIN32 ++#include ++typedef SSIZE_T ssize_t; ++#else ++#include ++#endif + + namespace ros_babel_fish + { +@@ -64,7 +73,7 @@ public: + /*! + * Alias for _stream(). Removed in future release. + */ +- __attribute_deprecated__ const uint8_t *data() const { return _stream(); } ++ const uint8_t *data() const { return _stream(); } + + /*! + * @return Size of the message in bytes if serialized in ROS message binary format +@@ -74,7 +83,7 @@ public: + /*! + * Alias for _sizeInBytes(). Removed in future release. + */ +- __attribute_deprecated__ size_t size() const { return _sizeInBytes(); } ++ size_t size() const { return _sizeInBytes(); } + + /*! + * @return Whether or not the message is detached from the stream. If false, the message is not fully copied and still relies on the translated message. +diff --git a/ros_babel_fish/include/ros_babel_fish/messages/array_message.h b/ros_babel_fish/include/ros_babel_fish/messages/array_message.h +index 0dfd852..cc65e00 100644 +--- a/ros_babel_fish/include/ros_babel_fish/messages/array_message.h ++++ b/ros_babel_fish/include/ros_babel_fish/messages/array_message.h +@@ -117,7 +117,7 @@ public: + * Alias for assign + * Deprecated, will be removed in a future release + */ +- __attribute_deprecated__ void setItem( size_t index, ArgumentType value ) { assign( index, value ); } ++ void setItem( size_t index, ArgumentType value ) { assign( index, value ); } + + void push_back( ArgumentType value ) + { +@@ -139,7 +139,7 @@ public: + * Alias for push_back + * Deprecated, will be removed in a future release + */ +- __attribute_deprecated__ void addItem( ArgumentType value ) { push_back( value ); } ++ void addItem( ArgumentType value ) { push_back( value ); } + + size_t _sizeInBytes() const override + { +@@ -219,41 +219,6 @@ protected: + }; + + +-//! Specialization for Message +-template<> +-ArrayMessage::ArrayMessage( MessageType element_type, size_t length, bool fixed_length, +- const uint8_t *stream, bool ); +- +-template<> +-ArrayMessage::~ArrayMessage(); +- +-template<> +-Message &ArrayMessage::operator[]( size_t index ); +- +-template<> +-const Message &ArrayMessage::operator[]( size_t index ) const; +- +-template<> +-void ArrayMessage::assign( size_t index, Message *value ); +- +-template<> +-size_t ArrayMessage::_sizeInBytes() const; +- +-template<> +-size_t ArrayMessage::writeToStream( uint8_t *stream ) const; +- +-template<> +-inline void ArrayMessage::detachFromStream() +-{ +- /* So compiler won't complain. This specialization can not be from stream anyway. */ +-} +- +-template<> +-ArrayMessage &ArrayMessage::operator=( const ArrayMessage &other ); +- +-template<> +-Message *ArrayMessage::clone() const; +- + //! Specialization for CompoundMessage + class CompoundArrayMessage : public ArrayMessage + { +@@ -287,6 +252,108 @@ private: + MessageTemplate::ConstPtr msg_template_; + }; + ++ ++//! Specialization for Message ++template<> ++inline ArrayMessage::ArrayMessage( MessageType element_type, size_t length, bool fixed_length, const uint8_t *stream, ++ bool ) ++ : ArrayMessageBase( element_type, length, fixed_length, stream ), values_( 0 ), from_stream_( false ) { } ++ ++template<> ++inline ArrayMessage::~ArrayMessage() ++{ ++ for ( auto &entry : values_ ) ++ { ++ delete entry; ++ } ++ values_.clear(); ++} ++ ++template<> ++inline Message &ArrayMessage::operator[]( size_t index ) ++{ ++ return *values_[index]; ++} ++ ++template<> ++inline const Message &ArrayMessage::operator[]( size_t index ) const ++{ ++ return *values_[index]; ++} ++ ++template<> ++inline void ArrayMessage::assign( size_t index, Message *value ) ++{ ++ if ( index >= length_ ) ++ throw BabelFishException( "Index in setItem was out of bounds! Maybe you meant push_back?" ); ++ delete values_[index]; ++ values_[index] = value; ++} ++ ++template<> ++inline size_t ArrayMessage::_sizeInBytes() const ++{ ++ size_t result = (fixed_length_ ? 0 : 4); ++ for ( auto &value : values_ ) ++ { ++ result += value->_sizeInBytes(); ++ } ++ return result; ++} ++ ++template<> ++inline size_t ArrayMessage::writeToStream( uint8_t *stream ) const ++{ ++ size_t offset = 0; ++ if ( !fixed_length_ ) ++ { ++ *reinterpret_cast(stream) = length_; ++ offset = 4; ++ } ++ for ( auto &value : values_ ) ++ { ++ offset += value->writeToStream( stream + offset ); ++ } ++ return offset; ++} ++ ++template<> ++inline ArrayMessage &ArrayMessage::operator=( const ArrayMessage &other ) ++{ ++ if ( type() != other.type() || ++ (elementType() == MessageTypes::Compound && ++ as().elementDataType() != other.as().elementDataType())) ++ throw BabelFishException( "Can not assign incompatible ArrayMessage! They need to have exactly the same type!" ); ++ for ( auto &entry : values_ ) ++ { ++ delete entry; ++ } ++ values_.clear(); ++ values_.reserve( other._sizeInBytes()); ++ std::transform( other.values_.begin(), other.values_.end(), std::back_inserter( values_ ), ++ []( Message *m ) { return m->clone(); } ); ++ length_ = other.length_; ++ fixed_length_ = other.fixed_length_; ++ stream_ = other.stream_; ++ return *this; ++} ++ ++template<> ++inline Message *ArrayMessage::clone() const ++{ ++ auto result = new ArrayMessage( elementType(), length(), isFixedSize(), stream_ ); ++ result->values_.clear(); ++ std::transform( values_.begin(), values_.end(), std::back_inserter( result->values_ ), ++ []( Message *m ) { return m->clone(); } ); ++ return result; ++} ++ ++template<> ++inline void ArrayMessage::detachFromStream() ++{ ++ /* So compiler won't complain. This specialization can not be from stream anyway. */ ++} ++ + //! Specialization for Bool + template<> + bool ArrayMessage::operator[]( size_t index ); +diff --git a/ros_babel_fish/src/generation/description_provider.cpp b/ros_babel_fish/src/generation/description_provider.cpp +index 1f493bd..c3fd3c5 100644 +--- a/ros_babel_fish/src/generation/description_provider.cpp ++++ b/ros_babel_fish/src/generation/description_provider.cpp +@@ -160,8 +160,8 @@ MessageDescription::ConstPtr DescriptionProvider::getMessageDescriptionImpl( con + specs.push_back( buffer ); + + // Register all message dependencies +- bool registered[specs.size()]; +- std::fill_n( registered, specs.size(), false ); ++ std::vector registered(specs.size()); ++ std::fill_n(registered.begin(), specs.size(), false ); + bool new_registered = true; + while ( new_registered ) + { +@@ -451,8 +451,11 @@ DescriptionProvider::MessageSpec DescriptionProvider::createSpec( const std::str + std::regex_search( val.cbegin(), val.cend(), match, strip_comment_regex ); + val = match.str( 1 ); + } +- spec.constants.push_back( +- MessageSpec::Constant{ .type = constant_type, .name = name, .val = val } ); ++ MessageSpec::Constant constant; ++ constant.type = constant_type; ++ constant.name = name; ++ constant.val = val; ++ spec.constants.push_back(constant); + } + else if ( std::regex_search( first, last, match, field_regex ) && match.size() == 4 ) + { +diff --git a/ros_babel_fish/src/generation/providers/integrated_description_provider.cpp b/ros_babel_fish/src/generation/providers/integrated_description_provider.cpp +index d724b43..f338bf8 100644 +--- a/ros_babel_fish/src/generation/providers/integrated_description_provider.cpp ++++ b/ros_babel_fish/src/generation/providers/integrated_description_provider.cpp +@@ -5,11 +5,11 @@ + + #include + +-#include ++#include + #include + #include + +-namespace fs = std::experimental::filesystem; ++namespace fs = boost::filesystem; + + namespace ros_babel_fish + { +@@ -133,7 +133,7 @@ MessageDescription::ConstPtr IntegratedDescriptionProvider::getMessageDescriptio + } + + // Load message specification from file +- std::ifstream file_input( message_path ); ++ std::ifstream file_input( message_path.string() ); + file_input.seekg( 0, std::ios::end ); + std::string specification; + specification.resize( file_input.tellg()); +@@ -177,7 +177,7 @@ ServiceDescription::ConstPtr IntegratedDescriptionProvider::getServiceDescriptio + } + + // Load service specification from file +- std::ifstream file_input( service_path ); ++ std::ifstream file_input( service_path.string() ); + file_input.seekg( 0, std::ios::end ); + std::string spec; + spec.resize( file_input.tellg()); +diff --git a/ros_babel_fish/src/messages/array_message.cpp b/ros_babel_fish/src/messages/array_message.cpp +index c1c302b..f79e902 100644 +--- a/ros_babel_fish/src/messages/array_message.cpp ++++ b/ros_babel_fish/src/messages/array_message.cpp +@@ -11,100 +11,6 @@ namespace ros_babel_fish + //! ============== Message Specialization ============= + //! =================================================== + +-template<> +-ArrayMessage::ArrayMessage( MessageType element_type, size_t length, bool fixed_length, const uint8_t *stream, +- bool ) +- : ArrayMessageBase( element_type, length, fixed_length, stream ), values_( 0 ), from_stream_( false ) { } +- +-template<> +-ArrayMessage::~ArrayMessage() +-{ +- for ( auto &entry : values_ ) +- { +- delete entry; +- } +- values_.clear(); +-} +- +-template<> +-Message &ArrayMessage::operator[]( size_t index ) +-{ +- return *values_[index]; +-} +- +-template<> +-const Message &ArrayMessage::operator[]( size_t index ) const +-{ +- return *values_[index]; +-} +- +-template<> +-void ArrayMessage::assign( size_t index, Message *value ) +-{ +- if ( index >= length_ ) +- throw BabelFishException( "Index in setItem was out of bounds! Maybe you meant push_back?" ); +- delete values_[index]; +- values_[index] = value; +-} +- +-template<> +-size_t ArrayMessage::_sizeInBytes() const +-{ +- size_t result = (fixed_length_ ? 0 : 4); +- for ( auto &value : values_ ) +- { +- result += value->_sizeInBytes(); +- } +- return result; +-} +- +-template<> +-size_t ArrayMessage::writeToStream( uint8_t *stream ) const +-{ +- size_t offset = 0; +- if ( !fixed_length_ ) +- { +- *reinterpret_cast(stream) = length_; +- offset = 4; +- } +- for ( auto &value : values_ ) +- { +- offset += value->writeToStream( stream + offset ); +- } +- return offset; +-} +- +-template<> +-ArrayMessage &ArrayMessage::operator=( const ArrayMessage &other ) +-{ +- if ( type() != other.type() || +- (elementType() == MessageTypes::Compound && +- as().elementDataType() != other.as().elementDataType())) +- throw BabelFishException( "Can not assign incompatible ArrayMessage! They need to have exactly the same type!" ); +- for ( auto &entry : values_ ) +- { +- delete entry; +- } +- values_.clear(); +- values_.reserve( other._sizeInBytes()); +- std::transform( other.values_.begin(), other.values_.end(), std::back_inserter( values_ ), +- []( Message *m ) { return m->clone(); } ); +- length_ = other.length_; +- fixed_length_ = other.fixed_length_; +- stream_ = other.stream_; +- return *this; +-} +- +-template<> +-Message *ArrayMessage::clone() const +-{ +- auto result = new ArrayMessage( elementType(), length(), isFixedSize(), stream_ ); +- result->values_.clear(); +- std::transform( values_.begin(), values_.end(), std::back_inserter( result->values_ ), +- []( Message *m ) { return m->clone(); } ); +- return result; +-} +- + //! =================================================== + //! =============== Bool Specialization =============== + //! =================================================== +@@ -521,6 +427,12 @@ size_t ArrayMessage::writeToStream( uint8_t *stream ) const + return length; + } + ++// Explicit template instantiation; ++template class ArrayMessage; ++template class ArrayMessage; ++template class ArrayMessage; ++template class ArrayMessage; ++ + //! =================================================== + //! ================== CompoundArray ================== + //! =================================================== +diff --git a/ros_babel_fish/src/messages/value_message.cpp b/ros_babel_fish/src/messages/value_message.cpp +index 2f640e3..512fe34 100644 +--- a/ros_babel_fish/src/messages/value_message.cpp ++++ b/ros_babel_fish/src/messages/value_message.cpp +@@ -180,4 +180,11 @@ size_t ValueMessage::writeToStream( uint8_t *stream ) const + memcpy( stream, value_.data(), value_.length()); + return value_.length() + sizeof( uint32_t ); + } ++ ++// Explicit template instantiation; ++template class ValueMessage; ++template class ValueMessage; ++template class ValueMessage; ++template class ValueMessage; ++ + } +diff --git a/ros_babel_fish/CMakeLists.txt b/ros_babel_fish/CMakeLists.txt +index d625e0f..6cdb14f 100644 +--- a/ros_babel_fish/CMakeLists.txt ++++ b/ros_babel_fish/CMakeLists.txt +@@ -8,8 +8,8 @@ if (WARN_ON_INCOMPATIBLE_TYPE) + add_definitions(-DRBF_WARN_ON_INCOMPATIBLE_TYPE) + endif () + +-## Compile as C++11, supported in ROS Kinetic and newer +-set(CMAKE_CXX_STANDARD 11) ++## Compile as C++14 to support current Boost headers ++set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + + diff --git a/distros/noetic/patch/ros-noetic-ros-environment.patch b/distros/noetic/patch/ros-noetic-ros-environment.patch new file mode 100644 index 000000000..19305bed3 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ros-environment.patch @@ -0,0 +1,10 @@ +diff --git a/env-hooks/1.ros_package_path.sh.em b/env-hooks/1.ros_package_path.sh.em +index 2031fde..3bd03c3 100644 +--- a/env-hooks/1.ros_package_path.sh.em ++++ b/env-hooks/1.ros_package_path.sh.em +@@ -23,4 +23,4 @@ for workspace in workspaces: + print(os.pathsep.join(paths)) + EOF + ) +-export ROS_PACKAGE_PATH="`@(PYTHON_EXECUTABLE) -c \"$PYTHON_CODE_BUILD_ROS_PACKAGE_PATH\"`" ++export ROS_PACKAGE_PATH="`python -c \"$PYTHON_CODE_BUILD_ROS_PACKAGE_PATH\"`" diff --git a/distros/noetic/patch/ros-noetic-ros-ign-bridge.patch b/distros/noetic/patch/ros-noetic-ros-ign-bridge.patch new file mode 100644 index 000000000..ae1c1c826 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ros-ign-bridge.patch @@ -0,0 +1,13 @@ +diff --git a/ros_ign_bridge/CMakeLists.txt b/ros_ign_bridge/CMakeLists.txt +index 5e04c45d..a60f0be0 100644 +--- a/ros_ign_bridge/CMakeLists.txt ++++ b/ros_ign_bridge/CMakeLists.txt +@@ -21,7 +21,7 @@ find_package(catkin REQUIRED COMPONENTS + visualization_msgs) + + # Fortress +-if ("$ENV{IGNITION_VERSION}" STREQUAL "fortress") ++if ("$ENV{IGNITION_VERSION}" STREQUAL "fortress" OR TRUE) + find_package(ignition-transport11 REQUIRED) + set(IGN_TRANSPORT_VER ${ignition-transport11_VERSION_MAJOR}) + diff --git a/distros/noetic/patch/ros-noetic-ros-ign-gazebo.patch b/distros/noetic/patch/ros-noetic-ros-ign-gazebo.patch new file mode 100644 index 000000000..6af763bb4 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ros-ign-gazebo.patch @@ -0,0 +1,13 @@ +diff --git a/ros_ign_gazebo/CMakeLists.txt b/ros_ign_gazebo/CMakeLists.txt +index 87a06f8e..01ad5664 100644 +--- a/ros_ign_gazebo/CMakeLists.txt ++++ b/ros_ign_gazebo/CMakeLists.txt +@@ -9,7 +9,7 @@ find_package(catkin + ) + + # Fortress +-if ("$ENV{IGNITION_VERSION}" STREQUAL "fortress") ++if ("$ENV{IGNITION_VERSION}" STREQUAL "fortress" OR TRUE) + find_package(ignition-transport11 REQUIRED) + set(IGN_TRANSPORT_VER ${ignition-transport11_VERSION_MAJOR}) + diff --git a/distros/noetic/patch/ros-noetic-ros-ign-image.patch b/distros/noetic/patch/ros-noetic-ros-ign-image.patch new file mode 100644 index 000000000..139d8eb7d --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ros-ign-image.patch @@ -0,0 +1,27 @@ +diff --git a/ros_ign_image/CMakeLists.txt b/ros_ign_image/CMakeLists.txt +index 5bbf70f4..87fb109d 100644 +--- a/ros_ign_image/CMakeLists.txt ++++ b/ros_ign_image/CMakeLists.txt +@@ -17,7 +17,7 @@ find_package(catkin REQUIRED COMPONENTS + sensor_msgs) + + # Fortress +-if ("$ENV{IGNITION_VERSION}" STREQUAL "fortress") ++if ("$ENV{IGNITION_VERSION}" STREQUAL "fortress" OR TRUE) + find_package(ignition-transport11 REQUIRED) + set(IGN_TRANSPORT_VER ${ignition-transport11_VERSION_MAJOR}) + +@@ -68,6 +68,7 @@ install(TARGETS ${executable} + ) + + # Tests ++if(FALSE) + find_package(rostest REQUIRED) + + set(test_publishers +@@ -101,4 +102,4 @@ foreach(test_subscriber ${test_subscribers}) + ignition-transport${IGN_TRANSPORT_VER}::core + ) + endforeach(test_subscriber) +- ++endif() diff --git a/distros/noetic/patch/ros-noetic-ros-numpy.patch b/distros/noetic/patch/ros-noetic-ros-numpy.patch new file mode 100644 index 000000000..d0a6e72c7 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ros-numpy.patch @@ -0,0 +1,38 @@ +diff --git a/setup.py b/setup.py +index bd6536a..6d64e63 100644 +--- a/setup.py ++++ b/setup.py +@@ -1,6 +1,6 @@ + ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD + +-from distutils.core import setup ++from setuptools import setup + from catkin_pkg.python_setup import generate_distutils_setup + + # fetch values from package.xml +diff --git a/src/ros_numpy/point_cloud2.py b/src/ros_numpy/point_cloud2.py +index a4e20ec..b9206a5 100755 +--- a/src/ros_numpy/point_cloud2.py ++++ b/src/ros_numpy/point_cloud2.py +@@ -221,7 +221,7 @@ def split_rgb_field(cloud_arr): + new_cloud_arr[field_name] = cloud_arr[field_name] + return new_cloud_arr + +-def get_xyz_points(cloud_array, remove_nans=True, dtype=np.float): ++def get_xyz_points(cloud_array, remove_nans=True, dtype=np.float64): + '''Pulls out x, y, and z columns from the cloud recordarray, and returns + a 3xN matrix. + ''' +diff --git a/src/ros_numpy/registry.py b/src/ros_numpy/registry.py +index 5442b93..2483293 100644 +--- a/src/ros_numpy/registry.py ++++ b/src/ros_numpy/registry.py +@@ -27,7 +27,7 @@ def numpify(msg, *args, **kwargs): + return + + conv = _to_numpy.get((msg.__class__, False)) +- if not conv and isinstance(msg, collections.Sequence): ++ if not conv and isinstance(msg, collections.abc.Sequence): + if not msg: + raise ValueError("Cannot determine the type of an empty Collection") + conv = _to_numpy.get((msg[0].__class__, True)) diff --git a/distros/noetic/patch/ros-noetic-ros-type-introspection.patch b/distros/noetic/patch/ros-noetic-ros-type-introspection.patch new file mode 100644 index 000000000..1e2c7ef09 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ros-type-introspection.patch @@ -0,0 +1,19 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 32fda3d..777de2c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -9,7 +9,13 @@ find_package(catkin REQUIRED COMPONENTS + ) + + # Build flags +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ") ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 ") ++ ++# macOS: emit an @rpath install-name id for the built dylib. The old ++# cmake_minimum_required leaves policy CMP0042 = OLD, so without this the ++# library id is a bare 'libros_type_introspection.dylib' and @rpath resolution ++# fails for every consumer (e.g. the plotjuggler-ros plugins). ++set(CMAKE_MACOSX_RPATH ON) + + catkin_package( + INCLUDE_DIRS include diff --git a/distros/noetic/patch/ros-noetic-rosbag-storage.patch b/distros/noetic/patch/ros-noetic-rosbag-storage.patch new file mode 100644 index 000000000..38838baa5 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rosbag-storage.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 82532b91f4..61a0448e41 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -27,7 +27,7 @@ add_definitions(${BZIP2_DEFINITIONS}) + + set(AES_ENCRYPT_SOURCE "") + set(AES_ENCRYPT_LIBRARIES "") +-if(NOT WIN32) ++if(NOT WIN32 AND NOT APPLE) + set(AES_ENCRYPT_SOURCE "src/aes_encryptor.cpp" "src/gpgme_utils.cpp") + find_library(GPGME_LIBRARY + NAMES "gpgme" diff --git a/distros/noetic/patch/ros-noetic-rosbag.patch b/distros/noetic/patch/ros-noetic-rosbag.patch new file mode 100644 index 000000000..f533902bf --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rosbag.patch @@ -0,0 +1,14 @@ +diff --git a/tools/rosbag/src/recorder.cpp b/tools/rosbag/src/recorder.cpp +index 88976b5ca8..1212883900 100644 +--- a/tools/rosbag/src/recorder.cpp ++++ b/tools/rosbag/src/recorder.cpp +@@ -349,7 +349,7 @@ void Recorder::doQueue(const ros::MessageEvent& + if (it2 != out.connection_header->end()) + { + auto const result = latched_msgs_.insert({{subscriber->getTopic(), it2->second}, out}); +- if (not result.second) // The map::insert function does not update values of existing keys ++ if (!result.second) // The map::insert function does not update values of existing keys + { + result.first->second = out; + } + diff --git a/distros/noetic/patch/ros-noetic-rosbash.patch b/distros/noetic/patch/ros-noetic-rosbash.patch new file mode 100644 index 000000000..0a395c4ee --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rosbash.patch @@ -0,0 +1,16 @@ +diff --git a/scripts/rosrun.bat b/scripts/rosrun.bat +index e6c2fb353..d3bbb0803 100644 +--- a/scripts/rosrun.bat ++++ b/scripts/rosrun.bat +@@ -112,9 +112,9 @@ for %%a in ("%exepath%") do ( + set exepath_extension=%%~xa + ) + if "!exepath_extension!" == ".py" ( +- call %rosrun_prefix% "%PYTHONHOME%\python.exe" %exepath% %rosrun_args% ++ call %rosrun_prefix% "%CONDA_PREFIX%\python.exe" %exepath% %rosrun_args% + ) else if "!exepath_extension!" == "" ( +- call %rosrun_prefix% "%PYTHONHOME%\python.exe" %exepath% %rosrun_args% ++ call %rosrun_prefix% "%CONDA_PREFIX%\python.exe" %exepath% %rosrun_args% + ) else ( + call %rosrun_prefix% %exepath% %rosrun_args% + ) diff --git a/distros/noetic/patch/ros-noetic-rosconsole.patch b/distros/noetic/patch/ros-noetic-rosconsole.patch new file mode 100644 index 000000000..fe921daf0 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rosconsole.patch @@ -0,0 +1,630 @@ +From 9f930c007dd40aa7ede771b8859b529e024d7bfb Mon Sep 17 00:00:00 2001 +From: Daniel Reuter +Date: Wed, 11 May 2022 15:28:23 +0200 +Subject: [PATCH 1/4] be compatible with `log4cxx` `0.11` and `0.12`/`0.13` + +[`log4cxx` uses `std::shared_ptr`](https://issues.apache.org/jira/browse/LOGCXX-486) +since [version `0.12`](https://logging.apache.org/log4cxx/latest_stable/changelog.html) + +Unfortunately Ubuntu 22.04 ships with +[`0.12`](https://packages.ubuntu.com/jammy/liblog4cxx12), which means +that rosconsole with the `log4cxx` backend wouldn't compile. This is +also a problem on other distros such as Arch or Gentoo. + +I have carefully applied explicit construction/conversion and `&*` +instead of `.get()` to make the code compile with both versions of +`log4cxx`. +--- + src/rosconsole/impl/rosconsole_log4cxx.cpp | 19 +++-- + test/thread_test.cpp | 3 +- + test/utest.cpp | 84 +++++++++++----------- + 3 files changed, 54 insertions(+), 52 deletions(-) + +diff --git a/src/rosconsole/impl/rosconsole_log4cxx.cpp b/src/rosconsole/impl/rosconsole_log4cxx.cpp +index 901831265..4c3b26eab 100644 +--- a/src/rosconsole/impl/rosconsole_log4cxx.cpp ++++ b/src/rosconsole/impl/rosconsole_log4cxx.cpp +@@ -166,7 +166,7 @@ void initialize() + } + + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME); +- logger->addAppender(new ROSConsoleStdioAppender); ++ logger->addAppender(log4cxx::AppenderPtr(new ROSConsoleStdioAppender)); + #ifdef _MSC_VER + if ( ros_root_cstr != NULL ) { + free(ros_root_cstr); +@@ -200,7 +200,7 @@ bool isEnabledFor(void* handle, ::ros::console::Level level) + + void* getHandle(const std::string& name) + { +- return log4cxx::Logger::getLogger(name); ++ return &*log4cxx::Logger::getLogger(name); + } + + std::string getName(void* handle) +@@ -216,7 +216,7 @@ std::string getName(void* handle) + + bool get_loggers(std::map& loggers) + { +- log4cxx::spi::LoggerRepositoryPtr repo = log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME)->getLoggerRepository(); ++ auto repo = log4cxx::spi::LoggerRepositoryPtr(log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME)->getLoggerRepository()); + + log4cxx::LoggerList current_loggers = repo->getCurrentLoggers(); + log4cxx::LoggerList::iterator it = current_loggers.begin(); +@@ -352,22 +352,21 @@ class Log4cxxAppender : public log4cxx::AppenderSkeleton + ros::console::LogAppender* appender_; + }; + +-Log4cxxAppender* g_log4cxx_appender = 0; ++log4cxx::AppenderPtr g_log4cxx_appender = {}; + + void register_appender(LogAppender* appender) + { +- g_log4cxx_appender = new Log4cxxAppender(appender); ++ g_log4cxx_appender = log4cxx::AppenderPtr( new Log4cxxAppender(appender)); + const log4cxx::LoggerPtr& logger = log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME); + logger->addAppender(g_log4cxx_appender); + } + + void deregister_appender(LogAppender* appender){ +- if(g_log4cxx_appender->getAppender() == appender) ++ if(dynamic_cast(&*g_log4cxx_appender)->getAppender() == appender) + { + const log4cxx::LoggerPtr& logger = log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME); + logger->removeAppender(g_log4cxx_appender); +- delete g_log4cxx_appender; +- g_log4cxx_appender = 0; ++ g_log4cxx_appender = log4cxx::AppenderPtr(); + } + } + void shutdown() +@@ -376,14 +375,14 @@ void shutdown() + { + const log4cxx::LoggerPtr& logger = log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME); + logger->removeAppender(g_log4cxx_appender); +- g_log4cxx_appender = 0; ++ g_log4cxx_appender = log4cxx::AppenderPtr(); + } + // reset this so that the logger doesn't get crashily destroyed + // again during global destruction. + // + // See https://code.ros.org/trac/ros/ticket/3271 + // +- log4cxx::Logger::getRootLogger()->getLoggerRepository()->shutdown(); ++ static_cast(log4cxx::Logger::getRootLogger()->getLoggerRepository())->shutdown(); + } + + } // namespace impl +diff --git a/test/thread_test.cpp b/test/thread_test.cpp +index 908edaef7..a7ac0375e 100644 +--- a/test/thread_test.cpp ++++ b/test/thread_test.cpp +@@ -83,6 +83,7 @@ class TestAppender : public log4cxx::AppenderSkeleton + return false; + } + }; ++LOG4CXX_PTR_DEF(TestAppender); + + void threadFunc(boost::barrier* b) + { +@@ -95,7 +96,7 @@ TEST(Rosconsole, threadedCalls) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender( appender ); + + boost::thread_group tg; +diff --git a/test/utest.cpp b/test/utest.cpp +index 0357a8a3f..7ac8f7090 100644 +--- a/test/utest.cpp ++++ b/test/utest.cpp +@@ -85,6 +85,7 @@ class TestAppender : public log4cxx::AppenderSkeleton + return false; + } + }; ++LOG4CXX_PTR_DEF(TestAppender); + + class TestAppenderWithThrow : public log4cxx::AppenderSkeleton + { +@@ -113,13 +114,14 @@ struct BasicFilter : public ros::console::FilterBase + + bool enabled_; + }; ++LOG4CXX_PTR_DEF(TestAppenderWithThrow); + + BasicFilter g_filter(true); + + #define DEFINE_COND_TESTS(name, macro_base, level, log4cxx_level) \ + TEST(RosConsole, name##Cond) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_COND(true, "Testing %d %d %d", 1, 2, 3); \ + macro_base##_COND(false, "Testing %d %d %d", 1, 2, 3); \ +@@ -130,7 +132,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##NamedCond) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_COND_NAMED(true, "test", "Testing %d %d %d", 1, 2, 3); \ + macro_base##_COND_NAMED(false, "test", "Testing %d %d %d", 1, 2, 3); \ +@@ -142,7 +144,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamCond) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_COND(true, "Testing " << 1 << " " << 2 << " " << 3); \ + macro_base##_STREAM_COND(false, "Testing " << 1 << " " << 2 << " " << 3); \ +@@ -153,7 +155,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamCondNamed) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_COND_NAMED(true, "test", "Testing " << 1 << " " << 2 << " " << 3); \ + macro_base##_STREAM_COND_NAMED(false, "test", "Testing " << 1 << " " << 2 << " " << 3); \ +@@ -167,7 +169,7 @@ BasicFilter g_filter(true); + #define DEFINE_ONCE_TESTS(name, macro_base, level, log4cxx_level) \ + TEST(RosConsole, name##Once) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_ONCE("Testing %d %d %d", 1, 2, 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -177,7 +179,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##NamedOnce) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_ONCE_NAMED("test", "Testing %d %d %d", 1, 2, 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -188,7 +190,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamOnce) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_ONCE("Testing " << 1 << " " << 2 << " " << 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -198,7 +200,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamOnceNamed) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_ONCE_NAMED("test", "Testing " << 1 << " " << 2 << " " << 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -211,7 +213,7 @@ BasicFilter g_filter(true); + #define DEFINE_THROTTLE_TESTS(name, macro_base, level, log4cxx_level) \ + TEST(RosConsole, name##Throttle) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_THROTTLE(0.5, "Testing %d %d %d", 1, 2, 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -221,7 +223,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##NamedThrottle) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_THROTTLE_NAMED(0.5, "test", "Testing %d %d %d", 1, 2, 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -232,7 +234,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamThrottle) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_THROTTLE(0.5, "Testing " << 1 << " " << 2 << " " << 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -242,7 +244,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamThrottleNamed) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_THROTTLE_NAMED(0.5, "test", "Testing " << 1 << " " << 2 << " " << 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -255,7 +257,7 @@ BasicFilter g_filter(true); + #define DEFINE_FILTER_TESTS(name, macro_base, level, log4cxx_level) \ + TEST(RosConsole, name##Filter) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_FILTER(&g_filter, "Testing %d %d %d", 1, 2, 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -265,7 +267,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##NamedFilter) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_FILTER_NAMED(&g_filter, "test", "Testing %d %d %d", 1, 2, 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -276,7 +278,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamFilter) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_FILTER(&g_filter, "Testing " << 1 << " " << 2 << " " << 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -286,7 +288,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamFilterNamed) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_FILTER_NAMED(&g_filter, "test", "Testing " << 1 << " " << 2 << " " << 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -299,7 +301,7 @@ BasicFilter g_filter(true); + #define DEFINE_LEVEL_TESTS(name, macro_base, level, log4cxx_level) \ + TEST(RosConsole, name) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base("Testing %d %d %d", 1, 2, 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -309,7 +311,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##Named) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_NAMED("test", "Testing %d %d %d", 1, 2, 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -320,7 +322,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##Stream) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM("Testing " << 1 << " " << 2 << " " << 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -330,7 +332,7 @@ BasicFilter g_filter(true); + } \ + TEST(RosConsole, name##StreamNamed) \ + { \ +- TestAppender* appender = new TestAppender; \ ++ auto appender = TestAppenderPtr(new TestAppender); \ + log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME)->addAppender( appender ); \ + macro_base##_STREAM_NAMED("test", "Testing " << 1 << " " << 2 << " " << 3); \ + ASSERT_EQ((int)appender->info_.size(), 1); \ +@@ -354,7 +356,7 @@ TEST(RosConsole, loggingLevels) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender( appender ); + + int pre_count = 0; +@@ -575,7 +577,7 @@ TEST(RosConsole, changingLevel) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender( appender ); + + logger->setLevel( log4cxx::Level::getError() ); +@@ -595,7 +597,7 @@ TEST(RosConsole, changingLoggerLevel) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender( appender ); + + logger->setLevel(log4cxx::Level::getDebug()); +@@ -629,7 +631,7 @@ TEST(RosConsole, longPrintfStyleOutput) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender( appender ); + + std::stringstream ss; +@@ -652,7 +654,7 @@ TEST(RosConsole, throwingAppender) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppenderWithThrow* appender = new TestAppenderWithThrow; ++ auto appender = TestAppenderWithThrowPtr(new TestAppenderWithThrow); + logger->addAppender( appender ); + + try +@@ -677,7 +679,7 @@ TEST(RosConsole, once) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + onceFunc(); +@@ -697,7 +699,7 @@ TEST(RosConsole, throttle) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + ros::Time start = ros::Time::now(); +@@ -728,7 +730,7 @@ TEST(RosConsole, delayedThrottle) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + ros::Time start = ros::Time::now(); +@@ -765,7 +767,7 @@ TEST(RosConsole, onceStream) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + onceStreamFunc(); +@@ -785,7 +787,7 @@ TEST(RosConsole, throttleStream) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + ros::Time start = ros::Time::now(); +@@ -816,7 +818,7 @@ TEST(RosConsole, delayedStreamThrottle) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + ros::Time start = ros::Time::now(); +@@ -847,7 +849,7 @@ TEST(RosConsole, basicFilter) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + BasicFilter trueFilter(true), falseFilter(false); +@@ -864,7 +866,7 @@ TEST(RosConsole, basicFilterStream) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + BasicFilter trueFilter(true), falseFilter(false); +@@ -900,7 +902,7 @@ TEST(RosConsole, advancedFilter) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + AdvancedFilter trueFilter(true), falseFilter(false); +@@ -919,7 +921,7 @@ TEST(RosConsole, advancedFilterStream) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + AdvancedFilter trueFilter(true), falseFilter(false); +@@ -949,7 +951,7 @@ TEST(RosConsole, changeFilter) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + ChangeFilter filter; +@@ -966,7 +968,7 @@ TEST(RosConsole, changeFilterStream) + { + log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(ROSCONSOLE_DEFAULT_NAME); + +- TestAppender* appender = new TestAppender; ++ auto appender = TestAppenderPtr(new TestAppender); + logger->addAppender(appender); + + ChangeFilter filter; +@@ -1022,7 +1024,7 @@ TEST(RosConsole, formatter) + ros::console::g_formatter.init(format_string.c_str()); + + result = ros::console::g_formatter.getTokenStrings( +- log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME), level, str, ++ &*log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME), level, str, + file, function, 0); + + boost::regex expr("([0-9]+)\\.([0-9]+)"); +@@ -1037,7 +1039,7 @@ TEST(RosConsole, formatter) + ros::console::g_formatter.init(format_string.c_str()); + + result = ros::console::g_formatter.getTokenStrings( +- log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME), level, str, ++ &*log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME), level, str, + file, function, 0); + + boost::regex expr("([0-9]{4}) ([0-9]{2}:[0-9]{2}:[0-9]{2})"); +@@ -1052,7 +1054,7 @@ TEST(RosConsole, formatter) + ros::console::g_formatter.init(format_string.c_str()); + + result = ros::console::g_formatter.getTokenStrings( +- log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME), level, str, ++ &*log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME), level, str, + file, function, 0); + + boost::regex expr("([0-9]+)\\.([0-9]+)"); +@@ -1067,7 +1069,7 @@ TEST(RosConsole, formatter) + ros::console::g_formatter.init(format_string.c_str()); + + result = ros::console::g_formatter.getTokenStrings( +- log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME), level, str, ++ &*log4cxx::Logger::getLogger(ROSCONSOLE_ROOT_LOGGER_NAME), level, str, + file, function, 0); + + boost::regex expr("([0-9]{4}) ([0-9]{2}:[0-9]{2}:[0-9]{2})"); + +From deaf674ae09c5255919a99d9efdeafe0f89ffbd1 Mon Sep 17 00:00:00 2001 +From: Andrey Vukolov +Date: Mon, 14 Nov 2022 19:15:07 +0100 +Subject: [PATCH 2/4] Compatibility for liblog4cxx v0.11-0.13 + + - Partially implements changes suggested both in #54 and + orphaned commit e3753eec58bf4e76012d019fd307349f94d1d0be + - Tested on liblog4cxx v0.12 and 0.13 + - Sets up pointer-level compatibility with both new and old + log4cxx versions + - Adds a workaround for API breaking changes in liblog4cxx + - Testing needed + +Signed-off-by: Andrey Vukolov +--- + src/rosconsole/impl/rosconsole_log4cxx.cpp | 19 +++++++++++++++++-- + 1 file changed, 17 insertions(+), 2 deletions(-) + +diff --git a/src/rosconsole/impl/rosconsole_log4cxx.cpp b/src/rosconsole/impl/rosconsole_log4cxx.cpp +index 4c3b26eab..d1b6c4952 100644 +--- a/src/rosconsole/impl/rosconsole_log4cxx.cpp ++++ b/src/rosconsole/impl/rosconsole_log4cxx.cpp +@@ -181,10 +181,12 @@ void initialize() + + void print(void* handle, ::ros::console::Level level, const char* str, const char* file, const char* function, int line) + { ++ std::string filename(file); ++ std::string short_filename = filename.substr(filename.find_last_of("/\\") + 1); + log4cxx::Logger* logger = (log4cxx::Logger*)handle; + try + { +- logger->forcedLog(g_level_lookup[level], str, log4cxx::spi::LocationInfo(file, function, line)); ++ logger->forcedLog(g_level_lookup[level], str, log4cxx::spi::LocationInfo(file, short_filename.c_str(), function, line)); + } + catch (std::exception& e) + { +@@ -369,6 +371,18 @@ void deregister_appender(LogAppender* appender){ + g_log4cxx_appender = log4cxx::AppenderPtr(); + } + } ++ ++namespace { ++// log4cxx 0.11 and 0.13+ use types with operator-> ++template void shutdown_logger_repository(L l){ ++ l->shutdown(); ++} ++// log4cxx 0.12 uses a weakptr ++template void shutdown_logger_repository(std::weak_ptr l){ ++ l.lock()->shutdown(); ++} ++} ++ + void shutdown() + { + if(g_log4cxx_appender) +@@ -382,7 +396,8 @@ void shutdown() + // + // See https://code.ros.org/trac/ros/ticket/3271 + // +- static_cast(log4cxx::Logger::getRootLogger()->getLoggerRepository())->shutdown(); ++ // static_cast(log4cxx::Logger::getRootLogger()->getLoggerRepository())->shutdown(); ++ shutdown_logger_repository(log4cxx::Logger::getRootLogger()->getLoggerRepository()); + } + + } // namespace impl + +From d8a41f09b64d83dc5532b40fc0f16d69708f76d6 Mon Sep 17 00:00:00 2001 +From: Andrey Vukolov +Date: Mon, 14 Nov 2022 19:57:10 +0100 +Subject: [PATCH 3/4] Added liblog4cxx version handler + +Signed-off-by: Andrey Vukolov +--- + src/rosconsole/impl/rosconsole_log4cxx.cpp | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/src/rosconsole/impl/rosconsole_log4cxx.cpp b/src/rosconsole/impl/rosconsole_log4cxx.cpp +index d1b6c4952..70504b928 100644 +--- a/src/rosconsole/impl/rosconsole_log4cxx.cpp ++++ b/src/rosconsole/impl/rosconsole_log4cxx.cpp +@@ -181,12 +181,18 @@ void initialize() + + void print(void* handle, ::ros::console::Level level, const char* str, const char* file, const char* function, int line) + { ++ log4cxx::Logger* logger = (log4cxx::Logger*)handle; ++#if (LOG4CXX_VERSION_MAJOR == 0) && (LOG4CXX_VERSION_MINOR > 11) + std::string filename(file); + std::string short_filename = filename.substr(filename.find_last_of("/\\") + 1); +- log4cxx::Logger* logger = (log4cxx::Logger*)handle; + try + { + logger->forcedLog(g_level_lookup[level], str, log4cxx::spi::LocationInfo(file, short_filename.c_str(), function, line)); ++#else ++ try ++ { ++ logger->forcedLog(g_level_lookup[level], str, log4cxx::spi::LocationInfo(file, function, line)); ++#endif + } + catch (std::exception& e) + { + +From 300693deac5747b70ed19af27c36b2b90d10c80d Mon Sep 17 00:00:00 2001 +From: Andrei Vukolov +Date: Tue, 10 Jan 2023 19:44:27 +0100 +Subject: [PATCH 4/4] Fixed compilation condition for Ubuntu LTS 22.04 + +--- + src/rosconsole/impl/rosconsole_log4cxx.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/rosconsole/impl/rosconsole_log4cxx.cpp b/src/rosconsole/impl/rosconsole_log4cxx.cpp +index 70504b928..89403594d 100644 +--- a/src/rosconsole/impl/rosconsole_log4cxx.cpp ++++ b/src/rosconsole/impl/rosconsole_log4cxx.cpp +@@ -182,7 +182,7 @@ void initialize() + void print(void* handle, ::ros::console::Level level, const char* str, const char* file, const char* function, int line) + { + log4cxx::Logger* logger = (log4cxx::Logger*)handle; +-#if (LOG4CXX_VERSION_MAJOR == 0) && (LOG4CXX_VERSION_MINOR > 11) ++#if (LOG4CXX_VERSION_MAJOR > 0) || ( (LOG4CXX_VERSION_MAJOR == 0) && (LOG4CXX_VERSION_MINOR > 11) ) + std::string filename(file); + std::string short_filename = filename.substr(filename.find_last_of("/\\") + 1); + try diff --git a/distros/noetic/patch/ros-noetic-roscpp.patch b/distros/noetic/patch/ros-noetic-roscpp.patch new file mode 100644 index 000000000..b16cf7302 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-roscpp.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fe506f1ffc..fa5e199777 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,7 +22,7 @@ list(GET roscpp_VERSION_LIST 2 roscpp_VERSION_PATCH) + + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/ros/common.h.in ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_INCLUDE_DESTINATION}/ros/common.h) + +-find_package(Boost REQUIRED COMPONENTS chrono filesystem system) ++find_package(Boost REQUIRED COMPONENTS chrono filesystem system thread) + + include_directories(include ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_INCLUDE_DESTINATION}/ros ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) + # this is needed for use within a bazel workspace. See #1548 for details. diff --git a/distros/noetic/patch/ros-noetic-roscpp.win.patch b/distros/noetic/patch/ros-noetic-roscpp.win.patch new file mode 100644 index 000000000..95f475375 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-roscpp.win.patch @@ -0,0 +1,13 @@ +diff --git a/src/libros/init.cpp b/src/libros/init.cpp +index 23904cd8f0..4e4ff43534 100644 +--- a/src/libros/init.cpp ++++ b/src/libros/init.cpp +@@ -208,7 +208,7 @@ bool getLoggers(roscpp::GetLoggers::Request&, roscpp::GetLoggers::Response& resp + + bool setLoggerLevel(roscpp::SetLoggerLevel::Request& req, roscpp::SetLoggerLevel::Response&) + { +- std::transform(req.level.begin(), req.level.end(), req.level.begin(), (int(*)(int))std::toupper); ++ std::transform(req.level.begin(), req.level.end(), req.level.begin(), ::toupper); + + ros::console::levels::Level level; + if (req.level == "DEBUG") diff --git a/distros/noetic/patch/ros-noetic-rosdep.patch b/distros/noetic/patch/ros-noetic-rosdep.patch new file mode 100644 index 000000000..24d564062 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rosdep.patch @@ -0,0 +1,18 @@ +diff --git a/src/rosdep2/sources_list.py b/src/rosdep2/sources_list.py +index 70f7cb8..6cd317d 100644 +--- a/src/rosdep2/sources_list.py ++++ b/src/rosdep2/sources_list.py +@@ -95,11 +95,7 @@ def get_sources_list_dirs(source_list_dir): + def get_sources_list_dir(): + # base of where we read config files from + # TODO: windows +- if 0: +- # we can't use etc/ros because environment config does not carry over under sudo +- etc_ros = rospkg.get_etc_ros_dir() +- else: +- etc_ros = '/etc/ros' ++ etc_ros = os.environ.get('ROS_ETC_DIR', '/etc/ros') + # compute default system wide sources directory + sys_sources_list_dir = os.path.join(etc_ros, 'rosdep', SOURCES_LIST_DIR) + sources_list_dirs = get_sources_list_dirs(sys_sources_list_dir) + diff --git a/distros/noetic/patch/ros-noetic-rosfmt.patch b/distros/noetic/patch/ros-noetic-rosfmt.patch new file mode 100644 index 000000000..57eb2ccaa --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rosfmt.patch @@ -0,0 +1,106 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 87b8d9b..df90eb9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -7,74 +7,26 @@ find_package(catkin REQUIRED COMPONENTS + rosconsole + ) + +-# Get fmt from an official release +-include(ExternalProject) +-ExternalProject_Add( +- fmt +- URL https://github.com/fmtlib/fmt/releases/download/9.1.0/fmt-9.1.0.zip +- URL_HASH SHA256=cceb4cb9366e18a5742128cb3524ce5f50e88b476f1e54737a47ffdf4df4c996 +- CONFIGURE_COMMAND "" +- +- # We touch all downloaded files, otherwise they get some timestamp in the +- # past and may confuse the dependency tracking below. +- BUILD_COMMAND find -type f -exec touch {} + +- INSTALL_COMMAND "" +-) +- +-# Now extract the needed files. We need to copy headers to the devel space +-# b/c of catkin policies (they count as "generated headers"). +-ExternalProject_Get_property(fmt SOURCE_DIR) +-set(fmt_SOURCE_DIR "${SOURCE_DIR}") +-set(fmt_HEADER_DEST "${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_INCLUDE_DESTINATION}") +- +-file(MAKE_DIRECTORY ${fmt_HEADER_DEST}) +-foreach(FILE args.h chrono.h color.h compile.h core.h format-inl.h format.h os.h ostream.h printf.h ranges.h std.h xchar.h) +- set(in "${fmt_SOURCE_DIR}/include/fmt/${FILE}") +- set(out "${fmt_HEADER_DEST}/fmt/${FILE}") +- list(APPEND fmt_HEADERS_OUT ${out}) +- +- set_source_files_properties(${in} PROPERTIES GENERATED TRUE) +- set_source_files_properties(${out} PROPERTIES GENERATED TRUE) +- +- add_custom_command( +- OUTPUT ${out} +- DEPENDS ${in} fmt +- COMMAND cmake -E copy_if_different "${in}" "${out}" +- ) +-endforeach() +- +-add_custom_target(fmt_headers +- DEPENDS ${fmt_HEADERS_OUT} +-) ++find_package(fmt REQUIRED) + + catkin_package( +- INCLUDE_DIRS include ${fmt_HEADER_DEST} ++ INCLUDE_DIRS include + CATKIN_DEPENDS roscpp rosconsole + LIBRARIES rosfmt9 + ) + + include_directories( +- ${fmt_HEADER_DEST} + include + ${catkin_INCLUDE_DIRS} + ) + +-set_source_files_properties( +- ${fmt_SOURCE_DIR}/src/format.cc +- ${fmt_SOURCE_DIR}/src/os.cc +- PROPERTIES GENERATED TRUE +-) +- + add_library(rosfmt9 +- ${fmt_HEADERS_OUT} +- ${fmt_SOURCE_DIR}/src/format.cc +- ${fmt_SOURCE_DIR}/src/os.cc + src/rosfmt.cpp + ) + target_link_libraries(rosfmt9 + ${catkin_LIBRARIES} ++ fmt::fmt + ) +-add_dependencies(rosfmt9 fmt fmt_headers) + + if(CATKIN_ENABLE_TESTING) + add_executable(simple_test +@@ -91,10 +43,6 @@ if(CATKIN_ENABLE_TESTING) + add_dependencies(run_tests run_simple_test) + endif() + +-install( +- DIRECTORY ${fmt_HEADER_DEST}/fmt/ +- DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/fmt +-) + install( + DIRECTORY include/rosfmt/ + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} +diff --git a/include/rosfmt/rosfmt.h b/include/rosfmt/rosfmt.h +index 155df18..36f82ea 100644 +--- a/include/rosfmt/rosfmt.h ++++ b/include/rosfmt/rosfmt.h +@@ -31,7 +31,7 @@ std::string vformat(fmt::string_view format_str, fmt::format_args args); + template + std::string format(const std::string& formatString, const Args& ... args) + { +- fmt::format_arg_store as{args...}; ++ auto as = fmt::make_format_args(args...); + return rosfmt::vformat(formatString, as); + } + diff --git a/distros/noetic/patch/ros-noetic-roslisp.patch b/distros/noetic/patch/ros-noetic-roslisp.patch new file mode 100644 index 000000000..1b4402899 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-roslisp.patch @@ -0,0 +1,10 @@ +diff --git a/env-hooks/99.roslisp.sh.in b/env-hooks/99.roslisp.sh.in +index 05aba70..a2733d8 100644 +--- a/env-hooks/99.roslisp.sh.in ++++ b/env-hooks/99.roslisp.sh.in +@@ -18,4 +18,4 @@ for workspace in workspaces: + print(os.pathsep.join(paths)) + EOF + ) +-export ROSLISP_PACKAGE_DIRECTORIES="`@PYTHON_EXECUTABLE@ -c \"$PYTHON_CODE_BUILD_ROSLISP_PACKAGE_DIRECTORIES\"`" ++export ROSLISP_PACKAGE_DIRECTORIES="`python -c \"$PYTHON_CODE_BUILD_ROSLISP_PACKAGE_DIRECTORIES\"`" diff --git a/distros/noetic/patch/ros-noetic-rosmon-core.patch b/distros/noetic/patch/ros-noetic-rosmon-core.patch new file mode 100644 index 000000000..0244b0bde --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rosmon-core.patch @@ -0,0 +1,116 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7441df6..9bff2c0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -11,12 +11,11 @@ find_package(catkin REQUIRED COMPONENTS + rospack + diagnostic_msgs + ) ++find_package(fmt REQUIRED) + + catkin_package() + include_directories(${catkin_INCLUDE_DIRS}) + +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror") +- + find_package(TinyXML REQUIRED) + + find_package(Curses REQUIRED) +@@ -107,6 +107,7 @@ target_link_libraries(rosmon + yaml-cpp + util + rosmon_launch_config ++ fmt::fmt + ) + + add_dependencies(rosmon ${catkin_EXPORTED_TARGETS}) +@@ -126,6 +125,7 @@ add_executable(dump_param + ) + target_link_libraries(dump_param + ${catkin_LIBRARIES} ++ fmt::fmt + ) + + add_executable(abort_really_long_executable +diff --git a/src/logger.cpp b/src/logger.cpp +index 881339c..9d9fb5f 100644 +--- a/src/logger.cpp ++++ b/src/logger.cpp +@@ -4,6 +4,7 @@ + #include "logger.h" + #include "fmt/format.h" + ++#include + #include + #include + #include +diff --git a/src/main.cpp b/src/main.cpp +index 8332470..22985ba 100644 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -16,6 +16,7 @@ + #include + #include + ++#include + #include + + #include +@@ -45,7 +46,7 @@ static fs::path findFile(const fs::path& base, const std::string& name) + if(!p.empty()) + return p; + } +- else if(it->path().leaf() == name) ++ else if(it->path().filename() == name) + return *it; + } + +@@ -373,12 +374,12 @@ int main(int argc, char** argv) + // Try systemd journal first + try + { +- logger.reset(new rosmon::SystemdLogger(fs::basename(launchFilePath))); ++ logger.reset(new rosmon::SystemdLogger(fs::path(launchFilePath).stem().string())); + } + catch(rosmon::SystemdLogger::NotAvailable& e) + { + fmt::print(stderr, "Systemd Journal not available: {}\n", e.what()); +- logger.reset(new rosmon::SyslogLogger(fs::basename(launchFilePath))); ++ logger.reset(new rosmon::SyslogLogger(fs::path(launchFilePath).stem().string())); + } + } + else +@@ -389,7 +390,8 @@ int main(int argc, char** argv) + + // Create log file in /tmp + std::time_t t = std::time(nullptr); +- std::tm currentTime = fmt::localtime(t); ++ std::tm currentTime {}; ++ localtime_r(&t, ¤tTime); + + logFile = fmt::format("/tmp/rosmon_{:%Y_%m_%d_%H_%M_%S}.log", currentTime); + } +diff --git a/src/monitor/shim.cpp b/src/monitor/shim.cpp +index 7dec1cc..da51913 100644 +--- a/src/monitor/shim.cpp ++++ b/src/monitor/shim.cpp +@@ -15,6 +15,19 @@ + #include + #include + ++// **NOTE: Adapted from https://reviews.llvm.org/D39717 ** ++// Sufficiently old kernel headers don't provide this value, but we can still ++// call prctl with it. If the runtime kernel is new enough, the prctl call will ++// have the desired effect; if the kernel is too old, the call will error and we ++// can ignore said error. ++#ifndef PR_SET_PTRACER ++#define PR_SET_PTRACER 0x59616d61 ++#endif ++ ++#ifndef PR_SET_PTRACER_ANY ++#define PR_SET_PTRACER_ANY ((unsigned long)-1) ++#endif ++ + static const struct option OPTIONS[] = { + {"help", no_argument, nullptr, 'h'}, + {"namespace", required_argument, nullptr, 'n'}, diff --git a/distros/noetic/patch/ros-noetic-rosserial-server.patch b/distros/noetic/patch/ros-noetic-rosserial-server.patch new file mode 100644 index 000000000..8a3fad2da --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rosserial-server.patch @@ -0,0 +1,127 @@ +diff --git a/include/rosserial_server/serial_session.h b/include/rosserial_server/serial_session.h +index 2a0bc156..4b9c543d 100644 +--- a/include/rosserial_server/serial_session.h ++++ b/include/rosserial_server/serial_session.h +@@ -48,7 +48,7 @@ namespace rosserial_server + class SerialSession : public Session + { + public: +- SerialSession(boost::asio::io_service& io_service, std::string port, int baud) ++ SerialSession(boost::asio::io_context& io_service, std::string port, int baud) + : Session(io_service), port_(port), baud_(baud), timer_(io_service) + { + ROS_INFO_STREAM("rosserial_server session configured for " << port_ << " at " << baud << "bps."); +diff --git a/include/rosserial_server/session.h b/include/rosserial_server/session.h +index 30f97a60..1a5555f8 100644 +--- a/include/rosserial_server/session.h ++++ b/include/rosserial_server/session.h +@@ -60,7 +60,7 @@ template + class Session : boost::noncopyable + { + public: +- Session(boost::asio::io_service& io_service) ++ Session(boost::asio::io_context& io_service) + : io_service_(io_service), + socket_(io_service), + sync_timer_(io_service), +@@ -500,7 +500,7 @@ private: + set_sync_timeout(timeout_interval_); + } + +- boost::asio::io_service& io_service_; ++ boost::asio::io_context& io_service_; + Socket socket_; + AsyncReadBuffer async_read_buffer_; + enum { buffer_max = 1023 }; +diff --git a/include/rosserial_server/tcp_server.h b/include/rosserial_server/tcp_server.h +index 1dff9c54..ff955d64 100644 +--- a/include/rosserial_server/tcp_server.h ++++ b/include/rosserial_server/tcp_server.h +@@ -52,7 +52,7 @@ template< typename Session = rosserial_server::Session > + class TcpServer + { + public: +- TcpServer(boost::asio::io_service& io_service, short port) ++ TcpServer(boost::asio::io_context& io_service, short port) + : io_service_(io_service), + acceptor_(io_service, tcp::endpoint(tcp::v4(), port)) + { +@@ -83,7 +83,7 @@ private: + start_accept(); + } + +- boost::asio::io_service& io_service_; ++ boost::asio::io_context& io_service_; + tcp::acceptor acceptor_; + }; + +diff --git a/include/rosserial_server/udp_socket_session.h b/include/rosserial_server/udp_socket_session.h +index 6e38dae0..559a1d93 100644 +--- a/include/rosserial_server/udp_socket_session.h ++++ b/include/rosserial_server/udp_socket_session.h +@@ -52,7 +52,7 @@ using boost::asio::ip::udp; + class UdpSocketSession : public Session + { + public: +- UdpSocketSession(boost::asio::io_service& io_service, ++ UdpSocketSession(boost::asio::io_context& io_service, + udp::endpoint server_endpoint, + udp::endpoint client_endpoint) + : Session(io_service), timer_(io_service), +diff --git a/include/rosserial_server/udp_stream.h b/include/rosserial_server/udp_stream.h +index 30034cbf..dc68605d 100644 +--- a/include/rosserial_server/udp_stream.h ++++ b/include/rosserial_server/udp_stream.h +@@ -56,7 +56,7 @@ using boost::asio::handler_type; + class UdpStream : public udp::socket + { + public: +- explicit UdpStream(boost::asio::io_service& io_service) : udp::socket(io_service) ++ explicit UdpStream(boost::asio::io_context& io_service) : udp::socket(io_service) + { + } + +diff --git a/src/serial_node.cpp b/src/serial_node.cpp +index 8fcd8907..9b23c801 100644 +--- a/src/serial_node.cpp ++++ b/src/serial_node.cpp +@@ -49,7 +49,7 @@ int main(int argc, char* argv[]) + ros::param::param("~port", port, "/dev/ttyACM0"); + ros::param::param("~baud", baud, 57600); + +- boost::asio::io_service io_service; ++ boost::asio::io_context io_service; + rosserial_server::SerialSession serial_session(io_service, port, baud); + io_service.run(); + return 0; +diff --git a/src/socket_node.cpp b/src/socket_node.cpp +index e803b6da..2ee3f5bd 100644 +--- a/src/socket_node.cpp ++++ b/src/socket_node.cpp +@@ -47,7 +47,7 @@ int main(int argc, char* argv[]) + int port; + ros::param::param("~port", port, 11411); + +- boost::asio::io_service io_service; ++ boost::asio::io_context io_service; + rosserial_server::TcpServer<> tcp_server(io_service, port); + + ROS_INFO_STREAM("Listening for rosserial TCP connections on port " << port); +diff --git a/src/udp_socket_node.cpp b/src/udp_socket_node.cpp +index 1ff7718c..dd659439 100644 +--- a/src/udp_socket_node.cpp ++++ b/src/udp_socket_node.cpp +@@ -54,11 +54,11 @@ int main(int argc, char* argv[]) + ros::param::param("~client_port", client_port, 11411); + ros::param::param("~client_addr", client_addr, "127.0.0.1"); + +- boost::asio::io_service io_service; ++ boost::asio::io_context io_service; + rosserial_server::UdpSocketSession udp_socket_session( + io_service, + udp::endpoint(udp::v4(), server_port), +- udp::endpoint(address::from_string(client_addr), client_port)); ++ udp::endpoint(boost::asio::ip::make_address(client_addr), client_port)); + io_service.run(); + + return 0; diff --git a/distros/noetic/patch/ros-noetic-rostime.linux.patch b/distros/noetic/patch/ros-noetic-rostime.linux.patch new file mode 100644 index 000000000..d142f2dbe --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rostime.linux.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 32a76bb9..68bd38f4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,7 +5,7 @@ find_package(catkin REQUIRED COMPONENTS cpp_common) + find_package(Boost REQUIRED COMPONENTS date_time system thread) + catkin_package( + INCLUDE_DIRS include +- LIBRARIES ${PROJECT_NAME} ++ LIBRARIES ${PROJECT_NAME} ${RT_LIBRARY} + CATKIN_DEPENDS cpp_common + DEPENDS Boost + ) diff --git a/distros/noetic/patch/ros-noetic-rostime.win.patch b/distros/noetic/patch/ros-noetic-rostime.win.patch new file mode 100644 index 000000000..06e1761dc --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rostime.win.patch @@ -0,0 +1,179 @@ +diff --git a/include/ros/duration.h b/include/ros/duration.h +index edd82ddf..6a0e883b 100644 +--- a/include/ros/duration.h ++++ b/include/ros/duration.h +@@ -95,6 +95,7 @@ public: + T& fromNSec(int64_t t); + bool isZero() const; + boost::posix_time::time_duration toBoost() const; ++#ifndef _MSC_VER + static const T MIN; //!< Minimum representable duration (negative) + static const T MAX; //!< Maximum representable duration + static const T ZERO; //!< Zero duration +@@ -105,6 +106,7 @@ public: + static const T MILLISECOND; //!< One millisecond duration + static const T MICROSECOND; //!< One microsecond duration + static const T NANOSECOND; //!< One nanosecond duration ++#endif + }; + + class Rate; +@@ -136,6 +138,7 @@ public: + + extern ROSTIME_DECL const Duration DURATION_MAX; + extern ROSTIME_DECL const Duration DURATION_MIN; ++#ifndef _MSC_VER + template<> const Duration DurationBase::MAX; + template<> const Duration DurationBase::MIN; + template<> const Duration DurationBase::ZERO; +@@ -146,6 +149,7 @@ template<> const Duration DurationBase::SECOND; + template<> const Duration DurationBase::MILLISECOND; + template<> const Duration DurationBase::MICROSECOND; + template<> const Duration DurationBase::NANOSECOND; ++#endif + + /** + * \brief Duration representation for use with the WallTime class. +@@ -172,6 +176,7 @@ public: + bool sleep() const; + }; + ++#ifndef _MSC_VER + template<> const WallDuration DurationBase::MAX; + template<> const WallDuration DurationBase::MIN; + template<> const WallDuration DurationBase::ZERO; +@@ -182,6 +187,7 @@ template<> const WallDuration DurationBase::SECOND; + template<> const WallDuration DurationBase::MILLISECOND; + template<> const WallDuration DurationBase::MICROSECOND; + template<> const WallDuration DurationBase::NANOSECOND; ++#endif + + ROSTIME_DECL std::ostream &operator <<(std::ostream &os, const Duration &rhs); + ROSTIME_DECL std::ostream &operator <<(std::ostream &os, const WallDuration &rhs); +diff --git a/include/ros/time.h b/include/ros/time.h +index c4ff2fea..79f2eaee 100644 +--- a/include/ros/time.h ++++ b/include/ros/time.h +@@ -160,10 +160,12 @@ namespace ros + inline bool is_zero() const { return isZero(); } + boost::posix_time::ptime toBoost() const; + ++#ifndef _MSC_VER + static const T MIN; //!< Minimum representable time + static const T MAX; //!< Maximum representable time + static const T ZERO; //!< Zero (invalid) time + static const T UNINITIALIZED; //!< Uninitialized time ++#endif + }; + + /** +@@ -221,10 +223,12 @@ namespace ros + + extern ROSTIME_DECL const Time TIME_MAX; + extern ROSTIME_DECL const Time TIME_MIN; ++#ifndef _MSC_VER + template<> const Time TimeBase::MAX; + template<> const Time TimeBase::MIN; + template<> const Time TimeBase::ZERO; + template<> const Time TimeBase::UNINITIALIZED; ++#endif + + /** + * \brief Time representation. Always wall-clock time. +@@ -258,11 +262,13 @@ namespace ros + static bool isSystemTime() { return true; } + }; + ++#ifndef _MSC_VER + template<> const WallTime TimeBase::MAX; + template<> const WallTime TimeBase::MIN; + template<> const WallTime TimeBase::ZERO; + template<> const WallTime TimeBase::UNINITIALIZED; +- ++#endif ++ + /** + * \brief Time representation. Always steady-clock time. + * +@@ -297,10 +303,12 @@ namespace ros + static bool isSystemTime() { return true; } + }; + ++#ifndef _MSC_VER + template<> const SteadyTime TimeBase::MAX; + template<> const SteadyTime TimeBase::MIN; + template<> const SteadyTime TimeBase::ZERO; + template<> const SteadyTime TimeBase::UNINITIALIZED; ++#endif + + ROSTIME_DECL std::ostream &operator <<(std::ostream &os, const Time &rhs); + ROSTIME_DECL std::ostream &operator <<(std::ostream &os, const WallTime &rhs); +diff --git a/src/time.cpp b/src/time.cpp +index 7edb3cc2..0bca1c4c 100644 +--- a/src/time.cpp ++++ b/src/time.cpp +@@ -83,6 +83,7 @@ namespace ros + const Duration DURATION_MAX(std::numeric_limits::max(), 999999999); + const Duration DURATION_MIN(std::numeric_limits::min(), 0); + ++#ifndef _MSC_VER + template<> const Duration DurationBase::MAX = DURATION_MAX; + template<> const Duration DurationBase::MIN = DURATION_MIN; + template<> const Duration DurationBase::ZERO = Duration(0, 0); +@@ -104,10 +105,12 @@ namespace ros + template<> const WallDuration DurationBase::MILLISECOND = WallDuration(Duration::MILLISECOND.sec, Duration::MILLISECOND.nsec); + template<> const WallDuration DurationBase::MICROSECOND = WallDuration(Duration::MICROSECOND.sec, Duration::MICROSECOND.nsec); + template<> const WallDuration DurationBase::NANOSECOND = WallDuration(Duration::NANOSECOND.sec, Duration::NANOSECOND.nsec); ++#endif + + const Time TIME_MAX(std::numeric_limits::max(), 999999999); + const Time TIME_MIN(0, 1); + ++#ifndef _MSC_VER + template<> const Time TimeBase::MAX = TIME_MAX; + template<> const Time TimeBase::MIN = TIME_MIN; + template<> const Time TimeBase::ZERO = Time(0, 0); +@@ -122,6 +125,7 @@ namespace ros + template<> const SteadyTime TimeBase::MIN = SteadyTime(Time::MIN.sec, Time::MIN.nsec); + template<> const SteadyTime TimeBase::ZERO = SteadyTime(Time::ZERO.sec, Time::ZERO.nsec); + template<> const SteadyTime TimeBase::UNINITIALIZED = SteadyTime(Time::UNINITIALIZED.sec, Time::UNINITIALIZED.nsec); ++#endif + + // This is declared here because it's set from the Time class but read from + // the Duration class, and need not be exported to users of either. +diff --git a/test/time.cpp b/test/time.cpp +index 96ef1615..e52a9601 100644 +--- a/test/time.cpp ++++ b/test/time.cpp +@@ -370,6 +370,7 @@ TEST(Time, OperatorPlusExceptions) + EXPECT_THROW(t5 + d3, std::runtime_error); + } + ++#ifndef _MSC_VER + TEST(Time, Constants) + { + EXPECT_EQ(Time::MAX.sec, static_cast(-1)); +@@ -399,6 +400,7 @@ TEST(Time, Constants) + EXPECT_EQ(SteadyTime::UNINITIALIZED.sec, 0); + EXPECT_EQ(SteadyTime::UNINITIALIZED.nsec, 0); + } ++#endif + + /************************************* Duration Tests *****************/ + +@@ -588,6 +590,7 @@ TEST(Duration, sleepWithSignal) + ASSERT_TRUE(rc); + } + ++#ifndef _MSC_VER + TEST(Duration, Constants) + { + EXPECT_EQ(Duration::MAX.sec, std::numeric_limits::max()); +@@ -632,6 +635,7 @@ TEST(Duration, Constants) + EXPECT_EQ(WallDuration::DAY.sec, 60 * 60 * 24); + EXPECT_EQ(WallDuration::DAY.nsec, 0); + } ++#endif + + TEST(Rate, constructFromDuration){ + Duration d(4, 0); diff --git a/distros/noetic/patch/ros-noetic-rqt-gui-cpp.patch b/distros/noetic/patch/ros-noetic-rqt-gui-cpp.patch new file mode 100644 index 000000000..6bf7c2eb4 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rqt-gui-cpp.patch @@ -0,0 +1,23 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c352f670..40f28c35 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,7 +10,8 @@ catkin_package( + + include_directories(include ${catkin_INCLUDE_DIRS}) + +-find_package(Qt5Widgets REQUIRED) ++find_package(Qt5 COMPONENTS Widgets REQUIRED) ++find_package(Boost COMPONENTS filesystem REQUIRED) + + SET(rqt_gui_cpp_SRCS + src/rqt_gui_cpp/nodelet_plugin_provider.cpp +@@ -24,7 +25,7 @@ set(rqt_gui_cpp_HDRS + qt5_wrap_cpp(rqt_gui_cpp_MOCS ${rqt_gui_cpp_HDRS}) + + add_library(${PROJECT_NAME} ${rqt_gui_cpp_SRCS} ${rqt_gui_cpp_MOCS}) +-target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} Qt5::Widgets) ++target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} Qt5::Widgets ${Boost_LIBRARIES}) + + if(APPLE) + set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") diff --git a/distros/noetic/patch/ros-noetic-rqt-image-view.patch b/distros/noetic/patch/ros-noetic-rqt-image-view.patch new file mode 100644 index 000000000..70f7192e7 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rqt-image-view.patch @@ -0,0 +1,21 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b86d8e2..cb6391d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,6 +4,7 @@ project(rqt_image_view) + + # Load catkin and all dependencies required for this package + find_package(catkin REQUIRED COMPONENTS rqt_gui rqt_gui_cpp image_transport sensor_msgs geometry_msgs cv_bridge) ++find_package(OpenCV) + + if("${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ") + find_package(Qt5Widgets REQUIRED) +@@ -58,7 +59,7 @@ set(CMAKE_CURRENT_BINARY_DIR "${_cmake_current_binary_dir}") + + include_directories(${rqt_image_view_INCLUDE_DIRECTORIES} ${catkin_INCLUDE_DIRS}) + add_library(${PROJECT_NAME} ${rqt_image_view_SRCS} ${rqt_image_view_MOCS} ${rqt_image_view_UIS_H}) +-target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) ++target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${OpenCV_LIBRARIES}) + if("${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ") + target_link_libraries(${PROJECT_NAME} Qt5::Widgets) + else() diff --git a/distros/noetic/patch/ros-noetic-rqt-rosmon.patch b/distros/noetic/patch/ros-noetic-rqt-rosmon.patch new file mode 100644 index 000000000..edc841203 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rqt-rosmon.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 95bf11a..60b668c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -13,7 +13,7 @@ find_package(catkin REQUIRED COMPONENTS + catkin_package() + include_directories(${catkin_INCLUDE_DIRS}) + +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror") ++# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror") + + if(${pluginlib_VERSION} VERSION_GREATER 1.11.1) + message(STATUS "using new pluginlib headers with .hpp extensions") diff --git a/distros/noetic/patch/ros-noetic-rtabmap-conversions.patch b/distros/noetic/patch/ros-noetic-rtabmap-conversions.patch new file mode 100644 index 000000000..4e117c41f --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rtabmap-conversions.patch @@ -0,0 +1,18 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index adbc48dd..455a72b1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,13 @@ + cmake_minimum_required(VERSION 3.5) + project(rtabmap_conversions) + ++# set(CMAKE_MODULE_PATH "$ENV{PREFIX}/lib/cmake/vtk-9.5") ++# find_package(jsoncpp REQUIRED) ++# find_package(libxml2 REQUIRED) ++# find_package(NetCDF REQUIRED) ++# find_package(HDF5 COMPONENTS HL REQUIRED) ++# find_package(LibPROJ REQUIRED) ++ + find_package(catkin REQUIRED COMPONENTS + cv_bridge roscpp sensor_msgs std_msgs geometry_msgs + tf tf_conversions eigen_conversions laser_geometry pcl_conversions diff --git a/distros/noetic/patch/ros-noetic-rtabmap-demos.patch b/distros/noetic/patch/ros-noetic-rtabmap-demos.patch new file mode 100644 index 000000000..0025d4fc1 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rtabmap-demos.patch @@ -0,0 +1,40 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d84e4305..ce876f94 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -19,11 +19,11 @@ catkin_package( + + include_directories(${catkin_INCLUDE_DIRS}) + +-IF(NOT WIN32) ++IF(UNIX AND NOT APPLE) + add_executable(rtabmap_wifi_signal_pub src/WifiSignalPubNode.cpp) + target_link_libraries(rtabmap_wifi_signal_pub ${catkin_LIBRARIES}) + set_target_properties(rtabmap_wifi_signal_pub PROPERTIES OUTPUT_NAME "wifi_signal_pub") +-ENDIF(NOT WIN32) ++ENDIF(UNIX AND NOT APPLE) + + add_executable(rtabmap_wifi_signal_sub src/WifiSignalSubNode.cpp) + target_link_libraries(rtabmap_wifi_signal_sub ${catkin_LIBRARIES}) +@@ -47,14 +47,14 @@ catkin_install_python(PROGRAMS + DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} + ) + +-IF(NOT WIN32) ++IF(UNIX AND NOT APPLE) + install(TARGETS + rtabmap_wifi_signal_pub + ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} + ) +-ENDIF(NOT WIN32) ++ENDIF(UNIX AND NOT APPLE) + + install(TARGETS + rtabmap_wifi_signal_sub +@@ -75,4 +75,3 @@ ENDIF(find_object_2d_FOUND) + install(DIRECTORY launch + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} + ) +- diff --git a/distros/noetic/patch/ros-noetic-rtabmap-rviz-plugins.patch b/distros/noetic/patch/ros-noetic-rtabmap-rviz-plugins.patch new file mode 100644 index 000000000..cd46fe818 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rtabmap-rviz-plugins.patch @@ -0,0 +1,62 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,14 +1,10 @@ +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.20) + project(rtabmap_rviz_plugins) + +-# For rviz plugins, look for Qt5 before Qt4 +-FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui QUIET) +-IF(NOT Qt5_FOUND) +- FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED) +- INCLUDE(${QT_USE_FILE}) +-ENDIF(NOT Qt5_FOUND) ++# For rviz plugins, prefer Qt5. ++find_package(QT NAMES Qt5 QUIET COMPONENTS Widgets Core Gui) ++find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Core Gui) + +- + find_package(catkin REQUIRED COMPONENTS + roscpp sensor_msgs std_msgs pcl_conversions pluginlib rviz tf rtabmap_conversions rtabmap_msgs) + +@@ -22,9 +18,16 @@ + ## Build ## + ########### + ++set(_catkin_include_dirs ${catkin_INCLUDE_DIRS}) ++set(_catkin_libraries ${catkin_LIBRARIES}) ++# rviz/catkin may leak Qt6 include paths/targets; force Qt5 toolchain consistency. ++list(FILTER _catkin_include_dirs EXCLUDE REGEX "/qt6($|/)") ++list(FILTER _catkin_libraries EXCLUDE REGEX "^Qt6::") ++list(FILTER _catkin_libraries EXCLUDE REGEX "/qt6/") ++ + include_directories( + ${CMAKE_CURRENT_SOURCE_DIR}/include +- ${catkin_INCLUDE_DIRS} ++ ${_catkin_include_dirs} + ) + + ## We also use Ogre for rviz plugins +@@ -35,7 +38,7 @@ + link_directories( ${OGRE_LIBRARY_DIRS} ) + + SET(Libraries +- ${catkin_LIBRARIES} ++ ${_catkin_libraries} + ${rviz_DEFAULT_PLUGIN_LIBRARIES} + ) + +@@ -101,10 +104,10 @@ + ) + target_link_libraries(rtabmap_rviz_plugins + ${Libraries} ++ Qt5::Core ++ Qt5::Widgets ++ Qt5::Gui + ) +-IF(Qt5_FOUND) +- QT5_USE_MODULES(rtabmap_rviz_plugins Widgets Core Gui) +-ENDIF(Qt5_FOUND) + + ############# + ## Install ## diff --git a/distros/noetic/patch/ros-noetic-rtabmap-slam.patch b/distros/noetic/patch/ros-noetic-rtabmap-slam.patch new file mode 100644 index 000000000..e97bcfaa9 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rtabmap-slam.patch @@ -0,0 +1,11 @@ +--- a/src/CoreWrapper.cpp ++++ b/src/CoreWrapper.cpp +@@ -38,7 +38,7 @@ + #include + #include + #include +-#include ++#include + + #include + diff --git a/distros/noetic/patch/ros-noetic-rtabmap-viz.patch b/distros/noetic/patch/ros-noetic-rtabmap-viz.patch new file mode 100644 index 000000000..baeb72f95 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rtabmap-viz.patch @@ -0,0 +1,57 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.5) ++cmake_minimum_required(VERSION 3.20) + project(rtabmap_viz) + + find_package(catkin REQUIRED COMPONENTS +@@ -17,27 +17,33 @@ + # catkin is not using cmake targets for dependencies, + # so we should explcitly look for Qt to get compilation + # flags (-fPIC missing) +-FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui QUIET) +-IF(NOT Qt5_FOUND) +- FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED) +- INCLUDE(${QT_USE_FILE}) +-ENDIF(NOT Qt5_FOUND) ++find_package(QT NAMES Qt5 QUIET COMPONENTS Widgets Core Gui) ++find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Core Gui) + + ########### + ## Build ## + ########### + ++set(_catkin_include_dirs ${catkin_INCLUDE_DIRS}) ++set(_catkin_libraries ${catkin_LIBRARIES}) ++# Some transitive catkin deps may leak Qt6 include paths/targets. ++list(FILTER _catkin_include_dirs EXCLUDE REGEX "/qt6($|/)") ++list(FILTER _catkin_libraries EXCLUDE REGEX "^Qt6::") ++list(FILTER _catkin_libraries EXCLUDE REGEX "/qt6/") ++ + # include_directories(include) + include_directories( + ${CMAKE_CURRENT_SOURCE_DIR}/include +- ${catkin_INCLUDE_DIRS} ++ ${_catkin_include_dirs} + ) + + add_executable(rtabmap_viz src/GuiNode.cpp src/GuiWrapper.cpp src/PreferencesDialogROS.cpp include/${PROJECT_NAME}/PreferencesDialogROS.h) +-IF(Qt5_FOUND) +- QT5_USE_MODULES(rtabmap_viz Widgets Core Gui) +-ENDIF(Qt5_FOUND) +-target_link_libraries(rtabmap_viz ${catkin_LIBRARIES}) ++target_link_libraries(rtabmap_viz ++ ${_catkin_libraries} ++ Qt5::Core ++ Qt5::Widgets ++ Qt5::Gui ++) + SET_TARGET_PROPERTIES( + rtabmap_viz + PROPERTIES +@@ -63,4 +69,3 @@ + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} + FILES_MATCHING PATTERN "*.h" + ) +- diff --git a/distros/noetic/patch/ros-noetic-rtabmap.patch b/distros/noetic/patch/ros-noetic-rtabmap.patch new file mode 100644 index 000000000..9d9292d4d --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rtabmap.patch @@ -0,0 +1,192 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b42fbf41..534df4f4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -83,14 +83,6 @@ IF(MINGW) + SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--enable-auto-import") + ENDIF(MINGW) + +-# GCC 4 required +-IF(UNIX OR MINGW) +- EXEC_PROGRAM( gcc ARGS "-dumpversion" OUTPUT_VARIABLE GCC_VERSION ) +- IF(GCC_VERSION VERSION_LESS "4.0.0") +- MESSAGE(FATAL_ERROR "GCC ${GCC_VERSION} found, but version 4.x.x minimum is required") +- ENDIF(GCC_VERSION VERSION_LESS "4.0.0") +-ENDIF(UNIX OR MINGW) +- + #The CDT Error Parser cannot handle error messages that span + #more than one line, which is the default gcc behavior. + #In order to force gcc to generate single line error messages with no line wrapping +@@ -167,14 +159,14 @@ OPTION(BUILD_TOOLS "Build tools" ON) + OPTION(BUILD_EXAMPLES "Build examples" ON) + + ####### DEPENDENCIES ####### +-IF(MOBILE_BUILD) ++IF(FALSE) + option(WITH_QT "Include Qt support" OFF) + ELSE() + option(WITH_QT "Include Qt support" ON) + ENDIF() + option(WITH_ORB_OCTREE "Include ORB Octree feature support" ON) + option(WITH_TORCH "Include Torch support (SuperPoint)" OFF) +-option(WITH_PYTHON "Include Python3 support (PyMatcher, PyDetector)" OFF) ++option(WITH_PYTHON "Include Python3 support (PyMatcher, PyDetector)" ON) + option(WITH_PYTHON_THREADING "Use more than one Python interpreter." OFF) + option(WITH_PDAL "Include PDAL support" ON) + option(WITH_LIBLAS "Include libLAS support" OFF) +@@ -339,9 +331,9 @@ IF(WITH_QT) + IF(QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND) + # For VCPKG build, set those global variables to off, + # we will enable them for jsut specific targets +- set(CMAKE_AUTOMOC OFF) +- set(CMAKE_AUTORCC OFF) +- set(CMAKE_AUTOUIC OFF) ++ set(CMAKE_AUTOMOC ON) ++ set(CMAKE_AUTORCC ON) ++ set(CMAKE_AUTOUIC ON) + IF("${VTK_MAJOR_VERSION}" EQUAL 5) + FIND_PACKAGE(QVTK REQUIRED) # only for VTK 5 + ELSE() +@@ -386,6 +378,8 @@ IF(WITH_QT) + ENDIF() + ADD_DEFINITIONS(-DQT_NO_KEYWORDS) # To avoid conflicts with boost signals/foreach and Qt macros + ENDIF(QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND) ++ELSE() ++ add_compile_definitions(DISABLE_VTK) + ENDIF(WITH_QT) + + IF(NOT VTK_FOUND) +diff --git a/corelib/src/CMakeLists.txt b/corelib/src/CMakeLists.txt +index 0033140b..44e540cd 100644 +--- a/corelib/src/CMakeLists.txt ++++ b/corelib/src/CMakeLists.txt +@@ -241,6 +241,8 @@ IF(WITH_PYTHON AND Python3_FOUND) + SET(INCLUDE_DIRS + ${TORCH_INCLUDE_DIRS} + ${CMAKE_CURRENT_SOURCE_DIR}/python ++ ${Python3_INCLUDE_DIRS} ++ ${Python3_NumPy_INCLUDE_DIRS} + ${INCLUDE_DIRS} + ) + ENDIF(WITH_PYTHON AND Python3_FOUND) +diff --git a/utilite/include/rtabmap/utilite/Posix/UThreadC.h b/utilite/include/rtabmap/utilite/Posix/UThreadC.h +index e773c55f..b15a7c24 100644 +--- a/utilite/include/rtabmap/utilite/Posix/UThreadC.h ++++ b/utilite/include/rtabmap/utilite/Posix/UThreadC.h +@@ -54,9 +54,9 @@ inline void uSleepNano(unsigned int ns) + } + + +-#define InvalidHandle 0 +-#define THREAD_HANDLE pthread_t +- ++#define InvalidHandle 0 ++#define THREAD_HANDLE pthread_t ++ + typedef void *( * pthread_fn )( void * ); + + template +@@ -116,12 +116,12 @@ class UThreadC + + Instance I(Param,0,Function,CancelEnable,CancelAsync); + +- Handle h=InvalidHandle; +- int R = pthread_create((pthread_t *)&h,&attr,(pthread_fn)ThreadMainHandler,(void *)&I); +- +- pthread_attr_destroy(&attr); +- +- if(H) *H = h; ++ Handle h=InvalidHandle; ++ int R = pthread_create((pthread_t *)&h,&attr,(pthread_fn)ThreadMainHandler,(void *)&I); ++ ++ pthread_attr_destroy(&attr); ++ ++ if(H) *H = h; + if ( !R ) S_Create().acquire(); + + M_Create().unlock(); +@@ -149,12 +149,12 @@ class UThreadC + + Instance I(Param,const_cast(this),0,CancelEnable,CancelAsync); + +- Handle h=InvalidHandle; +- int R = pthread_create((pthread_t *)&h,&attr,(pthread_fn)ThreadMainHandler,(void *)&I); +- +- pthread_attr_destroy(&attr); +- +- if(H) *H = h; ++ Handle h=InvalidHandle; ++ int R = pthread_create((pthread_t *)&h,&attr,(pthread_fn)ThreadMainHandler,(void *)&I); ++ ++ pthread_attr_destroy(&attr); ++ ++ if(H) *H = h; + if ( !R ) S_Create().acquire(); + + M_Create().unlock(); +@@ -232,7 +232,7 @@ class UThreadC + typedef THREAD_HANDLE Handle; + typedef void ( *Handler)(); + +- virtual ~UThreadC() {} ++ virtual ~UThreadC() {} + + protected: + UThreadC() {} +@@ -273,12 +273,12 @@ class UThreadC + + Instance I(0,Function,CancelEnable,CancelAsync); + +- Handle h=InvalidHandle; +- int R = pthread_create((pthread_t *)&h,&attr,(pthread_fn)ThreadMainHandler,(void *)&I); +- +- pthread_attr_destroy(&attr); +- +- if(H) *H = h; ++ Handle h=InvalidHandle; ++ int R = pthread_create((pthread_t *)&h,&attr,(pthread_fn)ThreadMainHandler,(void *)&I); ++ ++ pthread_attr_destroy(&attr); ++ ++ if(H) *H = h; + if ( !R ) S_Create().acquire(); + + M_Create().unlock(); +@@ -305,12 +305,12 @@ class UThreadC + + Instance I(const_cast(this),0,CancelEnable,CancelAsync); + +- Handle h=InvalidHandle; +- int R = pthread_create((pthread_t *)&h,&attr,(pthread_fn)ThreadMainHandler,(void *)&I); +- +- pthread_attr_destroy(&attr); +- +- if(H) *H = h; ++ Handle h=InvalidHandle; ++ int R = pthread_create((pthread_t *)&h,&attr,(pthread_fn)ThreadMainHandler,(void *)&I); ++ ++ pthread_attr_destroy(&attr); ++ ++ if(H) *H = h; + if ( !R ) S_Create().acquire(); + + M_Create().unlock(); +@@ -338,13 +338,13 @@ class UThreadC + + Instance I(const_cast(this),0,CancelEnable,CancelAsync); + +- *H = InvalidHandle; ++ *H = InvalidHandle; + int R = pthread_create((pthread_t *)&(*H),&attr,(pthread_fn)ThreadMainHandler,(void *)&I); +- ++ + ThreadId = (unsigned long)*H; +- +- pthread_attr_destroy(&attr); +- ++ ++ pthread_attr_destroy(&attr); ++ + if ( !R ) S_Create().acquire(); + + M_Create().unlock(); diff --git a/distros/noetic/patch/ros-noetic-ruckig.patch b/distros/noetic/patch/ros-noetic-ruckig.patch new file mode 100644 index 000000000..cd8a91159 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ruckig.patch @@ -0,0 +1,17 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4a94d9d..11d4fd9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -7,10 +7,10 @@ project(ruckig VERSION 0.9.2 LANGUAGES CXX) + include(GNUInstallDirs) + + +-option(BUILD_EXAMPLES "Build example programs" ON) ++option(BUILD_EXAMPLES "Build example programs" OFF) + option(BUILD_PYTHON_MODULE "Build python module with pybind11" OFF) + option(BUILD_ONLINE_CLIENT "Build online client to calculate Ruckig Pro trajectories" OFF) +-option(BUILD_TESTS "Build tests" ON) ++option(BUILD_TESTS "Build tests" OFF) + option(BUILD_BENCHMARK "Build benchmark" OFF) + option(BUILD_SHARED_LIBS "Build as shared library" ON) + option(EXPOSE_INTERNAL "Expose some internal classes and methods" OFF) diff --git a/distros/noetic/patch/ros-noetic-rviz-imu-plugin.patch b/distros/noetic/patch/ros-noetic-rviz-imu-plugin.patch new file mode 100644 index 000000000..22a979a4d --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rviz-imu-plugin.patch @@ -0,0 +1,23 @@ +diff --git a/rviz_imu_plugin/CMakeLists.txt b/rviz_imu_plugin/CMakeLists.txt +index 3c58331..d2a5189 100644 +--- a/rviz_imu_plugin/CMakeLists.txt ++++ b/rviz_imu_plugin/CMakeLists.txt +@@ -6,6 +6,18 @@ find_package(catkin REQUIRED COMPONENTS roscpp rviz) + ## This setting causes Qt's "MOC" generation to happen automatically. + set(CMAKE_AUTOMOC ON) + ++if(${CMAKE_C_COMPILER_ID} STREQUAL "Clang" AND ${CMAKE_C_COMPILER_VERSION} VERSION_GREATER_EQUAL "11") ++ # newer Clang chokes on the idiomatic way to use CF_ENUM; e.g. like this: ++ # typedef CF_ENUM(int, MyEnum) { ++ # MY_ENUM_THING, ++ # MY_ENUM_OTHER_THING, ++ # # etc... ++ # } ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-elaborated-enum-base -Wno-undef-prefix") ++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-elaborated-enum-base -Wno-undef-prefix") ++ SET(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wno-undef-prefix") ++endif() ++ + ## This plugin includes Qt widgets, so we must include Qt. + ## We'll use the version that rviz used so they are compatible. + if(rviz_QT_VERSION VERSION_LESS "5") diff --git a/distros/noetic/patch/ros-noetic-rviz-plugin-tutorials.patch b/distros/noetic/patch/ros-noetic-rviz-plugin-tutorials.patch new file mode 100644 index 000000000..13251dd02 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rviz-plugin-tutorials.patch @@ -0,0 +1,23 @@ +diff --git a/rviz_plugin_tutorials/CMakeLists.txt b/rviz_plugin_tutorials/CMakeLists.txt +index 01ff2738..1b4b4079 100644 +--- a/rviz_plugin_tutorials/CMakeLists.txt ++++ b/rviz_plugin_tutorials/CMakeLists.txt +@@ -10,6 +10,18 @@ catkin_package() + include_directories(${catkin_INCLUDE_DIRS}) + link_directories(${catkin_LIBRARY_DIRS}) + ++if(${CMAKE_C_COMPILER_ID} STREQUAL "Clang" AND ${CMAKE_C_COMPILER_VERSION} VERSION_GREATER_EQUAL "11") ++ # newer Clang chokes on the idiomatic way to use CF_ENUM; e.g. like this: ++ # typedef CF_ENUM(int, MyEnum) { ++ # MY_ENUM_THING, ++ # MY_ENUM_OTHER_THING, ++ # # etc... ++ # } ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-elaborated-enum-base -Wno-undef-prefix") ++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-elaborated-enum-base -Wno-undef-prefix") ++ SET(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wno-undef-prefix") ++endif() ++ + ## This setting causes Qt's "MOC" generation to happen automatically. + set(CMAKE_AUTOMOC ON) + diff --git a/distros/noetic/patch/ros-noetic-rviz-satellite.patch b/distros/noetic/patch/ros-noetic-rviz-satellite.patch new file mode 100644 index 000000000..21d0cccdc --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rviz-satellite.patch @@ -0,0 +1,12 @@ +diff --git a/src/aerialmap_display.cpp b/src/aerialmap_display.cpp +index 58f25b5..827b198 100644 +--- a/src/aerialmap_display.cpp ++++ b/src/aerialmap_display.cpp +@@ -17,6 +17,7 @@ limitations under the License. */ + #include + #include + #include ++#include + + #include "rviz/display_context.h" + #include "rviz/frame_manager.h" diff --git a/distros/noetic/patch/ros-noetic-rviz.osx.patch b/distros/noetic/patch/ros-noetic-rviz.osx.patch new file mode 100644 index 000000000..380f9e6dd --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rviz.osx.patch @@ -0,0 +1,229 @@ +diff --git a/src/rviz/default_plugin/camera_display.cpp b/src/rviz/default_plugin/camera_display.cpp +index e092e196..a06cacd9 100644 +--- a/src/rviz/default_plugin/camera_display.cpp ++++ b/src/rviz/default_plugin/camera_display.cpp +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -103,6 +104,8 @@ CameraDisplay::CameraDisplay() + &CameraDisplay::forceRender); + zoom_property_->setMin(0.00001); + zoom_property_->setMax(100000); ++ ++ has_run_once_ = false; + } + + CameraDisplay::~CameraDisplay() +@@ -128,8 +131,16 @@ void CameraDisplay::onInitialize() + { + ImageDisplayBase::onInitialize(); + +- bg_scene_node_ = scene_node_->createChildSceneNode(); +- fg_scene_node_ = scene_node_->createChildSceneNode(); ++ { ++ static uint32_t count = 0; ++ std::stringstream ss; ++ ss << "CameraDisplay" << count++; ++ camera_scene_manager_ = Ogre::Root::getSingleton().createSceneManager(Ogre::ST_GENERIC, ss.str()); ++ } ++ ++ bg_scene_node_ = camera_scene_manager_->getRootSceneNode()->createChildSceneNode(); ++ fg_scene_node_ = camera_scene_manager_->getRootSceneNode()->createChildSceneNode(); ++ + + { + static int count = 0; +@@ -215,8 +226,16 @@ void CameraDisplay::onInitialize() + void CameraDisplay::preRenderTargetUpdate(const Ogre::RenderTargetEvent& /*evt*/) + { + QString image_position = image_position_property_->getString(); +- bg_scene_node_->setVisible(caminfo_ok_ && (image_position == BACKGROUND || image_position == BOTH)); +- fg_scene_node_->setVisible(caminfo_ok_ && (image_position == OVERLAY || image_position == BOTH)); ++ ++ if (has_run_once_) ++ { ++ fg_scene_node_->setVisible(caminfo_ok_ && (image_position == OVERLAY || image_position == BOTH)); ++ bg_scene_node_->setVisible(caminfo_ok_ && (image_position == BACKGROUND || image_position == BOTH)); ++ } ++ else ++ { ++ has_run_once_ = true; ++ } + + // set view flags on all displays + visibility_property_->update(); +diff --git a/src/rviz/default_plugin/camera_display.h b/src/rviz/default_plugin/camera_display.h +index 175a3a24..ccd4d6f3 100644 +--- a/src/rviz/default_plugin/camera_display.h ++++ b/src/rviz/default_plugin/camera_display.h +@@ -96,6 +96,8 @@ protected: + ROSImageTexture texture_; + RenderPanel* render_panel_; + ++ Ogre::SceneManager* camera_scene_manager_; ++ + private Q_SLOTS: + void forceRender(); + void updateAlpha(); +@@ -135,6 +137,8 @@ private: + bool force_render_; + + uint32_t vis_bit_; ++ ++ bool has_run_once_; + }; + + } // namespace rviz +diff --git a/src/rviz/default_plugin/image_display.cpp b/src/rviz/default_plugin/image_display.cpp +index e460a8db..4624c996 100644 +--- a/src/rviz/default_plugin/image_display.cpp ++++ b/src/rviz/default_plugin/image_display.cpp +@@ -73,6 +73,7 @@ ImageDisplay::ImageDisplay() : ImageDisplayBase(), texture_() + this, &ImageDisplay::updateNormalizeOptions); + + got_float_image_ = false; ++ has_run_once_ = false; + } + + void ImageDisplay::onInitialize() +@@ -121,9 +122,11 @@ void ImageDisplay::onInitialize() + screen_rect_->setBoundingBox(aabInf); + setMaterial(*screen_rect_, material_); + img_scene_node_->attachObject(screen_rect_); ++ img_scene_node_->setVisible(false); + } + + render_panel_ = new RenderPanel(); ++ render_panel_->getRenderWindow()->addListener(this); + render_panel_->getRenderWindow()->setAutoUpdated(false); + render_panel_->getRenderWindow()->setActive(false); + +@@ -146,12 +149,32 @@ ImageDisplay::~ImageDisplay() + { + if (initialized()) + { ++ render_panel_->getRenderWindow()->removeListener(this); ++ + delete render_panel_; + delete screen_rect_; + removeAndDestroyChildNode(img_scene_node_->getParentSceneNode(), img_scene_node_); + } + } + ++void ImageDisplay::preRenderTargetUpdate(const Ogre::RenderTargetEvent& /*evt*/) ++{ ++ if (has_run_once_) ++ { ++ img_scene_node_->setVisible(true); ++ } ++ else ++ { ++ has_run_once_ = true; ++ img_scene_node_->setVisible(false); ++ } ++} ++ ++void ImageDisplay::postRenderTargetUpdate(const Ogre::RenderTargetEvent& /*evt*/) ++{ ++ img_scene_node_->setVisible(false); ++} ++ + void ImageDisplay::onEnable() + { + ImageDisplayBase::subscribe(); +diff --git a/src/rviz/default_plugin/image_display.h b/src/rviz/default_plugin/image_display.h +index 21a4e1b0..ae11d3e4 100644 +--- a/src/rviz/default_plugin/image_display.h ++++ b/src/rviz/default_plugin/image_display.h +@@ -60,7 +60,7 @@ namespace rviz + * \class ImageDisplay + * + */ +-class ImageDisplay : public ImageDisplayBase ++class ImageDisplay : public ImageDisplayBase, public Ogre::RenderTargetListener + { + Q_OBJECT + public: +@@ -72,6 +72,10 @@ public: + void update(float wall_dt, float ros_dt) override; + void reset() override; + ++ // Overrides from Ogre::RenderTargetListener ++ void preRenderTargetUpdate(const Ogre::RenderTargetEvent& evt) override; ++ void postRenderTargetUpdate(const Ogre::RenderTargetEvent& evt) override; ++ + public Q_SLOTS: + virtual void updateNormalizeOptions(); + +@@ -100,6 +104,7 @@ private: + FloatProperty* max_property_; + IntProperty* median_buffer_size_property_; + bool got_float_image_; ++ bool has_run_once_; + + MouseClick* mouse_click_; + }; +diff --git a/src/rviz/ogre_helpers/render_system.cpp b/src/rviz/ogre_helpers/render_system.cpp +index 4005f982..8515e7b8 100644 +--- a/src/rviz/ogre_helpers/render_system.cpp ++++ b/src/rviz/ogre_helpers/render_system.cpp +@@ -444,7 +444,7 @@ Ogre::RenderWindow* RenderSystem::makeRenderWindow(WindowIDType window_id, + // Created a non-stereo window. Discard it and try again (below) + // without the stereo parameter. + ogre_root_->detachRenderTarget(window); +- window->destroy(); ++ ogre_root_->destroyRenderTarget(window); + window = nullptr; + stream << "x"; + is_stereo = false; +@@ -501,6 +501,7 @@ Ogre::RenderWindow* RenderSystem::tryMakeRenderWindow(const std::string& name, + if (x_baddrawable_error) + { + ogre_root_->detachRenderTarget(window); ++ ogre_root_->destroyRenderTarget(window); + window = nullptr; + x_baddrawable_error = false; + } +diff --git a/src/rviz/render_panel.cpp b/src/rviz/render_panel.cpp +index c52c0180..88b07e39 100644 +--- a/src/rviz/render_panel.cpp ++++ b/src/rviz/render_panel.cpp +@@ -35,6 +35,7 @@ + + #include + #include ++#include + + #include + #include +@@ -100,6 +101,12 @@ void RenderPanel::leaveEvent(QEvent* /*event*/) + } + } + ++void RenderPanel::resizeEvent(QResizeEvent* event) ++{ ++ QWidget::resizeEvent(event); ++ render_window_->windowMovedOrResized(); ++} ++ + void RenderPanel::onRenderWindowMouseEvents(QMouseEvent* event) + { + int last_x = mouse_x_; +diff --git a/src/rviz/render_panel.h b/src/rviz/render_panel.h +index 2ce29c6f..e1ef904e 100644 +--- a/src/rviz/render_panel.h ++++ b/src/rviz/render_panel.h +@@ -118,6 +118,8 @@ protected: + /// Called when any mouse event happens inside the render window + void onRenderWindowMouseEvents(QMouseEvent* event); + ++ void resizeEvent(QResizeEvent* event) override; ++ + // QWidget mouse events all get sent to onRenderWindowMouseEvents(). + // QMouseEvent.type() distinguishes them later. + void mouseMoveEvent(QMouseEvent* event) override diff --git a/distros/noetic/patch/ros-noetic-rviz.patch b/distros/noetic/patch/ros-noetic-rviz.patch new file mode 100644 index 000000000..68ed17980 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-rviz.patch @@ -0,0 +1,129 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b1cd592..cd811e5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,11 @@ + cmake_minimum_required(VERSION 3.5) + project(rviz) + ++## Restrict Windows header namespace usage ++if(WIN32) ++ add_definitions(-DNOGDI) ++endif() ++ + if (POLICY CMP0042) + cmake_policy(SET CMP0042 NEW) + endif() +@@ -98,10 +103,10 @@ if(APPLE) + endif() + + # Prefer newer vendor-specific OpenGL library +-if (POLICY CMP0072) +- cmake_policy(SET CMP0072 NEW) +-endif() +-find_package(OpenGL REQUIRED) ++# if (POLICY CMP0072) ++# cmake_policy(SET CMP0072 NEW) ++# endif() ++# find_package(OpenGL REQUIRED) + + set(CMAKE_AUTOMOC ON) + +@@ -226,7 +231,7 @@ catkin_package( + + #catkin_lint: ignore_once external_directory + include_directories(src ${EXPORT_HEADER_DIR}) +-include_directories(SYSTEM ++include_directories( + ${EIGEN3_INCLUDE_DIRS} + ${OGRE_INCLUDE_DIRS} + ${OPENGL_INCLUDE_DIR} +diff --git a/ogre_media/fonts/ogre1.10.fontdef b/ogre_media/fonts/ogre1.10.fontdef +index 4b3c5b8..e714db0 100644 +--- a/ogre_media/fonts/ogre1.10.fontdef ++++ b/ogre_media/fonts/ogre1.10.fontdef +@@ -1,3 +1,12 @@ ++Liberation Sans ++{ ++ type truetype ++ source liberation-sans/LiberationSans-Regular.ttf ++ size 18 ++ resolution 96 ++} ++ ++# Ogre >= 1.10 has changed the format + font "Liberation Sans" + { + type truetype +diff --git a/src/python_bindings/sip/CMakeLists.txt b/src/python_bindings/sip/CMakeLists.txt +index efbb497..0def9a6 100644 +--- a/src/python_bindings/sip/CMakeLists.txt ++++ b/src/python_bindings/sip/CMakeLists.txt +@@ -48,14 +48,21 @@ set(rviz_sip_INCLUDE_DIRS + ${OGRE_INCLUDE_DIRS} + ${catkin_INCLUDE_DIRS} + ) ++ ++find_package(OpenGL REQUIRED) ++find_package(Threads REQUIRED) ++ + set(rviz_sip_LIBRARIES ${rviz_LIBRARIES} ${PROJECT_NAME}) +-set(rviz_sip_LIBRARY_DIRS ${rviz_LIBRARY_DIRS} ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_LIB_DESTINATION}) ++set(rviz_sip_LIBRARY_DIRS ${rviz_LIBRARY_DIRS} ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_LIB_DESTINATION} /usr/lib/x86_64-linux-gnu/) + if (MSVC) + set(rviz_sip_LDFLAGS_OTHER ${rviz_LDFLAGS_OTHER} /LIBPATH:\"${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_LIB_DESTINATION}\") + else() + set(rviz_sip_LDFLAGS_OTHER ${rviz_LDFLAGS_OTHER} -Wl,-rpath,\\"${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_LIB_DESTINATION}\\") + endif() + ++message(WARNING "rviz_sip_LIBRARIES: ${rviz_sip_LIBRARIES}") ++message(WARNING "rviz_sip_LIBRARY_DIRS: ${rviz_sip_LIBRARY_DIRS}") ++ + if(sip_helper_FOUND) + list(APPEND rviz_BINDINGS "sip") + set(rviz_BINDINGS "${rviz_BINDINGS}" PARENT_SCOPE) +@@ -69,11 +76,11 @@ if(sip_helper_FOUND) + if(DEFINED PYTHON_EXTENSION_MODULE_SUFFIX) + set(rviz_sip_LIBRARY_FILE librviz_sip${PYTHON_EXTENSION_MODULE_SUFFIX}) + elseif(APPLE) +- set(rviz_sip_LIBRARY_FILE librviz_sip.so) ++ set(rviz_sip_LIBRARY_FILE "librviz_sip.cpython-${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}-darwin.so") + elseif(WIN32) + set(rviz_sip_LIBRARY_FILE librviz_sip.pyd) + else() +- set(rviz_sip_LIBRARY_FILE librviz_sip${CMAKE_SHARED_LIBRARY_SUFFIX}) ++ set(rviz_sip_LIBRARY_FILE "librviz_sip.cpython-${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}-${CMAKE_HOST_SYSTEM_PROCESSOR}-linux-gnu${CMAKE_SHARED_LIBRARY_SUFFIX}") + endif() + #catkin_lint: ignore_once external_file + install(FILES ${CATKIN_DEVEL_PREFIX}/${PYTHON_INSTALL_DIR}/rviz/${rviz_sip_LIBRARY_FILE} +diff --git a/src/rviz/ogre_helpers/render_system.cpp b/src/rviz/ogre_helpers/render_system.cpp +index 4005f98..c0441de 100644 +--- a/src/rviz/ogre_helpers/render_system.cpp ++++ b/src/rviz/ogre_helpers/render_system.cpp +@@ -159,9 +159,10 @@ void RenderSystem::setupDummyWindowId() + + void RenderSystem::loadOgrePlugins() + { +- std::string plugin_prefix = get_ogre_plugin_path() + "/"; +-#ifdef Q_OS_MAC +- plugin_prefix += "lib"; ++#ifdef _WIN32 ++ std::string plugin_prefix = std::string(std::getenv("CONDA_PREFIX")) + "\\Library\\bin\\"; ++#else ++ std::string plugin_prefix = std::string(std::getenv("CONDA_PREFIX")) + "/lib/OGRE/"; + #endif + ogre_root_->loadPlugin(plugin_prefix + "RenderSystem_GL"); + ogre_root_->loadPlugin(plugin_prefix + "Plugin_OctreeSceneManager"); +diff --git a/src/rviz/properties/enum_property.h b/src/rviz/properties/enum_property.h +index c3e5e87..5e29c42 100644 +--- a/src/rviz/properties/enum_property.h ++++ b/src/rviz/properties/enum_property.h +@@ -43,7 +43,7 @@ namespace rviz + * option. The integer returned will be that passed to addOption() + * for with the string that is currently selected. + */ +-class EnumProperty : public StringProperty ++class RVIZ_EXPORT EnumProperty : public StringProperty + { + Q_OBJECT + public: diff --git a/distros/noetic/patch/ros-noetic-sainsmart-relay-usb.patch b/distros/noetic/patch/ros-noetic-sainsmart-relay-usb.patch new file mode 100644 index 000000000..ae227d857 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-sainsmart-relay-usb.patch @@ -0,0 +1,30 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9bd1118..e9cc910 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -6,18 +6,23 @@ find_package(catkin REQUIRED COMPONENTS + std_msgs + ) + ++find_package(PkgConfig) ++pkg_check_modules(udev REQUIRED libudev) ++pkg_check_modules(ftdi REQUIRED libftdi1) + catkin_package() + + include_directories( + ${catkin_INCLUDE_DIRS} ++ ${ftdi_INCLUDE_DIRS} ++ ${udev_INCLUDE_DIRS} + ) + + add_executable(${PROJECT_NAME}_node src/RelayNode.cpp src/node.cpp) +-target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ftdi) ++target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ${ftdi_LIBRARIES} ${udev_LIBRARIES}) + set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME relay_node PREFIX "") + + add_executable(${PROJECT_NAME}_list src/list.cpp) +-target_link_libraries(${PROJECT_NAME}_list ${catkin_LIBRARIES} ftdi) ++target_link_libraries(${PROJECT_NAME}_list ${catkin_LIBRARIES} ${ftdi_LIBRARIES} ${udev_LIBRARIES}) + set_target_properties(${PROJECT_NAME}_list PROPERTIES OUTPUT_NAME list PREFIX "") + + install(TARGETS ${PROJECT_NAME}_node ${PROJECT_NAME}_list diff --git a/distros/noetic/patch/ros-noetic-scan-to-cloud-converter.patch b/distros/noetic/patch/ros-noetic-scan-to-cloud-converter.patch new file mode 100644 index 000000000..5f42c57c3 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-scan-to-cloud-converter.patch @@ -0,0 +1,34 @@ +diff --git a/src/scan_to_cloud_converter.cpp b/src/scan_to_cloud_converter.cpp +index 749c9dd..8f19af4 100644 +--- a/src/scan_to_cloud_converter.cpp ++++ b/src/scan_to_cloud_converter.cpp +@@ -43,7 +43,7 @@ ScanToCloudConverter::ScanToCloudConverter(ros::NodeHandle nh, ros::NodeHandle n + invalid_point_.y = std::numeric_limits::quiet_NaN(); + invalid_point_.z = std::numeric_limits::quiet_NaN(); + +- cloud_publisher_ = nh_.advertise( ++ cloud_publisher_ = nh_.advertise( + "cloud", 1); + scan_subscriber_ = nh_.subscribe( + "scan", 1, &ScanToCloudConverter::scanCallback, this); +@@ -57,7 +57,7 @@ ScanToCloudConverter::~ScanToCloudConverter() + void ScanToCloudConverter::scanCallback(const sensor_msgs::LaserScan::ConstPtr& scan_msg) + { + PointCloudT::Ptr cloud_msg = +- boost::shared_ptr(new PointCloudT()); ++ std::shared_ptr(new PointCloudT()); + + cloud_msg->points.resize(scan_msg->ranges.size()); + +@@ -81,8 +81,10 @@ void ScanToCloudConverter::scanCallback(const sensor_msgs::LaserScan::ConstPtr& + cloud_msg->height = 1; + cloud_msg->is_dense = false; //contains nans + pcl_conversions::toPCL(scan_msg->header, cloud_msg->header); ++ sensor_msgs::PointCloud2 out_cloud; ++ pcl::toROSMsg(*cloud_msg, out_cloud); + +- cloud_publisher_.publish(cloud_msg); ++ cloud_publisher_.publish(out_cloud); + } + + } //namespace scan_tools diff --git a/distros/noetic/patch/ros-noetic-sick-tim.patch b/distros/noetic/patch/ros-noetic-sick-tim.patch new file mode 100644 index 000000000..b2935a76a --- /dev/null +++ b/distros/noetic/patch/ros-noetic-sick-tim.patch @@ -0,0 +1,87 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cde5172..c2d83aa 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -12,6 +12,7 @@ find_package(catkin REQUIRED + ) + + find_package(PkgConfig REQUIRED) ++pkg_check_modules(libudev libudev) + pkg_check_modules(libusb libusb-1.0) + + find_package(Boost REQUIRED COMPONENTS system) +@@ -24,7 +25,7 @@ catkin_package( + LIBRARIES sick_tim_3xx + INCLUDE_DIRS include) + +-include_directories(include ${catkin_INCLUDE_DIRS} ${libusb_INCLUDE_DIRS}) ++include_directories(include ${catkin_INCLUDE_DIRS} ${libudev_INCLUDE_DIRS} ${libusb_INCLUDE_DIRS}) + + add_library(sick_tim_3xx + src/sick_tim_common.cpp +@@ -34,6 +35,7 @@ add_library(sick_tim_3xx + add_dependencies(sick_tim_3xx ${PROJECT_NAME}_gencfg ${catkin_EXPORTED_TARGETS}) + target_link_libraries(sick_tim_3xx + ${catkin_LIBRARIES} ++ ${libudev_LIBRARIES} + ${libusb_LIBRARIES}) + + add_executable(sick_tim310s01 +diff --git a/include/sick_tim/sick_tim_common_tcp.h b/include/sick_tim/sick_tim_common_tcp.h +index 08263a9..9a94ae7 100644 +--- a/include/sick_tim/sick_tim_common_tcp.h ++++ b/include/sick_tim/sick_tim_common_tcp.h +@@ -72,7 +72,7 @@ protected: + void checkDeadline(); + + private: +- boost::asio::io_service io_service_; ++ boost::asio::io_context io_service_; + boost::asio::ip::tcp::socket socket_; + boost::asio::deadline_timer deadline_; + boost::asio::streambuf input_buffer_; +@@ -92,4 +92,3 @@ inline void SickTimCommonTcp::handleRead(boost::system::error_code error, size_t + + } /* namespace sick_tim */ + #endif /* SICK_TIM3XX_COMMON_TCP_H */ +- +diff --git a/src/sick_tim_common_tcp.cpp b/src/sick_tim_common_tcp.cpp +index 346acf4..0c40367 100644 +--- a/src/sick_tim_common_tcp.cpp ++++ b/src/sick_tim_common_tcp.cpp +@@ -71,12 +71,11 @@ using boost::lambda::_1; + int SickTimCommonTcp::init_device() + { + // Resolve the supplied hostname +- tcp::resolver::iterator iterator; ++ tcp::resolver::results_type results; + try + { + tcp::resolver resolver(io_service_); +- tcp::resolver::query query(hostname_, port_); +- iterator = resolver.resolve(query); ++ results = resolver.resolve(hostname_, port_); + } + catch (boost::system::system_error &e) + { +@@ -88,9 +87,9 @@ int SickTimCommonTcp::init_device() + // Try to connect to all possible endpoints + boost::system::error_code ec; + bool success = false; +- for ( ; iterator != tcp::resolver::iterator(); ++iterator) ++ for (const auto& endpoint : results) + { +- std::string repr = boost::lexical_cast(iterator->endpoint()); ++ std::string repr = boost::lexical_cast(endpoint.endpoint()); + socket_.close(); + + // Set the time out length +@@ -99,7 +98,7 @@ int SickTimCommonTcp::init_device() + + ec = boost::asio::error::would_block; + ROS_DEBUG("Attempting to connect to %s", repr.c_str()); +- socket_.async_connect(iterator->endpoint(), boost::lambda::var(ec) = _1); ++ socket_.async_connect(endpoint.endpoint(), boost::lambda::var(ec) = _1); + + // Wait until timeout + do io_service_.run_one(); while (ec == boost::asio::error::would_block); diff --git a/distros/noetic/patch/ros-noetic-slam-toolbox.patch b/distros/noetic/patch/ros-noetic-slam-toolbox.patch new file mode 100644 index 000000000..26d997b1e --- /dev/null +++ b/distros/noetic/patch/ros-noetic-slam-toolbox.patch @@ -0,0 +1,169 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b423d97..17e60c8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -40,6 +40,7 @@ find_package(Cholmod REQUIRED) + find_package(LAPACK REQUIRED) + find_package(Ceres REQUIRED COMPONENTS SuiteSparse) + find_package(rostest REQUIRED) ++find_package(TBB REQUIRED CONFIG) + + set(CMAKE_INCLUDE_CURRENT_DIR ON) + add_definitions(-DQT_NO_KEYWORDS) +@@ -90,7 +91,7 @@ add_library(ceres_solver_plugin solvers/ceres_solver.cpp) + target_link_libraries(ceres_solver_plugin ${catkin_LIBRARIES} + ${CERES_LIBRARIES} + ${Boost_LIBRARIES} +- ${TBB_LIBRARIES} ++ TBB::tbb + ) + + #### Tool lib for mapping +diff --git a/lib/karto_sdk/CMakeLists.txt b/lib/karto_sdk/CMakeLists.txt +index ad6ef02..15eab81 100644 +--- a/lib/karto_sdk/CMakeLists.txt ++++ b/lib/karto_sdk/CMakeLists.txt +@@ -8,7 +8,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") + find_package(catkin REQUIRED) + find_package(Eigen3 REQUIRED) + find_package(Boost REQUIRED system serialization filesystem thread) +-find_package(TBB REQUIRED) ++find_package(TBB REQUIRED CONFIG) + add_compile_options(-std=c++17) + + catkin_package( +@@ -26,7 +26,7 @@ add_definitions(${EIGEN3_DEFINITIONS}) + + include_directories(include ${catkin_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${TBB_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) + add_library(kartoSlamToolbox SHARED src/Karto.cpp src/Mapper.cpp) +-target_link_libraries(kartoSlamToolbox ${Boost_LIBRARIES} ${TBB_LIBRARIES}) ++target_link_libraries(kartoSlamToolbox ${Boost_LIBRARIES} TBB::tbb) + + install(DIRECTORY include/ DESTINATION include) + install(TARGETS kartoSlamToolbox +diff --git a/lib/karto_sdk/include/karto_sdk/Karto.h b/lib/karto_sdk/include/karto_sdk/Karto.h +index c4c4f27..5373b46 100644 +--- a/lib/karto_sdk/include/karto_sdk/Karto.h ++++ b/lib/karto_sdk/include/karto_sdk/Karto.h +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + #include + + #include +diff --git a/lib/karto_sdk/include/karto_sdk/Mapper.h b/lib/karto_sdk/include/karto_sdk/Mapper.h +index 2a439c6..94164f3 100644 +--- a/lib/karto_sdk/include/karto_sdk/Mapper.h ++++ b/lib/karto_sdk/include/karto_sdk/Mapper.h +@@ -26,7 +26,7 @@ + #include + + #include "tbb/parallel_for.h" +-#include "tbb/parallel_do.h" ++#include "tbb/parallel_for_each.h" + #include "tbb/blocked_range.h" + #include + #include +diff --git a/lib/karto_sdk/src/Mapper.cpp b/lib/karto_sdk/src/Mapper.cpp +index 7466216..97384d7 100644 +--- a/lib/karto_sdk/src/Mapper.cpp ++++ b/lib/karto_sdk/src/Mapper.cpp +@@ -776,7 +776,7 @@ namespace karto + m_nAngles = nAngles; + m_searchAngleResolution = searchAngleResolution; + m_doPenalize = doPenalize; +- tbb::parallel_do(m_yPoses, (*this) ); ++ tbb::parallel_for_each(m_yPoses, (*this) ); + + // find value of best response (in [0; 1]) + kt_double bestResponse = -1; +diff --git a/solvers/ceres_solver.cpp b/solvers/ceres_solver.cpp +index 99a03a7..88da9f6 100644 +--- a/solvers/ceres_solver.cpp ++++ b/solvers/ceres_solver.cpp +@@ -341,9 +341,9 @@ void CeresSolver::AddConstraint(karto::Edge* pEdge) + cost_function, loss_function_, + &node1it->second(0), &node1it->second(1), &node1it->second(2), + &node2it->second(0), &node2it->second(1), &node2it->second(2)); +- problem_->SetParameterization(&node1it->second(2), ++ problem_->SetManifold(&node1it->second(2), + angle_local_parameterization_); +- problem_->SetParameterization(&node2it->second(2), ++ problem_->SetManifold(&node2it->second(2), + angle_local_parameterization_); + + blocks_->insert(std::pair( +diff --git a/solvers/ceres_solver.hpp b/solvers/ceres_solver.hpp +index 9c0f060..edcd2a2 100644 +--- a/solvers/ceres_solver.hpp ++++ b/solvers/ceres_solver.hpp +@@ -15,7 +15,7 @@ + + #include + #include +-#include ++#include + #include + #include + +@@ -57,7 +57,7 @@ private: + ceres::Problem::Options options_problem_; + ceres::LossFunction* loss_function_; + ceres::Problem* problem_; +- ceres::LocalParameterization* angle_local_parameterization_; ++ ceres::Manifold* angle_local_parameterization_; + bool was_constant_set_, debug_logging_; + + // graph +diff --git a/solvers/ceres_utils.h b/solvers/ceres_utils.h +index 08b5f62..021d1b1 100644 +--- a/solvers/ceres_utils.h ++++ b/solvers/ceres_utils.h +@@ -4,7 +4,7 @@ + */ + + #include +-#include ++#include + #include + #include + +@@ -34,6 +34,24 @@ template inline T NormalizeAngle(const T& angle_radians) + class AngleLocalParameterization + { + public: ++ template ++ bool Plus(const T* x_radians, ++ const T* delta_radians, ++ T* x_plus_delta_radians) const { ++ *x_plus_delta_radians = NormalizeAngle(*x_radians + *delta_radians); ++ return true; ++ } ++ ++ template ++ bool Minus(const T* y_radians, ++ const T* x_radians, ++ T* y_minus_x_radians) const { ++ *y_minus_x_radians = ++ NormalizeAngle(*y_radians) - NormalizeAngle(*x_radians); ++ ++ return true; ++ } ++ + template + bool operator()(const T* theta_radians, const T* delta_theta_radians, T* theta_radians_plus_delta) const + { +@@ -41,9 +59,9 @@ class AngleLocalParameterization + return true; + } + +- static ceres::LocalParameterization* Create() ++ static ceres::Manifold* Create() + { +- return (new ceres::AutoDiffLocalParameterization); ++ return (new ceres::AutoDiffManifold); + } + }; + diff --git a/distros/noetic/patch/ros-noetic-socketcan-bridge.patch b/distros/noetic/patch/ros-noetic-socketcan-bridge.patch new file mode 100644 index 000000000..d925759f3 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-socketcan-bridge.patch @@ -0,0 +1,56 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 19961417..cf82e480 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -13,7 +13,10 @@ find_package(catkin REQUIRED + roscpp + socketcan_interface + ) +- ++find_package(Boost REQUIRED ++ COMPONENTS ++ filesystem thread ++) + catkin_package( + INCLUDE_DIRS + include +@@ -63,6 +66,7 @@ add_executable(socketcan_to_topic_node + ) + target_link_libraries(socketcan_to_topic_node + socketcan_to_topic ++ ${Boost_LIBRARIES} + ${catkin_LIBRARIES} + ) + +@@ -73,6 +77,7 @@ add_executable(topic_to_socketcan_node + ) + target_link_libraries(topic_to_socketcan_node + topic_to_socketcan ++ ${Boost_LIBRARIES} + ${catkin_LIBRARIES} + ) + +@@ -83,6 +88,7 @@ add_executable(${PROJECT_NAME}_node + target_link_libraries(${PROJECT_NAME}_node + topic_to_socketcan + socketcan_to_topic ++ ${Boost_LIBRARIES} + ${catkin_LIBRARIES} + ) + +@@ -128,6 +134,7 @@ if(CATKIN_ENABLE_TESTING) + ) + target_link_libraries(test_to_socketcan + topic_to_socketcan ++ ${Boost_LIBRARIES} + ${catkin_LIBRARIES} + ) + +@@ -138,6 +145,7 @@ if(CATKIN_ENABLE_TESTING) + target_link_libraries(test_to_topic + socketcan_to_topic + topic_to_socketcan ++ ${Boost_LIBRARIES} + ${catkin_LIBRARIES} + ) + diff --git a/distros/noetic/patch/ros-noetic-socketcan-interface.patch b/distros/noetic/patch/ros-noetic-socketcan-interface.patch new file mode 100644 index 000000000..ac78c2a66 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-socketcan-interface.patch @@ -0,0 +1,46 @@ +diff --git a/include/socketcan_interface/asio_base.h b/include/socketcan_interface/asio_base.h +index 8bd2eeb..fbdae2c 100644 +--- a/include/socketcan_interface/asio_base.h ++++ b/include/socketcan_interface/asio_base.h +@@ -22,7 +22,7 @@ template class AsioDriver : public DriverInterface{ + boost::mutex socket_mutex_; + + protected: +- boost::asio::io_service io_service_; ++ boost::asio::io_context io_service_; + #if BOOST_ASIO_VERSION >= 101200 // Boost 1.66+ + boost::asio::io_context::strand strand_; + #else +@@ -35,7 +35,7 @@ protected: + virtual bool enqueue(const Frame & msg) = 0; + + void dispatchFrame(const Frame &msg){ +- strand_.post([this, msg]{ frame_dispatcher_.dispatch(msg.key(), msg);} ); // copies msg ++ boost::asio::post(strand_, [this, msg]{ frame_dispatcher_.dispatch(msg.key(), msg);} ); // copies msg + } + void setErrorCode(const boost::system::error_code& error){ + boost::mutex::scoped_lock lock(state_mutex_); +@@ -88,8 +88,8 @@ public: + setNotReady(); + + if(getState().driver_state == State::open){ +- io_service_.reset(); +- boost::asio::io_service::work work(io_service_); ++ io_service_.restart(); ++ auto work = boost::asio::make_work_guard(io_service_); + setDriverState(State::ready); + + boost::thread post_thread([this]() { io_service_.run(); }); +@@ -97,7 +97,11 @@ public: + triggerReadSome(); + + boost::system::error_code ec; +- io_service_.run(ec); ++ try { ++ io_service_.run(); ++ } catch (const boost::system::system_error& e) { ++ ec = e.code(); ++ } + setErrorCode(ec); + + setNotReady(); diff --git a/distros/noetic/patch/ros-noetic-soem.patch b/distros/noetic/patch/ros-noetic-soem.patch new file mode 100644 index 000000000..69b659e01 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-soem.patch @@ -0,0 +1,13 @@ +diff --git a/SOEM/CMakeLists.txt b/SOEM/CMakeLists.txt +index de2953a..7bf208c 100644 +--- a/SOEM/CMakeLists.txt ++++ b/SOEM/CMakeLists.txt +@@ -24,7 +24,7 @@ if(WIN32) + set(OS_LIBS wpcap.lib Packet.lib Ws2_32.lib Winmm.lib) + elseif(UNIX AND NOT APPLE) + set(OS "linux") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -D_GNU_SOURCE") + set(OS_LIBS pthread rt) + elseif(APPLE) + # This must come *before* linux or MacOSX will identify as Unix. diff --git a/distros/noetic/patch/ros-noetic-sophus.patch b/distros/noetic/patch/ros-noetic-sophus.patch new file mode 100644 index 000000000..da676b4f4 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-sophus.patch @@ -0,0 +1,27 @@ +From 8b4a030466df6f85314ed5fad4fa395fe4c9610d Mon Sep 17 00:00:00 2001 +From: Silvio Traversaro +Date: Sat, 14 Oct 2023 16:34:43 +0200 +Subject: [PATCH] Remove Werror for sophus + +--- + CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4983112..29e2c24 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -16,11 +16,11 @@ set(CMAKE_CXX_STANDARD 11) + IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") + SET(CMAKE_CXX_FLAGS_RELEASE "-O3") +- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -Wno-deprecated-register -Qunused-arguments -fcolor-diagnostics") ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-register -Qunused-arguments -fcolor-diagnostics") + ELSEIF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") + SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") + SET(CMAKE_CXX_FLAGS_RELEASE "-O3") +- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -std=c++11 -Wno-deprecated-declarations -ftemplate-backtrace-limit=0") ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations -ftemplate-backtrace-limit=0") + SET(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_DEBUG} --coverage -fno-inline -fno-inline-small-functions -fno-default-inline") + SET(CMAKE_EXE_LINKER_FLAGS_COVERAGE "${CMAKE_EXE_LINKER_FLAGS_DEBUG} --coverage") + SET(CMAKE_SHARED_LINKER_FLAGS_COVERAGE "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} --coverage") diff --git a/distros/noetic/patch/ros-noetic-spacenav-node.patch b/distros/noetic/patch/ros-noetic-spacenav-node.patch new file mode 100644 index 000000000..c88b5f57a --- /dev/null +++ b/distros/noetic/patch/ros-noetic-spacenav-node.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1b1ef70..ece7764 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,7 @@ + cmake_minimum_required(VERSION 3.5) + project(spacenav_node) + +-set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + + # Load catkin and all dependencies required for this package +@@ -11,9 +11,13 @@ catkin_package(DEPENDS geometry_msgs sensor_msgs) + + roslint_cpp() + ++find_library(SPNAV_LIBRARY ++ NAMES spnav ++) ++ + include_directories(${catkin_INCLUDE_DIRS}) + add_executable(spacenav_node src/spacenav_node.cpp) +-target_link_libraries (spacenav_node spnav X11 ${catkin_LIBRARIES}) ++target_link_libraries (spacenav_node ${SPNAV_LIBRARY} X11 ${catkin_LIBRARIES}) + + if(CATKIN_ENABLE_TESTING) + roslint_add_test() diff --git a/distros/noetic/patch/ros-noetic-sparse-bundle-adjustment.patch b/distros/noetic/patch/ros-noetic-sparse-bundle-adjustment.patch new file mode 100644 index 000000000..5e51d97ed --- /dev/null +++ b/distros/noetic/patch/ros-noetic-sparse-bundle-adjustment.patch @@ -0,0 +1,1157 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a941cfe..00e9107 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,18 +1,18 @@ + cmake_minimum_required(VERSION 3.1) + project(sparse_bundle_adjustment) + ++list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake) ++ + if(NOT CMAKE_CXX_STANDARD) + set(CMAKE_CXX_STANDARD 11) + endif() + + find_package(catkin REQUIRED COMPONENTS roscpp) + find_package(Eigen3 REQUIRED) +-find_package(suitesparse QUIET) +-if(NOT SuiteSparse_FOUND) +- set(SuiteSparse_LIBRARIES blas lapack cholmod cxsparse) +-endif() ++find_package(SuiteSparse REQUIRED) ++find_package(CXSparse) + +-include_directories(${catkin_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${SuiteSparse_INCLUDE_DIRS}) ++include_directories(${catkin_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${SUITESPARSE_INCLUDE_DIRS} ${CXSPARSE_INCLUDE_DIRS}) + add_definitions(${EIGEN3_DEFINITIONS}) + INCLUDE_DIRECTORIES(include) + +@@ -26,7 +26,7 @@ add_definitions(-DSBA_CHOLMOD) + # SBA library + add_library(sba src/sba.cpp src/spa.cpp src/spa2d.cpp src/csparse.cpp src/proj.cpp src/node.cpp src/sba_file_io.cpp) + #rosbuild_add_compile_flags(sba ${SSE_FLAGS}) +-target_link_libraries(sba ${SuiteSparse_LIBRARIES}) ++target_link_libraries(sba ${SUITESPARSE_LIBRARIES} ${CXSPARSE_LIBRARIES}) + + install(DIRECTORY include/sparse_bundle_adjustment/ + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}) +diff --git a/cmake/FindCXSparse.cmake b/cmake/FindCXSparse.cmake +new file mode 100644 +index 0000000..5c15353 +--- /dev/null ++++ b/cmake/FindCXSparse.cmake +@@ -0,0 +1,262 @@ ++# Ceres Solver - A fast non-linear least squares minimizer ++# Copyright 2015 Google Inc. All rights reserved. ++# http://ceres-solver.org/ ++# ++# Redistribution and use in source and binary forms, with or without ++# modification, are permitted provided that the following conditions are met: ++# ++# * Redistributions of source code must retain the above copyright notice, ++# this list of conditions and the following disclaimer. ++# * Redistributions in binary form must reproduce the above copyright notice, ++# this list of conditions and the following disclaimer in the documentation ++# and/or other materials provided with the distribution. ++# * Neither the name of Google Inc. nor the names of its contributors may be ++# used to endorse or promote products derived from this software without ++# specific prior written permission. ++# ++# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ++# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ++# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ++# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ++# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ++# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ++# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ++# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++# POSSIBILITY OF SUCH DAMAGE. ++# ++# Author: alexs.mac@gmail.com (Alex Stewart) ++# ++ ++# FindCXSparse.cmake - Find CXSparse libraries & dependencies. ++# ++# This module defines the following variables which should be referenced ++# by the caller to use the library. ++# ++# CXSPARSE_FOUND: TRUE iff CXSparse and all dependencies have been found. ++# CXSPARSE_INCLUDE_DIRS: Include directories for CXSparse. ++# CXSPARSE_LIBRARIES: Libraries for CXSparse and all dependencies. ++# ++# CXSPARSE_VERSION: Extracted from cs.h. ++# CXSPARSE_MAIN_VERSION: Equal to 3 if CXSPARSE_VERSION = 3.1.2 ++# CXSPARSE_SUB_VERSION: Equal to 1 if CXSPARSE_VERSION = 3.1.2 ++# CXSPARSE_SUBSUB_VERSION: Equal to 2 if CXSPARSE_VERSION = 3.1.2 ++# ++# The following variables control the behaviour of this module: ++# ++# CXSPARSE_INCLUDE_DIR_HINTS: List of additional directories in which to ++# search for CXSparse includes, ++# e.g: /timbuktu/include. ++# CXSPARSE_LIBRARY_DIR_HINTS: List of additional directories in which to ++# search for CXSparse libraries, e.g: /timbuktu/lib. ++# ++# The following variables are also defined by this module, but in line with ++# CMake recommended FindPackage() module style should NOT be referenced directly ++# by callers (use the plural variables detailed above instead). These variables ++# do however affect the behaviour of the module via FIND_[PATH/LIBRARY]() which ++# are NOT re-called (i.e. search for library is not repeated) if these variables ++# are set with valid values _in the CMake cache_. This means that if these ++# variables are set directly in the cache, either by the user in the CMake GUI, ++# or by the user passing -DVAR=VALUE directives to CMake when called (which ++# explicitly defines a cache variable), then they will be used verbatim, ++# bypassing the HINTS variables and other hard-coded search locations. ++# ++# CXSPARSE_INCLUDE_DIR: Include directory for CXSparse, not including the ++# include directory of any dependencies. ++# CXSPARSE_LIBRARY: CXSparse library, not including the libraries of any ++# dependencies. ++ ++# Reset CALLERS_CMAKE_FIND_LIBRARY_PREFIXES to its value when ++# FindCXSparse was invoked. ++macro(CXSPARSE_RESET_FIND_LIBRARY_PREFIX) ++ if (MSVC) ++ set(CMAKE_FIND_LIBRARY_PREFIXES "${CALLERS_CMAKE_FIND_LIBRARY_PREFIXES}") ++ endif (MSVC) ++endmacro(CXSPARSE_RESET_FIND_LIBRARY_PREFIX) ++ ++# Called if we failed to find CXSparse or any of it's required dependencies, ++# unsets all public (designed to be used externally) variables and reports ++# error message at priority depending upon [REQUIRED/QUIET/] argument. ++macro(CXSPARSE_REPORT_NOT_FOUND REASON_MSG) ++ unset(CXSPARSE_FOUND) ++ unset(CXSPARSE_INCLUDE_DIRS) ++ unset(CXSPARSE_LIBRARIES) ++ # Make results of search visible in the CMake GUI if CXSparse has not ++ # been found so that user does not have to toggle to advanced view. ++ mark_as_advanced(CLEAR CXSPARSE_INCLUDE_DIR ++ CXSPARSE_LIBRARY) ++ ++ cxsparse_reset_find_library_prefix() ++ ++ # Note _FIND_[REQUIRED/QUIETLY] variables defined by FindPackage() ++ # use the camelcase library name, not uppercase. ++ if (CXSparse_FIND_QUIETLY) ++ message(STATUS "Failed to find CXSparse - " ${REASON_MSG} ${ARGN}) ++ elseif (CXSparse_FIND_REQUIRED) ++ message(FATAL_ERROR "Failed to find CXSparse - " ${REASON_MSG} ${ARGN}) ++ else() ++ # Neither QUIETLY nor REQUIRED, use no priority which emits a message ++ # but continues configuration and allows generation. ++ message("-- Failed to find CXSparse - " ${REASON_MSG} ${ARGN}) ++ endif () ++ return() ++endmacro(CXSPARSE_REPORT_NOT_FOUND) ++ ++# Protect against any alternative find_package scripts for this library having ++# been called previously (in a client project) which set CXSPARSE_FOUND, but not ++# the other variables we require / set here which could cause the search logic ++# here to fail. ++unset(CXSPARSE_FOUND) ++ ++# Handle possible presence of lib prefix for libraries on MSVC, see ++# also CXSPARSE_RESET_FIND_LIBRARY_PREFIX(). ++if (MSVC) ++ # Preserve the caller's original values for CMAKE_FIND_LIBRARY_PREFIXES ++ # s/t we can set it back before returning. ++ set(CALLERS_CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") ++ # The empty string in this list is important, it represents the case when ++ # the libraries have no prefix (shared libraries / DLLs). ++ set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "" "${CMAKE_FIND_LIBRARY_PREFIXES}") ++endif (MSVC) ++ ++# On macOS, add the Homebrew prefix (with appropriate suffixes) to the ++# respective HINTS directories (after any user-specified locations). This ++# handles Homebrew installations into non-standard locations (not /usr/local). ++# We do not use CMAKE_PREFIX_PATH for this as given the search ordering of ++# find_xxx(), doing so would override any user-specified HINTS locations with ++# the Homebrew version if it exists. ++if (CMAKE_SYSTEM_NAME MATCHES "Darwin") ++ find_program(HOMEBREW_EXECUTABLE brew) ++ mark_as_advanced(FORCE HOMEBREW_EXECUTABLE) ++ if (HOMEBREW_EXECUTABLE) ++ # Detected a Homebrew install, query for its install prefix. ++ execute_process(COMMAND ${HOMEBREW_EXECUTABLE} --prefix ++ OUTPUT_VARIABLE HOMEBREW_INSTALL_PREFIX ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ message(STATUS "Detected Homebrew with install prefix: " ++ "${HOMEBREW_INSTALL_PREFIX}, adding to CMake search paths.") ++ list(APPEND CXSPARSE_INCLUDE_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/include") ++ list(APPEND CXSPARSE_LIBRARY_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/lib") ++ endif() ++endif() ++ ++# Search user-installed locations first, so that we prefer user installs ++# to system installs where both exist. ++# ++# TODO: Add standard Windows search locations for CXSparse. ++list(APPEND CXSPARSE_CHECK_INCLUDE_DIRS ++ /usr/local/include ++ /usr/local/homebrew/include # Mac OS X ++ /opt/local/var/macports/software # Mac OS X. ++ /opt/local/include ++ /usr/include) ++list(APPEND CXSPARSE_CHECK_LIBRARY_DIRS ++ /usr/local/lib ++ /usr/local/homebrew/lib # Mac OS X. ++ /opt/local/lib ++ /usr/lib) ++# Additional suffixes to try appending to each search path. ++list(APPEND CXSPARSE_CHECK_PATH_SUFFIXES ++ suitesparse) # Linux/Windows ++ ++# Search supplied hint directories first if supplied. ++find_path(CXSPARSE_INCLUDE_DIR ++ NAMES cs.h ++ HINTS ${CXSPARSE_INCLUDE_DIR_HINTS} ++ PATHS ${CXSPARSE_CHECK_INCLUDE_DIRS} ++ PATH_SUFFIXES ${CXSPARSE_CHECK_PATH_SUFFIXES}) ++if (NOT CXSPARSE_INCLUDE_DIR OR ++ NOT EXISTS ${CXSPARSE_INCLUDE_DIR}) ++ cxsparse_report_not_found( ++ "Could not find CXSparse include directory, set CXSPARSE_INCLUDE_DIR " ++ "to directory containing cs.h") ++endif (NOT CXSPARSE_INCLUDE_DIR OR ++ NOT EXISTS ${CXSPARSE_INCLUDE_DIR}) ++ ++find_library(CXSPARSE_LIBRARY NAMES cxsparse ++ HINTS ${CXSPARSE_LIBRARY_DIR_HINTS} ++ PATHS ${CXSPARSE_CHECK_LIBRARY_DIRS} ++ PATH_SUFFIXES ${CXSPARSE_CHECK_PATH_SUFFIXES}) ++if (NOT CXSPARSE_LIBRARY OR ++ NOT EXISTS ${CXSPARSE_LIBRARY}) ++ cxsparse_report_not_found( ++ "Could not find CXSparse library, set CXSPARSE_LIBRARY " ++ "to full path to libcxsparse.") ++endif (NOT CXSPARSE_LIBRARY OR ++ NOT EXISTS ${CXSPARSE_LIBRARY}) ++ ++# Mark internally as found, then verify. CXSPARSE_REPORT_NOT_FOUND() unsets ++# if called. ++set(CXSPARSE_FOUND TRUE) ++ ++# Extract CXSparse version from cs.h ++if (CXSPARSE_INCLUDE_DIR) ++ set(CXSPARSE_VERSION_FILE ${CXSPARSE_INCLUDE_DIR}/cs.h) ++ if (NOT EXISTS ${CXSPARSE_VERSION_FILE}) ++ cxsparse_report_not_found( ++ "Could not find file: ${CXSPARSE_VERSION_FILE} " ++ "containing version information in CXSparse install located at: " ++ "${CXSPARSE_INCLUDE_DIR}.") ++ else (NOT EXISTS ${CXSPARSE_VERSION_FILE}) ++ file(READ ${CXSPARSE_INCLUDE_DIR}/cs.h CXSPARSE_VERSION_FILE_CONTENTS) ++ ++ string(REGEX MATCH "#define CS_VER [0-9]+" ++ CXSPARSE_MAIN_VERSION "${CXSPARSE_VERSION_FILE_CONTENTS}") ++ string(REGEX REPLACE "#define CS_VER ([0-9]+)" "\\1" ++ CXSPARSE_MAIN_VERSION "${CXSPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define CS_SUBVER [0-9]+" ++ CXSPARSE_SUB_VERSION "${CXSPARSE_VERSION_FILE_CONTENTS}") ++ string(REGEX REPLACE "#define CS_SUBVER ([0-9]+)" "\\1" ++ CXSPARSE_SUB_VERSION "${CXSPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define CS_SUBSUB [0-9]+" ++ CXSPARSE_SUBSUB_VERSION "${CXSPARSE_VERSION_FILE_CONTENTS}") ++ string(REGEX REPLACE "#define CS_SUBSUB ([0-9]+)" "\\1" ++ CXSPARSE_SUBSUB_VERSION "${CXSPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 3.;1.;2 nonsense. ++ set(CXSPARSE_VERSION "${CXSPARSE_MAIN_VERSION}.${CXSPARSE_SUB_VERSION}.${CXSPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${CXSPARSE_VERSION_FILE}) ++endif (CXSPARSE_INCLUDE_DIR) ++ ++# Catch the case when the caller has set CXSPARSE_LIBRARY in the cache / GUI and ++# thus FIND_LIBRARY was not called, but specified library is invalid, otherwise ++# we would report CXSparse as found. ++# TODO: This regex for CXSparse library is pretty primitive, we use lowercase ++# for comparison to handle Windows using CamelCase library names, could ++# this check be better? ++string(TOLOWER "${CXSPARSE_LIBRARY}" LOWERCASE_CXSPARSE_LIBRARY) ++if (CXSPARSE_LIBRARY AND ++ EXISTS ${CXSPARSE_LIBRARY} AND ++ NOT "${LOWERCASE_CXSPARSE_LIBRARY}" MATCHES ".*cxsparse[^/]*") ++ cxsparse_report_not_found( ++ "Caller defined CXSPARSE_LIBRARY: " ++ "${CXSPARSE_LIBRARY} does not match CXSparse.") ++endif (CXSPARSE_LIBRARY AND ++ EXISTS ${CXSPARSE_LIBRARY} AND ++ NOT "${LOWERCASE_CXSPARSE_LIBRARY}" MATCHES ".*cxsparse[^/]*") ++ ++# Set standard CMake FindPackage variables if found. ++if (CXSPARSE_FOUND) ++ set(CXSPARSE_INCLUDE_DIRS ${CXSPARSE_INCLUDE_DIR}) ++ set(CXSPARSE_LIBRARIES ${CXSPARSE_LIBRARY}) ++endif (CXSPARSE_FOUND) ++ ++cxsparse_reset_find_library_prefix() ++ ++# Handle REQUIRED / QUIET optional arguments and version. ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(CXSparse ++ REQUIRED_VARS CXSPARSE_INCLUDE_DIRS CXSPARSE_LIBRARIES ++ VERSION_VAR CXSPARSE_VERSION) ++ ++# Only mark internal variables as advanced if we found CXSparse, otherwise ++# leave them visible in the standard GUI for the user to set manually. ++if (CXSPARSE_FOUND) ++ mark_as_advanced(FORCE CXSPARSE_INCLUDE_DIR ++ CXSPARSE_LIBRARY) ++endif (CXSPARSE_FOUND) ++ +diff --git a/cmake/FindSuiteSparse.cmake b/cmake/FindSuiteSparse.cmake +new file mode 100644 +index 0000000..5708bf3 +--- /dev/null ++++ b/cmake/FindSuiteSparse.cmake +@@ -0,0 +1,531 @@ ++# Ceres Solver - A fast non-linear least squares minimizer ++# Copyright 2015 Google Inc. All rights reserved. ++# http://ceres-solver.org/ ++# ++# Redistribution and use in source and binary forms, with or without ++# modification, are permitted provided that the following conditions are met: ++# ++# * Redistributions of source code must retain the above copyright notice, ++# this list of conditions and the following disclaimer. ++# * Redistributions in binary form must reproduce the above copyright notice, ++# this list of conditions and the following disclaimer in the documentation ++# and/or other materials provided with the distribution. ++# * Neither the name of Google Inc. nor the names of its contributors may be ++# used to endorse or promote products derived from this software without ++# specific prior written permission. ++# ++# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ++# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ++# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ++# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ++# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ++# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ++# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ++# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++# POSSIBILITY OF SUCH DAMAGE. ++# ++# Author: alexs.mac@gmail.com (Alex Stewart) ++# ++ ++# FindSuiteSparse.cmake - Find SuiteSparse libraries & dependencies. ++# ++# This module defines the following variables: ++# ++# SUITESPARSE_FOUND: TRUE iff SuiteSparse and all dependencies have been found. ++# SUITESPARSE_INCLUDE_DIRS: Include directories for all SuiteSparse components. ++# SUITESPARSE_LIBRARIES: Libraries for all SuiteSparse component libraries and ++# dependencies. ++# SUITESPARSE_VERSION: Extracted from UFconfig.h (<= v3) or ++# SuiteSparse_config.h (>= v4). ++# SUITESPARSE_MAIN_VERSION: Equal to 4 if SUITESPARSE_VERSION = 4.2.1 ++# SUITESPARSE_SUB_VERSION: Equal to 2 if SUITESPARSE_VERSION = 4.2.1 ++# SUITESPARSE_SUBSUB_VERSION: Equal to 1 if SUITESPARSE_VERSION = 4.2.1 ++# ++# SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION: TRUE iff running ++# on Ubuntu, SUITESPARSE_VERSION is 3.4.0 and found SuiteSparse is a system ++# install, in which case found version of SuiteSparse cannot be used to link ++# a shared library due to a bug (static linking is unaffected). ++# ++# The following variables control the behaviour of this module: ++# ++# SUITESPARSE_INCLUDE_DIR_HINTS: List of additional directories in which to ++# search for SuiteSparse includes, ++# e.g: /timbuktu/include. ++# SUITESPARSE_LIBRARY_DIR_HINTS: List of additional directories in which to ++# search for SuiteSparse libraries, ++# e.g: /timbuktu/lib. ++# ++# The following variables define the presence / includes & libraries for the ++# SuiteSparse components searched for, the SUITESPARSE_XX variables are the ++# union of the variables for all components. ++# ++# == Symmetric Approximate Minimum Degree (AMD) ++# AMD_FOUND ++# AMD_INCLUDE_DIR ++# AMD_LIBRARY ++# ++# == Constrained Approximate Minimum Degree (CAMD) ++# CAMD_FOUND ++# CAMD_INCLUDE_DIR ++# CAMD_LIBRARY ++# ++# == Column Approximate Minimum Degree (COLAMD) ++# COLAMD_FOUND ++# COLAMD_INCLUDE_DIR ++# COLAMD_LIBRARY ++# ++# Constrained Column Approximate Minimum Degree (CCOLAMD) ++# CCOLAMD_FOUND ++# CCOLAMD_INCLUDE_DIR ++# CCOLAMD_LIBRARY ++# ++# == Sparse Supernodal Cholesky Factorization and Update/Downdate (CHOLMOD) ++# CHOLMOD_FOUND ++# CHOLMOD_INCLUDE_DIR ++# CHOLMOD_LIBRARY ++# ++# == Multifrontal Sparse QR (SuiteSparseQR) ++# SUITESPARSEQR_FOUND ++# SUITESPARSEQR_INCLUDE_DIR ++# SUITESPARSEQR_LIBRARY ++# ++# == Common configuration for all but CSparse (SuiteSparse version >= 4). ++# SUITESPARSE_CONFIG_FOUND ++# SUITESPARSE_CONFIG_INCLUDE_DIR ++# SUITESPARSE_CONFIG_LIBRARY ++# ++# == Common configuration for all but CSparse (SuiteSparse version < 4). ++# UFCONFIG_FOUND ++# UFCONFIG_INCLUDE_DIR ++# ++# Optional SuiteSparse Dependencies: ++# ++# == Serial Graph Partitioning and Fill-reducing Matrix Ordering (METIS) ++# METIS_FOUND ++# METIS_LIBRARY ++ ++# Reset CALLERS_CMAKE_FIND_LIBRARY_PREFIXES to its value when ++# FindSuiteSparse was invoked. ++macro(SUITESPARSE_RESET_FIND_LIBRARY_PREFIX) ++ if (MSVC) ++ set(CMAKE_FIND_LIBRARY_PREFIXES "${CALLERS_CMAKE_FIND_LIBRARY_PREFIXES}") ++ endif (MSVC) ++endmacro(SUITESPARSE_RESET_FIND_LIBRARY_PREFIX) ++ ++# Called if we failed to find SuiteSparse or any of it's required dependencies, ++# unsets all public (designed to be used externally) variables and reports ++# error message at priority depending upon [REQUIRED/QUIET/] argument. ++macro(SUITESPARSE_REPORT_NOT_FOUND REASON_MSG) ++ unset(SUITESPARSE_FOUND) ++ unset(SUITESPARSE_INCLUDE_DIRS) ++ unset(SUITESPARSE_LIBRARIES) ++ unset(SUITESPARSE_VERSION) ++ unset(SUITESPARSE_MAIN_VERSION) ++ unset(SUITESPARSE_SUB_VERSION) ++ unset(SUITESPARSE_SUBSUB_VERSION) ++ # Do NOT unset SUITESPARSE_FOUND_REQUIRED_VARS here, as it is used by ++ # FindPackageHandleStandardArgs() to generate the automatic error message on ++ # failure which highlights which components are missing. ++ ++ suitesparse_reset_find_library_prefix() ++ ++ # Note _FIND_[REQUIRED/QUIETLY] variables defined by FindPackage() ++ # use the camelcase library name, not uppercase. ++ if (SuiteSparse_FIND_QUIETLY) ++ message(STATUS "Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ elseif (SuiteSparse_FIND_REQUIRED) ++ message(FATAL_ERROR "Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ else() ++ # Neither QUIETLY nor REQUIRED, use no priority which emits a message ++ # but continues configuration and allows generation. ++ message("-- Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ endif (SuiteSparse_FIND_QUIETLY) ++ ++ # Do not call return(), s/t we keep processing if not called with REQUIRED ++ # and report all missing components, rather than bailing after failing to find ++ # the first. ++endmacro(SUITESPARSE_REPORT_NOT_FOUND) ++ ++# Protect against any alternative find_package scripts for this library having ++# been called previously (in a client project) which set SUITESPARSE_FOUND, but ++# not the other variables we require / set here which could cause the search ++# logic here to fail. ++unset(SUITESPARSE_FOUND) ++ ++# Handle possible presence of lib prefix for libraries on MSVC, see ++# also SUITESPARSE_RESET_FIND_LIBRARY_PREFIX(). ++if (MSVC) ++ # Preserve the caller's original values for CMAKE_FIND_LIBRARY_PREFIXES ++ # s/t we can set it back before returning. ++ set(CALLERS_CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") ++ # The empty string in this list is important, it represents the case when ++ # the libraries have no prefix (shared libraries / DLLs). ++ set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "" "${CMAKE_FIND_LIBRARY_PREFIXES}") ++endif (MSVC) ++ ++# On macOS, add the Homebrew prefix (with appropriate suffixes) to the ++# respective HINTS directories (after any user-specified locations). This ++# handles Homebrew installations into non-standard locations (not /usr/local). ++# We do not use CMAKE_PREFIX_PATH for this as given the search ordering of ++# find_xxx(), doing so would override any user-specified HINTS locations with ++# the Homebrew version if it exists. ++if (CMAKE_SYSTEM_NAME MATCHES "Darwin") ++ find_program(HOMEBREW_EXECUTABLE brew) ++ mark_as_advanced(FORCE HOMEBREW_EXECUTABLE) ++ if (HOMEBREW_EXECUTABLE) ++ # Detected a Homebrew install, query for its install prefix. ++ execute_process(COMMAND ${HOMEBREW_EXECUTABLE} --prefix ++ OUTPUT_VARIABLE HOMEBREW_INSTALL_PREFIX ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ message(STATUS "Detected Homebrew with install prefix: " ++ "${HOMEBREW_INSTALL_PREFIX}, adding to CMake search paths.") ++ list(APPEND SUITESPARSE_INCLUDE_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/include") ++ list(APPEND SUITESPARSE_LIBRARY_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/lib") ++ endif() ++endif() ++ ++# Specify search directories for include files and libraries (this is the union ++# of the search directories for all OSs). Search user-specified hint ++# directories first if supplied, and search user-installed locations first ++# so that we prefer user installs to system installs where both exist. ++list(APPEND SUITESPARSE_CHECK_INCLUDE_DIRS ++ /opt/local/include ++ /opt/local/include/ufsparse # Mac OS X ++ /usr/local/homebrew/include # Mac OS X ++ /usr/local/include ++ /usr/include) ++list(APPEND SUITESPARSE_CHECK_LIBRARY_DIRS ++ /opt/local/lib ++ /opt/local/lib/ufsparse # Mac OS X ++ /usr/local/homebrew/lib # Mac OS X ++ /usr/local/lib ++ /usr/lib) ++# Additional suffixes to try appending to each search path. ++list(APPEND SUITESPARSE_CHECK_PATH_SUFFIXES ++ suitesparse) # Windows/Ubuntu ++ ++# Wrappers to find_path/library that pass the SuiteSparse search hints/paths. ++# ++# suitesparse_find_component( [FILES name1 [name2 ...]] ++# [LIBRARIES name1 [name2 ...]] ++# [REQUIRED]) ++macro(suitesparse_find_component COMPONENT) ++ include(CMakeParseArguments) ++ set(OPTIONS REQUIRED) ++ set(MULTI_VALUE_ARGS FILES LIBRARIES) ++ cmake_parse_arguments(SUITESPARSE_FIND_${COMPONENT} ++ "${OPTIONS}" "" "${MULTI_VALUE_ARGS}" ${ARGN}) ++ ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS ${COMPONENT}_FOUND) ++ endif() ++ ++ set(${COMPONENT}_FOUND TRUE) ++ if (SUITESPARSE_FIND_${COMPONENT}_FILES) ++ find_path(${COMPONENT}_INCLUDE_DIR ++ NAMES ${SUITESPARSE_FIND_${COMPONENT}_FILES} ++ HINTS ${SUITESPARSE_INCLUDE_DIR_HINTS} ++ PATHS ${SUITESPARSE_CHECK_INCLUDE_DIRS} ++ PATH_SUFFIXES ${SUITESPARSE_CHECK_PATH_SUFFIXES}) ++ if (${COMPONENT}_INCLUDE_DIR) ++ message(STATUS "Found ${COMPONENT} headers in: " ++ "${${COMPONENT}_INCLUDE_DIR}") ++ mark_as_advanced(${COMPONENT}_INCLUDE_DIR) ++ else() ++ # Specified headers not found. ++ set(${COMPONENT}_FOUND FALSE) ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ suitesparse_report_not_found( ++ "Did not find ${COMPONENT} header (required SuiteSparse component).") ++ else() ++ message(STATUS "Did not find ${COMPONENT} header (optional " ++ "SuiteSparse component).") ++ # Hide optional vars from CMake GUI even if not found. ++ mark_as_advanced(${COMPONENT}_INCLUDE_DIR) ++ endif() ++ endif() ++ endif() ++ ++ if (SUITESPARSE_FIND_${COMPONENT}_LIBRARIES) ++ find_library(${COMPONENT}_LIBRARY ++ NAMES ${SUITESPARSE_FIND_${COMPONENT}_LIBRARIES} ++ HINTS ${SUITESPARSE_LIBRARY_DIR_HINTS} ++ PATHS ${SUITESPARSE_CHECK_LIBRARY_DIRS} ++ PATH_SUFFIXES ${SUITESPARSE_CHECK_PATH_SUFFIXES}) ++ if (${COMPONENT}_LIBRARY) ++ message(STATUS "Found ${COMPONENT} library: ${${COMPONENT}_LIBRARY}") ++ mark_as_advanced(${COMPONENT}_LIBRARY) ++ else () ++ # Specified libraries not found. ++ set(${COMPONENT}_FOUND FALSE) ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ suitesparse_report_not_found( ++ "Did not find ${COMPONENT} library (required SuiteSparse component).") ++ else() ++ message(STATUS "Did not find ${COMPONENT} library (optional SuiteSparse " ++ "dependency)") ++ # Hide optional vars from CMake GUI even if not found. ++ mark_as_advanced(${COMPONENT}_LIBRARY) ++ endif() ++ endif() ++ endif() ++endmacro() ++ ++# Given the number of components of SuiteSparse, and to ensure that the ++# automatic failure message generated by FindPackageHandleStandardArgs() ++# when not all required components are found is helpful, we maintain a list ++# of all variables that must be defined for SuiteSparse to be considered found. ++unset(SUITESPARSE_FOUND_REQUIRED_VARS) ++ ++# BLAS. ++find_package(BLAS QUIET) ++if (NOT BLAS_FOUND) ++ suitesparse_report_not_found( ++ "Did not find BLAS library (required for SuiteSparse).") ++endif (NOT BLAS_FOUND) ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS BLAS_FOUND) ++ ++# LAPACK. ++find_package(LAPACK QUIET) ++if (NOT LAPACK_FOUND) ++ suitesparse_report_not_found( ++ "Did not find LAPACK library (required for SuiteSparse).") ++endif (NOT LAPACK_FOUND) ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS LAPACK_FOUND) ++ ++suitesparse_find_component(AMD REQUIRED FILES amd.h LIBRARIES amd) ++suitesparse_find_component(CAMD REQUIRED FILES camd.h LIBRARIES camd) ++suitesparse_find_component(COLAMD REQUIRED FILES colamd.h LIBRARIES colamd) ++suitesparse_find_component(CCOLAMD REQUIRED FILES ccolamd.h LIBRARIES ccolamd) ++suitesparse_find_component(CHOLMOD REQUIRED FILES cholmod.h LIBRARIES cholmod) ++suitesparse_find_component( ++ SUITESPARSEQR REQUIRED FILES SuiteSparseQR.hpp LIBRARIES spqr) ++if (SUITESPARSEQR_FOUND) ++ # SuiteSparseQR may be compiled with Intel Threading Building Blocks, ++ # we assume that if TBB is installed, SuiteSparseQR was compiled with ++ # support for it, this will do no harm if it wasn't. ++ find_package(TBB QUIET) ++ if (TBB_FOUND) ++ message(STATUS "Found Intel Thread Building Blocks (TBB) library " ++ "(${TBB_VERSION}) assuming SuiteSparseQR was compiled " ++ "with TBB.") ++ # Add the TBB libraries to the SuiteSparseQR libraries (the only ++ # libraries to optionally depend on TBB). ++ list(APPEND SUITESPARSEQR_LIBRARY ${TBB_LIBRARIES}) ++ else() ++ message(STATUS "Did not find Intel TBB library, assuming SuiteSparseQR was " ++ "not compiled with TBB.") ++ endif() ++endif(SUITESPARSEQR_FOUND) ++ ++# UFconfig / SuiteSparse_config. ++# ++# If SuiteSparse version is >= 4 then SuiteSparse_config is required. ++# For SuiteSparse 3, UFconfig.h is required. ++suitesparse_find_component( ++ SUITESPARSE_CONFIG FILES SuiteSparse_config.h LIBRARIES suitesparseconfig) ++ ++if (SUITESPARSE_CONFIG_FOUND) ++ # SuiteSparse_config (SuiteSparse version >= 4) requires librt library for ++ # timing by default when compiled on Linux or Unix, but not on OSX (which ++ # does not have librt). ++ if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR UNIX AND NOT APPLE) ++ suitesparse_find_component(LIBRT LIBRARIES rt) ++ if (LIBRT_FOUND) ++ message(STATUS "Adding librt: ${LIBRT_LIBRARY} to " ++ "SuiteSparse_config libraries (required on Linux & Unix [not OSX] if " ++ "SuiteSparse is compiled with timing).") ++ list(APPEND SUITESPARSE_CONFIG_LIBRARY ${LIBRT_LIBRARY}) ++ else() ++ message(STATUS "Could not find librt, but found SuiteSparse_config, " ++ "assuming that SuiteSparse was compiled without timing.") ++ endif () ++ endif (CMAKE_SYSTEM_NAME MATCHES "Linux" OR UNIX AND NOT APPLE) ++else() ++ # Failed to find SuiteSparse_config (>= v4 installs), instead look for ++ # UFconfig header which should be present in < v4 installs. ++ suitesparse_find_component(UFCONFIG FILES UFconfig.h) ++endif () ++ ++if (NOT SUITESPARSE_CONFIG_FOUND AND ++ NOT UFCONFIG_FOUND) ++ suitesparse_report_not_found( ++ "Failed to find either: SuiteSparse_config header & library (should be " ++ "present in all SuiteSparse >= v4 installs), or UFconfig header (should " ++ "be present in all SuiteSparse < v4 installs).") ++endif() ++ ++# Extract the SuiteSparse version from the appropriate header (UFconfig.h for ++# <= v3, SuiteSparse_config.h for >= v4). ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS SUITESPARSE_VERSION) ++ ++if (UFCONFIG_FOUND) ++ # SuiteSparse version <= 3. ++ set(SUITESPARSE_VERSION_FILE ${UFCONFIG_INCLUDE_DIR}/UFconfig.h) ++ if (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ suitesparse_report_not_found( ++ "Could not find file: ${SUITESPARSE_VERSION_FILE} containing version " ++ "information for <= v3 SuiteSparse installs, but UFconfig was found " ++ "(only present in <= v3 installs).") ++ else (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ file(READ ${SUITESPARSE_VERSION_FILE} UFCONFIG_CONTENTS) ++ ++ string(REGEX MATCH "#define SUITESPARSE_MAIN_VERSION [0-9]+" ++ SUITESPARSE_MAIN_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_MAIN_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUB_VERSION [0-9]+" ++ SUITESPARSE_SUB_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUBSUB_VERSION [0-9]+" ++ SUITESPARSE_SUBSUB_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUBSUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 4.;2.;1 nonsense. ++ set(SUITESPARSE_VERSION ++ "${SUITESPARSE_MAIN_VERSION}.${SUITESPARSE_SUB_VERSION}.${SUITESPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++endif (UFCONFIG_FOUND) ++ ++if (SUITESPARSE_CONFIG_FOUND) ++ # SuiteSparse version >= 4. ++ set(SUITESPARSE_VERSION_FILE ++ ${SUITESPARSE_CONFIG_INCLUDE_DIR}/SuiteSparse_config.h) ++ if (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ suitesparse_report_not_found( ++ "Could not find file: ${SUITESPARSE_VERSION_FILE} containing version " ++ "information for >= v4 SuiteSparse installs, but SuiteSparse_config was " ++ "found (only present in >= v4 installs).") ++ else (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ file(READ ${SUITESPARSE_VERSION_FILE} SUITESPARSE_CONFIG_CONTENTS) ++ ++ string(REGEX MATCH "#define SUITESPARSE_MAIN_VERSION [0-9]+" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_MAIN_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUB_VERSION [0-9]+" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUBSUB_VERSION [0-9]+" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUBSUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 4.;2.;1 nonsense. ++ set(SUITESPARSE_VERSION ++ "${SUITESPARSE_MAIN_VERSION}.${SUITESPARSE_SUB_VERSION}.${SUITESPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++endif (SUITESPARSE_CONFIG_FOUND) ++ ++# METIS (Optional dependency). ++suitesparse_find_component(METIS LIBRARIES metis) ++ ++# Only mark SuiteSparse as found if all required components and dependencies ++# have been found. ++set(SUITESPARSE_FOUND TRUE) ++foreach(REQUIRED_VAR ${SUITESPARSE_FOUND_REQUIRED_VARS}) ++ if (NOT ${REQUIRED_VAR}) ++ set(SUITESPARSE_FOUND FALSE) ++ endif (NOT ${REQUIRED_VAR}) ++endforeach(REQUIRED_VAR ${SUITESPARSE_FOUND_REQUIRED_VARS}) ++ ++if (SUITESPARSE_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${AMD_INCLUDE_DIR} ++ ${CAMD_INCLUDE_DIR} ++ ${COLAMD_INCLUDE_DIR} ++ ${CCOLAMD_INCLUDE_DIR} ++ ${CHOLMOD_INCLUDE_DIR} ++ ${SUITESPARSEQR_INCLUDE_DIR}) ++ # Handle config separately, as otherwise at least one of them will be set ++ # to NOTFOUND which would cause any check on SUITESPARSE_INCLUDE_DIRS to fail. ++ if (SUITESPARSE_CONFIG_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${SUITESPARSE_CONFIG_INCLUDE_DIR}) ++ endif (SUITESPARSE_CONFIG_FOUND) ++ if (UFCONFIG_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${UFCONFIG_INCLUDE_DIR}) ++ endif (UFCONFIG_FOUND) ++ # As SuiteSparse includes are often all in the same directory, remove any ++ # repetitions. ++ list(REMOVE_DUPLICATES SUITESPARSE_INCLUDE_DIRS) ++ ++ # Important: The ordering of these libraries is *NOT* arbitrary, as these ++ # could potentially be static libraries their link ordering is important. ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${SUITESPARSEQR_LIBRARY} ++ ${CHOLMOD_LIBRARY} ++ ${CCOLAMD_LIBRARY} ++ ${CAMD_LIBRARY} ++ ${COLAMD_LIBRARY} ++ ${AMD_LIBRARY} ++ ${LAPACK_LIBRARIES} ++ ${BLAS_LIBRARIES}) ++ if (SUITESPARSE_CONFIG_FOUND) ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${SUITESPARSE_CONFIG_LIBRARY}) ++ endif (SUITESPARSE_CONFIG_FOUND) ++ if (METIS_FOUND) ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${METIS_LIBRARY}) ++ endif (METIS_FOUND) ++endif() ++ ++# Determine if we are running on Ubuntu with the package install of SuiteSparse ++# which is broken and does not support linking a shared library. ++set(SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION FALSE) ++if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND ++ SUITESPARSE_VERSION VERSION_EQUAL 3.4.0) ++ find_program(LSB_RELEASE_EXECUTABLE lsb_release) ++ if (LSB_RELEASE_EXECUTABLE) ++ # Any even moderately recent Ubuntu release (likely to be affected by ++ # this bug) should have lsb_release, if it isn't present we are likely ++ # on a different Linux distribution (should be fine). ++ execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -si ++ OUTPUT_VARIABLE LSB_DISTRIBUTOR_ID ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ ++ if (LSB_DISTRIBUTOR_ID MATCHES "Ubuntu" AND ++ SUITESPARSE_LIBRARIES MATCHES "/usr/lib/libamd") ++ # We are on Ubuntu, and the SuiteSparse version matches the broken ++ # system install version and is a system install. ++ set(SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION TRUE) ++ message(STATUS "Found system install of SuiteSparse " ++ "${SUITESPARSE_VERSION} running on Ubuntu, which has a known bug " ++ "preventing linking of shared libraries (static linking unaffected).") ++ endif (LSB_DISTRIBUTOR_ID MATCHES "Ubuntu" AND ++ SUITESPARSE_LIBRARIES MATCHES "/usr/lib/libamd") ++ endif (LSB_RELEASE_EXECUTABLE) ++endif (CMAKE_SYSTEM_NAME MATCHES "Linux" AND ++ SUITESPARSE_VERSION VERSION_EQUAL 3.4.0) ++ ++suitesparse_reset_find_library_prefix() ++ ++# Handle REQUIRED and QUIET arguments to FIND_PACKAGE ++include(FindPackageHandleStandardArgs) ++if (SUITESPARSE_FOUND) ++ find_package_handle_standard_args(SuiteSparse ++ REQUIRED_VARS ${SUITESPARSE_FOUND_REQUIRED_VARS} ++ VERSION_VAR SUITESPARSE_VERSION ++ FAIL_MESSAGE "Failed to find some/all required components of SuiteSparse.") ++else (SUITESPARSE_FOUND) ++ # Do not pass VERSION_VAR to FindPackageHandleStandardArgs() if we failed to ++ # find SuiteSparse to avoid a confusing autogenerated failure message ++ # that states 'not found (missing: FOO) (found version: x.y.z)'. ++ find_package_handle_standard_args(SuiteSparse ++ REQUIRED_VARS ${SUITESPARSE_FOUND_REQUIRED_VARS} ++ FAIL_MESSAGE "Failed to find some/all required components of SuiteSparse.") ++endif (SUITESPARSE_FOUND) ++ +diff --git a/include/sparse_bundle_adjustment/bpcg/bpcg.h b/include/sparse_bundle_adjustment/bpcg/bpcg.h +index a2cb859..446607c 100644 +--- a/include/sparse_bundle_adjustment/bpcg/bpcg.h ++++ b/include/sparse_bundle_adjustment/bpcg/bpcg.h +@@ -68,7 +68,7 @@ namespace sba + jacobiBPCG() { residual = 0.0; }; + int doBPCG(int iters, double tol, + vector< Matrix, aligned_allocator > > &diag, +- vector< map, less, aligned_allocator > > > &cols, ++ vector< map, less, aligned_allocator> > > > &cols, + VectorXd &x, + VectorXd &b, + bool abstol = false, +@@ -78,7 +78,7 @@ namespace sba + // uses internal linear storage for Hessian + int doBPCG2(int iters, double tol, + vector< Matrix, aligned_allocator > > &diag, +- vector< map, less, aligned_allocator > > > &cols, ++ vector< map, less, aligned_allocator> > > > &cols, + VectorXd &x, + VectorXd &b, + bool abstol = false, +@@ -88,8 +88,8 @@ namespace sba + double residual; + + private: +- void mMV(vector< Matrix, aligned_allocator > > &diag, +- vector< map, less, aligned_allocator > > > &cols, ++ void mMV(vector< Matrix, aligned_allocator< Matrix > > &diag, ++ vector< map, less, aligned_allocator> > > > &cols, + const VectorXd &vin, + VectorXd &vout); + +@@ -98,7 +98,7 @@ namespace sba + const VectorXd &vin, + VectorXd &vout); + +- void mD(vector< Matrix, aligned_allocator > > &diag, ++ void mD(vector< Matrix, aligned_allocator< Matrix > > &diag, + VectorXd &vin, + VectorXd &vout); + +@@ -108,7 +108,7 @@ namespace sba + + template + void jacobiBPCG::mMV(vector< Matrix, aligned_allocator > > &diag, +- vector< map, less, aligned_allocator > > > &cols, ++ vector< map, less, aligned_allocator> > > > &cols, + const VectorXd &vin, + VectorXd &vout) + { +@@ -119,11 +119,11 @@ namespace sba + vout.segment(i*N) = diag[i]*vin.segment(i*N); // only works with cols ordering + + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + if (col.size() > 0) + { + typename map, less, // need "typename" here, barf +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + for (it = col.begin(); it != col.end(); it++) + { + int ri = (*it).first; // get row index +@@ -177,7 +177,7 @@ namespace sba + template + int jacobiBPCG::doBPCG(int iters, double tol, + vector< Matrix, aligned_allocator > > &diag, +- vector< map, less, aligned_allocator > > > &cols, ++ vector< map, less, aligned_allocator> > > > &cols, + VectorXd &x, + VectorXd &b, + bool abstol, +@@ -237,7 +237,7 @@ namespace sba + template + int jacobiBPCG::doBPCG2(int iters, double tol, + vector< Matrix, aligned_allocator > > &diag, +- vector< map, less, aligned_allocator > > > &cols, ++ vector< map, less, aligned_allocator> > > > &cols, + VectorXd &x, + VectorXd &b, + bool abstol, +@@ -260,11 +260,11 @@ namespace sba + for (int i=0; i<(int)cols.size(); i++) + { + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + if (col.size() > 0) + { + typename map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + for (it = col.begin(); it != col.end(); it++) + { + int ri = (*it).first; // get row index +diff --git a/include/sparse_bundle_adjustment/csparse.h b/include/sparse_bundle_adjustment/csparse.h +index 1f7d062..982975a 100644 +--- a/include/sparse_bundle_adjustment/csparse.h ++++ b/include/sparse_bundle_adjustment/csparse.h +@@ -52,14 +52,14 @@ + + // CSparse header + extern "C" { +-#include "suitesparse/cs.h" ++#include "cs.h" + } + #include + #include + + // Cholmod header, other header files brought in + #ifdef SBA_CHOLMOD +-#include "suitesparse/cholmod.h" ++#include "cholmod.h" + #endif + + // these are for SparseLib and IML, testing the Delayed State Filter +@@ -93,7 +93,7 @@ namespace sba + vector< Matrix, aligned_allocator > > diag; + // compressed column storage of blocks + vector< map, less, +- aligned_allocator > > > cols; ++ aligned_allocator> > > > cols; + + void setupBlockStructure(int n); // size of rows/cols of A (in blocks) + +@@ -158,7 +158,7 @@ namespace sba + vector< Matrix, aligned_allocator > > diag; + // compressed column storage of blocks + vector< map, less, +- aligned_allocator > > > cols; ++ aligned_allocator> > > > cols; + + void setupBlockStructure(int n, bool eraseit = true); // size of rows/cols of A (in blocks) + +diff --git a/include/sparse_bundle_adjustment/proj.h b/include/sparse_bundle_adjustment/proj.h +index 55308c5..fb68151 100644 +--- a/include/sparse_bundle_adjustment/proj.h ++++ b/include/sparse_bundle_adjustment/proj.h +@@ -49,7 +49,7 @@ namespace sba + + /// Obnoxiously long type def for the map type that holds the point + /// projections in tracks. +- typedef std::map, Eigen::aligned_allocator > ProjMap; ++ typedef std::map ProjMap; + + /// \brief Proj holds a projection measurement of a point onto a + /// frame. They are a repository for the link between the frame and +@@ -87,7 +87,7 @@ namespace sba + bool stereo; + + /// Calculates re-projection error and stores it in #err. +- double calcErr(const Node &nd, const Point &pt, double huber = 0.0); ++ double calcErr(const Node &nd, const Point &pt, double huber = 0.0); + + /// \brief Get the correct squared norm of the error, depending on + /// whether the projection is monocular or stereo. +diff --git a/src/csparse.cpp b/src/csparse.cpp +index 4d09189..fbdbfb3 100644 +--- a/src/csparse.cpp ++++ b/src/csparse.cpp +@@ -109,11 +109,11 @@ namespace sba + for (int i=0; i<(int)cols.size(); i++) + { + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + if (col.size() > 0) + { + map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + for (it = col.begin(); it != col.end(); it++) + it->second.setZero(); + } +@@ -131,10 +131,10 @@ namespace sba + { + // get column + map, less, +- aligned_allocator > > &col = cols[jj]; ++ aligned_allocator> > > &col = cols[jj]; + // find current matrix + map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + it = col.find(ii); + if (it == col.end()) // didn't find it + col.insert(pair >(ii,m)); +@@ -164,7 +164,7 @@ namespace sba + for (int i=0; i<(int)cols.size(); i++) + { + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + nnz += 36 * col.size(); // 6x6 matrix + } + +@@ -202,7 +202,7 @@ namespace sba + { + // column i entries + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + + // do this for 6 columns + for (int k=0; k<6; k++) +@@ -215,7 +215,7 @@ namespace sba + { + // map iterator + map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + + // iterate over block column entries + for (it = col.begin(); it != col.end(); it++) +@@ -250,7 +250,7 @@ namespace sba + { + // column i entries + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + + // do this for 6 columns + for (int k=0; k<6; k++) +@@ -260,7 +260,7 @@ namespace sba + { + // map iterator + map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + + // iterate over block column entries + for (it = col.begin(); it != col.end(); it++) +@@ -432,7 +432,7 @@ namespace sba + for (int i=0; i<(int)cols.size(); i++) + { + map, less, +- aligned_allocator< Matrix > > &col = cols[i]; ++ aligned_allocator< std::pair> > > &col = cols[i]; + col.clear(); + } + asize = n; +@@ -448,11 +448,11 @@ namespace sba + for (int i=0; i<(int)cols.size(); i++) + { + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + if (col.size() > 0) + { + map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + for (it = col.begin(); it != col.end(); it++) + it->second.setZero(); + } +@@ -473,10 +473,10 @@ namespace sba + { + // get column + map, less, +- aligned_allocator > > &col = cols[jj]; ++ aligned_allocator> > > &col = cols[jj]; + // find current matrix + map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + it = col.find(ii); + if (it == col.end()) // didn't find it + col.insert(pair >(ii,m)); +@@ -517,7 +517,7 @@ namespace sba + for (int i=0; i<(int)cols.size(); i++) + { + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + nnz += 9 * col.size(); // 3x3 matrix + } + #ifdef SBA_CHOLMOD +@@ -554,7 +554,7 @@ namespace sba + { + // column i entries + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + + // do this for 3 columns + for (int k=0; k<3; k++) +@@ -567,7 +567,7 @@ namespace sba + { + // map iterator + map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + + // iterate over block column entries + for (it = col.begin(); it != col.end(); it++) +@@ -601,7 +601,7 @@ namespace sba + { + // column i entries + map, less, +- aligned_allocator > > &col = cols[i]; ++ aligned_allocator> > > &col = cols[i]; + + // do this for 3 columns + for (int k=0; k<3; k++) +@@ -611,7 +611,7 @@ namespace sba + { + // map iterator + map, less, +- aligned_allocator > >::iterator it; ++ aligned_allocator> > >::iterator it; + + // iterate over block column entries + for (it = col.begin(); it != col.end(); it++) diff --git a/distros/noetic/patch/ros-noetic-srdfdom.patch b/distros/noetic/patch/ros-noetic-srdfdom.patch new file mode 100644 index 000000000..2c71ffd90 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-srdfdom.patch @@ -0,0 +1,25 @@ +From 6e11bdad2b26d421bbde6623579d7bf35772cd78 Mon Sep 17 00:00:00 2001 +From: Silvio Traversaro +Date: Sun, 10 Mar 2024 21:48:12 +0100 +Subject: [PATCH] On Windows install libraries in /bin + +Signed-off-by: Silvio Traversaro +--- + CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1059f3d..88c037c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -36,7 +36,9 @@ target_link_libraries(${PROJECT_NAME} ${TinyXML2_LIBRARIES} ${catkin_LIBRARIES} + + + install(TARGETS ${PROJECT_NAME} +- DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} ++ LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} ++ ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} ++ RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION} + ) + install(DIRECTORY include/${PROJECT_NAME}/ + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} diff --git a/distros/noetic/patch/ros-noetic-swri-geometry-util.patch b/distros/noetic/patch/ros-noetic-swri-geometry-util.patch new file mode 100644 index 000000000..a666b491a --- /dev/null +++ b/distros/noetic/patch/ros-noetic-swri-geometry-util.patch @@ -0,0 +1,249 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4bc10fc84..af9519372 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,10 +34,11 @@ catkin_package( + tf + DEPENDS + OpenCV ++ GEOS + ) + + include_directories(include) +-include_directories(SYSTEM ++include_directories( + ${catkin_INCLUDE_DIRS} + ${GEOS_INCLUDE_DIRS} + ${EIGEN3_INCLUDE_DIRS} +diff --git a/FindGEOS.cmake b/FindGEOS.cmake +index 8e8b65900..f256ed1b4 100644 +--- a/FindGEOS.cmake ++++ b/FindGEOS.cmake +@@ -10,25 +10,88 @@ + # If it's found it sets GEOS_FOUND to TRUE + # and following variables are set: + # GEOS_INCLUDE_DIR +-# GEOS_INCLUDE_DIRS + # GEOS_LIBRARY +-# GEOS_LIBRARIES +- +-IF (NOT DEFINED GEOS_INCLUDE_DIR OR NOT DEFINED GEOS_LIBRARY OR NOT DEFINED GEOS_LIBRARIES OR NOT DEFINED GEOS_CONFIG) +- UNSET(GEOS_INCLUDE_DIR CACHE) +- UNSET(GEOS_INCLUDE_DIRS CACHE) +- UNSET(GEOS_LIBRARY CACHE) +- UNSET(GEOS_LIBRARIES CACHE) +- UNSET(GEOS_CONFIG CACHE) +- +- SET(GEOS_CONFIG_PREFER_PATH "$ENV{GEOS_HOME}/bin" CACHE STRING "preferred path to GEOS (geos-config)") +- FIND_PROGRAM(GEOS_CONFIG geos-config +- ${GEOS_CONFIG_PREFER_PATH} +- /usr/local/bin/ +- /usr/bin/ +- ) +- +- IF (DEFINED GEOS_CONFIG) ++# ++ ++FUNCTION (GET_VERSION_PLIST PLISTFILE OUTVAR) ++ SET (PVERSION "") ++ IF (EXISTS ${PLISTFILE}) ++ FILE (READ "${PLISTFILE}" info_plist) ++ STRING (REGEX REPLACE "\n" "" info_plist "${info_plist}") ++ STRING (REGEX MATCH "CFBundleShortVersionString[ \t]*([0-9\\.]*)" PLISTVERSION "${info_plist}") ++ STRING (REGEX REPLACE "CFBundleShortVersionString[ \t]*([0-9\\.]*)" "\\1" PVERSION "${PLISTVERSION}") ++ ENDIF (EXISTS ${PLISTFILE}) ++ SET (${OUTVAR} ${PVERSION} PARENT_SCOPE) ++ENDFUNCTION (GET_VERSION_PLIST) ++ ++IF(WIN32) ++ ++ IF (MINGW) ++ FIND_PATH(GEOS_INCLUDE_DIR geos_c.h "$ENV{LIB_DIR}/include" /usr/local/include /usr/include c:/msys/local/include) ++ FIND_LIBRARY(GEOS_LIBRARY NAMES geos_c PATHS "$ENV{LIB_DIR}/lib" /usr/local/lib /usr/lib c:/msys/local/lib) ++ ENDIF (MINGW) ++ ++ IF (MSVC) ++ FIND_PATH(GEOS_INCLUDE_DIR geos_c.h $ENV{LIB_DIR}/include $ENV{INCLUDE}) ++ FIND_LIBRARY(GEOS_LIBRARY NAMES geos_c_i geos_c PATHS ++ "$ENV{LIB_DIR}/lib" ++ $ENV{LIB} ++ ) ++ ENDIF (MSVC) ++ ++ELSEIF(APPLE AND QGIS_MAC_DEPS_DIR) ++ ++ FIND_PATH(GEOS_INCLUDE_DIR geos_c.h "$ENV{LIB_DIR}/include" ) ++ FIND_LIBRARY(GEOS_LIBRARY NAMES geos_c PATHS "$ENV{LIB_DIR}/lib" ) ++ ++ELSE(WIN32) ++ ++ IF(UNIX) ++ # try to use framework on mac ++ # want clean framework path, not unix compatibility path ++ IF (APPLE) ++ IF (CMAKE_FIND_FRAMEWORK MATCHES "FIRST" ++ OR CMAKE_FRAMEWORK_PATH MATCHES "ONLY" ++ OR NOT CMAKE_FIND_FRAMEWORK) ++ SET (CMAKE_FIND_FRAMEWORK_save ${CMAKE_FIND_FRAMEWORK} CACHE STRING "" FORCE) ++ SET (CMAKE_FIND_FRAMEWORK "ONLY" CACHE STRING "" FORCE) ++ FIND_LIBRARY(GEOS_LIBRARY GEOS) ++ IF (GEOS_LIBRARY) ++ # they're all the same in a framework ++ SET (GEOS_INCLUDE_DIR ${GEOS_LIBRARY}/Headers CACHE PATH "Path to a file.") ++ # set GEOS_CONFIG to make later test happy, not used here, may not exist ++ SET (GEOS_CONFIG ${GEOS_LIBRARY}/unix/bin/geos-config CACHE FILEPATH "Path to a program.") ++ # version in info.plist ++ GET_VERSION_PLIST (${GEOS_LIBRARY}/Resources/Info.plist GEOS_VERSION) ++ IF (NOT GEOS_VERSION) ++ MESSAGE (FATAL_ERROR "Could not determine GEOS version from framework.") ++ ENDIF (NOT GEOS_VERSION) ++ STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1" GEOS_VERSION_MAJOR "${GEOS_VERSION}") ++ STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\2" GEOS_VERSION_MINOR "${GEOS_VERSION}") ++ IF (GEOS_VERSION_MAJOR LESS 3) ++ MESSAGE (FATAL_ERROR "GEOS version is too old (${GEOS_VERSION}). Use 3.0.0 or higher.") ++ ENDIF (GEOS_VERSION_MAJOR LESS 3) ++ ENDIF (GEOS_LIBRARY) ++ SET (CMAKE_FIND_FRAMEWORK ${CMAKE_FIND_FRAMEWORK_save} CACHE STRING "" FORCE) ++ ENDIF () ++ ENDIF (APPLE) ++ ++ IF(CYGWIN) ++ FIND_LIBRARY(GEOS_LIBRARY NAMES geos_c PATHS /usr/lib /usr/local/lib) ++ ENDIF(CYGWIN) ++ ++ IF (NOT GEOS_INCLUDE_DIR OR NOT GEOS_LIBRARY OR NOT GEOS_CONFIG) ++ # didn't find OS X framework, and was not set by user ++ SET(GEOS_CONFIG_PREFER_PATH "$ENV{GEOS_HOME}/bin" CACHE STRING "preferred path to GEOS (geos-config)") ++ FIND_PROGRAM(GEOS_CONFIG geos-config ++ ${GEOS_CONFIG_PREFER_PATH} ++ $ENV{LIB_DIR}/bin ++ /usr/local/bin/ ++ /usr/bin/ ++ ) ++ #MESSAGE("DBG GEOS_CONFIG ${GEOS_CONFIG}") ++ ++ IF (GEOS_CONFIG) + + EXEC_PROGRAM(${GEOS_CONFIG} + ARGS --version +@@ -36,9 +99,9 @@ IF (NOT DEFINED GEOS_INCLUDE_DIR OR NOT DEFINED GEOS_LIBRARY OR NOT DEFINED GEOS + STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1" GEOS_VERSION_MAJOR "${GEOS_VERSION}") + STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\2" GEOS_VERSION_MINOR "${GEOS_VERSION}") + +- IF (GEOS_VERSION_MAJOR LESS 3 OR (GEOS_VERSION_MAJOR EQUAL 3 AND GEOS_VERSION_MINOR LESS 1) ) +- MESSAGE (FATAL_ERROR "GEOS version is too old (${GEOS_VERSION}). Use 3.1.0 or higher.") +- ENDIF (GEOS_VERSION_MAJOR LESS 3 OR (GEOS_VERSION_MAJOR EQUAL 3 AND GEOS_VERSION_MINOR LESS 1) ) ++ IF (GEOS_VERSION_MAJOR LESS 3 OR (GEOS_VERSION_MAJOR EQUAL 3 AND GEOS_VERSION_MINOR LESS 3) ) ++ MESSAGE (FATAL_ERROR "GEOS version is too old (${GEOS_VERSION}). Use 3.3.0 or higher.") ++ ENDIF (GEOS_VERSION_MAJOR LESS 3 OR (GEOS_VERSION_MAJOR EQUAL 3 AND GEOS_VERSION_MINOR LESS 3) ) + + # set INCLUDE_DIR to prefix+include + EXEC_PROGRAM(${GEOS_CONFIG} +@@ -46,11 +109,10 @@ IF (NOT DEFINED GEOS_INCLUDE_DIR OR NOT DEFINED GEOS_LIBRARY OR NOT DEFINED GEOS + OUTPUT_VARIABLE GEOS_PREFIX) + + FIND_PATH(GEOS_INCLUDE_DIR +- geos/geom.h +- PATHS +- ${GEOS_PREFIX}/include +- /usr/local/include +- /usr/include ++ geos_c.h ++ ${GEOS_PREFIX}/include ++ /usr/local/include ++ /usr/include + ) + + ## extract link dirs for rpath +@@ -64,53 +126,73 @@ IF (NOT DEFINED GEOS_INCLUDE_DIR OR NOT DEFINED GEOS_LIBRARY OR NOT DEFINED GEOS + STRING(REGEX MATCHALL "[-][L]([^ ;])+" + GEOS_LINK_DIRECTORIES_WITH_PREFIX + "${GEOS_CONFIG_LIBS}" ) +- ++ #MESSAGE("DBG GEOS_LINK_DIRECTORIES_WITH_PREFIX=${GEOS_LINK_DIRECTORIES_WITH_PREFIX}") + + ## remove prefix -L because we need the pure directory for LINK_DIRECTORIES + + IF (GEOS_LINK_DIRECTORIES_WITH_PREFIX) +- STRING(REGEX REPLACE "^-L(.*)" "\\1" GEOS_LINK_DIRECTORIES ${GEOS_LINK_DIRECTORIES_WITH_PREFIX} ) ++ STRING(REGEX REPLACE "[-][L]" "" GEOS_LINK_DIRECTORIES ${GEOS_LINK_DIRECTORIES_WITH_PREFIX} ) + ENDIF (GEOS_LINK_DIRECTORIES_WITH_PREFIX) + +- ++ ### XXX - mloskot: geos-config --libs does not return -lgeos_c, so set it manually ++ ## split off the name + ## use regular expression to match wildcard equivalent "-l*" + ## with is a space or a semicolon +- STRING(REGEX MATCHALL "(^| )-l([^ ;])+" +- GEOS_LIB_NAME_WITH_PREFIX +- "${GEOS_CONFIG_LIBS}" ) ++ #STRING(REGEX MATCHALL "[-][l]([^ ;])+" ++ # GEOS_LIB_NAME_WITH_PREFIX ++ # "${GEOS_CONFIG_LIBS}" ) ++ #MESSAGE("DBG GEOS_CONFIG_LIBS=${GEOS_CONFIG_LIBS}") ++ #MESSAGE("DBG GEOS_LIB_NAME_WITH_PREFIX=${GEOS_LIB_NAME_WITH_PREFIX}") ++ SET(GEOS_LIB_NAME_WITH_PREFIX -lgeos_c CACHE STRING INTERNAL) + + ## remove prefix -l because we need the pure name ++ + IF (GEOS_LIB_NAME_WITH_PREFIX) +- STRING(REGEX REPLACE "(^ )-l(.*)" "\\2" GEOS_LIBRARY ${GEOS_LIB_NAME_WITH_PREFIX} ) ++ STRING(REGEX REPLACE "[-][l]" "" GEOS_LIB_NAME ${GEOS_LIB_NAME_WITH_PREFIX} ) + ENDIF (GEOS_LIB_NAME_WITH_PREFIX) +- +- ELSE(DEFINED GEOS_CONFIG) ++ #MESSAGE("DBG GEOS_LIB_NAME=${GEOS_LIB_NAME}") ++ ++ IF (APPLE) ++ IF (NOT GEOS_LIBRARY) ++ # work around empty GEOS_LIBRARY left by framework check ++ # while still preserving user setting if given ++ # ***FIXME*** need to improve framework check so below not needed ++ SET(GEOS_LIBRARY ${GEOS_LINK_DIRECTORIES}/lib${GEOS_LIB_NAME}.dylib CACHE STRING INTERNAL FORCE) ++ ENDIF (NOT GEOS_LIBRARY) ++ ELSE (APPLE) ++ FIND_LIBRARY(GEOS_LIBRARY NAMES ${GEOS_LIB_NAME} PATHS ${GEOS_LIB_DIRECTORIES}/lib) ++ ENDIF (APPLE) ++ #MESSAGE("DBG GEOS_LIBRARY=${GEOS_LIBRARY}") ++ ++ ELSE(GEOS_CONFIG) + MESSAGE("FindGEOS.cmake: geos-config not found. Please set it manually. GEOS_CONFIG=${GEOS_CONFIG}") +- ENDIF(DEFINED GEOS_CONFIG) +-ENDIF(NOT DEFINED GEOS_INCLUDE_DIR OR NOT DEFINED GEOS_LIBRARY OR NOT DEFINED GEOS_LIBRARIES OR NOT DEFINED GEOS_CONFIG) ++ ENDIF(GEOS_CONFIG) ++ ENDIF(NOT GEOS_INCLUDE_DIR OR NOT GEOS_LIBRARY OR NOT GEOS_CONFIG) ++ ENDIF(UNIX) ++ENDIF(WIN32) + +-IF(DEFINED GEOS_INCLUDE_DIR AND NOT DEFINED GEOS_VERSION) ++IF(GEOS_INCLUDE_DIR AND NOT GEOS_VERSION) + FILE(READ ${GEOS_INCLUDE_DIR}/geos_c.h VERSIONFILE) +- STRING(REGEX MATCH "#define GEOS_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+(dev)?\"" GEOS_VERSION ${VERSIONFILE}) ++ STRING(REGEX MATCH "#define GEOS_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+" GEOS_VERSION ${VERSIONFILE}) + STRING(REGEX MATCH "[0-9]+\\.[0-9]\\.[0-9]+" GEOS_VERSION ${GEOS_VERSION}) +-ENDIF(DEFINED GEOS_INCLUDE_DIR AND NOT DEFINED GEOS_VERSION) ++ENDIF(GEOS_INCLUDE_DIR AND NOT GEOS_VERSION) + + IF (GEOS_INCLUDE_DIR AND GEOS_LIBRARY) + SET(GEOS_FOUND TRUE) +- SET(GEOS_LIBRARIES ${GEOS_LIBRARY}) +- SET(GEOS_INCLUDE_DIRS ${GEOS_INCLUDE_DIR}) + ENDIF (GEOS_INCLUDE_DIR AND GEOS_LIBRARY) + + IF (GEOS_FOUND) + + IF (NOT GEOS_FIND_QUIETLY) +- MESSAGE(STATUS "Found GEOS: ${GEOS_LIBRARY} (version: ${GEOS_VERSION}, includes: ${GEOS_INCLUDE_DIRS})") ++ SET(GEOS_LIBRARIES ${GEOS_LIBRARY}) ++ MESSAGE(STATUS "Found GEOS: ${GEOS_LIBRARIES} (${GEOS_VERSION})") + ENDIF (NOT GEOS_FIND_QUIETLY) + + ELSE (GEOS_FOUND) + + MESSAGE(GEOS_INCLUDE_DIR=${GEOS_INCLUDE_DIR}) + MESSAGE(GEOS_LIBRARY=${GEOS_LIBRARY}) +- MESSAGE(FATAL_ERROR "Could not find GEOS. Perhaps try:\n$ sudo apt-get install libgeos++-dev\n") ++ MESSAGE(FATAL_ERROR "Could not find GEOS") + + ENDIF (GEOS_FOUND) ++ diff --git a/distros/noetic/patch/ros-noetic-swri-transform-util.patch b/distros/noetic/patch/ros-noetic-swri-transform-util.patch new file mode 100644 index 000000000..d980328a3 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-swri-transform-util.patch @@ -0,0 +1,144 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ac738da69..78a4c1f95 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,8 @@ + cmake_minimum_required(VERSION 3.0.2) + project(swri_transform_util) + ++set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) ++ + find_package(catkin REQUIRED COMPONENTS + diagnostic_msgs + geographic_msgs +@@ -23,15 +25,7 @@ catkin_python_setup() + find_package(OpenCV REQUIRED calib3d core highgui imgproc video) + find_package(Boost REQUIRED COMPONENTS filesystem serialization thread) + +-find_package(PkgConfig REQUIRED) +-pkg_check_modules(PROJ proj) +-if(NOT "${PROJ_FOUND}") +- set(PROJ_INCLUDE_DIRS /usr/include) +- set(PROJ_LIBRARY_DIRS /usr/lib) +- find_library(PROJ_LIBRARIES proj +- HINTS ${PROJ_LIB_DIRS} +- ) +-endif() ++find_package(Proj REQUIRED) + + catkin_package( + INCLUDE_DIRS include +@@ -72,7 +66,7 @@ add_library(${PROJECT_NAME} + src/wgs84_transformer.cpp) + target_link_libraries(${PROJECT_NAME} + ${catkin_LIBRARIES} +- ${PROJ_LIBRARIES} ++ ${PROJ_LIBRARY} + Boost::filesystem + Boost::serialization + Boost::thread +diff --git a/cmake/FindProj.cmake b/cmake/FindProj.cmake +new file mode 100644 +index 000000000..f4ab9b385 +--- /dev/null ++++ b/cmake/FindProj.cmake +@@ -0,0 +1,98 @@ ++# Find Proj ++# ~~~~~~~~~ ++# Copyright (c) 2007, Martin Dobias ++# Redistribution and use is allowed according to the terms of the BSD license. ++# For details see the accompanying COPYING-CMAKE-SCRIPTS file. ++# ++# CMake module to search for Proj library ++# ++# If it's found it sets PROJ_FOUND to TRUE ++# and following variables are set: ++# PROJ_INCLUDE_DIR ++# PROJ_LIBRARY ++ ++# FIND_PATH and FIND_LIBRARY normally search standard locations ++# before the specified paths. To search non-standard paths first, ++# FIND_* is invoked first with specified paths and NO_DEFAULT_PATH ++# and then again with no specified paths to search the default ++# locations. When an earlier FIND_* succeeds, subsequent FIND_*s ++# searching for the same item do nothing. ++ ++# try to use framework on mac ++# want clean framework path, not unix compatibility path ++IF (APPLE) ++ IF (CMAKE_FIND_FRAMEWORK MATCHES "FIRST" ++ OR CMAKE_FRAMEWORK_PATH MATCHES "ONLY" ++ OR NOT CMAKE_FIND_FRAMEWORK) ++ SET (CMAKE_FIND_FRAMEWORK_save ${CMAKE_FIND_FRAMEWORK} CACHE STRING "" FORCE) ++ SET (CMAKE_FIND_FRAMEWORK "ONLY" CACHE STRING "" FORCE) ++ #FIND_PATH(PROJ_INCLUDE_DIR PROJ/proj_api.h) ++ FIND_LIBRARY(PROJ_LIBRARY PROJ) ++ IF (PROJ_LIBRARY) ++ # FIND_PATH doesn't add "Headers" for a framework ++ SET (PROJ_INCLUDE_DIR ${PROJ_LIBRARY}/Headers CACHE PATH "Path to a file.") ++ ENDIF (PROJ_LIBRARY) ++ SET (CMAKE_FIND_FRAMEWORK ${CMAKE_FIND_FRAMEWORK_save} CACHE STRING "" FORCE) ++ ENDIF () ++ENDIF (APPLE) ++ ++FIND_PATH(PROJ_INCLUDE_DIR proj_api.h ++ "$ENV{INCLUDE}" ++ "$ENV{LIB_DIR}/include" ++ ) ++IF (NOT PROJ_INCLUDE_DIR) ++ FIND_PATH(PROJ_INCLUDE_DIR proj.h ++ "$ENV{INCLUDE}" ++ "$ENV{LIB_DIR}/include" ++ ) ++ENDIF (NOT PROJ_INCLUDE_DIR) ++ ++FIND_LIBRARY(PROJ_LIBRARY NAMES proj_i proj PATHS ++ "$ENV{LIB}" ++ "$ENV{LIB_DIR}/lib" ++ ) ++ ++IF (PROJ_INCLUDE_DIR AND PROJ_LIBRARY) ++ SET(PROJ_FOUND TRUE) ++ENDIF (PROJ_INCLUDE_DIR AND PROJ_LIBRARY) ++ ++IF (PROJ_FOUND) ++ IF (EXISTS ${PROJ_INCLUDE_DIR}/proj.h AND EXISTS ${PROJ_INCLUDE_DIR}/proj_experimental.h) ++ FILE(READ ${PROJ_INCLUDE_DIR}/proj.h proj_version) ++ STRING(REGEX REPLACE "^.*PROJ_VERSION_MAJOR +([0-9]+).*$" "\\1" PROJ_VERSION_MAJOR "${proj_version}") ++ STRING(REGEX REPLACE "^.*PROJ_VERSION_MINOR +([0-9]+).*$" "\\1" PROJ_VERSION_MINOR "${proj_version}") ++ STRING(REGEX REPLACE "^.*PROJ_VERSION_PATCH +([0-9]+).*$" "\\1" PROJ_VERSION_PATCH "${proj_version}") ++ STRING(CONCAT PROJ_VERSION_STR "(" ${PROJ_VERSION_MAJOR} "." ${PROJ_VERSION_MINOR} "." ${PROJ_VERSION_PATCH} ")") ++ IF ((PROJ_VERSION_MAJOR EQUAL 6) AND ((PROJ_VERSION_MINOR LESS 3) OR (PROJ_VERSION_MINOR EQUAL 3 AND PROJ_VERSION_PATCH LESS 1))) ++ MESSAGE (FATAL_ERROR "Cannot build QGIS using Proj ${PROJ_VERSION_MAJOR}.${PROJ_VERSION_MINOR}.${PROJ_VERSION_PATCH} Use 6.3.1 or higher.") ++ ENDIF ((PROJ_VERSION_MAJOR EQUAL 6) AND ((PROJ_VERSION_MINOR LESS 3) OR (PROJ_VERSION_MINOR EQUAL 3 AND PROJ_VERSION_PATCH LESS 1))) ++ ELSE(EXISTS ${PROJ_INCLUDE_DIR}/proj.h AND EXISTS ${PROJ_INCLUDE_DIR}/proj_experimental.h) ++ FILE(READ ${PROJ_INCLUDE_DIR}/proj_api.h proj_version) ++ STRING(REGEX REPLACE "^.*PJ_VERSION ([0-9]+).*$" "\\1" PJ_VERSION "${proj_version}") ++ ++ # This will break if 4.10.0 ever will be released (highly unlikely) ++ STRING(REGEX REPLACE "([0-9])([0-9])([0-9])" "\\1" PROJ_VERSION_MAJOR "${PJ_VERSION}") ++ STRING(REGEX REPLACE "([0-9])([0-9])([0-9])" "\\2" PROJ_VERSION_MINOR "${PJ_VERSION}") ++ STRING(REGEX REPLACE "([0-9])([0-9])([0-9])" "\\3" PROJ_VERSION_PATCH "${PJ_VERSION}") ++ STRING(CONCAT PROJ_VERSION_STR "(" ${PROJ_VERSION_MAJOR} "." ${PROJ_VERSION_MINOR} "." ${PROJ_VERSION_PATCH} ")") ++ ++ # Minimum Proj version required is 4.9.3 ++ IF ((PROJ_VERSION_MAJOR EQUAL 4) AND ((PROJ_VERSION_MINOR LESS 9) OR ((PROJ_VERSION_MINOR EQUAL 9) AND (PROJ_VERSION_PATCH LESS 3)))) ++ MESSAGE(FATAL_ERROR "Found Proj: ${PROJ_VERSION_MAJOR}.${PROJ_VERSION_MINOR}.${PROJ_VERSION_PATCH}. Cannot build QGIS using Proj older than 4.9.3.") ++ ENDIF((PROJ_VERSION_MAJOR EQUAL 4) AND ((PROJ_VERSION_MINOR LESS 9) OR ((PROJ_VERSION_MINOR EQUAL 9) AND (PROJ_VERSION_PATCH LESS 3)))) ++ ENDIF(EXISTS ${PROJ_INCLUDE_DIR}/proj.h AND EXISTS ${PROJ_INCLUDE_DIR}/proj_experimental.h) ++ IF (NOT PROJ_FIND_QUIETLY) ++ MESSAGE(STATUS "Found Proj: ${PROJ_LIBRARY} version ${PROJ_VERSION_MAJOR} ${PROJ_VERSION_STR}") ++ ENDIF (NOT PROJ_FIND_QUIETLY) ++ ++ INCLUDE_DIRECTORIES(BEFORE SYSTEM ${PROJ_INCLUDE_DIR}) ++ ADD_DEFINITIONS(-DPROJ_VERSION_MAJOR=${PROJ_VERSION_MAJOR}) ++ ++ELSE (PROJ_FOUND) ++ ++ IF (PROJ_FIND_REQUIRED) ++ MESSAGE(FATAL_ERROR "Could not find Proj") ++ ENDIF (PROJ_FIND_REQUIRED) ++ ++ENDIF (PROJ_FOUND) ++ + diff --git a/distros/noetic/patch/ros-noetic-swri-yaml-util.patch b/distros/noetic/patch/ros-noetic-swri-yaml-util.patch new file mode 100644 index 000000000..785237bc3 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-swri-yaml-util.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 628d70846..cc668b01f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -29,7 +29,7 @@ include_directories(include) + include_directories(SYSTEM + ${catkin_INCLUDE_DIRS} + ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_INCLUDE_DESTINATION} +- ${YamlCpp_INCLUDE_DIR} ++ ${YamlCpp_INCLUDE_DIRS} + ) + + add_library(${PROJECT_NAME} diff --git a/distros/noetic/patch/ros-noetic-teb-local-planner.linux.patch b/distros/noetic/patch/ros-noetic-teb-local-planner.linux.patch new file mode 100644 index 000000000..57b48935f --- /dev/null +++ b/distros/noetic/patch/ros-noetic-teb-local-planner.linux.patch @@ -0,0 +1,776 @@ +diff --git a/include/teb_local_planner/timed_elastic_band.hpp b/include/teb_local_planner/timed_elastic_band.hpp +index 66c92b8..8a95eaf 100644 +--- a/include/teb_local_planner/timed_elastic_band.hpp ++++ b/include/teb_local_planner/timed_elastic_band.hpp +@@ -36,6 +36,7 @@ + * Author: Christoph Rösmann + *********************************************************************/ + ++#include + #include + + namespace teb_local_planner +@@ -49,7 +50,7 @@ bool TimedElasticBand::initTrajectoryToGoal(BidirIter path_start, BidirIter path + boost::optional start_orientation, boost::optional goal_orientation, int min_samples, bool guess_backwards_motion) + { + Eigen::Vector2d start_position = fun_position( *path_start ); +- Eigen::Vector2d goal_position = fun_position( *boost::prior(path_end) ); ++ Eigen::Vector2d goal_position = fun_position( *std::prev(path_end) ); + + bool backwards = false; + +diff --git a/include/teb_local_planner/visualization.hpp b/include/teb_local_planner/visualization.hpp +index e619e52..548c57a 100644 +--- a/include/teb_local_planner/visualization.hpp ++++ b/include/teb_local_planner/visualization.hpp +@@ -38,6 +38,7 @@ + + #include + #include ++#include + + + namespace teb_local_planner +@@ -196,7 +197,7 @@ void TebVisualization::publishPathContainer(BidirIter first, BidirIter last, con + { + // iterate single path points + typename PathType::const_iterator it_point, end_point; +- for (it_point = first->begin(), end_point = boost::prior(first->end()); it_point != end_point; ++it_point) ++ for (it_point = first->begin(), end_point = std::prev(first->end()); it_point != end_point; ++it_point) + { + geometry_msgs::Point point_start; + point_start.x = get_const_reference(*it_point).x(); +@@ -205,8 +206,8 @@ void TebVisualization::publishPathContainer(BidirIter first, BidirIter last, con + marker.points.push_back(point_start); + + geometry_msgs::Point point_end; +- point_end.x = get_const_reference(*boost::next(it_point)).x(); +- point_end.y = get_const_reference(*boost::next(it_point)).y(); ++ point_end.x = get_const_reference(*std::next(it_point)).x(); ++ point_end.y = get_const_reference(*std::next(it_point)).y(); + point_end.z = 0; + marker.points.push_back(point_end); + } +diff --git a/cmake_modules/FindCSparse.cmake b/cmake_modules/FindCSparse.cmake +new file mode 100644 +index 0000000..5550151 +--- /dev/null ++++ b/cmake_modules/FindCSparse.cmake +@@ -0,0 +1,28 @@ ++# Look for csparse; note the difference in the directory specifications! ++find_path(CSPARSE_INCLUDE_DIR NAMES cs.h ++ PATHS ++ /usr/include/suitesparse ++ /usr/include ++ /opt/local/include ++ /usr/local/include ++ /sw/include ++ /usr/include/ufsparse ++ /opt/local/include/ufsparse ++ /usr/local/include/ufsparse ++ /sw/include/ufsparse ++ PATH_SUFFIXES ++ suitesparse ++ ) ++ ++find_library(CSPARSE_LIBRARY NAMES cxsparse libcxsparse ++ PATHS ++ /usr/lib ++ /usr/local/lib ++ /opt/local/lib ++ /sw/lib ++ ) ++ ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(CSPARSE DEFAULT_MSG ++ CSPARSE_INCLUDE_DIR CSPARSE_LIBRARY) ++ +diff --git a/cmake_modules/FindSUITESPARSE.cmake b/cmake_modules/FindSUITESPARSE.cmake +index 101b79b..aad8904 100644 +--- a/cmake_modules/FindSUITESPARSE.cmake ++++ b/cmake_modules/FindSUITESPARSE.cmake +@@ -1,133 +1,531 @@ +-# - Try to find SUITESPARSE +-# Once done this will define +-# +-# SUITESPARSE_FOUND - system has SUITESPARSE +-# SUITESPARSE_INCLUDE_DIRS - the SUITESPARSE include directory +-# SUITESPARSE_LIBRARIES - Link these to use SUITESPARSE +-# SUITESPARSE_SPQR_LIBRARY - name of spqr library (necessary due to error in debian package) +-# SUITESPARSE_SPQR_LIBRARY_DIR - name of spqr library (necessary due to error in debian package) +-# SUITESPARSE_LIBRARY_DIR - Library main directory containing suitesparse libs +-# SUITESPARSE_LIBRARY_DIRS - all Library directories containing suitesparse libs +-# SUITESPARSE_SPQR_VALID - automatic identification whether or not spqr package is installed correctly +- +-IF (SUITESPARSE_INCLUDE_DIRS) +- # Already in cache, be silent +- SET(SUITESPARSE_FIND_QUIETLY TRUE) +-ENDIF (SUITESPARSE_INCLUDE_DIRS) +- +-if( WIN32 ) +- # Find cholmod part of the suitesparse library collection +- +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS "C:\\libs\\win32\\SuiteSparse\\Include" ) +- +- # Add cholmod include directory to collection include directories +- IF ( CHOLMOD_INCLUDE_DIR ) +- list ( APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR} ) +- ENDIF( CHOLMOD_INCLUDE_DIR ) +- +- +- # find path suitesparse library +- FIND_PATH( SUITESPARSE_LIBRARY_DIRS +- amd.lib +- PATHS "C:\\libs\\win32\\SuiteSparse\\libs" ) +- +- # if we found the library, add it to the defined libraries +- IF ( SUITESPARSE_LIBRARY_DIRS ) +- list ( APPEND SUITESPARSE_LIBRARIES optimized;amd;optimized;camd;optimized;ccolamd;optimized;cholmod;optimized;colamd;optimized;metis;optimized;spqr;optimized;umfpack;debug;amdd;debug;camdd;debug;ccolamdd;debug;cholmodd;debug;spqrd;debug;umfpackd;debug;colamdd;debug;metisd;optimized;blas;optimized;libf2c;optimized;lapack;debug;blasd;debug;libf2cd;debug;lapackd ) +- ENDIF( SUITESPARSE_LIBRARY_DIRS ) +- +-else( WIN32 ) +- IF(APPLE) +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS /opt/local/include/ufsparse +- /usr/local/include ) +- +- FIND_PATH( SUITESPARSE_LIBRARY_DIR +- NAMES libcholmod.a +- PATHS /opt/local/lib +- /usr/local/lib ) +- ELSE(APPLE) +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS /usr/local/include +- /usr/include +- /usr/include/suitesparse/ +- ${CMAKE_SOURCE_DIR}/MacOS/Libs/cholmod +- PATH_SUFFIXES cholmod/ CHOLMOD/ ) +- +- FIND_PATH( SUITESPARSE_LIBRARY_DIR +- NAMES libcholmod.so libcholmod.a +- PATHS /usr/lib +- /usr/lib64 +- /usr/lib/x86_64-linux-gnu +- /usr/lib/i386-linux-gnu +- /usr/local/lib +- /usr/lib/arm-linux-gnueabihf/ +- /usr/lib/aarch64-linux-gnu/ +- /usr/lib/arm-linux-gnueabi/ +- /usr/lib/arm-linux-gnu) +- ENDIF(APPLE) +- +- # Add cholmod include directory to collection include directories +- IF ( CHOLMOD_INCLUDE_DIR ) +- list ( APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR} ) +- ENDIF( CHOLMOD_INCLUDE_DIR ) +- +- # if we found the library, add it to the defined libraries +- IF ( SUITESPARSE_LIBRARY_DIR ) +- +- list ( APPEND SUITESPARSE_LIBRARIES amd) +- list ( APPEND SUITESPARSE_LIBRARIES btf) +- list ( APPEND SUITESPARSE_LIBRARIES camd) +- list ( APPEND SUITESPARSE_LIBRARIES ccolamd) +- list ( APPEND SUITESPARSE_LIBRARIES cholmod) +- list ( APPEND SUITESPARSE_LIBRARIES colamd) +- # list ( APPEND SUITESPARSE_LIBRARIES csparse) +- list ( APPEND SUITESPARSE_LIBRARIES cxsparse) +- list ( APPEND SUITESPARSE_LIBRARIES klu) +- # list ( APPEND SUITESPARSE_LIBRARIES spqr) +- list ( APPEND SUITESPARSE_LIBRARIES umfpack) +- +- IF (APPLE) +- list ( APPEND SUITESPARSE_LIBRARIES suitesparseconfig) +- ENDIF (APPLE) +- +- # Metis and spqr are optional +- FIND_LIBRARY( SUITESPARSE_METIS_LIBRARY +- NAMES metis +- PATHS ${SUITESPARSE_LIBRARY_DIR} ) +- IF (SUITESPARSE_METIS_LIBRARY) +- list ( APPEND SUITESPARSE_LIBRARIES metis) +- ENDIF(SUITESPARSE_METIS_LIBRARY) +- +- if(EXISTS "${CHOLMOD_INCLUDE_DIR}/SuiteSparseQR.hpp") +- SET(SUITESPARSE_SPQR_VALID TRUE CACHE BOOL "SuiteSparseSPQR valid") +- else() +- SET(SUITESPARSE_SPQR_VALID false CACHE BOOL "SuiteSparseSPQR valid") +- endif() +- +- if(SUITESPARSE_SPQR_VALID) +- FIND_LIBRARY( SUITESPARSE_SPQR_LIBRARY +- NAMES spqr +- PATHS ${SUITESPARSE_LIBRARY_DIR} ) +- IF (SUITESPARSE_SPQR_LIBRARY) +- list ( APPEND SUITESPARSE_LIBRARIES spqr) +- ENDIF (SUITESPARSE_SPQR_LIBRARY) +- endif() +- +- ENDIF( SUITESPARSE_LIBRARY_DIR ) +- +-endif( WIN32 ) +- +- +-IF (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) +- IF(WIN32) +- list (APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR}/../../UFconfig ) +- ENDIF(WIN32) +- SET(SUITESPARSE_FOUND TRUE) +- MESSAGE(STATUS "Found SuiteSparse") +-ELSE (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) +- SET( SUITESPARSE_FOUND FALSE ) +- MESSAGE(FATAL_ERROR "Unable to find SuiteSparse") +-ENDIF (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) ++# Ceres Solver - A fast non-linear least squares minimizer ++# Copyright 2015 Google Inc. All rights reserved. ++# http://ceres-solver.org/ ++# ++# Redistribution and use in source and binary forms, with or without ++# modification, are permitted provided that the following conditions are met: ++# ++# * Redistributions of source code must retain the above copyright notice, ++# this list of conditions and the following disclaimer. ++# * Redistributions in binary form must reproduce the above copyright notice, ++# this list of conditions and the following disclaimer in the documentation ++# and/or other materials provided with the distribution. ++# * Neither the name of Google Inc. nor the names of its contributors may be ++# used to endorse or promote products derived from this software without ++# specific prior written permission. ++# ++# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ++# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ++# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ++# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ++# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ++# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ++# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ++# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++# POSSIBILITY OF SUCH DAMAGE. ++# ++# Author: alexs.mac@gmail.com (Alex Stewart) ++# + ++# FindSuiteSparse.cmake - Find SuiteSparse libraries & dependencies. ++# ++# This module defines the following variables: ++# ++# SUITESPARSE_FOUND: TRUE iff SuiteSparse and all dependencies have been found. ++# SUITESPARSE_INCLUDE_DIRS: Include directories for all SuiteSparse components. ++# SUITESPARSE_LIBRARIES: Libraries for all SuiteSparse component libraries and ++# dependencies. ++# SUITESPARSE_VERSION: Extracted from UFconfig.h (<= v3) or ++# SuiteSparse_config.h (>= v4). ++# SUITESPARSE_MAIN_VERSION: Equal to 4 if SUITESPARSE_VERSION = 4.2.1 ++# SUITESPARSE_SUB_VERSION: Equal to 2 if SUITESPARSE_VERSION = 4.2.1 ++# SUITESPARSE_SUBSUB_VERSION: Equal to 1 if SUITESPARSE_VERSION = 4.2.1 ++# ++# SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION: TRUE iff running ++# on Ubuntu, SUITESPARSE_VERSION is 3.4.0 and found SuiteSparse is a system ++# install, in which case found version of SuiteSparse cannot be used to link ++# a shared library due to a bug (static linking is unaffected). ++# ++# The following variables control the behaviour of this module: ++# ++# SUITESPARSE_INCLUDE_DIR_HINTS: List of additional directories in which to ++# search for SuiteSparse includes, ++# e.g: /timbuktu/include. ++# SUITESPARSE_LIBRARY_DIR_HINTS: List of additional directories in which to ++# search for SuiteSparse libraries, ++# e.g: /timbuktu/lib. ++# ++# The following variables define the presence / includes & libraries for the ++# SuiteSparse components searched for, the SUITESPARSE_XX variables are the ++# union of the variables for all components. ++# ++# == Symmetric Approximate Minimum Degree (AMD) ++# AMD_FOUND ++# AMD_INCLUDE_DIR ++# AMD_LIBRARY ++# ++# == Constrained Approximate Minimum Degree (CAMD) ++# CAMD_FOUND ++# CAMD_INCLUDE_DIR ++# CAMD_LIBRARY ++# ++# == Column Approximate Minimum Degree (COLAMD) ++# COLAMD_FOUND ++# COLAMD_INCLUDE_DIR ++# COLAMD_LIBRARY ++# ++# Constrained Column Approximate Minimum Degree (CCOLAMD) ++# CCOLAMD_FOUND ++# CCOLAMD_INCLUDE_DIR ++# CCOLAMD_LIBRARY ++# ++# == Sparse Supernodal Cholesky Factorization and Update/Downdate (CHOLMOD) ++# CHOLMOD_FOUND ++# CHOLMOD_INCLUDE_DIR ++# CHOLMOD_LIBRARY ++# ++# == Multifrontal Sparse QR (SuiteSparseQR) ++# SUITESPARSEQR_FOUND ++# SUITESPARSEQR_INCLUDE_DIR ++# SUITESPARSEQR_LIBRARY ++# ++# == Common configuration for all but CSparse (SuiteSparse version >= 4). ++# SUITESPARSE_CONFIG_FOUND ++# SUITESPARSE_CONFIG_INCLUDE_DIR ++# SUITESPARSE_CONFIG_LIBRARY ++# ++# == Common configuration for all but CSparse (SuiteSparse version < 4). ++# UFCONFIG_FOUND ++# UFCONFIG_INCLUDE_DIR ++# ++# Optional SuiteSparse Dependencies: ++# ++# == Serial Graph Partitioning and Fill-reducing Matrix Ordering (METIS) ++# METIS_FOUND ++# METIS_LIBRARY ++ ++# Reset CALLERS_CMAKE_FIND_LIBRARY_PREFIXES to its value when ++# FindSuiteSparse was invoked. ++macro(SUITESPARSE_RESET_FIND_LIBRARY_PREFIX) ++ if (MSVC) ++ set(CMAKE_FIND_LIBRARY_PREFIXES "${CALLERS_CMAKE_FIND_LIBRARY_PREFIXES}") ++ endif (MSVC) ++endmacro(SUITESPARSE_RESET_FIND_LIBRARY_PREFIX) ++ ++# Called if we failed to find SuiteSparse or any of it's required dependencies, ++# unsets all public (designed to be used externally) variables and reports ++# error message at priority depending upon [REQUIRED/QUIET/] argument. ++macro(SUITESPARSE_REPORT_NOT_FOUND REASON_MSG) ++ unset(SUITESPARSE_FOUND) ++ unset(SUITESPARSE_INCLUDE_DIRS) ++ unset(SUITESPARSE_LIBRARIES) ++ unset(SUITESPARSE_VERSION) ++ unset(SUITESPARSE_MAIN_VERSION) ++ unset(SUITESPARSE_SUB_VERSION) ++ unset(SUITESPARSE_SUBSUB_VERSION) ++ # Do NOT unset SUITESPARSE_FOUND_REQUIRED_VARS here, as it is used by ++ # FindPackageHandleStandardArgs() to generate the automatic error message on ++ # failure which highlights which components are missing. ++ ++ suitesparse_reset_find_library_prefix() ++ ++ # Note _FIND_[REQUIRED/QUIETLY] variables defined by FindPackage() ++ # use the camelcase library name, not uppercase. ++ if (SuiteSparse_FIND_QUIETLY) ++ message(STATUS "Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ elseif (SuiteSparse_FIND_REQUIRED) ++ message(FATAL_ERROR "Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ else() ++ # Neither QUIETLY nor REQUIRED, use no priority which emits a message ++ # but continues configuration and allows generation. ++ message("-- Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ endif (SuiteSparse_FIND_QUIETLY) ++ ++ # Do not call return(), s/t we keep processing if not called with REQUIRED ++ # and report all missing components, rather than bailing after failing to find ++ # the first. ++endmacro(SUITESPARSE_REPORT_NOT_FOUND) ++ ++# Protect against any alternative find_package scripts for this library having ++# been called previously (in a client project) which set SUITESPARSE_FOUND, but ++# not the other variables we require / set here which could cause the search ++# logic here to fail. ++unset(SUITESPARSE_FOUND) ++ ++# Handle possible presence of lib prefix for libraries on MSVC, see ++# also SUITESPARSE_RESET_FIND_LIBRARY_PREFIX(). ++if (MSVC) ++ # Preserve the caller's original values for CMAKE_FIND_LIBRARY_PREFIXES ++ # s/t we can set it back before returning. ++ set(CALLERS_CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") ++ # The empty string in this list is important, it represents the case when ++ # the libraries have no prefix (shared libraries / DLLs). ++ set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "" "${CMAKE_FIND_LIBRARY_PREFIXES}") ++endif (MSVC) ++ ++# On macOS, add the Homebrew prefix (with appropriate suffixes) to the ++# respective HINTS directories (after any user-specified locations). This ++# handles Homebrew installations into non-standard locations (not /usr/local). ++# We do not use CMAKE_PREFIX_PATH for this as given the search ordering of ++# find_xxx(), doing so would override any user-specified HINTS locations with ++# the Homebrew version if it exists. ++if (CMAKE_SYSTEM_NAME MATCHES "Darwin") ++ find_program(HOMEBREW_EXECUTABLE brew) ++ mark_as_advanced(FORCE HOMEBREW_EXECUTABLE) ++ if (HOMEBREW_EXECUTABLE) ++ # Detected a Homebrew install, query for its install prefix. ++ execute_process(COMMAND ${HOMEBREW_EXECUTABLE} --prefix ++ OUTPUT_VARIABLE HOMEBREW_INSTALL_PREFIX ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ message(STATUS "Detected Homebrew with install prefix: " ++ "${HOMEBREW_INSTALL_PREFIX}, adding to CMake search paths.") ++ list(APPEND SUITESPARSE_INCLUDE_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/include") ++ list(APPEND SUITESPARSE_LIBRARY_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/lib") ++ endif() ++endif() ++ ++# Specify search directories for include files and libraries (this is the union ++# of the search directories for all OSs). Search user-specified hint ++# directories first if supplied, and search user-installed locations first ++# so that we prefer user installs to system installs where both exist. ++list(APPEND SUITESPARSE_CHECK_INCLUDE_DIRS ++ /opt/local/include ++ /opt/local/include/ufsparse # Mac OS X ++ /usr/local/homebrew/include # Mac OS X ++ /usr/local/include ++ /usr/include) ++list(APPEND SUITESPARSE_CHECK_LIBRARY_DIRS ++ /opt/local/lib ++ /opt/local/lib/ufsparse # Mac OS X ++ /usr/local/homebrew/lib # Mac OS X ++ /usr/local/lib ++ /usr/lib) ++# Additional suffixes to try appending to each search path. ++list(APPEND SUITESPARSE_CHECK_PATH_SUFFIXES ++ suitesparse) # Windows/Ubuntu ++ ++# Wrappers to find_path/library that pass the SuiteSparse search hints/paths. ++# ++# suitesparse_find_component( [FILES name1 [name2 ...]] ++# [LIBRARIES name1 [name2 ...]] ++# [REQUIRED]) ++macro(suitesparse_find_component COMPONENT) ++ include(CMakeParseArguments) ++ set(OPTIONS REQUIRED) ++ set(MULTI_VALUE_ARGS FILES LIBRARIES) ++ cmake_parse_arguments(SUITESPARSE_FIND_${COMPONENT} ++ "${OPTIONS}" "" "${MULTI_VALUE_ARGS}" ${ARGN}) ++ ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS ${COMPONENT}_FOUND) ++ endif() ++ ++ set(${COMPONENT}_FOUND TRUE) ++ if (SUITESPARSE_FIND_${COMPONENT}_FILES) ++ find_path(${COMPONENT}_INCLUDE_DIR ++ NAMES ${SUITESPARSE_FIND_${COMPONENT}_FILES} ++ HINTS ${SUITESPARSE_INCLUDE_DIR_HINTS} ++ PATHS ${SUITESPARSE_CHECK_INCLUDE_DIRS} ++ PATH_SUFFIXES ${SUITESPARSE_CHECK_PATH_SUFFIXES}) ++ if (${COMPONENT}_INCLUDE_DIR) ++ message(STATUS "Found ${COMPONENT} headers in: " ++ "${${COMPONENT}_INCLUDE_DIR}") ++ mark_as_advanced(${COMPONENT}_INCLUDE_DIR) ++ else() ++ # Specified headers not found. ++ set(${COMPONENT}_FOUND FALSE) ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ suitesparse_report_not_found( ++ "Did not find ${COMPONENT} header (required SuiteSparse component).") ++ else() ++ message(STATUS "Did not find ${COMPONENT} header (optional " ++ "SuiteSparse component).") ++ # Hide optional vars from CMake GUI even if not found. ++ mark_as_advanced(${COMPONENT}_INCLUDE_DIR) ++ endif() ++ endif() ++ endif() ++ ++ if (SUITESPARSE_FIND_${COMPONENT}_LIBRARIES) ++ find_library(${COMPONENT}_LIBRARY ++ NAMES ${SUITESPARSE_FIND_${COMPONENT}_LIBRARIES} ++ HINTS ${SUITESPARSE_LIBRARY_DIR_HINTS} ++ PATHS ${SUITESPARSE_CHECK_LIBRARY_DIRS} ++ PATH_SUFFIXES ${SUITESPARSE_CHECK_PATH_SUFFIXES}) ++ if (${COMPONENT}_LIBRARY) ++ message(STATUS "Found ${COMPONENT} library: ${${COMPONENT}_LIBRARY}") ++ mark_as_advanced(${COMPONENT}_LIBRARY) ++ else () ++ # Specified libraries not found. ++ set(${COMPONENT}_FOUND FALSE) ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ suitesparse_report_not_found( ++ "Did not find ${COMPONENT} library (required SuiteSparse component).") ++ else() ++ message(STATUS "Did not find ${COMPONENT} library (optional SuiteSparse " ++ "dependency)") ++ # Hide optional vars from CMake GUI even if not found. ++ mark_as_advanced(${COMPONENT}_LIBRARY) ++ endif() ++ endif() ++ endif() ++endmacro() ++ ++# Given the number of components of SuiteSparse, and to ensure that the ++# automatic failure message generated by FindPackageHandleStandardArgs() ++# when not all required components are found is helpful, we maintain a list ++# of all variables that must be defined for SuiteSparse to be considered found. ++unset(SUITESPARSE_FOUND_REQUIRED_VARS) ++ ++# BLAS. ++find_package(BLAS QUIET) ++if (NOT BLAS_FOUND) ++ suitesparse_report_not_found( ++ "Did not find BLAS library (required for SuiteSparse).") ++endif (NOT BLAS_FOUND) ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS BLAS_FOUND) ++ ++# LAPACK. ++find_package(LAPACK QUIET) ++if (NOT LAPACK_FOUND) ++ suitesparse_report_not_found( ++ "Did not find LAPACK library (required for SuiteSparse).") ++endif (NOT LAPACK_FOUND) ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS LAPACK_FOUND) ++ ++suitesparse_find_component(AMD REQUIRED FILES amd.h LIBRARIES amd) ++suitesparse_find_component(CAMD REQUIRED FILES camd.h LIBRARIES camd) ++suitesparse_find_component(COLAMD REQUIRED FILES colamd.h LIBRARIES colamd) ++suitesparse_find_component(CCOLAMD REQUIRED FILES ccolamd.h LIBRARIES ccolamd) ++suitesparse_find_component(CHOLMOD REQUIRED FILES cholmod.h LIBRARIES cholmod) ++suitesparse_find_component( ++ SUITESPARSEQR REQUIRED FILES SuiteSparseQR.hpp LIBRARIES spqr) ++if (SUITESPARSEQR_FOUND) ++ # SuiteSparseQR may be compiled with Intel Threading Building Blocks, ++ # we assume that if TBB is installed, SuiteSparseQR was compiled with ++ # support for it, this will do no harm if it wasn't. ++ find_package(TBB QUIET) ++ if (TBB_FOUND) ++ message(STATUS "Found Intel Thread Building Blocks (TBB) library " ++ "(${TBB_VERSION_MAJOR}.${TBB_VERSION_MINOR} / ${TBB_INTERFACE_VERSION}) " ++ "include location: ${TBB_INCLUDE_DIRS}. Assuming SuiteSparseQR was " ++ "compiled with TBB.") ++ # Add the TBB libraries to the SuiteSparseQR libraries (the only ++ # libraries to optionally depend on TBB). ++ list(APPEND SUITESPARSEQR_LIBRARY ${TBB_LIBRARIES}) ++ else() ++ message(STATUS "Did not find Intel TBB library, assuming SuiteSparseQR was " ++ "not compiled with TBB.") ++ endif() ++endif(SUITESPARSEQR_FOUND) ++ ++# UFconfig / SuiteSparse_config. ++# ++# If SuiteSparse version is >= 4 then SuiteSparse_config is required. ++# For SuiteSparse 3, UFconfig.h is required. ++suitesparse_find_component( ++ SUITESPARSE_CONFIG FILES SuiteSparse_config.h LIBRARIES suitesparseconfig) ++ ++if (SUITESPARSE_CONFIG_FOUND) ++ # SuiteSparse_config (SuiteSparse version >= 4) requires librt library for ++ # timing by default when compiled on Linux or Unix, but not on OSX (which ++ # does not have librt). ++ if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR UNIX AND NOT APPLE) ++ suitesparse_find_component(LIBRT LIBRARIES rt) ++ if (LIBRT_FOUND) ++ message(STATUS "Adding librt: ${LIBRT_LIBRARY} to " ++ "SuiteSparse_config libraries (required on Linux & Unix [not OSX] if " ++ "SuiteSparse is compiled with timing).") ++ list(APPEND SUITESPARSE_CONFIG_LIBRARY ${LIBRT_LIBRARY}) ++ else() ++ message(STATUS "Could not find librt, but found SuiteSparse_config, " ++ "assuming that SuiteSparse was compiled without timing.") ++ endif () ++ endif (CMAKE_SYSTEM_NAME MATCHES "Linux" OR UNIX AND NOT APPLE) ++else() ++ # Failed to find SuiteSparse_config (>= v4 installs), instead look for ++ # UFconfig header which should be present in < v4 installs. ++ suitesparse_find_component(UFCONFIG FILES UFconfig.h) ++endif () ++ ++if (NOT SUITESPARSE_CONFIG_FOUND AND ++ NOT UFCONFIG_FOUND) ++ suitesparse_report_not_found( ++ "Failed to find either: SuiteSparse_config header & library (should be " ++ "present in all SuiteSparse >= v4 installs), or UFconfig header (should " ++ "be present in all SuiteSparse < v4 installs).") ++endif() ++ ++# Extract the SuiteSparse version from the appropriate header (UFconfig.h for ++# <= v3, SuiteSparse_config.h for >= v4). ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS SUITESPARSE_VERSION) ++ ++if (UFCONFIG_FOUND) ++ # SuiteSparse version <= 3. ++ set(SUITESPARSE_VERSION_FILE ${UFCONFIG_INCLUDE_DIR}/UFconfig.h) ++ if (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ suitesparse_report_not_found( ++ "Could not find file: ${SUITESPARSE_VERSION_FILE} containing version " ++ "information for <= v3 SuiteSparse installs, but UFconfig was found " ++ "(only present in <= v3 installs).") ++ else (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ file(READ ${SUITESPARSE_VERSION_FILE} UFCONFIG_CONTENTS) ++ ++ string(REGEX MATCH "#define SUITESPARSE_MAIN_VERSION [0-9]+" ++ SUITESPARSE_MAIN_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_MAIN_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUB_VERSION [0-9]+" ++ SUITESPARSE_SUB_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUBSUB_VERSION [0-9]+" ++ SUITESPARSE_SUBSUB_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUBSUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 4.;2.;1 nonsense. ++ set(SUITESPARSE_VERSION ++ "${SUITESPARSE_MAIN_VERSION}.${SUITESPARSE_SUB_VERSION}.${SUITESPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++endif (UFCONFIG_FOUND) ++ ++if (SUITESPARSE_CONFIG_FOUND) ++ # SuiteSparse version >= 4. ++ set(SUITESPARSE_VERSION_FILE ++ ${SUITESPARSE_CONFIG_INCLUDE_DIR}/SuiteSparse_config.h) ++ if (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ suitesparse_report_not_found( ++ "Could not find file: ${SUITESPARSE_VERSION_FILE} containing version " ++ "information for >= v4 SuiteSparse installs, but SuiteSparse_config was " ++ "found (only present in >= v4 installs).") ++ else (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ file(READ ${SUITESPARSE_VERSION_FILE} SUITESPARSE_CONFIG_CONTENTS) ++ ++ string(REGEX MATCH "#define SUITESPARSE_MAIN_VERSION [0-9]+" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_MAIN_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUB_VERSION [0-9]+" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUBSUB_VERSION [0-9]+" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUBSUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 4.;2.;1 nonsense. ++ set(SUITESPARSE_VERSION ++ "${SUITESPARSE_MAIN_VERSION}.${SUITESPARSE_SUB_VERSION}.${SUITESPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++endif (SUITESPARSE_CONFIG_FOUND) ++ ++# METIS (Optional dependency). ++suitesparse_find_component(METIS LIBRARIES metis) ++ ++# Only mark SuiteSparse as found if all required components and dependencies ++# have been found. ++set(SUITESPARSE_FOUND TRUE) ++foreach(REQUIRED_VAR ${SUITESPARSE_FOUND_REQUIRED_VARS}) ++ if (NOT ${REQUIRED_VAR}) ++ set(SUITESPARSE_FOUND FALSE) ++ endif (NOT ${REQUIRED_VAR}) ++endforeach(REQUIRED_VAR ${SUITESPARSE_FOUND_REQUIRED_VARS}) ++ ++if (SUITESPARSE_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${AMD_INCLUDE_DIR} ++ ${CAMD_INCLUDE_DIR} ++ ${COLAMD_INCLUDE_DIR} ++ ${CCOLAMD_INCLUDE_DIR} ++ ${CHOLMOD_INCLUDE_DIR} ++ ${SUITESPARSEQR_INCLUDE_DIR}) ++ # Handle config separately, as otherwise at least one of them will be set ++ # to NOTFOUND which would cause any check on SUITESPARSE_INCLUDE_DIRS to fail. ++ if (SUITESPARSE_CONFIG_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${SUITESPARSE_CONFIG_INCLUDE_DIR}) ++ endif (SUITESPARSE_CONFIG_FOUND) ++ if (UFCONFIG_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${UFCONFIG_INCLUDE_DIR}) ++ endif (UFCONFIG_FOUND) ++ # As SuiteSparse includes are often all in the same directory, remove any ++ # repetitions. ++ list(REMOVE_DUPLICATES SUITESPARSE_INCLUDE_DIRS) ++ ++ # Important: The ordering of these libraries is *NOT* arbitrary, as these ++ # could potentially be static libraries their link ordering is important. ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${SUITESPARSEQR_LIBRARY} ++ ${CHOLMOD_LIBRARY} ++ ${CCOLAMD_LIBRARY} ++ ${CAMD_LIBRARY} ++ ${COLAMD_LIBRARY} ++ ${AMD_LIBRARY} ++ ${LAPACK_LIBRARIES} ++ ${BLAS_LIBRARIES}) ++ if (SUITESPARSE_CONFIG_FOUND) ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${SUITESPARSE_CONFIG_LIBRARY}) ++ endif (SUITESPARSE_CONFIG_FOUND) ++ if (METIS_FOUND) ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${METIS_LIBRARY}) ++ endif (METIS_FOUND) ++endif() ++ ++# Determine if we are running on Ubuntu with the package install of SuiteSparse ++# which is broken and does not support linking a shared library. ++set(SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION FALSE) ++if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND ++ SUITESPARSE_VERSION VERSION_EQUAL 3.4.0) ++ find_program(LSB_RELEASE_EXECUTABLE lsb_release) ++ if (LSB_RELEASE_EXECUTABLE) ++ # Any even moderately recent Ubuntu release (likely to be affected by ++ # this bug) should have lsb_release, if it isn't present we are likely ++ # on a different Linux distribution (should be fine). ++ execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -si ++ OUTPUT_VARIABLE LSB_DISTRIBUTOR_ID ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ ++ if (LSB_DISTRIBUTOR_ID MATCHES "Ubuntu" AND ++ SUITESPARSE_LIBRARIES MATCHES "/usr/lib/libamd") ++ # We are on Ubuntu, and the SuiteSparse version matches the broken ++ # system install version and is a system install. ++ set(SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION TRUE) ++ message(STATUS "Found system install of SuiteSparse " ++ "${SUITESPARSE_VERSION} running on Ubuntu, which has a known bug " ++ "preventing linking of shared libraries (static linking unaffected).") ++ endif (LSB_DISTRIBUTOR_ID MATCHES "Ubuntu" AND ++ SUITESPARSE_LIBRARIES MATCHES "/usr/lib/libamd") ++ endif (LSB_RELEASE_EXECUTABLE) ++endif (CMAKE_SYSTEM_NAME MATCHES "Linux" AND ++ SUITESPARSE_VERSION VERSION_EQUAL 3.4.0) ++ ++suitesparse_reset_find_library_prefix() ++ ++# Handle REQUIRED and QUIET arguments to FIND_PACKAGE ++include(FindPackageHandleStandardArgs) ++if (SUITESPARSE_FOUND) ++ find_package_handle_standard_args(SuiteSparse ++ REQUIRED_VARS ${SUITESPARSE_FOUND_REQUIRED_VARS} ++ VERSION_VAR SUITESPARSE_VERSION ++ FAIL_MESSAGE "Failed to find some/all required components of SuiteSparse.") ++else (SUITESPARSE_FOUND) ++ # Do not pass VERSION_VAR to FindPackageHandleStandardArgs() if we failed to ++ # find SuiteSparse to avoid a confusing autogenerated failure message ++ # that states 'not found (missing: FOO) (found version: x.y.z)'. ++ find_package_handle_standard_args(SuiteSparse ++ REQUIRED_VARS ${SUITESPARSE_FOUND_REQUIRED_VARS} ++ FAIL_MESSAGE "Failed to find some/all required components of SuiteSparse.") ++endif (SUITESPARSE_FOUND) +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 97fe249..f37beee 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,6 +34,7 @@ message(STATUS "${CMAKE_MODULE_PATH}") + find_package(Boost REQUIRED COMPONENTS system thread graph) + find_package(SUITESPARSE REQUIRED) + find_package(G2O REQUIRED) ++find_package(CSparse REQUIRED) + + # Eigen3 FindScript Backward compatibility (ubuntu saucy) + # Since FindEigen.cmake is deprecated starting from jade. +@@ -48,7 +49,7 @@ elseif (EXISTS "FindEigen.cmake") + endif (EXISTS "FindEigen3.cmake") + + set(EXTERNAL_INCLUDE_DIRS ${Eigen_INCLUDE_DIRS} ${SUITESPARSE_INCLUDE_DIRS} ${G2O_INCLUDE_DIR}) +-set(EXTERNAL_LIBS ${SUITESPARSE_LIBRARIES} ${G2O_LIBRARIES}) ++set(EXTERNAL_LIBS ${SUITESPARSE_LIBRARIES} ${G2O_LIBRARIES} ${CSPARSE_LIBRARY} ${Boost_LIBRARIES} Boost::boost) + + ## Uncomment this if the package has a setup.py. This macro ensures + ## modules and global scripts declared therein get installed diff --git a/distros/noetic/patch/ros-noetic-teb-local-planner.osx.patch b/distros/noetic/patch/ros-noetic-teb-local-planner.osx.patch new file mode 100644 index 000000000..92420cebc --- /dev/null +++ b/distros/noetic/patch/ros-noetic-teb-local-planner.osx.patch @@ -0,0 +1,793 @@ +diff --git a/include/teb_local_planner/timed_elastic_band.hpp b/include/teb_local_planner/timed_elastic_band.hpp +index 66c92b8..8a95eaf 100644 +--- a/include/teb_local_planner/timed_elastic_band.hpp ++++ b/include/teb_local_planner/timed_elastic_band.hpp +@@ -36,6 +36,7 @@ + * Author: Christoph Rösmann + *********************************************************************/ + ++#include + #include + + namespace teb_local_planner +@@ -49,7 +50,7 @@ bool TimedElasticBand::initTrajectoryToGoal(BidirIter path_start, BidirIter path + boost::optional start_orientation, boost::optional goal_orientation, int min_samples, bool guess_backwards_motion) + { + Eigen::Vector2d start_position = fun_position( *path_start ); +- Eigen::Vector2d goal_position = fun_position( *boost::prior(path_end) ); ++ Eigen::Vector2d goal_position = fun_position( *std::prev(path_end) ); + + bool backwards = false; + +diff --git a/include/teb_local_planner/visualization.hpp b/include/teb_local_planner/visualization.hpp +index e619e52..548c57a 100644 +--- a/include/teb_local_planner/visualization.hpp ++++ b/include/teb_local_planner/visualization.hpp +@@ -38,6 +38,7 @@ + + #include + #include ++#include + + + namespace teb_local_planner +@@ -196,7 +197,7 @@ void TebVisualization::publishPathContainer(BidirIter first, BidirIter last, con + { + // iterate single path points + typename PathType::const_iterator it_point, end_point; +- for (it_point = first->begin(), end_point = boost::prior(first->end()); it_point != end_point; ++it_point) ++ for (it_point = first->begin(), end_point = std::prev(first->end()); it_point != end_point; ++it_point) + { + geometry_msgs::Point point_start; + point_start.x = get_const_reference(*it_point).x(); +@@ -205,8 +206,8 @@ void TebVisualization::publishPathContainer(BidirIter first, BidirIter last, con + marker.points.push_back(point_start); + + geometry_msgs::Point point_end; +- point_end.x = get_const_reference(*boost::next(it_point)).x(); +- point_end.y = get_const_reference(*boost::next(it_point)).y(); ++ point_end.x = get_const_reference(*std::next(it_point)).x(); ++ point_end.y = get_const_reference(*std::next(it_point)).y(); + point_end.z = 0; + marker.points.push_back(point_end); + } + +diff --git a/include/teb_local_planner/h_signature.h b/include/teb_local_planner/h_signature.h +index 8837950..4cffcda 100644 +--- a/include/teb_local_planner/h_signature.h ++++ b/include/teb_local_planner/h_signature.h +@@ -46,6 +46,7 @@ + #include + + #include ++#include + #include + #include + #include +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 165527db..df148c9c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -31,9 +31,10 @@ message(STATUS "System: ${CMAKE_SYSTEM}") + ## System dependencies are found with CMake's conventions + SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake_modules) + message(STATUS "${CMAKE_MODULE_PATH}") +-find_package(Boost REQUIRED COMPONENTS system thread graph) ++find_package(Boost REQUIRED COMPONENTS system thread graph) + find_package(SUITESPARSE REQUIRED) + find_package(G2O REQUIRED) ++find_package(CSparse REQUIRED) + + # Eigen3 FindScript Backward compatibility (ubuntu saucy) + # Since FindEigen.cmake is deprecated starting from jade. +@@ -48,7 +49,7 @@ elseif (EXISTS "FindEigen.cmake") + endif (EXISTS "FindEigen3.cmake") + + set(EXTERNAL_INCLUDE_DIRS ${Eigen_INCLUDE_DIRS} ${SUITESPARSE_INCLUDE_DIRS} ${G2O_INCLUDE_DIR}) +-set(EXTERNAL_LIBS ${SUITESPARSE_LIBRARIES} ${G2O_LIBRARIES}) ++set(EXTERNAL_LIBS ${SUITESPARSE_LIBRARIES} ${G2O_LIBRARIES} ${CSPARSE_LIBRARY} ${Boost_LIBRARIES} Boost::boost) + + ## Uncomment this if the package has a setup.py. This macro ensures + ## modules and global scripts declared therein get installed +diff --git a/cmake_modules/FindCSparse.cmake b/cmake_modules/FindCSparse.cmake +new file mode 100644 +index 0000000..5550151 +--- /dev/null ++++ b/cmake_modules/FindCSparse.cmake +@@ -0,0 +1,28 @@ ++# Look for csparse; note the difference in the directory specifications! ++find_path(CSPARSE_INCLUDE_DIR NAMES cs.h ++ PATHS ++ /usr/include/suitesparse ++ /usr/include ++ /opt/local/include ++ /usr/local/include ++ /sw/include ++ /usr/include/ufsparse ++ /opt/local/include/ufsparse ++ /usr/local/include/ufsparse ++ /sw/include/ufsparse ++ PATH_SUFFIXES ++ suitesparse ++ ) ++ ++find_library(CSPARSE_LIBRARY NAMES cxsparse libcxsparse ++ PATHS ++ /usr/lib ++ /usr/local/lib ++ /opt/local/lib ++ /sw/lib ++ ) ++ ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(CSPARSE DEFAULT_MSG ++ CSPARSE_INCLUDE_DIR CSPARSE_LIBRARY) ++ +diff --git a/cmake_modules/FindSUITESPARSE.cmake b/cmake_modules/FindSUITESPARSE.cmake +index 101b79b..aad8904 100644 +--- a/cmake_modules/FindSUITESPARSE.cmake ++++ b/cmake_modules/FindSUITESPARSE.cmake +@@ -1,133 +1,531 @@ +-# - Try to find SUITESPARSE +-# Once done this will define +-# +-# SUITESPARSE_FOUND - system has SUITESPARSE +-# SUITESPARSE_INCLUDE_DIRS - the SUITESPARSE include directory +-# SUITESPARSE_LIBRARIES - Link these to use SUITESPARSE +-# SUITESPARSE_SPQR_LIBRARY - name of spqr library (necessary due to error in debian package) +-# SUITESPARSE_SPQR_LIBRARY_DIR - name of spqr library (necessary due to error in debian package) +-# SUITESPARSE_LIBRARY_DIR - Library main directory containing suitesparse libs +-# SUITESPARSE_LIBRARY_DIRS - all Library directories containing suitesparse libs +-# SUITESPARSE_SPQR_VALID - automatic identification whether or not spqr package is installed correctly +- +-IF (SUITESPARSE_INCLUDE_DIRS) +- # Already in cache, be silent +- SET(SUITESPARSE_FIND_QUIETLY TRUE) +-ENDIF (SUITESPARSE_INCLUDE_DIRS) +- +-if( WIN32 ) +- # Find cholmod part of the suitesparse library collection +- +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS "C:\\libs\\win32\\SuiteSparse\\Include" ) +- +- # Add cholmod include directory to collection include directories +- IF ( CHOLMOD_INCLUDE_DIR ) +- list ( APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR} ) +- ENDIF( CHOLMOD_INCLUDE_DIR ) +- +- +- # find path suitesparse library +- FIND_PATH( SUITESPARSE_LIBRARY_DIRS +- amd.lib +- PATHS "C:\\libs\\win32\\SuiteSparse\\libs" ) +- +- # if we found the library, add it to the defined libraries +- IF ( SUITESPARSE_LIBRARY_DIRS ) +- list ( APPEND SUITESPARSE_LIBRARIES optimized;amd;optimized;camd;optimized;ccolamd;optimized;cholmod;optimized;colamd;optimized;metis;optimized;spqr;optimized;umfpack;debug;amdd;debug;camdd;debug;ccolamdd;debug;cholmodd;debug;spqrd;debug;umfpackd;debug;colamdd;debug;metisd;optimized;blas;optimized;libf2c;optimized;lapack;debug;blasd;debug;libf2cd;debug;lapackd ) +- ENDIF( SUITESPARSE_LIBRARY_DIRS ) +- +-else( WIN32 ) +- IF(APPLE) +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS /opt/local/include/ufsparse +- /usr/local/include ) +- +- FIND_PATH( SUITESPARSE_LIBRARY_DIR +- NAMES libcholmod.a +- PATHS /opt/local/lib +- /usr/local/lib ) +- ELSE(APPLE) +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS /usr/local/include +- /usr/include +- /usr/include/suitesparse/ +- ${CMAKE_SOURCE_DIR}/MacOS/Libs/cholmod +- PATH_SUFFIXES cholmod/ CHOLMOD/ ) +- +- FIND_PATH( SUITESPARSE_LIBRARY_DIR +- NAMES libcholmod.so libcholmod.a +- PATHS /usr/lib +- /usr/lib64 +- /usr/lib/x86_64-linux-gnu +- /usr/lib/i386-linux-gnu +- /usr/local/lib +- /usr/lib/arm-linux-gnueabihf/ +- /usr/lib/aarch64-linux-gnu/ +- /usr/lib/arm-linux-gnueabi/ +- /usr/lib/arm-linux-gnu) +- ENDIF(APPLE) +- +- # Add cholmod include directory to collection include directories +- IF ( CHOLMOD_INCLUDE_DIR ) +- list ( APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR} ) +- ENDIF( CHOLMOD_INCLUDE_DIR ) +- +- # if we found the library, add it to the defined libraries +- IF ( SUITESPARSE_LIBRARY_DIR ) +- +- list ( APPEND SUITESPARSE_LIBRARIES amd) +- list ( APPEND SUITESPARSE_LIBRARIES btf) +- list ( APPEND SUITESPARSE_LIBRARIES camd) +- list ( APPEND SUITESPARSE_LIBRARIES ccolamd) +- list ( APPEND SUITESPARSE_LIBRARIES cholmod) +- list ( APPEND SUITESPARSE_LIBRARIES colamd) +- # list ( APPEND SUITESPARSE_LIBRARIES csparse) +- list ( APPEND SUITESPARSE_LIBRARIES cxsparse) +- list ( APPEND SUITESPARSE_LIBRARIES klu) +- # list ( APPEND SUITESPARSE_LIBRARIES spqr) +- list ( APPEND SUITESPARSE_LIBRARIES umfpack) +- +- IF (APPLE) +- list ( APPEND SUITESPARSE_LIBRARIES suitesparseconfig) +- ENDIF (APPLE) +- +- # Metis and spqr are optional +- FIND_LIBRARY( SUITESPARSE_METIS_LIBRARY +- NAMES metis +- PATHS ${SUITESPARSE_LIBRARY_DIR} ) +- IF (SUITESPARSE_METIS_LIBRARY) +- list ( APPEND SUITESPARSE_LIBRARIES metis) +- ENDIF(SUITESPARSE_METIS_LIBRARY) +- +- if(EXISTS "${CHOLMOD_INCLUDE_DIR}/SuiteSparseQR.hpp") +- SET(SUITESPARSE_SPQR_VALID TRUE CACHE BOOL "SuiteSparseSPQR valid") +- else() +- SET(SUITESPARSE_SPQR_VALID false CACHE BOOL "SuiteSparseSPQR valid") +- endif() +- +- if(SUITESPARSE_SPQR_VALID) +- FIND_LIBRARY( SUITESPARSE_SPQR_LIBRARY +- NAMES spqr +- PATHS ${SUITESPARSE_LIBRARY_DIR} ) +- IF (SUITESPARSE_SPQR_LIBRARY) +- list ( APPEND SUITESPARSE_LIBRARIES spqr) +- ENDIF (SUITESPARSE_SPQR_LIBRARY) +- endif() +- +- ENDIF( SUITESPARSE_LIBRARY_DIR ) +- +-endif( WIN32 ) +- +- +-IF (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) +- IF(WIN32) +- list (APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR}/../../UFconfig ) +- ENDIF(WIN32) +- SET(SUITESPARSE_FOUND TRUE) +- MESSAGE(STATUS "Found SuiteSparse") +-ELSE (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) +- SET( SUITESPARSE_FOUND FALSE ) +- MESSAGE(FATAL_ERROR "Unable to find SuiteSparse") +-ENDIF (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) ++# Ceres Solver - A fast non-linear least squares minimizer ++# Copyright 2015 Google Inc. All rights reserved. ++# http://ceres-solver.org/ ++# ++# Redistribution and use in source and binary forms, with or without ++# modification, are permitted provided that the following conditions are met: ++# ++# * Redistributions of source code must retain the above copyright notice, ++# this list of conditions and the following disclaimer. ++# * Redistributions in binary form must reproduce the above copyright notice, ++# this list of conditions and the following disclaimer in the documentation ++# and/or other materials provided with the distribution. ++# * Neither the name of Google Inc. nor the names of its contributors may be ++# used to endorse or promote products derived from this software without ++# specific prior written permission. ++# ++# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ++# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ++# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ++# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ++# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ++# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ++# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ++# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++# POSSIBILITY OF SUCH DAMAGE. ++# ++# Author: alexs.mac@gmail.com (Alex Stewart) ++# + ++# FindSuiteSparse.cmake - Find SuiteSparse libraries & dependencies. ++# ++# This module defines the following variables: ++# ++# SUITESPARSE_FOUND: TRUE iff SuiteSparse and all dependencies have been found. ++# SUITESPARSE_INCLUDE_DIRS: Include directories for all SuiteSparse components. ++# SUITESPARSE_LIBRARIES: Libraries for all SuiteSparse component libraries and ++# dependencies. ++# SUITESPARSE_VERSION: Extracted from UFconfig.h (<= v3) or ++# SuiteSparse_config.h (>= v4). ++# SUITESPARSE_MAIN_VERSION: Equal to 4 if SUITESPARSE_VERSION = 4.2.1 ++# SUITESPARSE_SUB_VERSION: Equal to 2 if SUITESPARSE_VERSION = 4.2.1 ++# SUITESPARSE_SUBSUB_VERSION: Equal to 1 if SUITESPARSE_VERSION = 4.2.1 ++# ++# SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION: TRUE iff running ++# on Ubuntu, SUITESPARSE_VERSION is 3.4.0 and found SuiteSparse is a system ++# install, in which case found version of SuiteSparse cannot be used to link ++# a shared library due to a bug (static linking is unaffected). ++# ++# The following variables control the behaviour of this module: ++# ++# SUITESPARSE_INCLUDE_DIR_HINTS: List of additional directories in which to ++# search for SuiteSparse includes, ++# e.g: /timbuktu/include. ++# SUITESPARSE_LIBRARY_DIR_HINTS: List of additional directories in which to ++# search for SuiteSparse libraries, ++# e.g: /timbuktu/lib. ++# ++# The following variables define the presence / includes & libraries for the ++# SuiteSparse components searched for, the SUITESPARSE_XX variables are the ++# union of the variables for all components. ++# ++# == Symmetric Approximate Minimum Degree (AMD) ++# AMD_FOUND ++# AMD_INCLUDE_DIR ++# AMD_LIBRARY ++# ++# == Constrained Approximate Minimum Degree (CAMD) ++# CAMD_FOUND ++# CAMD_INCLUDE_DIR ++# CAMD_LIBRARY ++# ++# == Column Approximate Minimum Degree (COLAMD) ++# COLAMD_FOUND ++# COLAMD_INCLUDE_DIR ++# COLAMD_LIBRARY ++# ++# Constrained Column Approximate Minimum Degree (CCOLAMD) ++# CCOLAMD_FOUND ++# CCOLAMD_INCLUDE_DIR ++# CCOLAMD_LIBRARY ++# ++# == Sparse Supernodal Cholesky Factorization and Update/Downdate (CHOLMOD) ++# CHOLMOD_FOUND ++# CHOLMOD_INCLUDE_DIR ++# CHOLMOD_LIBRARY ++# ++# == Multifrontal Sparse QR (SuiteSparseQR) ++# SUITESPARSEQR_FOUND ++# SUITESPARSEQR_INCLUDE_DIR ++# SUITESPARSEQR_LIBRARY ++# ++# == Common configuration for all but CSparse (SuiteSparse version >= 4). ++# SUITESPARSE_CONFIG_FOUND ++# SUITESPARSE_CONFIG_INCLUDE_DIR ++# SUITESPARSE_CONFIG_LIBRARY ++# ++# == Common configuration for all but CSparse (SuiteSparse version < 4). ++# UFCONFIG_FOUND ++# UFCONFIG_INCLUDE_DIR ++# ++# Optional SuiteSparse Dependencies: ++# ++# == Serial Graph Partitioning and Fill-reducing Matrix Ordering (METIS) ++# METIS_FOUND ++# METIS_LIBRARY ++ ++# Reset CALLERS_CMAKE_FIND_LIBRARY_PREFIXES to its value when ++# FindSuiteSparse was invoked. ++macro(SUITESPARSE_RESET_FIND_LIBRARY_PREFIX) ++ if (MSVC) ++ set(CMAKE_FIND_LIBRARY_PREFIXES "${CALLERS_CMAKE_FIND_LIBRARY_PREFIXES}") ++ endif (MSVC) ++endmacro(SUITESPARSE_RESET_FIND_LIBRARY_PREFIX) ++ ++# Called if we failed to find SuiteSparse or any of it's required dependencies, ++# unsets all public (designed to be used externally) variables and reports ++# error message at priority depending upon [REQUIRED/QUIET/] argument. ++macro(SUITESPARSE_REPORT_NOT_FOUND REASON_MSG) ++ unset(SUITESPARSE_FOUND) ++ unset(SUITESPARSE_INCLUDE_DIRS) ++ unset(SUITESPARSE_LIBRARIES) ++ unset(SUITESPARSE_VERSION) ++ unset(SUITESPARSE_MAIN_VERSION) ++ unset(SUITESPARSE_SUB_VERSION) ++ unset(SUITESPARSE_SUBSUB_VERSION) ++ # Do NOT unset SUITESPARSE_FOUND_REQUIRED_VARS here, as it is used by ++ # FindPackageHandleStandardArgs() to generate the automatic error message on ++ # failure which highlights which components are missing. ++ ++ suitesparse_reset_find_library_prefix() ++ ++ # Note _FIND_[REQUIRED/QUIETLY] variables defined by FindPackage() ++ # use the camelcase library name, not uppercase. ++ if (SuiteSparse_FIND_QUIETLY) ++ message(STATUS "Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ elseif (SuiteSparse_FIND_REQUIRED) ++ message(FATAL_ERROR "Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ else() ++ # Neither QUIETLY nor REQUIRED, use no priority which emits a message ++ # but continues configuration and allows generation. ++ message("-- Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ endif (SuiteSparse_FIND_QUIETLY) ++ ++ # Do not call return(), s/t we keep processing if not called with REQUIRED ++ # and report all missing components, rather than bailing after failing to find ++ # the first. ++endmacro(SUITESPARSE_REPORT_NOT_FOUND) ++ ++# Protect against any alternative find_package scripts for this library having ++# been called previously (in a client project) which set SUITESPARSE_FOUND, but ++# not the other variables we require / set here which could cause the search ++# logic here to fail. ++unset(SUITESPARSE_FOUND) ++ ++# Handle possible presence of lib prefix for libraries on MSVC, see ++# also SUITESPARSE_RESET_FIND_LIBRARY_PREFIX(). ++if (MSVC) ++ # Preserve the caller's original values for CMAKE_FIND_LIBRARY_PREFIXES ++ # s/t we can set it back before returning. ++ set(CALLERS_CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") ++ # The empty string in this list is important, it represents the case when ++ # the libraries have no prefix (shared libraries / DLLs). ++ set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "" "${CMAKE_FIND_LIBRARY_PREFIXES}") ++endif (MSVC) ++ ++# On macOS, add the Homebrew prefix (with appropriate suffixes) to the ++# respective HINTS directories (after any user-specified locations). This ++# handles Homebrew installations into non-standard locations (not /usr/local). ++# We do not use CMAKE_PREFIX_PATH for this as given the search ordering of ++# find_xxx(), doing so would override any user-specified HINTS locations with ++# the Homebrew version if it exists. ++if (CMAKE_SYSTEM_NAME MATCHES "Darwin") ++ find_program(HOMEBREW_EXECUTABLE brew) ++ mark_as_advanced(FORCE HOMEBREW_EXECUTABLE) ++ if (HOMEBREW_EXECUTABLE) ++ # Detected a Homebrew install, query for its install prefix. ++ execute_process(COMMAND ${HOMEBREW_EXECUTABLE} --prefix ++ OUTPUT_VARIABLE HOMEBREW_INSTALL_PREFIX ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ message(STATUS "Detected Homebrew with install prefix: " ++ "${HOMEBREW_INSTALL_PREFIX}, adding to CMake search paths.") ++ list(APPEND SUITESPARSE_INCLUDE_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/include") ++ list(APPEND SUITESPARSE_LIBRARY_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/lib") ++ endif() ++endif() ++ ++# Specify search directories for include files and libraries (this is the union ++# of the search directories for all OSs). Search user-specified hint ++# directories first if supplied, and search user-installed locations first ++# so that we prefer user installs to system installs where both exist. ++list(APPEND SUITESPARSE_CHECK_INCLUDE_DIRS ++ /opt/local/include ++ /opt/local/include/ufsparse # Mac OS X ++ /usr/local/homebrew/include # Mac OS X ++ /usr/local/include ++ /usr/include) ++list(APPEND SUITESPARSE_CHECK_LIBRARY_DIRS ++ /opt/local/lib ++ /opt/local/lib/ufsparse # Mac OS X ++ /usr/local/homebrew/lib # Mac OS X ++ /usr/local/lib ++ /usr/lib) ++# Additional suffixes to try appending to each search path. ++list(APPEND SUITESPARSE_CHECK_PATH_SUFFIXES ++ suitesparse) # Windows/Ubuntu ++ ++# Wrappers to find_path/library that pass the SuiteSparse search hints/paths. ++# ++# suitesparse_find_component( [FILES name1 [name2 ...]] ++# [LIBRARIES name1 [name2 ...]] ++# [REQUIRED]) ++macro(suitesparse_find_component COMPONENT) ++ include(CMakeParseArguments) ++ set(OPTIONS REQUIRED) ++ set(MULTI_VALUE_ARGS FILES LIBRARIES) ++ cmake_parse_arguments(SUITESPARSE_FIND_${COMPONENT} ++ "${OPTIONS}" "" "${MULTI_VALUE_ARGS}" ${ARGN}) ++ ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS ${COMPONENT}_FOUND) ++ endif() ++ ++ set(${COMPONENT}_FOUND TRUE) ++ if (SUITESPARSE_FIND_${COMPONENT}_FILES) ++ find_path(${COMPONENT}_INCLUDE_DIR ++ NAMES ${SUITESPARSE_FIND_${COMPONENT}_FILES} ++ HINTS ${SUITESPARSE_INCLUDE_DIR_HINTS} ++ PATHS ${SUITESPARSE_CHECK_INCLUDE_DIRS} ++ PATH_SUFFIXES ${SUITESPARSE_CHECK_PATH_SUFFIXES}) ++ if (${COMPONENT}_INCLUDE_DIR) ++ message(STATUS "Found ${COMPONENT} headers in: " ++ "${${COMPONENT}_INCLUDE_DIR}") ++ mark_as_advanced(${COMPONENT}_INCLUDE_DIR) ++ else() ++ # Specified headers not found. ++ set(${COMPONENT}_FOUND FALSE) ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ suitesparse_report_not_found( ++ "Did not find ${COMPONENT} header (required SuiteSparse component).") ++ else() ++ message(STATUS "Did not find ${COMPONENT} header (optional " ++ "SuiteSparse component).") ++ # Hide optional vars from CMake GUI even if not found. ++ mark_as_advanced(${COMPONENT}_INCLUDE_DIR) ++ endif() ++ endif() ++ endif() ++ ++ if (SUITESPARSE_FIND_${COMPONENT}_LIBRARIES) ++ find_library(${COMPONENT}_LIBRARY ++ NAMES ${SUITESPARSE_FIND_${COMPONENT}_LIBRARIES} ++ HINTS ${SUITESPARSE_LIBRARY_DIR_HINTS} ++ PATHS ${SUITESPARSE_CHECK_LIBRARY_DIRS} ++ PATH_SUFFIXES ${SUITESPARSE_CHECK_PATH_SUFFIXES}) ++ if (${COMPONENT}_LIBRARY) ++ message(STATUS "Found ${COMPONENT} library: ${${COMPONENT}_LIBRARY}") ++ mark_as_advanced(${COMPONENT}_LIBRARY) ++ else () ++ # Specified libraries not found. ++ set(${COMPONENT}_FOUND FALSE) ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ suitesparse_report_not_found( ++ "Did not find ${COMPONENT} library (required SuiteSparse component).") ++ else() ++ message(STATUS "Did not find ${COMPONENT} library (optional SuiteSparse " ++ "dependency)") ++ # Hide optional vars from CMake GUI even if not found. ++ mark_as_advanced(${COMPONENT}_LIBRARY) ++ endif() ++ endif() ++ endif() ++endmacro() ++ ++# Given the number of components of SuiteSparse, and to ensure that the ++# automatic failure message generated by FindPackageHandleStandardArgs() ++# when not all required components are found is helpful, we maintain a list ++# of all variables that must be defined for SuiteSparse to be considered found. ++unset(SUITESPARSE_FOUND_REQUIRED_VARS) ++ ++# BLAS. ++find_package(BLAS QUIET) ++if (NOT BLAS_FOUND) ++ suitesparse_report_not_found( ++ "Did not find BLAS library (required for SuiteSparse).") ++endif (NOT BLAS_FOUND) ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS BLAS_FOUND) ++ ++# LAPACK. ++find_package(LAPACK QUIET) ++if (NOT LAPACK_FOUND) ++ suitesparse_report_not_found( ++ "Did not find LAPACK library (required for SuiteSparse).") ++endif (NOT LAPACK_FOUND) ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS LAPACK_FOUND) ++ ++suitesparse_find_component(AMD REQUIRED FILES amd.h LIBRARIES amd) ++suitesparse_find_component(CAMD REQUIRED FILES camd.h LIBRARIES camd) ++suitesparse_find_component(COLAMD REQUIRED FILES colamd.h LIBRARIES colamd) ++suitesparse_find_component(CCOLAMD REQUIRED FILES ccolamd.h LIBRARIES ccolamd) ++suitesparse_find_component(CHOLMOD REQUIRED FILES cholmod.h LIBRARIES cholmod) ++suitesparse_find_component( ++ SUITESPARSEQR REQUIRED FILES SuiteSparseQR.hpp LIBRARIES spqr) ++if (SUITESPARSEQR_FOUND) ++ # SuiteSparseQR may be compiled with Intel Threading Building Blocks, ++ # we assume that if TBB is installed, SuiteSparseQR was compiled with ++ # support for it, this will do no harm if it wasn't. ++ find_package(TBB QUIET) ++ if (TBB_FOUND) ++ message(STATUS "Found Intel Thread Building Blocks (TBB) library " ++ "(${TBB_VERSION_MAJOR}.${TBB_VERSION_MINOR} / ${TBB_INTERFACE_VERSION}) " ++ "include location: ${TBB_INCLUDE_DIRS}. Assuming SuiteSparseQR was " ++ "compiled with TBB.") ++ # Add the TBB libraries to the SuiteSparseQR libraries (the only ++ # libraries to optionally depend on TBB). ++ list(APPEND SUITESPARSEQR_LIBRARY ${TBB_LIBRARIES}) ++ else() ++ message(STATUS "Did not find Intel TBB library, assuming SuiteSparseQR was " ++ "not compiled with TBB.") ++ endif() ++endif(SUITESPARSEQR_FOUND) ++ ++# UFconfig / SuiteSparse_config. ++# ++# If SuiteSparse version is >= 4 then SuiteSparse_config is required. ++# For SuiteSparse 3, UFconfig.h is required. ++suitesparse_find_component( ++ SUITESPARSE_CONFIG FILES SuiteSparse_config.h LIBRARIES suitesparseconfig) ++ ++if (SUITESPARSE_CONFIG_FOUND) ++ # SuiteSparse_config (SuiteSparse version >= 4) requires librt library for ++ # timing by default when compiled on Linux or Unix, but not on OSX (which ++ # does not have librt). ++ if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR UNIX AND NOT APPLE) ++ suitesparse_find_component(LIBRT LIBRARIES rt) ++ if (LIBRT_FOUND) ++ message(STATUS "Adding librt: ${LIBRT_LIBRARY} to " ++ "SuiteSparse_config libraries (required on Linux & Unix [not OSX] if " ++ "SuiteSparse is compiled with timing).") ++ list(APPEND SUITESPARSE_CONFIG_LIBRARY ${LIBRT_LIBRARY}) ++ else() ++ message(STATUS "Could not find librt, but found SuiteSparse_config, " ++ "assuming that SuiteSparse was compiled without timing.") ++ endif () ++ endif (CMAKE_SYSTEM_NAME MATCHES "Linux" OR UNIX AND NOT APPLE) ++else() ++ # Failed to find SuiteSparse_config (>= v4 installs), instead look for ++ # UFconfig header which should be present in < v4 installs. ++ suitesparse_find_component(UFCONFIG FILES UFconfig.h) ++endif () ++ ++if (NOT SUITESPARSE_CONFIG_FOUND AND ++ NOT UFCONFIG_FOUND) ++ suitesparse_report_not_found( ++ "Failed to find either: SuiteSparse_config header & library (should be " ++ "present in all SuiteSparse >= v4 installs), or UFconfig header (should " ++ "be present in all SuiteSparse < v4 installs).") ++endif() ++ ++# Extract the SuiteSparse version from the appropriate header (UFconfig.h for ++# <= v3, SuiteSparse_config.h for >= v4). ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS SUITESPARSE_VERSION) ++ ++if (UFCONFIG_FOUND) ++ # SuiteSparse version <= 3. ++ set(SUITESPARSE_VERSION_FILE ${UFCONFIG_INCLUDE_DIR}/UFconfig.h) ++ if (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ suitesparse_report_not_found( ++ "Could not find file: ${SUITESPARSE_VERSION_FILE} containing version " ++ "information for <= v3 SuiteSparse installs, but UFconfig was found " ++ "(only present in <= v3 installs).") ++ else (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ file(READ ${SUITESPARSE_VERSION_FILE} UFCONFIG_CONTENTS) ++ ++ string(REGEX MATCH "#define SUITESPARSE_MAIN_VERSION [0-9]+" ++ SUITESPARSE_MAIN_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_MAIN_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUB_VERSION [0-9]+" ++ SUITESPARSE_SUB_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUBSUB_VERSION [0-9]+" ++ SUITESPARSE_SUBSUB_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUBSUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 4.;2.;1 nonsense. ++ set(SUITESPARSE_VERSION ++ "${SUITESPARSE_MAIN_VERSION}.${SUITESPARSE_SUB_VERSION}.${SUITESPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++endif (UFCONFIG_FOUND) ++ ++if (SUITESPARSE_CONFIG_FOUND) ++ # SuiteSparse version >= 4. ++ set(SUITESPARSE_VERSION_FILE ++ ${SUITESPARSE_CONFIG_INCLUDE_DIR}/SuiteSparse_config.h) ++ if (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ suitesparse_report_not_found( ++ "Could not find file: ${SUITESPARSE_VERSION_FILE} containing version " ++ "information for >= v4 SuiteSparse installs, but SuiteSparse_config was " ++ "found (only present in >= v4 installs).") ++ else (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ file(READ ${SUITESPARSE_VERSION_FILE} SUITESPARSE_CONFIG_CONTENTS) ++ ++ string(REGEX MATCH "#define SUITESPARSE_MAIN_VERSION [0-9]+" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_MAIN_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUB_VERSION [0-9]+" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUBSUB_VERSION [0-9]+" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUBSUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 4.;2.;1 nonsense. ++ set(SUITESPARSE_VERSION ++ "${SUITESPARSE_MAIN_VERSION}.${SUITESPARSE_SUB_VERSION}.${SUITESPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++endif (SUITESPARSE_CONFIG_FOUND) ++ ++# METIS (Optional dependency). ++suitesparse_find_component(METIS LIBRARIES metis) ++ ++# Only mark SuiteSparse as found if all required components and dependencies ++# have been found. ++set(SUITESPARSE_FOUND TRUE) ++foreach(REQUIRED_VAR ${SUITESPARSE_FOUND_REQUIRED_VARS}) ++ if (NOT ${REQUIRED_VAR}) ++ set(SUITESPARSE_FOUND FALSE) ++ endif (NOT ${REQUIRED_VAR}) ++endforeach(REQUIRED_VAR ${SUITESPARSE_FOUND_REQUIRED_VARS}) ++ ++if (SUITESPARSE_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${AMD_INCLUDE_DIR} ++ ${CAMD_INCLUDE_DIR} ++ ${COLAMD_INCLUDE_DIR} ++ ${CCOLAMD_INCLUDE_DIR} ++ ${CHOLMOD_INCLUDE_DIR} ++ ${SUITESPARSEQR_INCLUDE_DIR}) ++ # Handle config separately, as otherwise at least one of them will be set ++ # to NOTFOUND which would cause any check on SUITESPARSE_INCLUDE_DIRS to fail. ++ if (SUITESPARSE_CONFIG_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${SUITESPARSE_CONFIG_INCLUDE_DIR}) ++ endif (SUITESPARSE_CONFIG_FOUND) ++ if (UFCONFIG_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${UFCONFIG_INCLUDE_DIR}) ++ endif (UFCONFIG_FOUND) ++ # As SuiteSparse includes are often all in the same directory, remove any ++ # repetitions. ++ list(REMOVE_DUPLICATES SUITESPARSE_INCLUDE_DIRS) ++ ++ # Important: The ordering of these libraries is *NOT* arbitrary, as these ++ # could potentially be static libraries their link ordering is important. ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${SUITESPARSEQR_LIBRARY} ++ ${CHOLMOD_LIBRARY} ++ ${CCOLAMD_LIBRARY} ++ ${CAMD_LIBRARY} ++ ${COLAMD_LIBRARY} ++ ${AMD_LIBRARY} ++ ${LAPACK_LIBRARIES} ++ ${BLAS_LIBRARIES}) ++ if (SUITESPARSE_CONFIG_FOUND) ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${SUITESPARSE_CONFIG_LIBRARY}) ++ endif (SUITESPARSE_CONFIG_FOUND) ++ if (METIS_FOUND) ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${METIS_LIBRARY}) ++ endif (METIS_FOUND) ++endif() ++ ++# Determine if we are running on Ubuntu with the package install of SuiteSparse ++# which is broken and does not support linking a shared library. ++set(SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION FALSE) ++if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND ++ SUITESPARSE_VERSION VERSION_EQUAL 3.4.0) ++ find_program(LSB_RELEASE_EXECUTABLE lsb_release) ++ if (LSB_RELEASE_EXECUTABLE) ++ # Any even moderately recent Ubuntu release (likely to be affected by ++ # this bug) should have lsb_release, if it isn't present we are likely ++ # on a different Linux distribution (should be fine). ++ execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -si ++ OUTPUT_VARIABLE LSB_DISTRIBUTOR_ID ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ ++ if (LSB_DISTRIBUTOR_ID MATCHES "Ubuntu" AND ++ SUITESPARSE_LIBRARIES MATCHES "/usr/lib/libamd") ++ # We are on Ubuntu, and the SuiteSparse version matches the broken ++ # system install version and is a system install. ++ set(SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION TRUE) ++ message(STATUS "Found system install of SuiteSparse " ++ "${SUITESPARSE_VERSION} running on Ubuntu, which has a known bug " ++ "preventing linking of shared libraries (static linking unaffected).") ++ endif (LSB_DISTRIBUTOR_ID MATCHES "Ubuntu" AND ++ SUITESPARSE_LIBRARIES MATCHES "/usr/lib/libamd") ++ endif (LSB_RELEASE_EXECUTABLE) ++endif (CMAKE_SYSTEM_NAME MATCHES "Linux" AND ++ SUITESPARSE_VERSION VERSION_EQUAL 3.4.0) ++ ++suitesparse_reset_find_library_prefix() ++ ++# Handle REQUIRED and QUIET arguments to FIND_PACKAGE ++include(FindPackageHandleStandardArgs) ++if (SUITESPARSE_FOUND) ++ find_package_handle_standard_args(SuiteSparse ++ REQUIRED_VARS ${SUITESPARSE_FOUND_REQUIRED_VARS} ++ VERSION_VAR SUITESPARSE_VERSION ++ FAIL_MESSAGE "Failed to find some/all required components of SuiteSparse.") ++else (SUITESPARSE_FOUND) ++ # Do not pass VERSION_VAR to FindPackageHandleStandardArgs() if we failed to ++ # find SuiteSparse to avoid a confusing autogenerated failure message ++ # that states 'not found (missing: FOO) (found version: x.y.z)'. ++ find_package_handle_standard_args(SuiteSparse ++ REQUIRED_VARS ${SUITESPARSE_FOUND_REQUIRED_VARS} ++ FAIL_MESSAGE "Failed to find some/all required components of SuiteSparse.") ++endif (SUITESPARSE_FOUND) diff --git a/distros/noetic/patch/ros-noetic-teb-local-planner.patch b/distros/noetic/patch/ros-noetic-teb-local-planner.patch new file mode 100644 index 000000000..b3ee2f65f --- /dev/null +++ b/distros/noetic/patch/ros-noetic-teb-local-planner.patch @@ -0,0 +1,49 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 97fe249..ca462ef 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -56,7 +56,7 @@ set(EXTERNAL_LIBS ${SUITESPARSE_LIBRARIES} ${G2O_LIBRARIES}) + # catkin_python_setup() + + +-## C++11 support ++## C++14 support + ## Unfortunately, the 3d-party dependency libg2o requires c++11 starting from ROS Jade. + ## Even if the ROS Jade specifications do not want c++11-only packages, + ## we cannot compile without c++11 enabled. Another option would be to downgrade +@@ -64,9 +64,12 @@ set(EXTERNAL_LIBS ${SUITESPARSE_LIBRARIES} ${G2O_LIBRARIES}) + ## By now, if you do not want c++11, please refer to the ros indigo version. + IF(NOT MSVC) + include(CheckCXXCompilerFlag) ++ CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14) + CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) + CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X) +-if(COMPILER_SUPPORTS_CXX11) ++if(COMPILER_SUPPORTS_CXX14) ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") ++elseif(COMPILER_SUPPORTS_CXX11) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + elseif(COMPILER_SUPPORTS_CXX0X) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") +diff --git a/include/teb_local_planner/graph_search.h b/include/teb_local_planner/graph_search.h +index d99284f..f345580 100644 +--- a/include/teb_local_planner/graph_search.h ++++ b/include/teb_local_planner/graph_search.h +@@ -39,18 +39,7 @@ + #ifndef GRAPH_SEARCH_INTERFACE_H + #define GRAPH_SEARCH_INTERFACE_H + +-#ifdef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS +- #include +-#else +- // Workaround for a bug in boost graph library (concerning directed graphs), boost version 1.48: +- // boost::add_vertex requires a move constructor/assignment operator in one of the underlying boost objects if C++11 is activated, +- // but they are missing. The compiler fails due to an implicit deletion. We just deactivate C++11 default functions for now. +- #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS +- #include +- #undef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS +-#endif ++#include + + #include + #include diff --git a/distros/noetic/patch/ros-noetic-teb-local-planner.win.patch b/distros/noetic/patch/ros-noetic-teb-local-planner.win.patch new file mode 100644 index 000000000..b07f6c6e8 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-teb-local-planner.win.patch @@ -0,0 +1,987 @@ +diff --git a/include/teb_local_planner/h_signature.h b/include/teb_local_planner/h_signature.h +index 8837950..4cffcda 100644 +--- a/include/teb_local_planner/h_signature.h ++++ b/include/teb_local_planner/h_signature.h +@@ -46,6 +46,7 @@ + #include + + #include ++#include + #include + #include + #include +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 97fe249..389975c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.18) + project(teb_local_planner) + + # Set to Release in order to speed up the program significantly +@@ -34,6 +34,7 @@ message(STATUS "${CMAKE_MODULE_PATH}") + find_package(Boost REQUIRED COMPONENTS system thread graph) + find_package(SUITESPARSE REQUIRED) + find_package(G2O REQUIRED) ++find_package(CSparse REQUIRED) + + # Eigen3 FindScript Backward compatibility (ubuntu saucy) + # Since FindEigen.cmake is deprecated starting from jade. +@@ -47,8 +48,8 @@ elseif (EXISTS "FindEigen.cmake") + e.g. by adding it to ${PROJECT_SOURCE_DIR}/cmake_modules.") + endif (EXISTS "FindEigen3.cmake") + +-set(EXTERNAL_INCLUDE_DIRS ${Eigen_INCLUDE_DIRS} ${SUITESPARSE_INCLUDE_DIRS} ${G2O_INCLUDE_DIR}) +-set(EXTERNAL_LIBS ${SUITESPARSE_LIBRARIES} ${G2O_LIBRARIES}) ++set(EXTERNAL_INCLUDE_DIRS ${Eigen_INCLUDE_DIRS} ${SUITESPARSE_INCLUDE_DIRS} ${CSPARSE_INCLUDE_DIR}) ++set(EXTERNAL_LIBS ${SUITESPARSE_LIBRARIES} ${CSPARSE_LIBRARY} ${G2O_CORE_LIBRARY} ${G2O_STUFF_LIBRARY} ${G2O_SOLVER_CSPARSE} ${G2O_SOLVER_CSPARSE_EXTENSION}) + + ## Uncomment this if the package has a setup.py. This macro ensures + ## modules and global scripts declared therein get installed +@@ -160,10 +161,9 @@ catkin_package( + pluginlib + roscpp + std_msgs +- tf2 +- tf2_ros ++ tf2 ++ tf2_ros + visualization_msgs +- DEPENDS SUITESPARSE G2O + ) + + ########### +diff --git a/cmake_modules/FindCSparse.cmake b/cmake_modules/FindCSparse.cmake +index e69de29..5550151 100644 +--- a/cmake_modules/FindCSparse.cmake ++++ b/cmake_modules/FindCSparse.cmake +@@ -0,0 +1,28 @@ ++# Look for csparse; note the difference in the directory specifications! ++find_path(CSPARSE_INCLUDE_DIR NAMES cs.h ++ PATHS ++ /usr/include/suitesparse ++ /usr/include ++ /opt/local/include ++ /usr/local/include ++ /sw/include ++ /usr/include/ufsparse ++ /opt/local/include/ufsparse ++ /usr/local/include/ufsparse ++ /sw/include/ufsparse ++ PATH_SUFFIXES ++ suitesparse ++ ) ++ ++find_library(CSPARSE_LIBRARY NAMES cxsparse libcxsparse ++ PATHS ++ /usr/lib ++ /usr/local/lib ++ /opt/local/lib ++ /sw/lib ++ ) ++ ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(CSPARSE DEFAULT_MSG ++ CSPARSE_INCLUDE_DIR CSPARSE_LIBRARY) ++ +diff --git a/cmake_modules/FindG2O.cmake b/cmake_modules/FindG2O.cmake +index b2670d3..917552f 100644 +--- a/cmake_modules/FindG2O.cmake ++++ b/cmake_modules/FindG2O.cmake +@@ -1,97 +1,114 @@ +-# Locate the g2o libraries +-# A general framework for graph optimization. +-# +-# This module defines +-# G2O_FOUND, if false, do not try to link against g2o +-# G2O_LIBRARIES, path to the libg2o +-# G2O_INCLUDE_DIR, where to find the g2o header files +-# +-# Niko Suenderhauf +-# Adapted by Felix Endres ++# Find the header files + +-IF(UNIX) ++find_path(G2O_INCLUDE_DIR g2o/core/base_vertex.h ++ ${G2O_ROOT}/include ++ $ENV{G2O_ROOT}/include ++ $ENV{G2O_ROOT} ++ /usr/local/include ++ /usr/include ++ /opt/local/include ++ /sw/local/include ++ /sw/include ++ NO_DEFAULT_PATH ++ ) + +- #IF(G2O_INCLUDE_DIR AND G2O_LIBRARIES) +- # in cache already +- # SET(G2O_FIND_QUIETLY TRUE) +- #ENDIF(G2O_INCLUDE_DIR AND G2O_LIBRARIES) ++# Macro to unify finding both the debug and release versions of the ++# libraries; this is adapted from the OpenSceneGraph FIND_LIBRARY ++# macro. + +- MESSAGE(STATUS "Searching for g2o ...") +- FIND_PATH(G2O_INCLUDE_DIR +- NAMES core math_groups types +- PATHS /usr/local /usr +- PATH_SUFFIXES include/g2o include) ++macro(FIND_G2O_LIBRARY MYLIBRARY MYLIBRARYNAME) + +- IF (G2O_INCLUDE_DIR) +- MESSAGE(STATUS "Found g2o headers in: ${G2O_INCLUDE_DIR}") +- ENDIF (G2O_INCLUDE_DIR) ++ find_library("${MYLIBRARY}_DEBUG" ++ NAMES "g2o_${MYLIBRARYNAME}_d" ++ PATHS ++ ${G2O_ROOT}/lib/Debug ++ ${G2O_ROOT}/lib ++ $ENV{G2O_ROOT}/lib/Debug ++ $ENV{G2O_ROOT}/lib ++ NO_DEFAULT_PATH ++ ) + +- FIND_LIBRARY(G2O_CORE_LIB +- NAMES g2o_core g2o_core_rd +- PATHS /usr/local /usr ${CMAKE_PREFIX_PATH} +- PATH_SUFFIXES lib) +- FIND_LIBRARY(G2O_STUFF_LIB +- NAMES g2o_stuff g2o_stuff_rd +- PATHS /usr/local /usr ${CMAKE_PREFIX_PATH} +- PATH_SUFFIXES lib) +- FIND_LIBRARY(G2O_TYPES_SLAM2D_LIB +- NAMES g2o_types_slam2d g2o_types_slam2d_rd +- PATHS /usr/local /usr ${CMAKE_PREFIX_PATH} +- PATH_SUFFIXES lib) +- FIND_LIBRARY(G2O_TYPES_SLAM3D_LIB +- NAMES g2o_types_slam3d g2o_types_slam3d_rd +- PATHS /usr/local /usr ${CMAKE_PREFIX_PATH} +- PATH_SUFFIXES lib) +- FIND_LIBRARY(G2O_SOLVER_CHOLMOD_LIB +- NAMES g2o_solver_cholmod g2o_solver_cholmod_rd +- PATHS /usr/local /usr ${CMAKE_PREFIX_PATH} +- PATH_SUFFIXES lib) +- FIND_LIBRARY(G2O_SOLVER_PCG_LIB +- NAMES g2o_solver_pcg g2o_solver_pcg_rd +- PATHS /usr/local /usr ${CMAKE_PREFIX_PATH} +- PATH_SUFFIXES lib) +- FIND_LIBRARY(G2O_SOLVER_CSPARSE_LIB +- NAMES g2o_solver_csparse g2o_solver_csparse_rd +- PATHS /usr/local /usr +- PATH_SUFFIXES lib) +- FIND_LIBRARY(G2O_INCREMENTAL_LIB +- NAMES g2o_incremental g2o_incremental_rd +- PATHS /usr/local /usr ${CMAKE_PREFIX_PATH} +- PATH_SUFFIXES lib) +- FIND_LIBRARY(G2O_CSPARSE_EXTENSION_LIB +- NAMES g2o_csparse_extension g2o_csparse_extension_rd +- PATHS /usr/local /usr ${CMAKE_PREFIX_PATH} +- PATH_SUFFIXES lib) ++ find_library("${MYLIBRARY}_DEBUG" ++ NAMES "g2o_${MYLIBRARYNAME}_d" ++ PATHS ++ ~/Library/Frameworks ++ /Library/Frameworks ++ /usr/local/lib ++ /usr/local/lib64 ++ /usr/lib ++ /usr/lib64 ++ /opt/local/lib ++ /sw/local/lib ++ /sw/lib ++ ) ++ ++ find_library(${MYLIBRARY} ++ NAMES "g2o_${MYLIBRARYNAME}" ++ PATHS ++ ${G2O_ROOT}/lib/Release ++ ${G2O_ROOT}/lib ++ $ENV{G2O_ROOT}/lib/Release ++ $ENV{G2O_ROOT}/lib ++ NO_DEFAULT_PATH ++ ) + +- SET(G2O_LIBRARIES ${G2O_CSPARSE_EXTENSION_LIB} +- ${G2O_CORE_LIB} +- ${G2O_STUFF_LIB} +- ${G2O_TYPES_SLAM2D_LIB} +- ${G2O_TYPES_SLAM3D_LIB} +- ${G2O_SOLVER_CHOLMOD_LIB} +- ${G2O_SOLVER_PCG_LIB} +- ${G2O_SOLVER_CSPARSE_LIB} +- ${G2O_INCREMENTAL_LIB} +- ) ++ find_library(${MYLIBRARY} ++ NAMES "g2o_${MYLIBRARYNAME}" ++ PATHS ++ ~/Library/Frameworks ++ /Library/Frameworks ++ /usr/local/lib ++ /usr/local/lib64 ++ /usr/lib ++ /usr/lib64 ++ /opt/local/lib ++ /sw/local/lib ++ /sw/lib ++ ) ++ ++ if(NOT ${MYLIBRARY}_DEBUG) ++ if(MYLIBRARY) ++ set(${MYLIBRARY}_DEBUG ${MYLIBRARY}) ++ endif(MYLIBRARY) ++ endif( NOT ${MYLIBRARY}_DEBUG) ++ ++endmacro(FIND_G2O_LIBRARY LIBRARY LIBRARYNAME) + +- IF(G2O_LIBRARIES AND G2O_INCLUDE_DIR) +- SET(G2O_FOUND "YES") +- IF(NOT G2O_FIND_QUIETLY) +- MESSAGE(STATUS "Found libg2o: ${G2O_LIBRARIES}") +- ENDIF(NOT G2O_FIND_QUIETLY) +- ELSE(G2O_LIBRARIES AND G2O_INCLUDE_DIR) +- IF(NOT G2O_LIBRARIES) +- IF(G2O_FIND_REQUIRED) +- message(FATAL_ERROR "Could not find libg2o!") +- ENDIF(G2O_FIND_REQUIRED) +- ENDIF(NOT G2O_LIBRARIES) ++# Find the core elements ++FIND_G2O_LIBRARY(G2O_STUFF_LIBRARY stuff) ++FIND_G2O_LIBRARY(G2O_CORE_LIBRARY core) + +- IF(NOT G2O_INCLUDE_DIR) +- IF(G2O_FIND_REQUIRED) +- message(FATAL_ERROR "Could not find g2o include directory!") +- ENDIF(G2O_FIND_REQUIRED) +- ENDIF(NOT G2O_INCLUDE_DIR) +- ENDIF(G2O_LIBRARIES AND G2O_INCLUDE_DIR) ++# Find the CLI library ++FIND_G2O_LIBRARY(G2O_CLI_LIBRARY cli) + +-ENDIF(UNIX) ++# Find the pluggable solvers ++FIND_G2O_LIBRARY(G2O_SOLVER_CHOLMOD solver_cholmod) ++FIND_G2O_LIBRARY(G2O_SOLVER_CSPARSE solver_csparse) ++FIND_G2O_LIBRARY(G2O_SOLVER_CSPARSE_EXTENSION csparse_extension) ++FIND_G2O_LIBRARY(G2O_SOLVER_DENSE solver_dense) ++FIND_G2O_LIBRARY(G2O_SOLVER_PCG solver_pcg) ++FIND_G2O_LIBRARY(G2O_SOLVER_SLAM2D_LINEAR solver_slam2d_linear) ++FIND_G2O_LIBRARY(G2O_SOLVER_STRUCTURE_ONLY solver_structure_only) ++FIND_G2O_LIBRARY(G2O_SOLVER_EIGEN solver_eigen) ++ ++# Find the predefined types ++FIND_G2O_LIBRARY(G2O_TYPES_DATA types_data) ++FIND_G2O_LIBRARY(G2O_TYPES_ICP types_icp) ++FIND_G2O_LIBRARY(G2O_TYPES_SBA types_sba) ++FIND_G2O_LIBRARY(G2O_TYPES_SCLAM2D types_sclam2d) ++FIND_G2O_LIBRARY(G2O_TYPES_SIM3 types_sim3) ++FIND_G2O_LIBRARY(G2O_TYPES_SLAM2D types_slam2d) ++FIND_G2O_LIBRARY(G2O_TYPES_SLAM3D types_slam3d) ++ ++# G2O solvers declared found if we found at least one solver ++set(G2O_SOLVERS_FOUND "NO") ++if(G2O_SOLVER_CHOLMOD OR G2O_SOLVER_CSPARSE OR G2O_SOLVER_DENSE OR G2O_SOLVER_PCG OR G2O_SOLVER_SLAM2D_LINEAR OR G2O_SOLVER_STRUCTURE_ONLY OR G2O_SOLVER_EIGEN) ++ set(G2O_SOLVERS_FOUND "YES") ++endif(G2O_SOLVER_CHOLMOD OR G2O_SOLVER_CSPARSE OR G2O_SOLVER_DENSE OR G2O_SOLVER_PCG OR G2O_SOLVER_SLAM2D_LINEAR OR G2O_SOLVER_STRUCTURE_ONLY OR G2O_SOLVER_EIGEN) ++ ++# G2O itself declared found if we found the core libraries and at least one solver ++set(G2O_FOUND "NO") ++if(G2O_STUFF_LIBRARY AND G2O_CORE_LIBRARY AND G2O_INCLUDE_DIR AND G2O_SOLVERS_FOUND) ++ set(G2O_FOUND "YES") ++endif(G2O_STUFF_LIBRARY AND G2O_CORE_LIBRARY AND G2O_INCLUDE_DIR AND G2O_SOLVERS_FOUND) + +diff --git a/cmake_modules/FindSUITESPARSE.cmake b/cmake_modules/FindSUITESPARSE.cmake +index 101b79b..aad8904 100644 +--- a/cmake_modules/FindSUITESPARSE.cmake ++++ b/cmake_modules/FindSUITESPARSE.cmake +@@ -1,133 +1,531 @@ +-# - Try to find SUITESPARSE +-# Once done this will define +-# +-# SUITESPARSE_FOUND - system has SUITESPARSE +-# SUITESPARSE_INCLUDE_DIRS - the SUITESPARSE include directory +-# SUITESPARSE_LIBRARIES - Link these to use SUITESPARSE +-# SUITESPARSE_SPQR_LIBRARY - name of spqr library (necessary due to error in debian package) +-# SUITESPARSE_SPQR_LIBRARY_DIR - name of spqr library (necessary due to error in debian package) +-# SUITESPARSE_LIBRARY_DIR - Library main directory containing suitesparse libs +-# SUITESPARSE_LIBRARY_DIRS - all Library directories containing suitesparse libs +-# SUITESPARSE_SPQR_VALID - automatic identification whether or not spqr package is installed correctly +- +-IF (SUITESPARSE_INCLUDE_DIRS) +- # Already in cache, be silent +- SET(SUITESPARSE_FIND_QUIETLY TRUE) +-ENDIF (SUITESPARSE_INCLUDE_DIRS) +- +-if( WIN32 ) +- # Find cholmod part of the suitesparse library collection +- +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS "C:\\libs\\win32\\SuiteSparse\\Include" ) +- +- # Add cholmod include directory to collection include directories +- IF ( CHOLMOD_INCLUDE_DIR ) +- list ( APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR} ) +- ENDIF( CHOLMOD_INCLUDE_DIR ) +- +- +- # find path suitesparse library +- FIND_PATH( SUITESPARSE_LIBRARY_DIRS +- amd.lib +- PATHS "C:\\libs\\win32\\SuiteSparse\\libs" ) +- +- # if we found the library, add it to the defined libraries +- IF ( SUITESPARSE_LIBRARY_DIRS ) +- list ( APPEND SUITESPARSE_LIBRARIES optimized;amd;optimized;camd;optimized;ccolamd;optimized;cholmod;optimized;colamd;optimized;metis;optimized;spqr;optimized;umfpack;debug;amdd;debug;camdd;debug;ccolamdd;debug;cholmodd;debug;spqrd;debug;umfpackd;debug;colamdd;debug;metisd;optimized;blas;optimized;libf2c;optimized;lapack;debug;blasd;debug;libf2cd;debug;lapackd ) +- ENDIF( SUITESPARSE_LIBRARY_DIRS ) +- +-else( WIN32 ) +- IF(APPLE) +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS /opt/local/include/ufsparse +- /usr/local/include ) +- +- FIND_PATH( SUITESPARSE_LIBRARY_DIR +- NAMES libcholmod.a +- PATHS /opt/local/lib +- /usr/local/lib ) +- ELSE(APPLE) +- FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h +- PATHS /usr/local/include +- /usr/include +- /usr/include/suitesparse/ +- ${CMAKE_SOURCE_DIR}/MacOS/Libs/cholmod +- PATH_SUFFIXES cholmod/ CHOLMOD/ ) +- +- FIND_PATH( SUITESPARSE_LIBRARY_DIR +- NAMES libcholmod.so libcholmod.a +- PATHS /usr/lib +- /usr/lib64 +- /usr/lib/x86_64-linux-gnu +- /usr/lib/i386-linux-gnu +- /usr/local/lib +- /usr/lib/arm-linux-gnueabihf/ +- /usr/lib/aarch64-linux-gnu/ +- /usr/lib/arm-linux-gnueabi/ +- /usr/lib/arm-linux-gnu) +- ENDIF(APPLE) +- +- # Add cholmod include directory to collection include directories +- IF ( CHOLMOD_INCLUDE_DIR ) +- list ( APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR} ) +- ENDIF( CHOLMOD_INCLUDE_DIR ) +- +- # if we found the library, add it to the defined libraries +- IF ( SUITESPARSE_LIBRARY_DIR ) +- +- list ( APPEND SUITESPARSE_LIBRARIES amd) +- list ( APPEND SUITESPARSE_LIBRARIES btf) +- list ( APPEND SUITESPARSE_LIBRARIES camd) +- list ( APPEND SUITESPARSE_LIBRARIES ccolamd) +- list ( APPEND SUITESPARSE_LIBRARIES cholmod) +- list ( APPEND SUITESPARSE_LIBRARIES colamd) +- # list ( APPEND SUITESPARSE_LIBRARIES csparse) +- list ( APPEND SUITESPARSE_LIBRARIES cxsparse) +- list ( APPEND SUITESPARSE_LIBRARIES klu) +- # list ( APPEND SUITESPARSE_LIBRARIES spqr) +- list ( APPEND SUITESPARSE_LIBRARIES umfpack) +- +- IF (APPLE) +- list ( APPEND SUITESPARSE_LIBRARIES suitesparseconfig) +- ENDIF (APPLE) +- +- # Metis and spqr are optional +- FIND_LIBRARY( SUITESPARSE_METIS_LIBRARY +- NAMES metis +- PATHS ${SUITESPARSE_LIBRARY_DIR} ) +- IF (SUITESPARSE_METIS_LIBRARY) +- list ( APPEND SUITESPARSE_LIBRARIES metis) +- ENDIF(SUITESPARSE_METIS_LIBRARY) +- +- if(EXISTS "${CHOLMOD_INCLUDE_DIR}/SuiteSparseQR.hpp") +- SET(SUITESPARSE_SPQR_VALID TRUE CACHE BOOL "SuiteSparseSPQR valid") +- else() +- SET(SUITESPARSE_SPQR_VALID false CACHE BOOL "SuiteSparseSPQR valid") +- endif() +- +- if(SUITESPARSE_SPQR_VALID) +- FIND_LIBRARY( SUITESPARSE_SPQR_LIBRARY +- NAMES spqr +- PATHS ${SUITESPARSE_LIBRARY_DIR} ) +- IF (SUITESPARSE_SPQR_LIBRARY) +- list ( APPEND SUITESPARSE_LIBRARIES spqr) +- ENDIF (SUITESPARSE_SPQR_LIBRARY) +- endif() +- +- ENDIF( SUITESPARSE_LIBRARY_DIR ) +- +-endif( WIN32 ) +- +- +-IF (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) +- IF(WIN32) +- list (APPEND SUITESPARSE_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIR}/../../UFconfig ) +- ENDIF(WIN32) +- SET(SUITESPARSE_FOUND TRUE) +- MESSAGE(STATUS "Found SuiteSparse") +-ELSE (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) +- SET( SUITESPARSE_FOUND FALSE ) +- MESSAGE(FATAL_ERROR "Unable to find SuiteSparse") +-ENDIF (SUITESPARSE_INCLUDE_DIRS AND SUITESPARSE_LIBRARIES) ++# Ceres Solver - A fast non-linear least squares minimizer ++# Copyright 2015 Google Inc. All rights reserved. ++# http://ceres-solver.org/ ++# ++# Redistribution and use in source and binary forms, with or without ++# modification, are permitted provided that the following conditions are met: ++# ++# * Redistributions of source code must retain the above copyright notice, ++# this list of conditions and the following disclaimer. ++# * Redistributions in binary form must reproduce the above copyright notice, ++# this list of conditions and the following disclaimer in the documentation ++# and/or other materials provided with the distribution. ++# * Neither the name of Google Inc. nor the names of its contributors may be ++# used to endorse or promote products derived from this software without ++# specific prior written permission. ++# ++# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ++# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ++# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ++# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ++# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ++# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ++# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ++# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++# POSSIBILITY OF SUCH DAMAGE. ++# ++# Author: alexs.mac@gmail.com (Alex Stewart) ++# + ++# FindSuiteSparse.cmake - Find SuiteSparse libraries & dependencies. ++# ++# This module defines the following variables: ++# ++# SUITESPARSE_FOUND: TRUE iff SuiteSparse and all dependencies have been found. ++# SUITESPARSE_INCLUDE_DIRS: Include directories for all SuiteSparse components. ++# SUITESPARSE_LIBRARIES: Libraries for all SuiteSparse component libraries and ++# dependencies. ++# SUITESPARSE_VERSION: Extracted from UFconfig.h (<= v3) or ++# SuiteSparse_config.h (>= v4). ++# SUITESPARSE_MAIN_VERSION: Equal to 4 if SUITESPARSE_VERSION = 4.2.1 ++# SUITESPARSE_SUB_VERSION: Equal to 2 if SUITESPARSE_VERSION = 4.2.1 ++# SUITESPARSE_SUBSUB_VERSION: Equal to 1 if SUITESPARSE_VERSION = 4.2.1 ++# ++# SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION: TRUE iff running ++# on Ubuntu, SUITESPARSE_VERSION is 3.4.0 and found SuiteSparse is a system ++# install, in which case found version of SuiteSparse cannot be used to link ++# a shared library due to a bug (static linking is unaffected). ++# ++# The following variables control the behaviour of this module: ++# ++# SUITESPARSE_INCLUDE_DIR_HINTS: List of additional directories in which to ++# search for SuiteSparse includes, ++# e.g: /timbuktu/include. ++# SUITESPARSE_LIBRARY_DIR_HINTS: List of additional directories in which to ++# search for SuiteSparse libraries, ++# e.g: /timbuktu/lib. ++# ++# The following variables define the presence / includes & libraries for the ++# SuiteSparse components searched for, the SUITESPARSE_XX variables are the ++# union of the variables for all components. ++# ++# == Symmetric Approximate Minimum Degree (AMD) ++# AMD_FOUND ++# AMD_INCLUDE_DIR ++# AMD_LIBRARY ++# ++# == Constrained Approximate Minimum Degree (CAMD) ++# CAMD_FOUND ++# CAMD_INCLUDE_DIR ++# CAMD_LIBRARY ++# ++# == Column Approximate Minimum Degree (COLAMD) ++# COLAMD_FOUND ++# COLAMD_INCLUDE_DIR ++# COLAMD_LIBRARY ++# ++# Constrained Column Approximate Minimum Degree (CCOLAMD) ++# CCOLAMD_FOUND ++# CCOLAMD_INCLUDE_DIR ++# CCOLAMD_LIBRARY ++# ++# == Sparse Supernodal Cholesky Factorization and Update/Downdate (CHOLMOD) ++# CHOLMOD_FOUND ++# CHOLMOD_INCLUDE_DIR ++# CHOLMOD_LIBRARY ++# ++# == Multifrontal Sparse QR (SuiteSparseQR) ++# SUITESPARSEQR_FOUND ++# SUITESPARSEQR_INCLUDE_DIR ++# SUITESPARSEQR_LIBRARY ++# ++# == Common configuration for all but CSparse (SuiteSparse version >= 4). ++# SUITESPARSE_CONFIG_FOUND ++# SUITESPARSE_CONFIG_INCLUDE_DIR ++# SUITESPARSE_CONFIG_LIBRARY ++# ++# == Common configuration for all but CSparse (SuiteSparse version < 4). ++# UFCONFIG_FOUND ++# UFCONFIG_INCLUDE_DIR ++# ++# Optional SuiteSparse Dependencies: ++# ++# == Serial Graph Partitioning and Fill-reducing Matrix Ordering (METIS) ++# METIS_FOUND ++# METIS_LIBRARY ++ ++# Reset CALLERS_CMAKE_FIND_LIBRARY_PREFIXES to its value when ++# FindSuiteSparse was invoked. ++macro(SUITESPARSE_RESET_FIND_LIBRARY_PREFIX) ++ if (MSVC) ++ set(CMAKE_FIND_LIBRARY_PREFIXES "${CALLERS_CMAKE_FIND_LIBRARY_PREFIXES}") ++ endif (MSVC) ++endmacro(SUITESPARSE_RESET_FIND_LIBRARY_PREFIX) ++ ++# Called if we failed to find SuiteSparse or any of it's required dependencies, ++# unsets all public (designed to be used externally) variables and reports ++# error message at priority depending upon [REQUIRED/QUIET/] argument. ++macro(SUITESPARSE_REPORT_NOT_FOUND REASON_MSG) ++ unset(SUITESPARSE_FOUND) ++ unset(SUITESPARSE_INCLUDE_DIRS) ++ unset(SUITESPARSE_LIBRARIES) ++ unset(SUITESPARSE_VERSION) ++ unset(SUITESPARSE_MAIN_VERSION) ++ unset(SUITESPARSE_SUB_VERSION) ++ unset(SUITESPARSE_SUBSUB_VERSION) ++ # Do NOT unset SUITESPARSE_FOUND_REQUIRED_VARS here, as it is used by ++ # FindPackageHandleStandardArgs() to generate the automatic error message on ++ # failure which highlights which components are missing. ++ ++ suitesparse_reset_find_library_prefix() ++ ++ # Note _FIND_[REQUIRED/QUIETLY] variables defined by FindPackage() ++ # use the camelcase library name, not uppercase. ++ if (SuiteSparse_FIND_QUIETLY) ++ message(STATUS "Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ elseif (SuiteSparse_FIND_REQUIRED) ++ message(FATAL_ERROR "Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ else() ++ # Neither QUIETLY nor REQUIRED, use no priority which emits a message ++ # but continues configuration and allows generation. ++ message("-- Failed to find SuiteSparse - " ${REASON_MSG} ${ARGN}) ++ endif (SuiteSparse_FIND_QUIETLY) ++ ++ # Do not call return(), s/t we keep processing if not called with REQUIRED ++ # and report all missing components, rather than bailing after failing to find ++ # the first. ++endmacro(SUITESPARSE_REPORT_NOT_FOUND) ++ ++# Protect against any alternative find_package scripts for this library having ++# been called previously (in a client project) which set SUITESPARSE_FOUND, but ++# not the other variables we require / set here which could cause the search ++# logic here to fail. ++unset(SUITESPARSE_FOUND) ++ ++# Handle possible presence of lib prefix for libraries on MSVC, see ++# also SUITESPARSE_RESET_FIND_LIBRARY_PREFIX(). ++if (MSVC) ++ # Preserve the caller's original values for CMAKE_FIND_LIBRARY_PREFIXES ++ # s/t we can set it back before returning. ++ set(CALLERS_CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") ++ # The empty string in this list is important, it represents the case when ++ # the libraries have no prefix (shared libraries / DLLs). ++ set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "" "${CMAKE_FIND_LIBRARY_PREFIXES}") ++endif (MSVC) ++ ++# On macOS, add the Homebrew prefix (with appropriate suffixes) to the ++# respective HINTS directories (after any user-specified locations). This ++# handles Homebrew installations into non-standard locations (not /usr/local). ++# We do not use CMAKE_PREFIX_PATH for this as given the search ordering of ++# find_xxx(), doing so would override any user-specified HINTS locations with ++# the Homebrew version if it exists. ++if (CMAKE_SYSTEM_NAME MATCHES "Darwin") ++ find_program(HOMEBREW_EXECUTABLE brew) ++ mark_as_advanced(FORCE HOMEBREW_EXECUTABLE) ++ if (HOMEBREW_EXECUTABLE) ++ # Detected a Homebrew install, query for its install prefix. ++ execute_process(COMMAND ${HOMEBREW_EXECUTABLE} --prefix ++ OUTPUT_VARIABLE HOMEBREW_INSTALL_PREFIX ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ message(STATUS "Detected Homebrew with install prefix: " ++ "${HOMEBREW_INSTALL_PREFIX}, adding to CMake search paths.") ++ list(APPEND SUITESPARSE_INCLUDE_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/include") ++ list(APPEND SUITESPARSE_LIBRARY_DIR_HINTS "${HOMEBREW_INSTALL_PREFIX}/lib") ++ endif() ++endif() ++ ++# Specify search directories for include files and libraries (this is the union ++# of the search directories for all OSs). Search user-specified hint ++# directories first if supplied, and search user-installed locations first ++# so that we prefer user installs to system installs where both exist. ++list(APPEND SUITESPARSE_CHECK_INCLUDE_DIRS ++ /opt/local/include ++ /opt/local/include/ufsparse # Mac OS X ++ /usr/local/homebrew/include # Mac OS X ++ /usr/local/include ++ /usr/include) ++list(APPEND SUITESPARSE_CHECK_LIBRARY_DIRS ++ /opt/local/lib ++ /opt/local/lib/ufsparse # Mac OS X ++ /usr/local/homebrew/lib # Mac OS X ++ /usr/local/lib ++ /usr/lib) ++# Additional suffixes to try appending to each search path. ++list(APPEND SUITESPARSE_CHECK_PATH_SUFFIXES ++ suitesparse) # Windows/Ubuntu ++ ++# Wrappers to find_path/library that pass the SuiteSparse search hints/paths. ++# ++# suitesparse_find_component( [FILES name1 [name2 ...]] ++# [LIBRARIES name1 [name2 ...]] ++# [REQUIRED]) ++macro(suitesparse_find_component COMPONENT) ++ include(CMakeParseArguments) ++ set(OPTIONS REQUIRED) ++ set(MULTI_VALUE_ARGS FILES LIBRARIES) ++ cmake_parse_arguments(SUITESPARSE_FIND_${COMPONENT} ++ "${OPTIONS}" "" "${MULTI_VALUE_ARGS}" ${ARGN}) ++ ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS ${COMPONENT}_FOUND) ++ endif() ++ ++ set(${COMPONENT}_FOUND TRUE) ++ if (SUITESPARSE_FIND_${COMPONENT}_FILES) ++ find_path(${COMPONENT}_INCLUDE_DIR ++ NAMES ${SUITESPARSE_FIND_${COMPONENT}_FILES} ++ HINTS ${SUITESPARSE_INCLUDE_DIR_HINTS} ++ PATHS ${SUITESPARSE_CHECK_INCLUDE_DIRS} ++ PATH_SUFFIXES ${SUITESPARSE_CHECK_PATH_SUFFIXES}) ++ if (${COMPONENT}_INCLUDE_DIR) ++ message(STATUS "Found ${COMPONENT} headers in: " ++ "${${COMPONENT}_INCLUDE_DIR}") ++ mark_as_advanced(${COMPONENT}_INCLUDE_DIR) ++ else() ++ # Specified headers not found. ++ set(${COMPONENT}_FOUND FALSE) ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ suitesparse_report_not_found( ++ "Did not find ${COMPONENT} header (required SuiteSparse component).") ++ else() ++ message(STATUS "Did not find ${COMPONENT} header (optional " ++ "SuiteSparse component).") ++ # Hide optional vars from CMake GUI even if not found. ++ mark_as_advanced(${COMPONENT}_INCLUDE_DIR) ++ endif() ++ endif() ++ endif() ++ ++ if (SUITESPARSE_FIND_${COMPONENT}_LIBRARIES) ++ find_library(${COMPONENT}_LIBRARY ++ NAMES ${SUITESPARSE_FIND_${COMPONENT}_LIBRARIES} ++ HINTS ${SUITESPARSE_LIBRARY_DIR_HINTS} ++ PATHS ${SUITESPARSE_CHECK_LIBRARY_DIRS} ++ PATH_SUFFIXES ${SUITESPARSE_CHECK_PATH_SUFFIXES}) ++ if (${COMPONENT}_LIBRARY) ++ message(STATUS "Found ${COMPONENT} library: ${${COMPONENT}_LIBRARY}") ++ mark_as_advanced(${COMPONENT}_LIBRARY) ++ else () ++ # Specified libraries not found. ++ set(${COMPONENT}_FOUND FALSE) ++ if (SUITESPARSE_FIND_${COMPONENT}_REQUIRED) ++ suitesparse_report_not_found( ++ "Did not find ${COMPONENT} library (required SuiteSparse component).") ++ else() ++ message(STATUS "Did not find ${COMPONENT} library (optional SuiteSparse " ++ "dependency)") ++ # Hide optional vars from CMake GUI even if not found. ++ mark_as_advanced(${COMPONENT}_LIBRARY) ++ endif() ++ endif() ++ endif() ++endmacro() ++ ++# Given the number of components of SuiteSparse, and to ensure that the ++# automatic failure message generated by FindPackageHandleStandardArgs() ++# when not all required components are found is helpful, we maintain a list ++# of all variables that must be defined for SuiteSparse to be considered found. ++unset(SUITESPARSE_FOUND_REQUIRED_VARS) ++ ++# BLAS. ++find_package(BLAS QUIET) ++if (NOT BLAS_FOUND) ++ suitesparse_report_not_found( ++ "Did not find BLAS library (required for SuiteSparse).") ++endif (NOT BLAS_FOUND) ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS BLAS_FOUND) ++ ++# LAPACK. ++find_package(LAPACK QUIET) ++if (NOT LAPACK_FOUND) ++ suitesparse_report_not_found( ++ "Did not find LAPACK library (required for SuiteSparse).") ++endif (NOT LAPACK_FOUND) ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS LAPACK_FOUND) ++ ++suitesparse_find_component(AMD REQUIRED FILES amd.h LIBRARIES amd) ++suitesparse_find_component(CAMD REQUIRED FILES camd.h LIBRARIES camd) ++suitesparse_find_component(COLAMD REQUIRED FILES colamd.h LIBRARIES colamd) ++suitesparse_find_component(CCOLAMD REQUIRED FILES ccolamd.h LIBRARIES ccolamd) ++suitesparse_find_component(CHOLMOD REQUIRED FILES cholmod.h LIBRARIES cholmod) ++suitesparse_find_component( ++ SUITESPARSEQR REQUIRED FILES SuiteSparseQR.hpp LIBRARIES spqr) ++if (SUITESPARSEQR_FOUND) ++ # SuiteSparseQR may be compiled with Intel Threading Building Blocks, ++ # we assume that if TBB is installed, SuiteSparseQR was compiled with ++ # support for it, this will do no harm if it wasn't. ++ find_package(TBB QUIET) ++ if (TBB_FOUND) ++ message(STATUS "Found Intel Thread Building Blocks (TBB) library " ++ "(${TBB_VERSION_MAJOR}.${TBB_VERSION_MINOR} / ${TBB_INTERFACE_VERSION}) " ++ "include location: ${TBB_INCLUDE_DIRS}. Assuming SuiteSparseQR was " ++ "compiled with TBB.") ++ # Add the TBB libraries to the SuiteSparseQR libraries (the only ++ # libraries to optionally depend on TBB). ++ list(APPEND SUITESPARSEQR_LIBRARY ${TBB_LIBRARIES}) ++ else() ++ message(STATUS "Did not find Intel TBB library, assuming SuiteSparseQR was " ++ "not compiled with TBB.") ++ endif() ++endif(SUITESPARSEQR_FOUND) ++ ++# UFconfig / SuiteSparse_config. ++# ++# If SuiteSparse version is >= 4 then SuiteSparse_config is required. ++# For SuiteSparse 3, UFconfig.h is required. ++suitesparse_find_component( ++ SUITESPARSE_CONFIG FILES SuiteSparse_config.h LIBRARIES suitesparseconfig) ++ ++if (SUITESPARSE_CONFIG_FOUND) ++ # SuiteSparse_config (SuiteSparse version >= 4) requires librt library for ++ # timing by default when compiled on Linux or Unix, but not on OSX (which ++ # does not have librt). ++ if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR UNIX AND NOT APPLE) ++ suitesparse_find_component(LIBRT LIBRARIES rt) ++ if (LIBRT_FOUND) ++ message(STATUS "Adding librt: ${LIBRT_LIBRARY} to " ++ "SuiteSparse_config libraries (required on Linux & Unix [not OSX] if " ++ "SuiteSparse is compiled with timing).") ++ list(APPEND SUITESPARSE_CONFIG_LIBRARY ${LIBRT_LIBRARY}) ++ else() ++ message(STATUS "Could not find librt, but found SuiteSparse_config, " ++ "assuming that SuiteSparse was compiled without timing.") ++ endif () ++ endif (CMAKE_SYSTEM_NAME MATCHES "Linux" OR UNIX AND NOT APPLE) ++else() ++ # Failed to find SuiteSparse_config (>= v4 installs), instead look for ++ # UFconfig header which should be present in < v4 installs. ++ suitesparse_find_component(UFCONFIG FILES UFconfig.h) ++endif () ++ ++if (NOT SUITESPARSE_CONFIG_FOUND AND ++ NOT UFCONFIG_FOUND) ++ suitesparse_report_not_found( ++ "Failed to find either: SuiteSparse_config header & library (should be " ++ "present in all SuiteSparse >= v4 installs), or UFconfig header (should " ++ "be present in all SuiteSparse < v4 installs).") ++endif() ++ ++# Extract the SuiteSparse version from the appropriate header (UFconfig.h for ++# <= v3, SuiteSparse_config.h for >= v4). ++list(APPEND SUITESPARSE_FOUND_REQUIRED_VARS SUITESPARSE_VERSION) ++ ++if (UFCONFIG_FOUND) ++ # SuiteSparse version <= 3. ++ set(SUITESPARSE_VERSION_FILE ${UFCONFIG_INCLUDE_DIR}/UFconfig.h) ++ if (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ suitesparse_report_not_found( ++ "Could not find file: ${SUITESPARSE_VERSION_FILE} containing version " ++ "information for <= v3 SuiteSparse installs, but UFconfig was found " ++ "(only present in <= v3 installs).") ++ else (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ file(READ ${SUITESPARSE_VERSION_FILE} UFCONFIG_CONTENTS) ++ ++ string(REGEX MATCH "#define SUITESPARSE_MAIN_VERSION [0-9]+" ++ SUITESPARSE_MAIN_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_MAIN_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUB_VERSION [0-9]+" ++ SUITESPARSE_SUB_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUBSUB_VERSION [0-9]+" ++ SUITESPARSE_SUBSUB_VERSION "${UFCONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUBSUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 4.;2.;1 nonsense. ++ set(SUITESPARSE_VERSION ++ "${SUITESPARSE_MAIN_VERSION}.${SUITESPARSE_SUB_VERSION}.${SUITESPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++endif (UFCONFIG_FOUND) ++ ++if (SUITESPARSE_CONFIG_FOUND) ++ # SuiteSparse version >= 4. ++ set(SUITESPARSE_VERSION_FILE ++ ${SUITESPARSE_CONFIG_INCLUDE_DIR}/SuiteSparse_config.h) ++ if (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ suitesparse_report_not_found( ++ "Could not find file: ${SUITESPARSE_VERSION_FILE} containing version " ++ "information for >= v4 SuiteSparse installs, but SuiteSparse_config was " ++ "found (only present in >= v4 installs).") ++ else (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++ file(READ ${SUITESPARSE_VERSION_FILE} SUITESPARSE_CONFIG_CONTENTS) ++ ++ string(REGEX MATCH "#define SUITESPARSE_MAIN_VERSION [0-9]+" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_MAIN_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_MAIN_VERSION "${SUITESPARSE_MAIN_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUB_VERSION [0-9]+" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUB_VERSION "${SUITESPARSE_SUB_VERSION}") ++ ++ string(REGEX MATCH "#define SUITESPARSE_SUBSUB_VERSION [0-9]+" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_CONFIG_CONTENTS}") ++ string(REGEX REPLACE "#define SUITESPARSE_SUBSUB_VERSION ([0-9]+)" "\\1" ++ SUITESPARSE_SUBSUB_VERSION "${SUITESPARSE_SUBSUB_VERSION}") ++ ++ # This is on a single line s/t CMake does not interpret it as a list of ++ # elements and insert ';' separators which would result in 4.;2.;1 nonsense. ++ set(SUITESPARSE_VERSION ++ "${SUITESPARSE_MAIN_VERSION}.${SUITESPARSE_SUB_VERSION}.${SUITESPARSE_SUBSUB_VERSION}") ++ endif (NOT EXISTS ${SUITESPARSE_VERSION_FILE}) ++endif (SUITESPARSE_CONFIG_FOUND) ++ ++# METIS (Optional dependency). ++suitesparse_find_component(METIS LIBRARIES metis) ++ ++# Only mark SuiteSparse as found if all required components and dependencies ++# have been found. ++set(SUITESPARSE_FOUND TRUE) ++foreach(REQUIRED_VAR ${SUITESPARSE_FOUND_REQUIRED_VARS}) ++ if (NOT ${REQUIRED_VAR}) ++ set(SUITESPARSE_FOUND FALSE) ++ endif (NOT ${REQUIRED_VAR}) ++endforeach(REQUIRED_VAR ${SUITESPARSE_FOUND_REQUIRED_VARS}) ++ ++if (SUITESPARSE_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${AMD_INCLUDE_DIR} ++ ${CAMD_INCLUDE_DIR} ++ ${COLAMD_INCLUDE_DIR} ++ ${CCOLAMD_INCLUDE_DIR} ++ ${CHOLMOD_INCLUDE_DIR} ++ ${SUITESPARSEQR_INCLUDE_DIR}) ++ # Handle config separately, as otherwise at least one of them will be set ++ # to NOTFOUND which would cause any check on SUITESPARSE_INCLUDE_DIRS to fail. ++ if (SUITESPARSE_CONFIG_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${SUITESPARSE_CONFIG_INCLUDE_DIR}) ++ endif (SUITESPARSE_CONFIG_FOUND) ++ if (UFCONFIG_FOUND) ++ list(APPEND SUITESPARSE_INCLUDE_DIRS ++ ${UFCONFIG_INCLUDE_DIR}) ++ endif (UFCONFIG_FOUND) ++ # As SuiteSparse includes are often all in the same directory, remove any ++ # repetitions. ++ list(REMOVE_DUPLICATES SUITESPARSE_INCLUDE_DIRS) ++ ++ # Important: The ordering of these libraries is *NOT* arbitrary, as these ++ # could potentially be static libraries their link ordering is important. ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${SUITESPARSEQR_LIBRARY} ++ ${CHOLMOD_LIBRARY} ++ ${CCOLAMD_LIBRARY} ++ ${CAMD_LIBRARY} ++ ${COLAMD_LIBRARY} ++ ${AMD_LIBRARY} ++ ${LAPACK_LIBRARIES} ++ ${BLAS_LIBRARIES}) ++ if (SUITESPARSE_CONFIG_FOUND) ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${SUITESPARSE_CONFIG_LIBRARY}) ++ endif (SUITESPARSE_CONFIG_FOUND) ++ if (METIS_FOUND) ++ list(APPEND SUITESPARSE_LIBRARIES ++ ${METIS_LIBRARY}) ++ endif (METIS_FOUND) ++endif() ++ ++# Determine if we are running on Ubuntu with the package install of SuiteSparse ++# which is broken and does not support linking a shared library. ++set(SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION FALSE) ++if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND ++ SUITESPARSE_VERSION VERSION_EQUAL 3.4.0) ++ find_program(LSB_RELEASE_EXECUTABLE lsb_release) ++ if (LSB_RELEASE_EXECUTABLE) ++ # Any even moderately recent Ubuntu release (likely to be affected by ++ # this bug) should have lsb_release, if it isn't present we are likely ++ # on a different Linux distribution (should be fine). ++ execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -si ++ OUTPUT_VARIABLE LSB_DISTRIBUTOR_ID ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ ++ if (LSB_DISTRIBUTOR_ID MATCHES "Ubuntu" AND ++ SUITESPARSE_LIBRARIES MATCHES "/usr/lib/libamd") ++ # We are on Ubuntu, and the SuiteSparse version matches the broken ++ # system install version and is a system install. ++ set(SUITESPARSE_IS_BROKEN_SHARED_LINKING_UBUNTU_SYSTEM_VERSION TRUE) ++ message(STATUS "Found system install of SuiteSparse " ++ "${SUITESPARSE_VERSION} running on Ubuntu, which has a known bug " ++ "preventing linking of shared libraries (static linking unaffected).") ++ endif (LSB_DISTRIBUTOR_ID MATCHES "Ubuntu" AND ++ SUITESPARSE_LIBRARIES MATCHES "/usr/lib/libamd") ++ endif (LSB_RELEASE_EXECUTABLE) ++endif (CMAKE_SYSTEM_NAME MATCHES "Linux" AND ++ SUITESPARSE_VERSION VERSION_EQUAL 3.4.0) ++ ++suitesparse_reset_find_library_prefix() ++ ++# Handle REQUIRED and QUIET arguments to FIND_PACKAGE ++include(FindPackageHandleStandardArgs) ++if (SUITESPARSE_FOUND) ++ find_package_handle_standard_args(SuiteSparse ++ REQUIRED_VARS ${SUITESPARSE_FOUND_REQUIRED_VARS} ++ VERSION_VAR SUITESPARSE_VERSION ++ FAIL_MESSAGE "Failed to find some/all required components of SuiteSparse.") ++else (SUITESPARSE_FOUND) ++ # Do not pass VERSION_VAR to FindPackageHandleStandardArgs() if we failed to ++ # find SuiteSparse to avoid a confusing autogenerated failure message ++ # that states 'not found (missing: FOO) (found version: x.y.z)'. ++ find_package_handle_standard_args(SuiteSparse ++ REQUIRED_VARS ${SUITESPARSE_FOUND_REQUIRED_VARS} ++ FAIL_MESSAGE "Failed to find some/all required components of SuiteSparse.") ++endif (SUITESPARSE_FOUND) +diff --git a/include/teb_local_planner/optimal_planner.h b/include/teb_local_planner/optimal_planner.h +index 6347470..9534b8d 100644 +--- a/include/teb_local_planner/optimal_planner.h ++++ b/include/teb_local_planner/optimal_planner.h +@@ -57,7 +57,7 @@ + #include + #include + #include +-#include ++//#include + + // g2o custom edges and vertices for the TEB planner + #include +diff --git a/src/teb_local_planner_ros.cpp b/src/teb_local_planner_ros.cpp +index c8ecafb..e7dd60a 100644 +--- a/src/teb_local_planner_ros.cpp ++++ b/src/teb_local_planner_ros.cpp +@@ -55,7 +55,7 @@ + #include "g2o/core/optimization_algorithm_gauss_newton.h" + #include "g2o/core/optimization_algorithm_levenberg.h" + #include "g2o/solvers/csparse/linear_solver_csparse.h" +-#include "g2o/solvers/cholmod/linear_solver_cholmod.h" ++//#include "g2o/solvers/cholmod/linear_solver_cholmod.h" + + + // register this planner both as a BaseLocalPlanner and as a MBF's CostmapController plugin diff --git a/distros/noetic/patch/ros-noetic-teleop-twist-keyboard.win.patch b/distros/noetic/patch/ros-noetic-teleop-twist-keyboard.win.patch new file mode 100644 index 000000000..bdf018ddb --- /dev/null +++ b/distros/noetic/patch/ros-noetic-teleop-twist-keyboard.win.patch @@ -0,0 +1,78 @@ +diff --git a/teleop_twist_keyboard.py b/teleop_twist_keyboard.py +index 3717408..a5be99b 100755 +--- a/teleop_twist_keyboard.py ++++ b/teleop_twist_keyboard.py +@@ -9,7 +9,15 @@ + + from geometry_msgs.msg import Twist + +-import sys, select, termios, tty ++import sys, select ++ ++if sys.platform == 'win32': ++ import msvcrt ++else: ++ import termios ++ import tty ++ ++ + + msg = """ + Reading from the keyboard and Publishing to Twist! +@@ -147,22 +155,32 @@ def run(self): + self.publisher.publish(twist) + + +-def getKey(key_timeout): +- tty.setraw(sys.stdin.fileno()) +- rlist, _, _ = select.select([sys.stdin], [], [], key_timeout) +- if rlist: +- key = sys.stdin.read(1) ++def getKey(settings): ++ if sys.platform == 'win32': ++ # getwch() returns a string on Windows ++ key = msvcrt.getwch() + else: +- key = '' +- termios.tcsetattr(sys.stdin, termios.TCSADRAIN, settings) ++ tty.setraw(sys.stdin.fileno()) ++ # sys.stdin.read() returns a string on Linux ++ key = sys.stdin.read(1) ++ termios.tcsetattr(sys.stdin, termios.TCSADRAIN, settings) + return key + ++def saveTerminalSettings(): ++ if sys.platform == 'win32': ++ return None ++ return termios.tcgetattr(sys.stdin) ++ ++def restoreTerminalSettings(old_settings): ++ if sys.platform == 'win32': ++ return ++ termios.tcsetattr(sys.stdin, termios.TCSADRAIN, old_settings) + + def vels(speed, turn): + return "currently:\tspeed %s\tturn %s " % (speed,turn) + + if __name__=="__main__": +- settings = termios.tcgetattr(sys.stdin) ++ settings = saveTerminalSettings() + + rospy.init_node('teleop_twist_keyboard') + +@@ -188,7 +206,7 @@ def vels(speed, turn): + print(msg) + print(vels(speed,turn)) + while(1): +- key = getKey(key_timeout) ++ key = getKey(settings) + if key in moveBindings.keys(): + x = moveBindings[key][0] + y = moveBindings[key][1] +@@ -221,5 +239,5 @@ def vels(speed, turn): + + finally: + pub_thread.stop() ++ restoreTerminalSettings(settings) + +- termios.tcsetattr(sys.stdin, termios.TCSADRAIN, settings) diff --git a/distros/noetic/patch/ros-noetic-tf.win.patch b/distros/noetic/patch/ros-noetic-tf.win.patch new file mode 100644 index 000000000..4755ac882 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-tf.win.patch @@ -0,0 +1,29 @@ +diff --git a/include/tf/tf.h b/include/tf/tf.h +index 7ecb8e1..c767c90 100644 +--- a/include/tf/tf.h ++++ b/include/tf/tf.h +@@ -49,6 +49,12 @@ + #include + #include + ++// Boost winapi.h includes winerror.h. Subsequently NO_ERROR gets defined ++// and which conflicts with tf::NO_ERROR. ++#if defined(_WIN32) && defined(NO_ERROR) ++ #undef NO_ERROR ++#endif ++ + // Import/export for windows dll's and visibility for gcc shared libraries. + #ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries + #ifdef tf_EXPORTS // we are building a shared lib/dll +diff --git a/src/tf.cpp b/src/tf.cpp +index ac9ad0d..13f027c 100644 +--- a/src/tf.cpp ++++ b/src/tf.cpp +@@ -30,7 +30,6 @@ + /** \author Tully Foote */ + + #include "tf/tf.h" +-#include + #include "ros/assert.h" + #include "ros/ros.h" + #include diff --git a/distros/noetic/patch/ros-noetic-tf2-client.patch b/distros/noetic/patch/ros-noetic-tf2-client.patch new file mode 100644 index 000000000..0511073b0 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-tf2-client.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0553c74..69fd9a7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -21,7 +21,7 @@ catkin_package( + include_directories(include ${catkin_INCLUDE_DIRS}) + + add_library(${PROJECT_NAME} src/tf2_client/tf2_client.cpp) +-link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) ++target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) + + install(DIRECTORY include/${PROJECT_NAME}/ + DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} diff --git a/distros/noetic/patch/ros-noetic-theora-image-transport.win.patch b/distros/noetic/patch/ros-noetic-theora-image-transport.win.patch new file mode 100644 index 000000000..58fe45df2 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-theora-image-transport.win.patch @@ -0,0 +1,171 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4082eac..296f27b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -8,11 +8,10 @@ add_message_files(DIRECTORY msg FILES Packet.msg) + + generate_messages(DEPENDENCIES std_msgs) + +-find_package(PkgConfig) +-pkg_check_modules(PC_OGG REQUIRED ogg) +-pkg_check_modules(PC_THEORA REQUIRED theora) +-pkg_check_modules(PC_THEORAENC REQUIRED theoraenc) +-pkg_check_modules(PC_THEORADEC REQUIRED theoradec) ++list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake) ++ ++find_package(OGG) ++find_package(THEORA) + + + # generate the dynamic_reconfigure config file +@@ -27,41 +26,25 @@ catkin_package( + include_directories(include + ${catkin_INCLUDE_DIRS} + ${OpenCV_INCLUDE_DIRS} +- ${PC_OGG_INCLUDE_DIRS} +- ${PC_THEORA_INCLUDE_DIRS} +- ${PC_THEORAENC_INCLUDE_DIRS} +- ${PC_THEORADEC_INCLUDE_DIRS} +-) +- +-link_directories(${PC_OGG_LIBRARY_DIRS} +- ${PC_THEORA_LIBRARY_DIRS} +- ${PC_THEORAENC_LIBRARY_DIRS} +- ${PC_THEORADEC_LIBRARY_DIRS}) +-add_definitions(${PC_OGG_CFLAGS_OTHER} +- ${PC_THEORA_CFLAGS_OTHER} +- ${PC_THEORAENC_CFLAGS_OTHER} +- ${PC_THEORADEC_CFLAGS_OTHER} ++ ${OGG_INCLUDE_DIRS} ++ ${THEORA_INCLUDE_DIRS} + ) + + add_library(${PROJECT_NAME} src/theora_publisher.cpp src/theora_subscriber.cpp src/manifest.cpp) + add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencfg ${PROJECT_NAME}_gencpp) + target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} + ${OpenCV_LIBRARIES} +- ${PC_OGG_LIBRARIES} +- ${PC_THEORA_LIBRARIES} +- ${PC_THEORAENC_LIBRARIES} +- ${PC_THEORADEC_LIBRARIES} ++ ${OGG_LIBRARIES} ++ ${THEORA_LIBRARIES} + ) + + class_loader_hide_library_symbols(${PROJECT_NAME}) + + add_executable(ogg_saver src/ogg_saver.cpp) +-target_link_libraries(ogg_saver ${PC_THEORA_LIBRARY} +- ${PC_OGG_LIBRARY} ++target_link_libraries(ogg_saver ${OGG_LIBRARIES} + ${OpenCV_LIBRARIES} + ${catkin_LIBRARIES} +- ${PC_THEORAENC_LIBRARIES} +- ${PC_THEORADEC_LIBRARIES}) ++ ${THEORA_LIBRARIES}) + add_dependencies(ogg_saver ${PROJECT_NAME}_gencpp) + + install(TARGETS ${PROJECT_NAME} +diff --git a/theora_image_transport/cmake/FindOGG.cmake b/theora_image_transport/cmake/FindOGG.cmake +index e69de29..3121d17 100644 +--- a/cmake/FindOGG.cmake ++++ b/cmake/FindOGG.cmake +@@ -0,0 +1,26 @@ ++find_path(OGG_INCLUDE_DIR ++ NAMES ++ ogg/ogg.h ++ DOC "ogg include directory") ++mark_as_advanced(OGG_INCLUDE_DIR) ++ ++find_library(OGG_LIBRARY ++ NAMES ++ ogg ++ DOC "ogg library") ++mark_as_advanced(OGG_LIBRARY) ++ ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(OGG REQUIRED_VARS OGG_LIBRARY OGG_INCLUDE_DIR) ++ ++if (OGG_FOUND) ++ set(OGG_LIBRARIES "${OGG_LIBRARY}") ++ set(OGG_INCLUDE_DIRS "${OGG_INCLUDE_DIR}") ++ ++ if (NOT TARGET OGG::OGG) ++ add_library(OGG::OGG UNKNOWN IMPORTED) ++ set_target_properties(OGG::OGG PROPERTIES ++ IMPORTED_LOCATION "${OGG_LIBRARY}" ++ INTERFACE_INCLUDE_DIRECTORIES "${OGG_INCLUDE_DIR}") ++ endif () ++endif () +diff --git a/theora_image_transport/cmake/FindTHEORA.cmake b/theora_image_transport/cmake/FindTHEORA.cmake +index e69de29..73205cf 100644 +--- a/cmake/FindTHEORA.cmake ++++ b/cmake/FindTHEORA.cmake +@@ -0,0 +1,67 @@ ++include(CMakeFindDependencyMacro) ++ ++find_path(THEORA_INCLUDE_DIR ++ NAMES ++ theora/theora.h ++ DOC "theora include directory") ++mark_as_advanced(THEORA_INCLUDE_DIR) ++ ++get_filename_component(computed_theora_root "${THEORA_INCLUDE_DIR}" DIRECTORY) ++ ++find_library(THEORA_LIBRARY ++ NAMES ++ theora ++ HINTS ++ "${computed_theora_root}/lib" ++ "${computed_theora_root}/lib64" ++ DOC "theora library") ++mark_as_advanced(THEORA_LIBRARY) ++ ++find_library(THEORA_enc_LIBRARY ++ NAMES ++ theoraenc ++ HINTS ++ "${computed_theora_root}/lib" ++ "${computed_theora_root}/lib64" ++ DOC "theora encoding library") ++mark_as_advanced(THEORA_enc_LIBRARY) ++ ++find_library(THEORA_dec_LIBRARY ++ NAMES ++ theoradec ++ HINTS ++ "${computed_theora_root}/lib" ++ "${computed_theora_root}/lib64" ++ DOC "theora decoding library") ++mark_as_advanced(THEORA_dec_LIBRARY) ++ ++include(FindPackageHandleStandardArgs) ++find_package_handle_standard_args(THEORA ++ REQUIRED_VARS THEORA_LIBRARY THEORA_enc_LIBRARY THEORA_dec_LIBRARY THEORA_INCLUDE_DIR) ++ ++if (THEORA_FOUND) ++ set(THEORA_LIBRARIES "${THEORA_LIBRARY}" "${THEORA_enc_LIBRARY}" "${THEORA_dec_LIBRARY}") ++ set(THEORA_INCLUDE_DIRS "${THEORA_INCLUDE_DIR}") ++ ++ if (NOT TARGET THEORA::THEORA) ++ add_library(THEORA::THEORA UNKNOWN IMPORTED) ++ set_target_properties(THEORA::THEORA PROPERTIES ++ IMPORTED_LOCATION "${THEORA_LIBRARY}" ++ INTERFACE_INCLUDE_DIRECTORIES ${THEORA_INCLUDE_DIR}) ++ endif () ++ ++ if (NOT TARGET THEORA::ENC) ++ add_library(THEORA::ENC UNKNOWN IMPORTED) ++ set_target_properties(THEORA::ENC PROPERTIES ++ IMPORTED_LOCATION "${THEORA_enc_LIBRARY}" ++ INTERFACE_INCLUDE_DIRECTORIES ${THEORA_INCLUDE_DIR}) ++ endif() ++ ++ if (NOT TARGET THEORA::DEC) ++ add_library(THEORA::DEC UNKNOWN IMPORTED) ++ set_target_properties(THEORA::DEC PROPERTIES ++ IMPORTED_LOCATION "${THEORA_dec_LIBRARY}" ++ INTERFACE_INCLUDE_DIRECTORIES ${THEORA_INCLUDE_DIR}) ++ endif() ++endif () ++ diff --git a/distros/noetic/patch/ros-noetic-toposens-pointcloud.patch b/distros/noetic/patch/ros-noetic-toposens-pointcloud.patch new file mode 100644 index 000000000..cdcfcb008 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-toposens-pointcloud.patch @@ -0,0 +1,50 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index a4c4c9d3..4291d54b 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -5,7 +5,7 @@ + add_library( + ${PROJECT_NAME} + lib/mapping.cpp +- logging.cpp ++ # logging.cpp + ) + + add_dependencies( +diff --git a/src/ts_pointcloud_ros.cpp b/src/ts_pointcloud_ros.cpp +index 0536ad87..60ac761d 100644 +--- a/src/ts_pointcloud_ros.cpp ++++ b/src/ts_pointcloud_ros.cpp +@@ -31,10 +31,10 @@ TSPointCloudROS::TSPointCloudROS(ros::NodeHandle nh, ros::NodeHandle private_nh) + + // Processing entities + pointTransform_ = std::make_unique(); +- if (pcd_save_interval > 0) +- { +- log_thread_ = new boost::thread(&Logging::logPointcloud); +- } ++ //if (pcd_save_interval > 0) ++ //{ ++ // log_thread_ = new boost::thread(&Logging::logPointcloud); ++ //} + } + + TSPointCloudROS::~TSPointCloudROS() +@@ -84,7 +84,9 @@ void TSPointCloudROS::cloudCallback(const toposens_msgs::TsScan::ConstPtr &msg) + + /// Publish point cloud and normals, if activated + transformed_cloud->width = transformed_cloud->points.size(); +- cloud_pub_.publish(transformed_cloud); ++ sensor_msgs::PointCloud2 out_cloud; ++ pcl::toROSMsg(*transformed_cloud, out_cloud); ++ cloud_pub_.publish(out_cloud); + + if (lifetime_normals_vis_ != 0.0) + { +@@ -166,4 +168,4 @@ void TSPointCloudROS::publishNormals(XYZINCloud::ConstPtr transformed_cloud) + } + } + +-} // namespace toposens_pointcloud +\ No newline at end of file ++} // namespace toposens_pointcloud diff --git a/distros/noetic/patch/ros-noetic-turtlebot3-bringup.patch b/distros/noetic/patch/ros-noetic-turtlebot3-bringup.patch new file mode 100644 index 000000000..c1d5ab4ab --- /dev/null +++ b/distros/noetic/patch/ros-noetic-turtlebot3-bringup.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index dbe5107..9c630e7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 2.8.3) + project(turtlebot3_bringup) + + ## Compile as C++11, supported in ROS Kinetic and newer +-add_compile_options(-std=c++11) ++add_compile_options(-std=c++14) + + ################################################################################ + # Find catkin packages and libraries for catkin and system dependencies diff --git a/distros/noetic/patch/ros-noetic-turtlebot3-gazebo.patch b/distros/noetic/patch/ros-noetic-turtlebot3-gazebo.patch new file mode 100644 index 000000000..d149d0794 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-turtlebot3-gazebo.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 68c07a8..1f08c4c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -6,7 +6,7 @@ project(turtlebot3_gazebo) + cmake_policy(SET CMP0054 NEW) + + ## Compile as C++11, supported in ROS Kinetic and newer +-add_compile_options(-std=c++11) ++add_compile_options(-std=c++14) + + ################################################################################ + # Find catkin packages and libraries for catkin and system dependencies diff --git a/distros/noetic/patch/ros-noetic-ublox-gps.patch b/distros/noetic/patch/ros-noetic-ublox-gps.patch new file mode 100644 index 000000000..8c2e2d3d6 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ublox-gps.patch @@ -0,0 +1,38 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 264f2b1..8b95f86 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -16,8 +16,7 @@ catkin_package( + + # include boost + find_package(Boost REQUIRED COMPONENTS system regex thread) +-link_directories(${Boost_LIBRARY_DIR}) +-include_directories(${Boost_INCLUDE_DIR}) ++include_directories(${Boost_INCLUDE_DIRS}) + + # include other ublox packages + include_directories(${PROJECT_SOURCE_DIR}/include) +@@ -32,21 +31,16 @@ add_library(ublox_gps src/gps.cpp) + # fix msg compile order bug + add_dependencies(ublox_gps ${catkin_EXPORTED_TARGETS}) + +-target_link_libraries(ublox_gps +- boost_system +- boost_regex +- boost_thread +-) +- + target_link_libraries(ublox_gps + ${catkin_LIBRARIES} ++ ${Boost_LIBRARIES} + ) + + # build node + add_executable(ublox_gps_node src/node.cpp src/mkgmtime.c src/raw_data_pa.cpp) + set_target_properties(ublox_gps_node PROPERTIES OUTPUT_NAME ublox_gps) + +-target_link_libraries(ublox_gps_node boost_system boost_regex boost_thread) ++target_link_libraries(ublox_gps_node ${Boost_LIBRARIES}) + target_link_libraries(ublox_gps_node ${catkin_LIBRARIES}) + target_link_libraries(ublox_gps_node ublox_gps) + diff --git a/distros/noetic/patch/ros-noetic-ur-client-library.patch b/distros/noetic/patch/ros-noetic-ur-client-library.patch new file mode 100644 index 000000000..815533d67 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ur-client-library.patch @@ -0,0 +1,249 @@ +diff --git a/include/ur_client_library/portable_endian.h b/include/ur_client_library/portable_endian.h +new file mode 100644 +index 0000000..2b43378 +--- /dev/null ++++ b/include/ur_client_library/portable_endian.h +@@ -0,0 +1,118 @@ ++// "License": Public Domain ++// I, Mathias Panzenböck, place this file hereby into the public domain. Use it at your own risk for whatever you like. ++// In case there are jurisdictions that don't support putting things in the public domain you can also consider it to ++// be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it ++// an example on how to get the endian conversion functions on different platforms. ++ ++#ifndef PORTABLE_ENDIAN_H__ ++#define PORTABLE_ENDIAN_H__ ++ ++#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__) ++ ++# define __WINDOWS__ ++ ++#endif ++ ++#if defined(__linux__) || defined(__CYGWIN__) ++ ++# include ++ ++#elif defined(__APPLE__) ++ ++# include ++ ++# define htobe16(x) OSSwapHostToBigInt16(x) ++# define htole16(x) OSSwapHostToLittleInt16(x) ++# define be16toh(x) OSSwapBigToHostInt16(x) ++# define le16toh(x) OSSwapLittleToHostInt16(x) ++ ++# define htobe32(x) OSSwapHostToBigInt32(x) ++# define htole32(x) OSSwapHostToLittleInt32(x) ++# define be32toh(x) OSSwapBigToHostInt32(x) ++# define le32toh(x) OSSwapLittleToHostInt32(x) ++ ++# define htobe64(x) OSSwapHostToBigInt64(x) ++# define htole64(x) OSSwapHostToLittleInt64(x) ++# define be64toh(x) OSSwapBigToHostInt64(x) ++# define le64toh(x) OSSwapLittleToHostInt64(x) ++ ++# define __BYTE_ORDER BYTE_ORDER ++# define __BIG_ENDIAN BIG_ENDIAN ++# define __LITTLE_ENDIAN LITTLE_ENDIAN ++# define __PDP_ENDIAN PDP_ENDIAN ++ ++#elif defined(__OpenBSD__) ++ ++# include ++ ++#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) ++ ++# include ++ ++# define be16toh(x) betoh16(x) ++# define le16toh(x) letoh16(x) ++ ++# define be32toh(x) betoh32(x) ++# define le32toh(x) letoh32(x) ++ ++# define be64toh(x) betoh64(x) ++# define le64toh(x) letoh64(x) ++ ++#elif defined(__WINDOWS__) ++ ++# include ++# include ++ ++# if BYTE_ORDER == LITTLE_ENDIAN ++ ++# define htobe16(x) htons(x) ++# define htole16(x) (x) ++# define be16toh(x) ntohs(x) ++# define le16toh(x) (x) ++ ++# define htobe32(x) htonl(x) ++# define htole32(x) (x) ++# define be32toh(x) ntohl(x) ++# define le32toh(x) (x) ++ ++# define htobe64(x) htonll(x) ++# define htole64(x) (x) ++# define be64toh(x) ntohll(x) ++# define le64toh(x) (x) ++ ++# elif BYTE_ORDER == BIG_ENDIAN ++ ++ /* that would be xbox 360 */ ++# define htobe16(x) (x) ++# define htole16(x) __builtin_bswap16(x) ++# define be16toh(x) (x) ++# define le16toh(x) __builtin_bswap16(x) ++ ++# define htobe32(x) (x) ++# define htole32(x) __builtin_bswap32(x) ++# define be32toh(x) (x) ++# define le32toh(x) __builtin_bswap32(x) ++ ++# define htobe64(x) (x) ++# define htole64(x) __builtin_bswap64(x) ++# define be64toh(x) (x) ++# define le64toh(x) __builtin_bswap64(x) ++ ++# else ++ ++# error byte order not supported ++ ++# endif ++ ++# define __BYTE_ORDER BYTE_ORDER ++# define __BIG_ENDIAN BIG_ENDIAN ++# define __LITTLE_ENDIAN LITTLE_ENDIAN ++# define __PDP_ENDIAN PDP_ENDIAN ++ ++#else ++ ++# error platform not supported ++ ++#endif ++ ++#endif + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e95db8f..2620abd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -63,6 +63,9 @@ endif() + if(CMAKE_THREAD_LIBS_INIT) + target_link_libraries(urcl PUBLIC "${CMAKE_THREAD_LIBS_INIT}") + endif() ++if(UNIX AND NOT APPLE) ++ target_link_libraries(urcl PUBLIC "rt") ++endif() + + ## + ## Build testing if enabled by option +@@ -75,7 +78,7 @@ else() + endif() + + +-target_link_libraries(urcl INTERFACE ${Boost_Libraries}) ++target_link_libraries(urcl INTERFACE ${Boost_LIBRARIES}) + + add_subdirectory(examples) + +diff --git a/include/ur_client_library/comm/bin_parser.h b/include/ur_client_library/comm/bin_parser.h +index cad7c63..91af811 100644 +--- a/include/ur_client_library/comm/bin_parser.h ++++ b/include/ur_client_library/comm/bin_parser.h +@@ -21,7 +21,6 @@ + #pragma once + + #include +-#include + #include + #include + #include +@@ -29,6 +28,7 @@ + #include + #include + #include ++#include "ur_client_library/portable_endian.h" + #include "ur_client_library/log.h" + #include "ur_client_library/types.h" + #include "ur_client_library/exceptions.h" +diff --git a/include/ur_client_library/comm/package_serializer.h b/include/ur_client_library/comm/package_serializer.h +index 7745da9..ded500a 100644 +--- a/include/ur_client_library/comm/package_serializer.h ++++ b/include/ur_client_library/comm/package_serializer.h +@@ -29,8 +29,8 @@ + #ifndef UR_CLIENT_LIBRARY_PACKAGE_SERIALIZER_H_INCLUDED + #define UR_CLIENT_LIBRARY_PACKAGE_SERIALIZER_H_INCLUDED + +-#include + #include ++#include "ur_client_library/portable_endian.h" + + namespace urcl + { +diff --git a/include/ur_client_library/control/reverse_interface.h b/include/ur_client_library/control/reverse_interface.h +index d1e5707..e06e723 100644 +--- a/include/ur_client_library/control/reverse_interface.h ++++ b/include/ur_client_library/control/reverse_interface.h +@@ -34,8 +34,8 @@ + #include "ur_client_library/types.h" + #include "ur_client_library/log.h" + #include +-#include + #include ++#include "ur_client_library/portable_endian.h" + + namespace urcl + { +diff --git a/include/ur_client_library/primary/package_header.h b/include/ur_client_library/primary/package_header.h +index cd64bda..440b2e4 100644 +--- a/include/ur_client_library/primary/package_header.h ++++ b/include/ur_client_library/primary/package_header.h +@@ -32,7 +32,7 @@ + + #include + #include +-#include ++#include "ur_client_library/portable_endian.h" + #include "ur_client_library/types.h" + + namespace urcl +diff --git a/include/ur_client_library/rtde/package_header.h b/include/ur_client_library/rtde/package_header.h +index f910a08..eb509ea 100644 +--- a/include/ur_client_library/rtde/package_header.h ++++ b/include/ur_client_library/rtde/package_header.h +@@ -31,7 +31,7 @@ + #define UR_CLIENT_LIBRARY_RTDE__HEADER_H_INCLUDED + + #include +-#include ++#include "ur_client_library/portable_endian.h" + #include "ur_client_library/types.h" + #include "ur_client_library/comm/package_serializer.h" + +diff --git a/src/comm/tcp_socket.cpp b/src/comm/tcp_socket.cpp +index 586cb72..cee3961 100644 +--- a/src/comm/tcp_socket.cpp ++++ b/src/comm/tcp_socket.cpp +@@ -21,11 +21,11 @@ + */ + + #include +-#include + #include + #include + #include + ++#include "ur_client_library/portable_endian.h" + #include "ur_client_library/log.h" + #include "ur_client_library/comm/tcp_socket.h" + +@@ -45,7 +45,9 @@ void TCPSocket::setOptions(int socket_fd) + { + int flag = 1; + setsockopt(socket_fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(int)); ++#ifndef __APPLE__ + setsockopt(socket_fd, IPPROTO_TCP, TCP_QUICKACK, &flag, sizeof(int)); ++#endif + + if (recv_timeout_ != nullptr) + { diff --git a/distros/noetic/patch/ros-noetic-urg-c.patch b/distros/noetic/patch/ros-noetic-urg-c.patch new file mode 100644 index 000000000..8ee6caf00 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-urg-c.patch @@ -0,0 +1,68 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 64201d9..55383c6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -32,19 +32,19 @@ include_directories(${LIBRARY_INCLUDE_DIR} ${catkin_INCLUDE_DIRS}) + + ## Declare libraries + add_library(liburg_c ${LIBRARY_SRC_DIR}/urg_sensor.c +- ${LIBRARY_SRC_DIR}/urg_utils.c +- ${LIBRARY_SRC_DIR}/urg_debug.c +- ${LIBRARY_SRC_DIR}/urg_connection.c +- ${LIBRARY_SRC_DIR}/urg_ring_buffer.c +- ${LIBRARY_SRC_DIR}/urg_serial.c +- ${LIBRARY_SRC_DIR}/urg_serial_utils.c +- ${LIBRARY_SRC_DIR}/urg_tcpclient.c +- ${LIBRARY_SRC_DIR}/urg_time.c +- ++ ${LIBRARY_SRC_DIR}/urg_utils.c ++ ${LIBRARY_SRC_DIR}/urg_debug.c ++ ${LIBRARY_SRC_DIR}/urg_connection.c ++ ${LIBRARY_SRC_DIR}/urg_ring_buffer.c ++ ${LIBRARY_SRC_DIR}/urg_serial.c ++ ${LIBRARY_SRC_DIR}/urg_serial_utils.c ++ ${LIBRARY_SRC_DIR}/urg_tcpclient.c ++ ${LIBRARY_SRC_DIR}/urg_time.c + ) +-if(NOT ANDROID) ++ ++if(NOT ANDROID AND NOT APPLE) + target_link_libraries(liburg_c -lrt -lm) +-endif(NOT ANDROID) ++endif(NOT ANDROID AND NOT APPLE) + + add_library(open_urg_sensor ${LIBRARY_SAMPLE_DIR}/open_urg_sensor.c) + target_link_libraries(open_urg_sensor -lm liburg_c ${catkin_LIBRARIES}) +diff --git a/current/src/urg_time.c b/current/src/urg_time.c +index 68824e1..3e0212a 100644 +--- a/current/src/urg_time.c ++++ b/current/src/urg_time.c +@@ -20,8 +20,8 @@ void urg_walltime(unsigned long *sec, unsigned long *nsec) + #else + struct timeval timeofday; + gettimeofday(&timeofday,NULL); +- sec = timeofday.tv_sec; +- nsec = timeofday.tv_usec * 1000; ++ *sec = timeofday.tv_sec; ++ *nsec = timeofday.tv_usec * 1000; + #endif + #else + // Win32 implementation +@@ -76,8 +76,8 @@ void urg_walltime(unsigned long *sec, unsigned long *nsec) + // Throws an exception if we go out of 32-bit range + normalizeSecNSecUnsigned(sec_sum, nsec_sum); + +- sec = sec_sum; +- nsec = nsec_sum; ++ *sec = sec_sum; ++ *nsec = nsec_sum; + #endif + } + +@@ -86,4 +86,4 @@ void urg_get_walltime(unsigned long long *nsecs){ + unsigned long nsec; + urg_walltime(&sec, &nsec); + *nsecs = (unsigned long long)sec*1000000000ll + (unsigned long long)nsec; +-} +\ No newline at end of file ++} diff --git a/distros/noetic/patch/ros-noetic-urg-node.patch b/distros/noetic/patch/ros-noetic-urg-node.patch new file mode 100644 index 000000000..408a509b6 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-urg-node.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9ff08d8..fce34e0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,7 +5,7 @@ find_package(catkin REQUIRED COMPONENTS + diagnostic_updater dynamic_reconfigure laser_proc message_generation + nodelet rosconsole roscpp sensor_msgs std_msgs std_srvs tf urg_c + ) +-set_directory_properties(PROPERTIES COMPILE_OPTIONS "-std=c++11") ++set_directory_properties(PROPERTIES COMPILE_OPTIONS "-std=c++14") + + # Dynamic reconfigure support + generate_dynamic_reconfigure_options(cfg/URG.cfg) diff --git a/distros/noetic/patch/ros-noetic-usb-cam.patch b/distros/noetic/patch/ros-noetic-usb-cam.patch new file mode 100644 index 000000000..4f0781770 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-usb-cam.patch @@ -0,0 +1,14 @@ +diff --git a/src/usb_cam.cpp b/src/usb_cam.cpp +index 0fefb6a..32efa25 100644 +--- a/src/usb_cam.cpp ++++ b/src/usb_cam.cpp +@@ -1217,8 +1217,7 @@ void UsbCam::shutdown(void) + + if (avcodec_context_) + { +- avcodec_close(avcodec_context_); +- av_free(avcodec_context_); ++ avcodec_free_context(&avcodec_context_); + avcodec_context_ = NULL; + } + if (avframe_camera_) diff --git a/distros/noetic/patch/ros-noetic-webots-ros.osx.patch b/distros/noetic/patch/ros-noetic-webots-ros.osx.patch new file mode 100644 index 000000000..f033c724b --- /dev/null +++ b/distros/noetic/patch/ros-noetic-webots-ros.osx.patch @@ -0,0 +1,13 @@ +diff --git a/scripts/webots_launcher.py b/scripts/webots_launcher.py +index f20a0ac..c2983a2 100755 +--- a/scripts/webots_launcher.py ++++ b/scripts/webots_launcher.py +@@ -64,7 +64,7 @@ options, args = optParser.parse_args() + if 'WEBOTS_HOME' not in os.environ: + sys.exit('WEBOTS_HOME environment variable not defined.') + +-command = [os.path.join(os.environ['WEBOTS_HOME'], 'webots'), '--mode=' + options.mode, options.world] ++command = [os.path.join(os.environ['WEBOTS_HOME'], 'Contents/MacOS/webots'), '--mode=' + options.mode, options.world] + + if options.stream.lower() != 'false': + if options.stream.lower() == 'true': diff --git a/distros/noetic/patch/ros-noetic-willow-maps.patch b/distros/noetic/patch/ros-noetic-willow-maps.patch new file mode 100644 index 000000000..c2170d4fd --- /dev/null +++ b/distros/noetic/patch/ros-noetic-willow-maps.patch @@ -0,0 +1,45 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 15046db..c0e53dd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -25,15 +25,15 @@ find_package(catkin REQUIRED ) + # CATKIN_MIGRATION: removed during catkin migration + # rosbuild_init() + +-catkin_download_test_data(download_data_willow-willow-full-0.025.pgm http://download.ros.org/data/maps/willow-full-0.025.pgm FILENAME willow-full-0.025.pgm MD5 e66b17ee374f2d7657972efcb3e2e4f7) +-catkin_download_test_data(download_data_willow-willow-full-0.05.pgm http://download.ros.org/data/maps/willow-full-0.05.pgm FILENAME willow-full-0.05.pgm MD5 b61694296e08965096c5e78611fd9765) +-catkin_download_test_data(download_data_willow-willow-full-0.10.pgm http://download.ros.org/data/maps/willow-full-0.10.pgm FILENAME willow-full-0.10.pgm MD5 b84465cdbbfe3e2fb9eb4579e0bcaf0e) +-catkin_download_test_data(download_data_willow-willow-sans-whitelab-0.025.pgm http://download.ros.org/data/maps/willow-sans-whitelab-0.025.pgm FILENAME willow-sans-whitelab-0.025.pgm MD5 dce0081e83a9e2eb8b29c51c8cd3ffac) +-catkin_download_test_data(download_data_willow-willow.tmap http://download.ros.org/data/maps/willow.tmap FILENAME willow.tmap MD5 48864073990c66173dade2bfcae5669d) ++catkin_download(download_data_willow-willow-full-0.025.pgm http://download.ros.org/data/maps/willow-full-0.025.pgm FILENAME willow-full-0.025.pgm MD5 e66b17ee374f2d7657972efcb3e2e4f7 DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) ++catkin_download(download_data_willow-willow-full-0.05.pgm http://download.ros.org/data/maps/willow-full-0.05.pgm FILENAME willow-full-0.05.pgm MD5 b61694296e08965096c5e78611fd9765 DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) ++catkin_download(download_data_willow-willow-full-0.10.pgm http://download.ros.org/data/maps/willow-full-0.10.pgm FILENAME willow-full-0.10.pgm MD5 b84465cdbbfe3e2fb9eb4579e0bcaf0e DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) ++catkin_download(download_data_willow-willow-sans-whitelab-0.025.pgm http://download.ros.org/data/maps/willow-sans-whitelab-0.025.pgm FILENAME willow-sans-whitelab-0.025.pgm MD5 dce0081e83a9e2eb8b29c51c8cd3ffac DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) ++catkin_download(download_data_willow-willow.tmap http://download.ros.org/data/maps/willow.tmap FILENAME willow.tmap MD5 48864073990c66173dade2bfcae5669d DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) + #catkin_download_test_data(download_data_willow-willow-2010-02-18-0.025.pgm http://download.ros.org/data/maps/willow-2010-02-18-0.025.pgm FILENAME willow-2010-02-18-0.025.pgm MD5 1f82c191f1e4a830669de7bbc4bc989a) + #catkin_download_test_data(download_data_willow-willow-sans-whitelab-2010-02-18-0.025.pgm http://download.ros.org/data/maps/willow-sans-whitelab-2010-02-18-0.025.pgm FILENAME willow-sans-whitelab-2010-02-18-0.025.pgm MD5 9fc85f28c98034979f10e8f6ece676bb)## Generate added messages and services with any dependencies listed here + +- ++add_custom_target(download ALL DEPENDS download_extra_data) + + + #generate_messages( +@@ -57,18 +57,3 @@ install(FILES + willow.tmap.outlet_overrides.xml + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} + ) +- +- +- +-install(CODE "execute_process(COMMAND make -C ${PROJECT_BINARY_DIR} tests)") +-install(FILES +- ${PROJECT_BINARY_DIR}/willow-full-0.025.pgm +- ${PROJECT_BINARY_DIR}/willow-full-0.05.pgm +- ${PROJECT_BINARY_DIR}/willow-full-0.10.pgm +- ${PROJECT_BINARY_DIR}/willow-sans-whitelab-0.025.pgm +- ${PROJECT_BINARY_DIR}/willow.tmap +-# ${PROJECT_BINARY_DIR}/willow-2010-02-18-0.025.pgm +-# ${PROJECT_BINARY_DIR}/willow-sans-whitelab-2010-02-18-0.025.pgm +- DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} +-) +- diff --git a/distros/noetic/patch/ros-noetic-xmlrpcpp.patch b/distros/noetic/patch/ros-noetic-xmlrpcpp.patch new file mode 100644 index 000000000..0bfd81d78 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-xmlrpcpp.patch @@ -0,0 +1,55 @@ +diff --git a/src/XmlRpcClient.cpp b/src/XmlRpcClient.cpp +index 2401aab848..7244f5b35b 100644 +--- a/src/XmlRpcClient.cpp ++++ b/src/XmlRpcClient.cpp +@@ -1,4 +1,4 @@ +- ++#include + #include "xmlrpcpp/XmlRpcClient.h" + + #include "xmlrpcpp/XmlRpcSocket.h" +diff --git a/include/xmlrpcpp/XmlRpc.h b/include/xmlrpcpp/XmlRpc.h +index 0018b7ecc1..7b1ec18c47 100644 +--- a/include/xmlrpcpp/XmlRpc.h ++++ b/include/xmlrpcpp/XmlRpc.h +@@ -23,9 +23,8 @@ + # pragma warning(disable:4786) // identifier was truncated in debug info + #endif + +-#ifndef MAKEDEPEND +-# include +-#endif ++#include ++#include + + #include "xmlrpcpp/XmlRpcClient.h" + #include "xmlrpcpp/XmlRpcException.h" +diff --git a/xmlrpcpp/XmlRpcClient.h b/include/xmlrpcpp/XmlRpcClient.h +index 12175360b7..9ce539c2be 100644 +--- a/include/xmlrpcpp/XmlRpcClient.h ++++ b/include/xmlrpcpp/XmlRpcClient.h +@@ -9,9 +9,8 @@ + #endif + + +-#ifndef MAKEDEPEND +-# include +-#endif ++#include ++#include + + #include "xmlrpcpp/XmlRpcDispatch.h" + #include "xmlrpcpp/XmlRpcSource.h" +diff --git a/include/xmlrpcpp/XmlRpcValue.h b/include/xmlrpcpp/XmlRpcValue.h +index ac92440cdd..dadbf8c67b 100644 +--- a/include/xmlrpcpp/XmlRpcValue.h ++++ b/include/xmlrpcpp/XmlRpcValue.h +@@ -8,6 +8,8 @@ + # pragma warning(disable:4786) // identifier was truncated in debug info + #endif + ++#include ++ + #include "xmlrpcpp/XmlRpcDecl.h" + + #ifndef MAKEDEPEND diff --git a/distros/noetic/patch/ros-noetic-ypspur.patch b/distros/noetic/patch/ros-noetic-ypspur.patch new file mode 100644 index 000000000..ddf9dad10 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-ypspur.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 135784f..aef508e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -90,6 +90,11 @@ if(SSM_FOUND) + ) + endif(SSM_FOUND) + ++if(READLINE_FOUND) ++ include_directories( ++ ${READLINE_INCLUDE_DIRS} ++ ) ++endif() + + # Static link options + diff --git a/distros/noetic/patch/ros-noetic-zbar-ros.patch b/distros/noetic/patch/ros-noetic-zbar-ros.patch new file mode 100644 index 000000000..34ca19d77 --- /dev/null +++ b/distros/noetic/patch/ros-noetic-zbar-ros.patch @@ -0,0 +1,180 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 62c2cc8..1282364 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,8 +1,10 @@ + cmake_minimum_required(VERSION 2.8.3) + project(zbar_ros) + +-find_package(catkin REQUIRED COMPONENTS roscpp cv_bridge nodelet roslint) ++set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) + ++find_package(catkin REQUIRED COMPONENTS roscpp cv_bridge nodelet roslint) ++find_package(ZBAR REQUIRED) + catkin_package( + INCLUDE_DIRS include + LIBRARIES barcode_reader_nodelet +@@ -12,10 +14,11 @@ catkin_package( + include_directories( + include + ${catkin_INCLUDE_DIRS} ++ ${ZBAR_INCLUDE_DIRS} + ) + + add_library(barcode_reader_nodelet src/barcode_reader_nodelet.cpp) +-target_link_libraries(barcode_reader_nodelet zbar ${catkin_LIBRARIES}) ++target_link_libraries(barcode_reader_nodelet ${ZBAR_LIBRARIES} ${catkin_LIBRARIES}) + + add_executable(barcode_reader_node src/barcode_reader_node.cpp) + target_link_libraries(barcode_reader_node ${catkin_LIBRARIES}) +diff --git a/cmake/FindZBAR.cmake b/cmake/FindZBAR.cmake +new file mode 100644 +index 0000000..4a45669 +--- /dev/null ++++ b/cmake/FindZBAR.cmake +@@ -0,0 +1,145 @@ ++############################################################################# ++# ++# ViSP, open source Visual Servoing Platform software. ++# Copyright (C) 2005 - 2019 by Inria. All rights reserved. ++# ++# This software is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# See the file LICENSE.txt at the root directory of this source ++# distribution for additional information about the GNU GPL. ++# ++# For using ViSP with software that can not be combined with the GNU ++# GPL, please contact Inria about acquiring a ViSP Professional ++# Edition License. ++# ++# See http://visp.inria.fr for more information. ++# ++# This software was developed at: ++# Inria Rennes - Bretagne Atlantique ++# Campus Universitaire de Beaulieu ++# 35042 Rennes Cedex ++# France ++# ++# If you have questions regarding the use of this file, please contact ++# Inria at visp@inria.fr ++# ++# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ++# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ++# ++# Description: ++# Try to find zbar library. ++# Once run this will define: ++# ++# ZBAR_FOUND ++# ZBAR_INCLUDE_DIRS ++# ZBAR_LIBRARIES ++# ZBAR_VERSION ++# ++# Authors: ++# Fabien Spindler ++# ++############################################################################# ++ ++macro(vp_get_version_from_pkg LIBNAME PKG_PATH OUTPUT_VAR) ++ if(EXISTS "${PKG_PATH}/${LIBNAME}.pc") ++ file(STRINGS "${PKG_PATH}/${LIBNAME}.pc" line_to_parse REGEX "^Version:[ \t]+[0-9.]*.*$" LIMIT_COUNT 1) ++ string(REGEX REPLACE ".*Version: ([^ ]+).*" "\\1" ${OUTPUT_VAR} "${line_to_parse}" ) ++ endif() ++endmacro() ++ ++set(ZBAR_INC_SEARCH_PATH "") ++set(ZBAR_LIB_SEARCH_PATH "") ++ ++if(MSVC) ++ list(APPEND ZBAR_INC_SEARCH_PATH $ENV{ZBAR_DIR}/include) ++ list(APPEND ZBAR_INC_SEARCH_PATH "C:/ZBarWin64/include") ++ list(APPEND ZBAR_INC_SEARCH_PATH "C:/workspace/ZBarWin64/include") ++ list(APPEND ZBAR_INC_SEARCH_PATH "C:/zbar/ZBarWin64/include") ++ ++ if(CMAKE_CL_64) ++ list(APPEND ZBAR_LIB_SEARCH_PATH $ENV{ZBAR_DIR}/x64) ++ list(APPEND ZBAR_LIB_SEARCH_PATH "C:/ZBarWin64/x64") ++ list(APPEND ZBAR_LIB_SEARCH_PATH "C:/workspace/ZBarWin64/x64") ++ list(APPEND ZBAR_LIB_SEARCH_PATH "C:/zbar/ZBarWin64/x64") ++ else() ++ list(APPEND ZBAR_LIB_SEARCH_PATH $ENV{ZBAR_DIR}) ++ list(APPEND ZBAR_LIB_SEARCH_PATH "C:/ZBarWin64") ++ list(APPEND ZBAR_LIB_SEARCH_PATH "C:/workspace/ZBarWin64") ++ list(APPEND ZBAR_LIB_SEARCH_PATH "C:/zbar/ZBarWin64") ++ endif() ++ ++else() ++ list(APPEND ZBAR_INC_SEARCH_PATH $ENV{ZBAR_DIR}/include) ++ list(APPEND ZBAR_INC_SEARCH_PATH /usr/include) ++ list(APPEND ZBAR_INC_SEARCH_PATH /usr/local/include) ++ ++ list(APPEND ZBAR_LIB_SEARCH_PATH /usr/lib) ++ list(APPEND ZBAR_LIB_SEARCH_PATH /usr/local/lib) ++endif() ++ ++find_path(ZBAR_INCLUDE_DIRS zbar.h ++ PATHS ++ ${ZBAR_INC_SEARCH_PATH} ++) ++ ++if(MSVC) ++ set(ZBAR_LIB_SEARCH_PATH_OPT ${ZBAR_LIB_SEARCH_PATH}) ++ set(ZBAR_LIB_SEARCH_PATH_DBG ${ZBAR_LIB_SEARCH_PATH}) ++ foreach(p ${ZBAR_LIB_SEARCH_PATH}) ++ list(APPEND ZBAR_LIB_SEARCH_PATH_OPT ${p}/Release) ++ list(APPEND ZBAR_LIB_SEARCH_PATH_DBG ${p}/Debug) ++ endforeach() ++ find_library(ZBAR_LIBRARIES_OPT ++ NAMES libzbar64-0 ++ PATHS ++ ${ZBAR_LIB_SEARCH_PATH_OPT} ++ ) ++ find_library(ZBAR_LIBRARIES_DBG ++ NAMES libzbar64-0 ++ PATHS ++ ${ZBAR_LIB_SEARCH_PATH_DBG} ++ ) ++ ++ if(ZBAR_LIBRARIES_OPT AND ZBAR_LIBRARIES_DBG) ++ set(ZBAR_LIBRARIES optimized ${ZBAR_LIBRARIES_OPT}) ++ list(APPEND ZBAR_LIBRARIES debug ${ZBAR_LIBRARIES_DBG}) ++ elseif(ZBAR_LIBRARIES_OPT) ++ list(APPEND ZBAR_LIBRARIES ${ZBAR_LIBRARIES_OPT}) ++ elseif(ZBAR_LIBRARIES_DBG) ++ list(APPEND ZBAR_LIBRARIES ${ZBAR_LIBRARIES_DBG}) ++ endif() ++ ++ mark_as_advanced(ZBAR_LIBRARIES_OPT ZBAR_LIBRARIES_DBG) ++else() ++ find_library(ZBAR_LIBRARIES ++ NAMES zbar ++ PATHS ++ ${ZBAR_LIB_SEARCH_PATH} ++ ) ++endif() ++ ++#message("ZBAR_INCLUDE_DIRS: ${ZBAR_INCLUDE_DIRS}") ++#message("ZBAR_LIBRARIES: ${ZBAR_LIBRARIES}") ++if(ZBAR_INCLUDE_DIRS AND ZBAR_LIBRARIES) ++ set(ZBAR_FOUND TRUE) ++else() ++ set(ZBAR_FOUND FALSE) ++endif() ++ ++if(ZBAR_FOUND) ++ if(MSVC) ++ vp_parse_header("${ZBAR_INCLUDE_DIRS}/config.h" ZBAR_VERSION_LINES LIB_VERSION_MAJOR LIB_VERSION_MINOR LIB_VERSION_REVISION) ++ set(ZBAR_VERSION "${LIB_VERSION_MAJOR}.${LIB_VERSION_MINOR}.${LIB_VERSION_REVISION}") ++ else() ++ get_filename_component(ZBAR_LIB_DIR ${ZBAR_LIBRARIES} PATH) ++ vp_get_version_from_pkg("zbar" "${ZBAR_LIB_DIR}/pkgconfig" ZBAR_VERSION) ++ endif() ++endif() ++ ++mark_as_advanced( ++ ZBAR_INCLUDE_DIRS ++ ZBAR_LIBRARIES ++) ++ diff --git a/distros/noetic/pkg_additional_info.yaml b/distros/noetic/pkg_additional_info.yaml new file mode 100644 index 000000000..570e798ba --- /dev/null +++ b/distros/noetic/pkg_additional_info.yaml @@ -0,0 +1,239 @@ +octomap: + generate_dummy_package_with_run_deps: + dep_name: octomap + max_pin: 'x.x' + override_version: '1.10.0' +draco: + generate_dummy_package_with_run_deps: + dep_name: draco + max_pin: 'x.x.x' + override_version: '1.5.7' +ompl: + generate_dummy_package_with_run_deps: + dep_name: ompl + max_pin: 'x.x' + override_version: '1.7.0' +# Do not unvendor urdfdom_py as the ROS1 required version is not on conda-forge +# urdfdom_py: +# generate_dummy_package_with_run_deps: +# dep_name: urdfdom-py +# max_pin: 'x.x' + add_host: ["ompl"] + add_run: ["ompl"] +urdfdom_headers: + generate_dummy_package_with_run_deps: + dep_name: urdfdom_headers + max_pin: 'x.x' +cartographer: + generate_dummy_package_with_run_deps: + dep_name: cartographer + max_pin: 'x.x' + # ROS uses a custom versioning scheme currently at 2.0.9004 + override_version: '2.0.0' +hpp_fcl: + generate_dummy_package_with_run_deps: + dep_name: hpp-fcl + max_pin: 'x.x.x' + # the version on ros is outdated w.r.t. to the conda-forge one + override_version: '3.0.2' +fcl: + generate_dummy_package_with_run_deps: + dep_name: fcl + max_pin: 'x.x' + # the version on ros is outdated w.r.t. to the conda-forge one + override_version: '0.7.0' +coal: + generate_dummy_package_with_run_deps: + dep_name: coal + max_pin: 'x.x.x' +eigenpy: + generate_dummy_package_with_run_deps: + dep_name: eigenpy + max_pin: 'x.x.x' + # the version in ros is not compatible with conda-forge's coal and hpp_fcl builds + override_version: '3.12.0' +pinocchio: + generate_dummy_package_with_run_deps: + dep_name: pinocchio + max_pin: 'x.x.x' + # the version on ros is outdated w.r.t. to the conda-forge one + override_version: '3.9.0' +gtsam: + generate_dummy_package_with_run_deps: + dep_name: gtsam + max_pin: 'x.x' +librealsense2: + generate_dummy_package_with_run_deps: + dep_name: librealsense + max_pin: 'x.x' + override_version: '2.56.5' + +apriltag: + additional_cmake_args: "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON" + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}", "${{ 'winpthreads-devel' if win }}"] + add_run: ["${{ 'winpthreads-devel' if win }}"] +apriltag_ros: + additional_cmake_args: "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON" + +# Remove everything after this line on a full rebuild + add_host: ["${{ 'winpthreads-devel' if win }}"] +ros_type_introspection: + build_number: 25 +euslisp: + add_host: ["${{ 'xorg-libx11' if linux }}", "${{ 'libglu' if linux }}", "${{ 'libgl-devel' if linux }}", "${{ 'glew' if linux }}", "zlib", "libpng"] +jskeus: + add_host: ["zlib", "libpng"] +stage: + add_host: ["zlib", "libpng"] +qt_gui_cpp: + add_build: ["pyqt-builder", "pyqt5-sip", "sip"] + add_host: ["sip"] +rviz: + add_build: ["pyqt-builder", "pyqt5-sip", "sip"] + add_host: ["sip"] +python_qt_binding: + add_build: ["pyqt-builder", "pyqt5-sip", "sip"] + add_host: ["sip"] + add_run: ["adwaita-icon-theme"] +find_object_2d: + add_host: ["zlib"] +sick_tim: + add_host: ["pkg-config"] +class_loader: + add_host: ["${{ 'libcxx-devel 19.*' if osx }}"] +moveit_visual_tools: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +pcl_conversions: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +pcl_ros: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +grid_map_demos: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +moveit_setup_assistant: + add_host: ["ompl"] +gazebo_dev: + add_host: [tbb, tbb-devel] +gazebo_ros: + add_host: [tbb, tbb-devel] +gazebo_plugins: + add_host: [tbb, tbb-devel] +gazebo_ros_control: + add_host: [tbb, tbb-devel] +gazebo_pkgs: + add_host: [tbb, tbb-devel] +ros_ign_gazebo: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}", "${{ 'libuuid' if linux }}"] +lvr2: + add_host: ["libgdal", "cgal-cpp"] +rtabmap: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}", "pybind11", "tbb-devel", "liblzma-devel"] +rtabmap_ros: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +rtabmap_conversions: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}", "libnetcdf", "liblzma-devel"] +rtabmap_rviz_plugins: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +rtabmap_viz: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +image_view2: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +swri_image_util: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +posedetection_msgs: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +libcmt: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +checkerboard_detector: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +imagesift: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +jsk_rviz_plugins: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +jsk_perception: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +jsk_interactive_marker: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +jsk_pcl_ros_utils: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +jsk_pcl_ros: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +jsk_recognition_utils: + add_host: ["glew", "cython"] + add_run: ["glew"] +robot_self_filter: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +ur_client_library: + add_host: ["ros-noetic-catkin"] +mqtt_bridge: + add_run: ["inject", "msgpack-python", "paho-mqtt", "pymongo"] +mrpt2: + add_host: ["tinyxml2", "libboost-devel", "jsoncpp", "gtest", "libboost-python-devel", "libdc1394", "xorg-libxcomposite", "ros-noetic-octomap", "libftdi"] + add_run: ["tinyxml2", "libboost-devel", "jsoncpp", "gtest", "libboost-python-devel", "libdc1394", "xorg-libxcomposite", "ros-noetic-octomap", "libftdi"] + add_build: ["${{ 'xorg-libxcomposite' if linux }}"] +image_view: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +rosserial_python: + add_run: ["pyserial"] +mesh_client: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}", "cgal-cpp"] +map_organizer: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +libuvc_camera: + add_host: ["pkgconfig"] +toposens_markers: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}", libglib, glib, libxcb, pthread-stubs, xorg-libxau, xorg-libxi, xorg-libxrandr, xorg-libxcursor, xorg-libxtst, xorg-libxcomposite, xorg-libxdamage, xorg-libxinerama, xorg-xineramaproto] +audio_capture: + add_host: ["libglib", "glib"] +audio_play: + add_host: ["libglib", "glib"] +cob_object_detection_visualizer: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +grid_map_pcl: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +laser_scan_matcher: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +moveit_calibration_plugins: + add_host: ["libopencv"] +multisense_ros: + add_host: ["libjpeg-turbo"] +obj_to_pointcloud: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +rc_roi_manager_gui: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +simple_grasping: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +face_detector: + add_host: ["yaml-cpp"] +safety_limiter: + add_host: ["${{ 'libgl-devel' if linux }}", "${{ 'libopengl-devel' if linux }}"] +ifopt: + add_host: ["ipopt"] +tesseract_collision: + add_build: ["${{ 'llvm-openmp' if osx }}"] +rosbridge_library: + add_run: ["pymongo"] +resource_retriever: + add_host: ["libcurl"] + add_run: ["libcurl"] +plotjuggler: + add_host: ["${{ 'elfutils' if linux }}", "protobuf"] +lanelet2_core: + add_host: ["gtest"] +lanelet2_io: + add_host: ["gtest"] +lanelet2_maps: + add_host: ["gtest"] +lanelet2_matching: + add_host: ["gtest"] +lanelet2_projection: + add_host: ["gtest"] +lanelet2_routing: + add_host: ["gtest"] +lanelet2_traffic_rules: + add_host: ["gtest"] +lanelet2_examples: + add_host: ["gtest"] +lanelet2_python: + add_host: ["gtest"] +lanelet2_validation: + add_host: ["gtest"] diff --git a/distros/noetic/rosdistro_additional_recipes.yaml b/distros/noetic/rosdistro_additional_recipes.yaml new file mode 100644 index 000000000..541c8a026 --- /dev/null +++ b/distros/noetic/rosdistro_additional_recipes.yaml @@ -0,0 +1,42 @@ +# Additional bloom recipes for this ROS 1 distribution +# This file is used to add additional recipes to the ROS 1 distribution +# Additional bloom recipes for this ROS 1 distribution +# This file is used to add additional recipes to the ROS 2 distribution, not contained in the +# upstream rosdistro. Differently from rosdistro_snapshot.yaml, this file is not +# automatically generated, but manually maintained. +jackal_base: + tag: release/noetic/jackal_base/0.7.11-1 + url: https://github.com/clearpath-gbp/jackal_robot-release.git + version: 0.7.11 +jackal_control: + tag: release/noetic/jackal_control/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_description: + tag: release/noetic/jackal_description/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_desktop: + tag: release/noetic/jackal_desktop/0.4.1-2 + url: https://github.com/clearpath-gbp/jackal_desktop-release.git + version: 0.4.1 +jackal_gazebo: + tag: release/noetic/jackal_gazebo/0.4.0-1 + url: https://github.com/clearpath-gbp/jackal_simulator-release.git + version: 0.4.0 +jackal_msgs: + tag: release/noetic/jackal_msgs/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_navigation: + tag: release/noetic/jackal_navigation/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_simulator: + tag: release/noetic/jackal_simulator/0.4.0-1 + url: https://github.com/clearpath-gbp/jackal_simulator-release.git + version: 0.4.0 +jackal_viz: + tag: release/noetic/jackal_viz/0.4.1-1 + url: https://github.com/clearpath-gbp/jackal_desktop-release.git + version: 0.4.1 diff --git a/distros/noetic/rosdistro_snapshot.yaml b/distros/noetic/rosdistro_snapshot.yaml new file mode 100644 index 000000000..1dd91203a --- /dev/null +++ b/distros/noetic/rosdistro_snapshot.yaml @@ -0,0 +1,8701 @@ +# Snapshot generated by vinca-snapshot on 2025-11-01T05:49:25Z UTC for distro noetic +abb: + tag: release/noetic/abb/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_crb15000_support: + tag: release/noetic/abb_crb15000_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_driver: + tag: release/noetic/abb_driver/1.4.0-1 + url: https://github.com/ros-industrial-release/abb_driver-release.git + version: 1.4.0 +abb_egm_msgs: + tag: release/noetic/abb_egm_msgs/0.5.2-1 + url: https://github.com/ros-industrial-release/abb_robot_driver_interfaces-release.git + version: 0.5.2 +abb_irb1200_support: + tag: release/noetic/abb_irb1200_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb120_support: + tag: release/noetic/abb_irb120_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb1600_support: + tag: release/noetic/abb_irb1600_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb2400_support: + tag: release/noetic/abb_irb2400_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb2600_support: + tag: release/noetic/abb_irb2600_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb4400_support: + tag: release/noetic/abb_irb4400_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb4600_support: + tag: release/noetic/abb_irb4600_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb52_support: + tag: release/noetic/abb_irb52_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb5400_support: + tag: release/noetic/abb_irb5400_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb6600_support: + tag: release/noetic/abb_irb6600_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb6640_support: + tag: release/noetic/abb_irb6640_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb6650s_support: + tag: release/noetic/abb_irb6650s_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb6700_support: + tag: release/noetic/abb_irb6700_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_irb7600_support: + tag: release/noetic/abb_irb7600_support/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_rapid_msgs: + tag: release/noetic/abb_rapid_msgs/0.5.2-1 + url: https://github.com/ros-industrial-release/abb_robot_driver_interfaces-release.git + version: 0.5.2 +abb_rapid_sm_addin_msgs: + tag: release/noetic/abb_rapid_sm_addin_msgs/0.5.2-1 + url: https://github.com/ros-industrial-release/abb_robot_driver_interfaces-release.git + version: 0.5.2 +abb_resources: + tag: release/noetic/abb_resources/1.5.0-1 + url: https://github.com/ros-industrial-release/abb-release.git + version: 1.5.0 +abb_robot_msgs: + tag: release/noetic/abb_robot_msgs/0.5.2-1 + url: https://github.com/ros-industrial-release/abb_robot_driver_interfaces-release.git + version: 0.5.2 +ackermann_msgs: + tag: release/noetic/ackermann_msgs/1.0.2-1 + url: https://github.com/ros-drivers-gbp/ackermann_msgs-release.git + version: 1.0.2 +ackermann_steering_controller: + tag: release/noetic/ackermann_steering_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +actionlib: + tag: release/noetic/actionlib/1.14.3-1 + url: https://github.com/ros-gbp/actionlib-release.git + version: 1.14.3 +actionlib_lisp: + tag: release/noetic/actionlib_lisp/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +actionlib_msgs: + tag: release/noetic/actionlib_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +actionlib_tools: + tag: release/noetic/actionlib_tools/1.14.3-1 + url: https://github.com/ros-gbp/actionlib-release.git + version: 1.14.3 +actionlib_tutorials: + tag: release/noetic/actionlib_tutorials/0.2.0-1 + url: https://github.com/ros-gbp/common_tutorials-release.git + version: 0.2.0 +adi_3dtof_image_stitching: + tag: release/noetic/adi_3dtof_image_stitching/1.1.0-2 + url: https://github.com/raebelchristo-adi/adi_3dtof_image_stitching-release.git + version: 1.1.0 +adi_tmc_coe: + tag: release/noetic/adi_tmc_coe/1.0.2-1 + url: https://github.com/ros2-gbp/adi_tmcl_coe-release.git + version: 1.0.2 +adi_tmcl: + tag: release/noetic/adi_tmcl/4.0.2-2 + url: https://github.com/ros2-gbp/adi_tmcl-release.git + version: 4.0.2 +agni_tf_tools: + tag: release/noetic/agni_tf_tools/0.1.6-1 + url: https://github.com/ubi-agni-gbp/agni_tf_tools-release.git + version: 0.1.6 +allocators: + tag: release/noetic/allocators/1.0.25-1 + url: https://github.com/ros-gbp/ros_realtime-release.git + version: 1.0.25 +amcl: + tag: release/noetic/amcl/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +angles: + tag: release/noetic/angles/1.9.14-1 + url: https://github.com/ros-gbp/geometry_angles_utils-release.git + version: 1.9.14 +app_manager: + tag: release/noetic/app_manager/1.3.0-1 + url: https://github.com/ros-gbp/app_manager-release.git + version: 1.3.0 +apriltag: + tag: release/noetic/apriltag/3.2.0-1 + url: https://github.com/AprilRobotics/apriltag-release.git + version: 3.2.0 +apriltag_ros: + tag: release/noetic/apriltag_ros/3.2.1-3 + url: https://github.com/AprilRobotics/apriltag_ros-release.git + version: 3.2.1 +aques_talk: + tag: release/noetic/aques_talk/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +arbotix: + tag: release/noetic/arbotix/0.11.0-1 + url: https://github.com/vanadiumlabs/arbotix_ros-release.git + version: 0.11.0 +arbotix_controllers: + tag: release/noetic/arbotix_controllers/0.11.0-1 + url: https://github.com/vanadiumlabs/arbotix_ros-release.git + version: 0.11.0 +arbotix_firmware: + tag: release/noetic/arbotix_firmware/0.11.0-1 + url: https://github.com/vanadiumlabs/arbotix_ros-release.git + version: 0.11.0 +arbotix_msgs: + tag: release/noetic/arbotix_msgs/0.11.0-1 + url: https://github.com/vanadiumlabs/arbotix_ros-release.git + version: 0.11.0 +arbotix_python: + tag: release/noetic/arbotix_python/0.11.0-1 + url: https://github.com/vanadiumlabs/arbotix_ros-release.git + version: 0.11.0 +arbotix_sensors: + tag: release/noetic/arbotix_sensors/0.11.0-1 + url: https://github.com/vanadiumlabs/arbotix_ros-release.git + version: 0.11.0 +aruco: + tag: release/noetic/aruco/3.1.3-1 + url: https://github.com/pal-gbp/aruco_ros-release.git + version: 3.1.3 +aruco_detect: + tag: release/noetic/aruco_detect/0.12.0-1 + url: https://github.com/UbiquityRobotics-release/fiducials-release.git + version: 0.12.0 +aruco_msgs: + tag: release/noetic/aruco_msgs/3.1.3-1 + url: https://github.com/pal-gbp/aruco_ros-release.git + version: 3.1.3 +aruco_opencv: + tag: release/noetic/aruco_opencv/0.4.1-1 + url: https://github.com/fictionlab-gbp/aruco_opencv-release.git + version: 0.4.1 +aruco_opencv_msgs: + tag: release/noetic/aruco_opencv_msgs/0.4.1-1 + url: https://github.com/fictionlab-gbp/aruco_opencv-release.git + version: 0.4.1 +aruco_ros: + tag: release/noetic/aruco_ros/3.1.3-1 + url: https://github.com/pal-gbp/aruco_ros-release.git + version: 3.1.3 +assimp_devel: + tag: release/noetic/assimp_devel/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +assisted_teleop: + tag: release/noetic/assisted_teleop/0.4.1-1 + url: https://github.com/ros-gbp/navigation_experimental-release.git + version: 0.4.1 +async_comm: + tag: release/noetic/async_comm/0.2.1-2 + url: https://github.com/dpkoch/async_comm-release.git + version: 0.2.1 +async_web_server_cpp: + tag: release/noetic/async_web_server_cpp/1.0.3-1 + url: https://github.com/fkie-release/async_web_server_cpp-release.git + version: 1.0.3 +atf: + tag: release/noetic/atf/0.1.1-1 + url: https://github.com/floweisshardt/atf-release.git + version: 0.1.1 +atf_core: + tag: release/noetic/atf_core/0.1.1-1 + url: https://github.com/floweisshardt/atf-release.git + version: 0.1.1 +atf_metrics: + tag: release/noetic/atf_metrics/0.1.1-1 + url: https://github.com/floweisshardt/atf-release.git + version: 0.1.1 +atf_msgs: + tag: release/noetic/atf_msgs/0.1.1-1 + url: https://github.com/floweisshardt/atf-release.git + version: 0.1.1 +atf_plotter: + tag: release/noetic/atf_plotter/0.1.1-1 + url: https://github.com/floweisshardt/atf-release.git + version: 0.1.1 +atf_recorder_plugins: + tag: release/noetic/atf_recorder_plugins/0.1.1-1 + url: https://github.com/floweisshardt/atf-release.git + version: 0.1.1 +atf_test: + tag: release/noetic/atf_test/0.1.1-1 + url: https://github.com/floweisshardt/atf-release.git + version: 0.1.1 +atf_test_tools: + tag: release/noetic/atf_test_tools/0.1.1-1 + url: https://github.com/floweisshardt/atf-release.git + version: 0.1.1 +audibot: + tag: release/noetic/audibot/0.2.2-5 + url: https://github.com/robustify/audibot-release.git + version: 0.2.2 +audibot_description: + tag: release/noetic/audibot_description/0.2.2-5 + url: https://github.com/robustify/audibot-release.git + version: 0.2.2 +audibot_gazebo: + tag: release/noetic/audibot_gazebo/0.2.2-5 + url: https://github.com/robustify/audibot-release.git + version: 0.2.2 +audio_capture: + tag: release/noetic/audio_capture/0.3.18-1 + url: https://github.com/ros-gbp/audio_common-release.git + version: 0.3.18 +audio_common: + tag: release/noetic/audio_common/0.3.18-1 + url: https://github.com/ros-gbp/audio_common-release.git + version: 0.3.18 +audio_common_msgs: + tag: release/noetic/audio_common_msgs/0.3.18-1 + url: https://github.com/ros-gbp/audio_common-release.git + version: 0.3.18 +audio_play: + tag: release/noetic/audio_play/0.3.18-1 + url: https://github.com/ros-gbp/audio_common-release.git + version: 0.3.18 +audio_to_spectrogram: + tag: release/noetic/audio_to_spectrogram/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +audio_video_recorder: + tag: release/noetic/audio_video_recorder/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +automotive_autonomy_msgs: + tag: release/noetic/automotive_autonomy_msgs/3.0.4-1 + url: https://github.com/astuff/automotive_autonomy_msgs-release.git + version: 3.0.4 +automotive_navigation_msgs: + tag: release/noetic/automotive_navigation_msgs/3.0.4-1 + url: https://github.com/astuff/automotive_autonomy_msgs-release.git + version: 3.0.4 +automotive_platform_msgs: + tag: release/noetic/automotive_platform_msgs/3.0.4-1 + url: https://github.com/astuff/automotive_autonomy_msgs-release.git + version: 3.0.4 +autoware_can_msgs: + tag: release/noetic/autoware_can_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +autoware_config_msgs: + tag: release/noetic/autoware_config_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +autoware_external_msgs: + tag: release/noetic/autoware_external_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +autoware_lanelet2_msgs: + tag: release/noetic/autoware_lanelet2_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +autoware_map_msgs: + tag: release/noetic/autoware_map_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +autoware_msgs: + tag: release/noetic/autoware_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +autoware_system_msgs: + tag: release/noetic/autoware_system_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +auv_msgs: + tag: release/noetic/auv_msgs/0.1.1-1 + url: https://github.com/oceansystemslab/auv_msgs-release.git + version: 0.1.1 +avt_vimba_camera: + tag: release/noetic/avt_vimba_camera/1.2.0-1 + url: https://github.com/astuff/avt_vimba_camera-release.git + version: 1.2.0 +axis_camera: + tag: release/noetic/axis_camera/0.3.2-1 + url: https://github.com/ros-drivers-gbp/axis_camera-release.git + version: 0.3.2 +azure-iot-sdk-c: + tag: release/noetic/azure-iot-sdk-c/1.9.0-1 + url: https://github.com/nobleo/azure-iot-sdk-c-release.git + version: 1.9.0 +backward_ros: + tag: release/noetic/backward_ros/0.1.7-1 + url: https://github.com/pal-gbp/backward_ros-release.git + version: 0.1.7 +bagger: + tag: release/noetic/bagger/0.1.5-2 + url: https://github.com/squarerobot/bagger-release.git + version: 0.1.5 +baldor: + tag: release/noetic/baldor/0.1.3-1 + url: https://github.com/crigroup/baldor-release.git + version: 0.1.3 +base_local_planner: + tag: release/noetic/base_local_planner/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +bayesian_belief_networks: + tag: release/noetic/bayesian_belief_networks/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +bcr_bot: + tag: release/noetic/bcr_bot/0.0.2-1 + url: https://github.com/blackcoffeerobotics/bcr_bot-release.git + version: 0.0.2 +behaviortree_cpp: + tag: release/noetic/behaviortree_cpp/4.5.1-1 + url: https://github.com/ros2-gbp/behaviortree_cpp_v4-release.git + version: 4.5.1 +behaviortree_cpp_v3: + tag: release/noetic/behaviortree_cpp_v3/3.8.6-1 + url: https://github.com/BehaviorTree/behaviortree_cpp_v3-release.git + version: 3.8.6 +beluga: + tag: release/noetic/beluga/2.0.2-1 + url: https://github.com/ros2-gbp/beluga-release.git + version: 2.0.2 +beluga_amcl: + tag: release/noetic/beluga_amcl/2.0.2-1 + url: https://github.com/ros2-gbp/beluga-release.git + version: 2.0.2 +beluga_ros: + tag: release/noetic/beluga_ros/2.0.2-1 + url: https://github.com/ros2-gbp/beluga-release.git + version: 2.0.2 +bond: + tag: release/noetic/bond/1.8.7-1 + url: https://github.com/ros-gbp/bond_core-release.git + version: 1.8.7 +bond_core: + tag: release/noetic/bond_core/1.8.7-1 + url: https://github.com/ros-gbp/bond_core-release.git + version: 1.8.7 +bondcpp: + tag: release/noetic/bondcpp/1.8.7-1 + url: https://github.com/ros-gbp/bond_core-release.git + version: 1.8.7 +bondpy: + tag: release/noetic/bondpy/1.8.7-1 + url: https://github.com/ros-gbp/bond_core-release.git + version: 1.8.7 +boost_plugin_loader: + tag: release/noetic/boost_plugin_loader/0.2.2-1 + url: https://github.com/tesseract-robotics-release/boost_plugin_loader-release.git + version: 0.2.2 +boost_sml: + tag: release/noetic/boost_sml/0.1.2-1 + url: https://github.com/PickNikRobotics/boost_sml-release.git + version: 0.1.2 +bosch_locator_bridge: + tag: release/noetic/bosch_locator_bridge/1.0.14-2 + url: https://github.com/ros-gbp/locator_ros_bridge-release.git + version: 1.0.14 +bota_driver: + tag: release/noetic/bota_driver/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +bota_driver_testing: + tag: release/noetic/bota_driver_testing/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +bota_node: + tag: release/noetic/bota_node/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +bota_signal_handler: + tag: release/noetic/bota_signal_handler/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +bota_worker: + tag: release/noetic/bota_worker/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +calibration: + tag: release/noetic/calibration/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +calibration_estimation: + tag: release/noetic/calibration_estimation/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +calibration_launch: + tag: release/noetic/calibration_launch/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +calibration_msgs: + tag: release/noetic/calibration_msgs/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +calibration_setup_helper: + tag: release/noetic/calibration_setup_helper/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +camera_aravis: + tag: release/noetic/camera_aravis/4.1.0-1 + url: https://github.com/FraunhoferIOSB/camera_aravis-release.git + version: 4.1.0 +camera_calibration: + tag: release/noetic/camera_calibration/1.17.0-1 + url: https://github.com/ros-gbp/image_pipeline-release.git + version: 1.17.0 +camera_calibration_parsers: + tag: release/noetic/camera_calibration_parsers/1.12.1-1 + url: https://github.com/ros-gbp/image_common-release.git + version: 1.12.1 +camera_info_manager: + tag: release/noetic/camera_info_manager/1.12.1-1 + url: https://github.com/ros-gbp/image_common-release.git + version: 1.12.1 +camera_info_manager_lib: + tag: release/noetic/camera_info_manager_lib/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +camera_info_manager_metadata_extractor: + tag: release/noetic/camera_info_manager_metadata_extractor/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +can_dbc_parser: + tag: release/noetic/can_dbc_parser/1.0.0-1 + url: https://github.com/nobleo/raptor-dbw-ros-release.git + version: 1.0.0 +can_msgs: + tag: release/noetic/can_msgs/0.8.5-1 + url: https://github.com/ros-industrial-release/ros_canopen-release.git + version: 0.8.5 +canopen_402: + tag: release/noetic/canopen_402/0.8.5-1 + url: https://github.com/ros-industrial-release/ros_canopen-release.git + version: 0.8.5 +canopen_chain_node: + tag: release/noetic/canopen_chain_node/0.8.5-1 + url: https://github.com/ros-industrial-release/ros_canopen-release.git + version: 0.8.5 +canopen_master: + tag: release/noetic/canopen_master/0.8.5-1 + url: https://github.com/ros-industrial-release/ros_canopen-release.git + version: 0.8.5 +canopen_motor_node: + tag: release/noetic/canopen_motor_node/0.8.5-1 + url: https://github.com/ros-industrial-release/ros_canopen-release.git + version: 0.8.5 +capabilities: + tag: release/noetic/capabilities/0.3.1-1 + url: https://github.com/ros-gbp/capabilities-release.git + version: 0.3.1 +care_o_bot: + tag: release/noetic/care_o_bot/0.7.11-1 + url: https://github.com/ipa320/care-o-bot-release.git + version: 0.7.11 +care_o_bot_desktop: + tag: release/noetic/care_o_bot_desktop/0.7.11-1 + url: https://github.com/ipa320/care-o-bot-release.git + version: 0.7.11 +care_o_bot_robot: + tag: release/noetic/care_o_bot_robot/0.7.11-1 + url: https://github.com/ipa320/care-o-bot-release.git + version: 0.7.11 +care_o_bot_simulation: + tag: release/noetic/care_o_bot_simulation/0.7.11-1 + url: https://github.com/ipa320/care-o-bot-release.git + version: 0.7.11 +carla_msgs: + tag: release/noetic/carla_msgs/1.3.0-1 + url: https://github.com/carla-simulator/ros-carla-msgs-release.git + version: 1.3.0 +carrot_planner: + tag: release/noetic/carrot_planner/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +cartesian_control_msgs: + tag: release/noetic/cartesian_control_msgs/0.1.0-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_cartesian_control_msgs-release.git + version: 0.1.0 +cartesian_interface: + tag: release/noetic/cartesian_interface/0.1.7-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_controllers_cartesian-release.git + version: 0.1.7 +cartesian_msgs: + tag: release/noetic/cartesian_msgs/0.0.3-1 + url: https://github.com/PickNikRobotics/cartesian_msgs-release.git + version: 0.0.3 +cartesian_trajectory_controller: + tag: release/noetic/cartesian_trajectory_controller/0.1.7-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_controllers_cartesian-release.git + version: 0.1.7 +cartesian_trajectory_interpolation: + tag: release/noetic/cartesian_trajectory_interpolation/0.1.7-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_controllers_cartesian-release.git + version: 0.1.7 +catch_ros: + tag: release/noetic/catch_ros/0.5.0-2 + url: https://github.com/AIS-Bonn/catch_ros-release.git + version: 0.5.0 +catkin: + tag: release/noetic/catkin/0.8.12-1 + url: https://github.com/ros-gbp/catkin-release.git + version: 0.8.12 +catkin_virtualenv: + tag: release/noetic/catkin_virtualenv/0.6.1-2 + url: https://github.com/locusrobotics/catkin_virtualenv-release.git + version: 0.6.1 +chaplus_ros: + tag: release/noetic/chaplus_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +checkerboard_detector: + tag: release/noetic/checkerboard_detector/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +chomp_motion_planner: + tag: release/noetic/chomp_motion_planner/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +cl_tf: + tag: release/noetic/cl_tf/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +cl_tf2: + tag: release/noetic/cl_tf2/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +cl_transforms: + tag: release/noetic/cl_transforms/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +cl_transforms_stamped: + tag: release/noetic/cl_transforms_stamped/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +cl_urdf: + tag: release/noetic/cl_urdf/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +cl_utils: + tag: release/noetic/cl_utils/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +class_loader: + tag: release/noetic/class_loader/0.5.2-1 + url: https://github.com/ros-gbp/class_loader-release.git + version: 0.5.2 +clear_costmap_recovery: + tag: release/noetic/clear_costmap_recovery/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +clearpath_configuration_msgs: + tag: release/noetic/clearpath_configuration_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_control_msgs: + tag: release/noetic/clearpath_control_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_dock_msgs: + tag: release/noetic/clearpath_dock_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_localization_msgs: + tag: release/noetic/clearpath_localization_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_mission_manager_msgs: + tag: release/noetic/clearpath_mission_manager_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_mission_scheduler_msgs: + tag: release/noetic/clearpath_mission_scheduler_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_msgs: + tag: release/noetic/clearpath_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_navigation_msgs: + tag: release/noetic/clearpath_navigation_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_onav_api_examples: + tag: release/noetic/clearpath_onav_api_examples/0.0.4-1 + url: https://github.com/clearpath-gbp/clearpath_onav_examples-release.git + version: 0.0.4 +clearpath_onav_api_examples_lib: + tag: release/noetic/clearpath_onav_api_examples_lib/0.0.4-1 + url: https://github.com/clearpath-gbp/clearpath_onav_examples-release.git + version: 0.0.4 +clearpath_onav_examples: + tag: release/noetic/clearpath_onav_examples/0.0.4-1 + url: https://github.com/clearpath-gbp/clearpath_onav_examples-release.git + version: 0.0.4 +clearpath_platform_msgs: + tag: release/noetic/clearpath_platform_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clearpath_safety_msgs: + tag: release/noetic/clearpath_safety_msgs/0.9.5-1 + url: https://github.com/clearpath-gbp/clearpath_msgs-release.git + version: 0.9.5 +clober_msgs: + tag: release/noetic/clober_msgs/1.0.1-1 + url: https://github.com/CLOBOT-Co-Ltd-release/clober_msgs-release.git + version: 1.0.1 +clpe: + tag: release/noetic/clpe/0.1.1-1 + url: https://github.com/canlab-co/CLPE_G_NVP2650D_SDK-ros-release.git + version: 0.1.1 +clpe_ros: + tag: release/noetic/clpe_ros/0.1.1-1 + url: https://github.com/canlab-co/clpe_ros-ros-release.git + version: 0.1.1 +cmake_modules: + tag: release/noetic/cmake_modules/0.5.2-1 + url: https://github.com/ros-gbp/cmake_modules-release.git + version: 0.5.2 +cmd_vel_smoother: + tag: release/noetic/cmd_vel_smoother/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +cmvision: + tag: release/noetic/cmvision/0.5.0-2 + url: https://github.com/teshanshanuka/cmvision-release.git + version: 0.5.0 +cnpy: + tag: release/noetic/cnpy/0.0.8-1 + url: https://github.com/PeterMitrano/cnpy-release.git + version: 0.0.8 +cob_3d_mapping_msgs: + tag: release/noetic/cob_3d_mapping_msgs/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +cob_actions: + tag: release/noetic/cob_actions/0.7.11-1 + url: https://github.com/4am-robotics/cob_common-release.git + version: 0.7.11 +cob_android: + tag: release/noetic/cob_android/0.1.11-1 + url: https://github.com/ipa320/cob_android-release.git + version: 0.1.11 +cob_android_msgs: + tag: release/noetic/cob_android_msgs/0.1.11-1 + url: https://github.com/ipa320/cob_android-release.git + version: 0.1.11 +cob_android_resource_server: + tag: release/noetic/cob_android_resource_server/0.1.11-1 + url: https://github.com/ipa320/cob_android-release.git + version: 0.1.11 +cob_android_script_server: + tag: release/noetic/cob_android_script_server/0.1.11-1 + url: https://github.com/ipa320/cob_android-release.git + version: 0.1.11 +cob_android_settings: + tag: release/noetic/cob_android_settings/0.1.11-1 + url: https://github.com/ipa320/cob_android-release.git + version: 0.1.11 +cob_base_controller_utils: + tag: release/noetic/cob_base_controller_utils/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_base_drive_chain: + tag: release/noetic/cob_base_drive_chain/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_base_velocity_smoother: + tag: release/noetic/cob_base_velocity_smoother/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_bms_driver: + tag: release/noetic/cob_bms_driver/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_bringup: + tag: release/noetic/cob_bringup/0.7.10-1 + url: https://github.com/ipa320/cob_robots-release.git + version: 0.7.10 +cob_bringup_sim: + tag: release/noetic/cob_bringup_sim/0.7.8-1 + url: https://github.com/ipa320/cob_simulation-release.git + version: 0.7.8 +cob_calibration_data: + tag: release/noetic/cob_calibration_data/0.6.19-1 + url: https://github.com/ipa320/cob_calibration_data-release.git + version: 0.6.19 +cob_cam3d_throttle: + tag: release/noetic/cob_cam3d_throttle/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +cob_canopen_motor: + tag: release/noetic/cob_canopen_motor/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_cartesian_controller: + tag: release/noetic/cob_cartesian_controller/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_collision_monitor: + tag: release/noetic/cob_collision_monitor/0.7.9-1 + url: https://github.com/ipa320/cob_manipulation-release.git + version: 0.7.9 +cob_collision_velocity_filter: + tag: release/noetic/cob_collision_velocity_filter/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_command_gui: + tag: release/noetic/cob_command_gui/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +cob_command_tools: + tag: release/noetic/cob_command_tools/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +cob_common: + tag: release/noetic/cob_common/0.7.11-1 + url: https://github.com/4am-robotics/cob_common-release.git + version: 0.7.11 +cob_control: + tag: release/noetic/cob_control/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_control_mode_adapter: + tag: release/noetic/cob_control_mode_adapter/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_control_msgs: + tag: release/noetic/cob_control_msgs/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_dashboard: + tag: release/noetic/cob_dashboard/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +cob_default_env_config: + tag: release/noetic/cob_default_env_config/0.6.14-1 + url: https://github.com/ipa320/cob_environments-release.git + version: 0.6.14 +cob_default_robot_behavior: + tag: release/noetic/cob_default_robot_behavior/0.7.10-1 + url: https://github.com/ipa320/cob_robots-release.git + version: 0.7.10 +cob_default_robot_config: + tag: release/noetic/cob_default_robot_config/0.7.10-1 + url: https://github.com/ipa320/cob_robots-release.git + version: 0.7.10 +cob_description: + tag: release/noetic/cob_description/0.7.11-1 + url: https://github.com/4am-robotics/cob_common-release.git + version: 0.7.11 +cob_docker_control: + tag: release/noetic/cob_docker_control/0.6.13-1 + url: https://github.com/ipa320/cob_substitute-release.git + version: 0.6.13 +cob_driver: + tag: release/noetic/cob_driver/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_elmo_homing: + tag: release/noetic/cob_elmo_homing/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_environments: + tag: release/noetic/cob_environments/0.6.14-1 + url: https://github.com/ipa320/cob_environments-release.git + version: 0.6.14 +cob_extern: + tag: release/noetic/cob_extern/0.6.19-1 + url: https://github.com/ipa320/cob_extern-release.git + version: 0.6.19 +cob_fiducials: + tag: release/noetic/cob_fiducials/0.1.1-1 + url: https://github.com/4am-robotics/cob_fiducials-release.git + version: 0.1.1 +cob_footprint_observer: + tag: release/noetic/cob_footprint_observer/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_frame_tracker: + tag: release/noetic/cob_frame_tracker/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_gazebo: + tag: release/noetic/cob_gazebo/0.7.8-1 + url: https://github.com/ipa320/cob_simulation-release.git + version: 0.7.8 +cob_gazebo_objects: + tag: release/noetic/cob_gazebo_objects/0.7.8-1 + url: https://github.com/ipa320/cob_simulation-release.git + version: 0.7.8 +cob_gazebo_plugins: + tag: release/noetic/cob_gazebo_plugins/0.7.8-1 + url: https://github.com/ipa320/cob_gazebo_plugins-release.git + version: 0.7.8 +cob_gazebo_ros_control: + tag: release/noetic/cob_gazebo_ros_control/0.7.8-1 + url: https://github.com/ipa320/cob_gazebo_plugins-release.git + version: 0.7.8 +cob_gazebo_tools: + tag: release/noetic/cob_gazebo_tools/0.7.8-1 + url: https://github.com/ipa320/cob_simulation-release.git + version: 0.7.8 +cob_gazebo_worlds: + tag: release/noetic/cob_gazebo_worlds/0.7.8-1 + url: https://github.com/ipa320/cob_simulation-release.git + version: 0.7.8 +cob_generic_can: + tag: release/noetic/cob_generic_can/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_grasp_generation: + tag: release/noetic/cob_grasp_generation/0.7.9-1 + url: https://github.com/ipa320/cob_manipulation-release.git + version: 0.7.9 +cob_hand: + tag: release/noetic/cob_hand/0.6.11-1 + url: https://github.com/ipa320/cob_hand-release.git + version: 0.6.11 +cob_hand_bridge: + tag: release/noetic/cob_hand_bridge/0.6.11-1 + url: https://github.com/ipa320/cob_hand-release.git + version: 0.6.11 +cob_hardware_config: + tag: release/noetic/cob_hardware_config/0.7.10-1 + url: https://github.com/ipa320/cob_robots-release.git + version: 0.7.10 +cob_hardware_emulation: + tag: release/noetic/cob_hardware_emulation/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_helper_tools: + tag: release/noetic/cob_helper_tools/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +cob_image_flip: + tag: release/noetic/cob_image_flip/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +cob_light: + tag: release/noetic/cob_light/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_linear_nav: + tag: release/noetic/cob_linear_nav/0.6.15-1 + url: https://github.com/ipa320/cob_navigation-release.git + version: 0.6.15 +cob_lookat_action: + tag: release/noetic/cob_lookat_action/0.7.9-1 + url: https://github.com/ipa320/cob_manipulation-release.git + version: 0.7.9 +cob_manipulation: + tag: release/noetic/cob_manipulation/0.7.9-1 + url: https://github.com/ipa320/cob_manipulation-release.git + version: 0.7.9 +cob_manipulation_msgs: + tag: release/noetic/cob_manipulation_msgs/0.7.9-1 + url: https://github.com/ipa320/cob_manipulation-release.git + version: 0.7.9 +cob_map_accessibility_analysis: + tag: release/noetic/cob_map_accessibility_analysis/0.6.15-1 + url: https://github.com/ipa320/cob_navigation-release.git + version: 0.6.15 +cob_mapping_slam: + tag: release/noetic/cob_mapping_slam/0.6.15-1 + url: https://github.com/ipa320/cob_navigation-release.git + version: 0.6.15 +cob_mecanum_controller: + tag: release/noetic/cob_mecanum_controller/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_mimic: + tag: release/noetic/cob_mimic/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_model_identifier: + tag: release/noetic/cob_model_identifier/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_monitoring: + tag: release/noetic/cob_monitoring/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +cob_moveit_bringup: + tag: release/noetic/cob_moveit_bringup/0.7.9-1 + url: https://github.com/ipa320/cob_manipulation-release.git + version: 0.7.9 +cob_moveit_config: + tag: release/noetic/cob_moveit_config/0.7.10-1 + url: https://github.com/ipa320/cob_robots-release.git + version: 0.7.10 +cob_moveit_interface: + tag: release/noetic/cob_moveit_interface/0.7.9-1 + url: https://github.com/ipa320/cob_manipulation-release.git + version: 0.7.9 +cob_msgs: + tag: release/noetic/cob_msgs/0.7.11-1 + url: https://github.com/4am-robotics/cob_common-release.git + version: 0.7.11 +cob_navigation: + tag: release/noetic/cob_navigation/0.6.15-1 + url: https://github.com/ipa320/cob_navigation-release.git + version: 0.6.15 +cob_navigation_config: + tag: release/noetic/cob_navigation_config/0.6.15-1 + url: https://github.com/ipa320/cob_navigation-release.git + version: 0.6.15 +cob_navigation_global: + tag: release/noetic/cob_navigation_global/0.6.15-1 + url: https://github.com/ipa320/cob_navigation-release.git + version: 0.6.15 +cob_navigation_local: + tag: release/noetic/cob_navigation_local/0.6.15-1 + url: https://github.com/ipa320/cob_navigation-release.git + version: 0.6.15 +cob_navigation_slam: + tag: release/noetic/cob_navigation_slam/0.6.15-1 + url: https://github.com/ipa320/cob_navigation-release.git + version: 0.6.15 +cob_object_detection_msgs: + tag: release/noetic/cob_object_detection_msgs/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +cob_object_detection_visualizer: + tag: release/noetic/cob_object_detection_visualizer/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +cob_obstacle_distance: + tag: release/noetic/cob_obstacle_distance/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_omni_drive_controller: + tag: release/noetic/cob_omni_drive_controller/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_perception_common: + tag: release/noetic/cob_perception_common/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +cob_perception_msgs: + tag: release/noetic/cob_perception_msgs/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +cob_phidget_em_state: + tag: release/noetic/cob_phidget_em_state/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_phidget_power_state: + tag: release/noetic/cob_phidget_power_state/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_phidgets: + tag: release/noetic/cob_phidgets/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_reflector_referencing: + tag: release/noetic/cob_reflector_referencing/0.6.13-1 + url: https://github.com/ipa320/cob_substitute-release.git + version: 0.6.13 +cob_relayboard: + tag: release/noetic/cob_relayboard/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_robots: + tag: release/noetic/cob_robots/0.7.10-1 + url: https://github.com/ipa320/cob_robots-release.git + version: 0.7.10 +cob_safety_controller: + tag: release/noetic/cob_safety_controller/0.6.13-1 + url: https://github.com/ipa320/cob_substitute-release.git + version: 0.6.13 +cob_scan_unifier: + tag: release/noetic/cob_scan_unifier/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_script_server: + tag: release/noetic/cob_script_server/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +cob_sick_lms1xx: + tag: release/noetic/cob_sick_lms1xx/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_sick_s300: + tag: release/noetic/cob_sick_s300/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_simulation: + tag: release/noetic/cob_simulation/0.7.8-1 + url: https://github.com/ipa320/cob_simulation-release.git + version: 0.7.8 +cob_sound: + tag: release/noetic/cob_sound/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_srvs: + tag: release/noetic/cob_srvs/0.7.11-1 + url: https://github.com/4am-robotics/cob_common-release.git + version: 0.7.11 +cob_substitute: + tag: release/noetic/cob_substitute/0.6.13-1 + url: https://github.com/ipa320/cob_substitute-release.git + version: 0.6.13 +cob_supported_robots: + tag: release/noetic/cob_supported_robots/0.6.18-1 + url: https://github.com/ipa320/cob_supported_robots-release.git + version: 0.6.18 +cob_teleop: + tag: release/noetic/cob_teleop/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +cob_trajectory_controller: + tag: release/noetic/cob_trajectory_controller/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_tricycle_controller: + tag: release/noetic/cob_tricycle_controller/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_twist_controller: + tag: release/noetic/cob_twist_controller/0.8.24-2 + url: https://github.com/4am-robotics/cob_control-release.git + version: 0.8.24 +cob_undercarriage_ctrl: + tag: release/noetic/cob_undercarriage_ctrl/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_utilities: + tag: release/noetic/cob_utilities/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +cob_vision_utils: + tag: release/noetic/cob_vision_utils/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +cob_voltage_control: + tag: release/noetic/cob_voltage_control/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +code_coverage: + tag: release/noetic/code_coverage/0.4.4-1 + url: https://github.com/mikeferguson/code_coverage-gbp.git + version: 0.4.4 +codec_image_transport: + tag: release/noetic/codec_image_transport/0.0.5-1 + url: https://github.com/yoshito-n-students/codec_image_transport-release.git + version: 0.0.5 +collada_parser: + tag: release/noetic/collada_parser/1.12.13-1 + url: https://github.com/ros-gbp/collada_urdf-release.git + version: 1.12.13 +collada_urdf: + tag: release/noetic/collada_urdf/1.12.13-1 + url: https://github.com/ros-gbp/collada_urdf-release.git + version: 1.12.13 +collada_urdf_jsk_patch: + tag: release/noetic/collada_urdf_jsk_patch/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +color_util: + tag: release/noetic/color_util/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +combined_robot_hw: + tag: release/noetic/combined_robot_hw/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +combined_robot_hw_tests: + tag: release/noetic/combined_robot_hw_tests/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +common_msgs: + tag: release/noetic/common_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +common_tutorials: + tag: release/noetic/common_tutorials/0.2.0-1 + url: https://github.com/ros-gbp/common_tutorials-release.git + version: 0.2.0 +compass_conversions: + tag: release/noetic/compass_conversions/2.0.3-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/compass.git + version: 2.0.3 +compass_msgs: + tag: release/noetic/compass_msgs/2.0.3-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/compass.git + version: 2.0.3 +compass_stack: + tag: release/noetic/compass_stack/2.0.3-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/compass.git + version: 2.0.3 +compressed_depth_image_transport: + tag: release/noetic/compressed_depth_image_transport/1.15.0-1 + url: https://github.com/ros2-gbp/image_transport_plugins-release.git + version: 1.15.0 +compressed_image_transport: + tag: release/noetic/compressed_image_transport/1.15.0-1 + url: https://github.com/ros2-gbp/image_transport_plugins-release.git + version: 1.15.0 +computer_status_msgs: + tag: release/noetic/computer_status_msgs/2.1.0-1 + url: https://github.com/kinu-garage/computer_status_msgs-release.git + version: 2.1.0 +contact_states_observer: + tag: release/noetic/contact_states_observer/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +control_box_rst: + tag: release/noetic/control_box_rst/0.0.7-1 + url: https://github.com/rst-tu-dortmund/control_box_rst-release.git + version: 0.0.7 +control_msgs: + tag: release/noetic/control_msgs/1.5.2-1 + url: https://github.com/ros-gbp/control_msgs-release.git + version: 1.5.2 +control_toolbox: + tag: release/noetic/control_toolbox/1.19.0-1 + url: https://github.com/ros-gbp/control_toolbox-release.git + version: 1.19.0 +controller_interface: + tag: release/noetic/controller_interface/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +controller_manager: + tag: release/noetic/controller_manager/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +controller_manager_msgs: + tag: release/noetic/controller_manager_msgs/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +controller_manager_tests: + tag: release/noetic/controller_manager_tests/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +convex_decomposition: + tag: release/noetic/convex_decomposition/0.1.12-1 + url: https://github.com/ros-gbp/convex_decomposition-release.git + version: 0.1.12 +costmap_2d: + tag: release/noetic/costmap_2d/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +costmap_converter: + tag: release/noetic/costmap_converter/0.0.13-1 + url: https://github.com/rst-tu-dortmund/costmap_converter-release.git + version: 0.0.13 +costmap_cspace: + tag: release/noetic/costmap_cspace/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +costmap_cspace_msgs: + tag: release/noetic/costmap_cspace_msgs/0.14.0-1 + url: https://github.com/at-wat/neonavigation_msgs-release.git + version: 0.14.0 +costmap_cspace_rviz_plugins: + tag: release/noetic/costmap_cspace_rviz_plugins/0.17.1-1 + url: https://github.com/at-wat/neonavigation_rviz_plugins-release.git + version: 0.17.1 +costmap_queue: + tag: release/noetic/costmap_queue/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +cpp_common: + tag: release/noetic/cpp_common/0.7.3-1 + url: https://github.com/ros-gbp/roscpp_core-release.git + version: 0.7.3 +cpr_onav_description: + tag: release/noetic/cpr_onav_description/0.1.10-1 + url: https://github.com/clearpath-gbp/cpr_onav_description-release.git + version: 0.1.10 +cras_bag_tools: + tag: release/noetic/cras_bag_tools/2.5.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/ros-utils.git + version: 2.5.1 +cras_cpp_common: + tag: release/noetic/cras_cpp_common/2.5.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/ros-utils.git + version: 2.5.1 +cras_docs_common: + tag: release/noetic/cras_docs_common/2.5.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/ros-utils.git + version: 2.5.1 +cras_imu_tools: + tag: release/noetic/cras_imu_tools/1.0.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/cras_imu_tools.git + version: 1.0.1 +cras_joy_tools: + tag: release/noetic/cras_joy_tools/1.0.2-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/cras_joy_tools.git + version: 1.0.2 +cras_laser_geometry: + tag: release/noetic/cras_laser_geometry/1.2.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/cras_laser_geometry.git + version: 1.2.1 +cras_msgs: + tag: release/noetic/cras_msgs/1.1.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/cras_msgs + version: 1.1.1 +cras_py_common: + tag: release/noetic/cras_py_common/2.5.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/ros-utils.git + version: 2.5.1 +cras_relative_positional_controller: + tag: release/noetic/cras_relative_positional_controller/2.0.0-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/cras_relative_positional_controller.git + version: 2.0.0 +cras_topic_tools: + tag: release/noetic/cras_topic_tools/2.5.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/ros-utils.git + version: 2.5.1 +create_bringup: + tag: release/noetic/create_bringup/2.0.0-1 + url: https://github.com/autonomylab/create_autonomy-release.git + version: 2.0.0 +create_description: + tag: release/noetic/create_description/2.0.0-1 + url: https://github.com/autonomylab/create_autonomy-release.git + version: 2.0.0 +create_driver: + tag: release/noetic/create_driver/2.0.0-1 + url: https://github.com/autonomylab/create_autonomy-release.git + version: 2.0.0 +create_msgs: + tag: release/noetic/create_msgs/2.0.0-1 + url: https://github.com/autonomylab/create_autonomy-release.git + version: 2.0.0 +create_robot: + tag: release/noetic/create_robot/2.0.0-1 + url: https://github.com/autonomylab/create_autonomy-release.git + version: 2.0.0 +criutils: + tag: release/noetic/criutils/0.1.4-2 + url: https://github.com/crigroup/criutils-release.git + version: 0.1.4 +csm: + tag: release/noetic/csm/1.0.2-2 + url: https://github.com/ros-gbp/csm-release.git + version: 1.0.2 +cv_bridge: + tag: release/noetic/cv_bridge/1.16.2-1 + url: https://github.com/ros-gbp/vision_opencv-release.git + version: 1.16.2 +cv_camera: + tag: release/noetic/cv_camera/0.6.0-1 + url: https://github.com/OTL/cv_camera-release.git + version: 0.6.0 +cvp_mesh_planner: + tag: release/noetic/cvp_mesh_planner/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +darknet_ros_msgs: + tag: release/noetic/darknet_ros_msgs/1.1.5-1 + url: https://github.com/leggedrobotics/darknet_ros-release.git + version: 1.1.5 +dataspeed_can: + tag: release/noetic/dataspeed_can/1.0.16-1 + url: https://github.com/DataspeedInc-release/dataspeed_can-release.git + version: 1.0.16 +dataspeed_can_msg_filters: + tag: release/noetic/dataspeed_can_msg_filters/1.0.16-1 + url: https://github.com/DataspeedInc-release/dataspeed_can-release.git + version: 1.0.16 +dataspeed_can_tools: + tag: release/noetic/dataspeed_can_tools/1.0.16-1 + url: https://github.com/DataspeedInc-release/dataspeed_can-release.git + version: 1.0.16 +dataspeed_can_usb: + tag: release/noetic/dataspeed_can_usb/1.0.16-1 + url: https://github.com/DataspeedInc-release/dataspeed_can-release.git + version: 1.0.16 +dataspeed_pds: + tag: release/noetic/dataspeed_pds/1.0.6-1 + url: https://github.com/DataspeedInc-release/dataspeed_pds-release.git + version: 1.0.6 +dataspeed_pds_can: + tag: release/noetic/dataspeed_pds_can/1.0.6-1 + url: https://github.com/DataspeedInc-release/dataspeed_pds-release.git + version: 1.0.6 +dataspeed_pds_lcm: + tag: release/noetic/dataspeed_pds_lcm/1.0.6-1 + url: https://github.com/DataspeedInc-release/dataspeed_pds-release.git + version: 1.0.6 +dataspeed_pds_msgs: + tag: release/noetic/dataspeed_pds_msgs/1.0.6-1 + url: https://github.com/DataspeedInc-release/dataspeed_pds-release.git + version: 1.0.6 +dataspeed_pds_rqt: + tag: release/noetic/dataspeed_pds_rqt/1.0.6-1 + url: https://github.com/DataspeedInc-release/dataspeed_pds-release.git + version: 1.0.6 +dataspeed_pds_scripts: + tag: release/noetic/dataspeed_pds_scripts/1.0.6-1 + url: https://github.com/DataspeedInc-release/dataspeed_pds-release.git + version: 1.0.6 +dataspeed_ulc: + tag: release/noetic/dataspeed_ulc/0.1.0-1 + url: https://github.com/DataspeedInc-release/dataspeed_ulc_ros-release.git + version: 0.1.0 +dataspeed_ulc_can: + tag: release/noetic/dataspeed_ulc_can/0.1.0-1 + url: https://github.com/DataspeedInc-release/dataspeed_ulc_ros-release.git + version: 0.1.0 +dataspeed_ulc_msgs: + tag: release/noetic/dataspeed_ulc_msgs/0.1.0-1 + url: https://github.com/DataspeedInc-release/dataspeed_ulc_ros-release.git + version: 0.1.0 +dbw_fca: + tag: release/noetic/dbw_fca/1.3.3-1 + url: https://github.com/DataspeedInc-release/dbw_fca_ros-release.git + version: 1.3.3 +dbw_fca_can: + tag: release/noetic/dbw_fca_can/1.3.3-1 + url: https://github.com/DataspeedInc-release/dbw_fca_ros-release.git + version: 1.3.3 +dbw_fca_description: + tag: release/noetic/dbw_fca_description/1.3.3-1 + url: https://github.com/DataspeedInc-release/dbw_fca_ros-release.git + version: 1.3.3 +dbw_fca_joystick_demo: + tag: release/noetic/dbw_fca_joystick_demo/1.3.3-1 + url: https://github.com/DataspeedInc-release/dbw_fca_ros-release.git + version: 1.3.3 +dbw_fca_msgs: + tag: release/noetic/dbw_fca_msgs/1.3.3-1 + url: https://github.com/DataspeedInc-release/dbw_fca_ros-release.git + version: 1.3.3 +dbw_mkz: + tag: release/noetic/dbw_mkz/1.6.5-1 + url: https://github.com/DataspeedInc-release/dbw_mkz_ros-release.git + version: 1.6.5 +dbw_mkz_can: + tag: release/noetic/dbw_mkz_can/1.6.5-1 + url: https://github.com/DataspeedInc-release/dbw_mkz_ros-release.git + version: 1.6.5 +dbw_mkz_description: + tag: release/noetic/dbw_mkz_description/1.6.5-1 + url: https://github.com/DataspeedInc-release/dbw_mkz_ros-release.git + version: 1.6.5 +dbw_mkz_joystick_demo: + tag: release/noetic/dbw_mkz_joystick_demo/1.6.5-1 + url: https://github.com/DataspeedInc-release/dbw_mkz_ros-release.git + version: 1.6.5 +dbw_mkz_msgs: + tag: release/noetic/dbw_mkz_msgs/1.6.5-1 + url: https://github.com/DataspeedInc-release/dbw_mkz_ros-release.git + version: 1.6.5 +dbw_polaris: + tag: release/noetic/dbw_polaris/1.1.3-1 + url: https://github.com/DataspeedInc-release/dbw_polaris_ros-release.git + version: 1.1.3 +dbw_polaris_can: + tag: release/noetic/dbw_polaris_can/1.1.3-1 + url: https://github.com/DataspeedInc-release/dbw_polaris_ros-release.git + version: 1.1.3 +dbw_polaris_description: + tag: release/noetic/dbw_polaris_description/1.1.3-1 + url: https://github.com/DataspeedInc-release/dbw_polaris_ros-release.git + version: 1.1.3 +dbw_polaris_joystick_demo: + tag: release/noetic/dbw_polaris_joystick_demo/1.1.3-1 + url: https://github.com/DataspeedInc-release/dbw_polaris_ros-release.git + version: 1.1.3 +dbw_polaris_msgs: + tag: release/noetic/dbw_polaris_msgs/1.1.3-1 + url: https://github.com/DataspeedInc-release/dbw_polaris_ros-release.git + version: 1.1.3 +ddynamic_reconfigure: + tag: release/noetic/ddynamic_reconfigure/0.4.2-1 + url: https://github.com/pal-gbp/ddynamic_reconfigure.git + version: 0.4.2 +ddynamic_reconfigure_python: + tag: release/noetic/ddynamic_reconfigure_python/0.0.1-1 + url: https://github.com/pal-gbp/ddynamic_reconfigure_python-release.git + version: 0.0.1 +delphi_esr_msgs: + tag: release/noetic/delphi_esr_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +delphi_mrr_msgs: + tag: release/noetic/delphi_mrr_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +delphi_srr_msgs: + tag: release/noetic/delphi_srr_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +depth_image_proc: + tag: release/noetic/depth_image_proc/1.17.0-1 + url: https://github.com/ros-gbp/image_pipeline-release.git + version: 1.17.0 +depth_image_publisher: + tag: release/noetic/depth_image_publisher/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +depth_obstacle_detect_ros: + tag: release/noetic/depth_obstacle_detect_ros/1.0.0-3 + url: https://github.com/anilsripadarao/depth-obstacle-detect-ros-release.git + version: 1.0.0 +depth_obstacle_detect_ros_msgs: + tag: release/noetic/depth_obstacle_detect_ros_msgs/1.0.0-3 + url: https://github.com/anilsripadarao/depth-obstacle-detect-ros-release.git + version: 1.0.0 +depthai: + tag: release/noetic/depthai/2.30.0-1 + url: https://github.com/luxonis/depthai-core-release.git + version: 2.30.0 +depthai-ros: + tag: release/noetic/depthai-ros/2.11.2-1 + url: https://github.com/luxonis/depthai-ros-release.git + version: 2.11.2 +depthai_bridge: + tag: release/noetic/depthai_bridge/2.11.2-1 + url: https://github.com/luxonis/depthai-ros-release.git + version: 2.11.2 +depthai_descriptions: + tag: release/noetic/depthai_descriptions/2.11.2-1 + url: https://github.com/luxonis/depthai-ros-release.git + version: 2.11.2 +depthai_examples: + tag: release/noetic/depthai_examples/2.11.2-1 + url: https://github.com/luxonis/depthai-ros-release.git + version: 2.11.2 +depthai_filters: + tag: release/noetic/depthai_filters/2.11.2-1 + url: https://github.com/luxonis/depthai-ros-release.git + version: 2.11.2 +depthai_ros_driver: + tag: release/noetic/depthai_ros_driver/2.11.2-1 + url: https://github.com/luxonis/depthai-ros-release.git + version: 2.11.2 +depthai_ros_msgs: + tag: release/noetic/depthai_ros_msgs/2.11.2-1 + url: https://github.com/luxonis/depthai-ros-release.git + version: 2.11.2 +depthimage_to_laserscan: + tag: release/noetic/depthimage_to_laserscan/1.0.8-1 + url: https://github.com/ros-gbp/depthimage_to_laserscan-release.git + version: 1.0.8 +derived_object_msgs: + tag: release/noetic/derived_object_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +desktop: + tag: release/noetic/desktop/1.5.0-1 + url: https://github.com/ros-gbp/metapackages-release.git + version: 1.5.0 +desktop_full: + tag: release/noetic/desktop_full/1.5.0-1 + url: https://github.com/ros-gbp/metapackages-release.git + version: 1.5.0 +diagnostic_aggregator: + tag: release/noetic/diagnostic_aggregator/1.12.1-1 + url: https://github.com/ros-gbp/diagnostics-release.git + version: 1.12.1 +diagnostic_analysis: + tag: release/noetic/diagnostic_analysis/1.12.1-1 + url: https://github.com/ros-gbp/diagnostics-release.git + version: 1.12.1 +diagnostic_common_diagnostics: + tag: release/noetic/diagnostic_common_diagnostics/1.12.1-1 + url: https://github.com/ros-gbp/diagnostics-release.git + version: 1.12.1 +diagnostic_msgs: + tag: release/noetic/diagnostic_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +diagnostic_updater: + tag: release/noetic/diagnostic_updater/1.12.1-1 + url: https://github.com/ros-gbp/diagnostics-release.git + version: 1.12.1 +diagnostics: + tag: release/noetic/diagnostics/1.12.1-1 + url: https://github.com/ros-gbp/diagnostics-release.git + version: 1.12.1 +dialogflow_task_executive: + tag: release/noetic/dialogflow_task_executive/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +diff_drive_controller: + tag: release/noetic/diff_drive_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +diffbot_bringup: + tag: release/noetic/diffbot_bringup/1.1.0-1 + url: https://github.com/ros-mobile-robots-release/diffbot-release.git + version: 1.1.0 +diffbot_control: + tag: release/noetic/diffbot_control/1.1.0-1 + url: https://github.com/ros-mobile-robots-release/diffbot-release.git + version: 1.1.0 +diffbot_description: + tag: release/noetic/diffbot_description/1.1.0-1 + url: https://github.com/ros-mobile-robots-release/diffbot-release.git + version: 1.1.0 +diffbot_gazebo: + tag: release/noetic/diffbot_gazebo/1.1.0-1 + url: https://github.com/ros-mobile-robots-release/diffbot-release.git + version: 1.1.0 +diffbot_mbf: + tag: release/noetic/diffbot_mbf/1.1.0-1 + url: https://github.com/ros-mobile-robots-release/diffbot-release.git + version: 1.1.0 +diffbot_msgs: + tag: release/noetic/diffbot_msgs/1.1.0-1 + url: https://github.com/ros-mobile-robots-release/diffbot-release.git + version: 1.1.0 +diffbot_navigation: + tag: release/noetic/diffbot_navigation/1.1.0-1 + url: https://github.com/ros-mobile-robots-release/diffbot-release.git + version: 1.1.0 +diffbot_slam: + tag: release/noetic/diffbot_slam/1.1.0-1 + url: https://github.com/ros-mobile-robots-release/diffbot-release.git + version: 1.1.0 +dijkstra_mesh_planner: + tag: release/noetic/dijkstra_mesh_planner/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +dingo_control: + tag: release/noetic/dingo_control/0.3.1-2 + url: https://github.com/clearpath-gbp/dingo-release.git + version: 0.3.1 +dingo_description: + tag: release/noetic/dingo_description/0.3.1-2 + url: https://github.com/clearpath-gbp/dingo-release.git + version: 0.3.1 +dingo_desktop: + tag: release/noetic/dingo_desktop/0.1.2-2 + url: https://github.com/clearpath-gbp/dingo_desktop-release.git + version: 0.1.2 +dingo_gazebo: + tag: release/noetic/dingo_gazebo/0.1.2-2 + url: https://github.com/clearpath-gbp/dingo_simulator-release.git + version: 0.1.2 +dingo_msgs: + tag: release/noetic/dingo_msgs/0.3.1-2 + url: https://github.com/clearpath-gbp/dingo-release.git + version: 0.3.1 +dingo_navigation: + tag: release/noetic/dingo_navigation/0.3.1-2 + url: https://github.com/clearpath-gbp/dingo-release.git + version: 0.3.1 +dingo_simulator: + tag: release/noetic/dingo_simulator/0.1.2-2 + url: https://github.com/clearpath-gbp/dingo_simulator-release.git + version: 0.1.2 +dingo_viz: + tag: release/noetic/dingo_viz/0.1.2-2 + url: https://github.com/clearpath-gbp/dingo_desktop-release.git + version: 0.1.2 +dlux_global_planner: + tag: release/noetic/dlux_global_planner/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +dlux_plugins: + tag: release/noetic/dlux_plugins/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +dnn_detect: + tag: release/noetic/dnn_detect/0.1.0-1 + url: https://github.com/UbiquityRobotics-release/dnn_detect-release.git + version: 0.1.0 +downward: + tag: release/noetic/downward/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +draco: + tag: release/noetic/draco/1.5.6-3 + url: https://gitlab.fel.cvut.cz/cras/ros-release/draco.git + version: 1.5.6 +draco_point_cloud_transport: + tag: release/noetic/draco_point_cloud_transport/1.0.5-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/point_cloud_transport_plugins.git + version: 1.0.5 +driver_base: + tag: release/noetic/driver_base/1.6.9-1 + url: https://github.com/ros-gbp/driver_common-release.git + version: 1.6.9 +driver_common: + tag: release/noetic/driver_common/1.6.9-1 + url: https://github.com/ros-gbp/driver_common-release.git + version: 1.6.9 +drone_assets: + tag: release/noetic/drone_assets/1.4.2-1 + url: https://github.com/JdeRobot/drones-release.git + version: 1.4.2 +drone_circuit_assets: + tag: release/noetic/drone_circuit_assets/1.4.2-1 + url: https://github.com/JdeRobot/drones-release.git + version: 1.4.2 +drone_wrapper: + tag: release/noetic/drone_wrapper/1.4.2-1 + url: https://github.com/JdeRobot/drones-release.git + version: 1.4.2 +dual_quaternions: + tag: release/noetic/dual_quaternions/0.3.2-1 + url: https://github.com/Achllle/dual_quaternions-release.git + version: 0.3.2 +dual_quaternions_ros: + tag: release/noetic/dual_quaternions_ros/0.1.4-1 + url: https://github.com/Achllle/dual_quaternions_ros-release.git + version: 0.1.4 +dwa_local_planner: + tag: release/noetic/dwa_local_planner/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +dwb_critics: + tag: release/noetic/dwb_critics/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +dwb_local_planner: + tag: release/noetic/dwb_local_planner/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +dwb_msgs: + tag: release/noetic/dwb_msgs/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +dwb_plugins: + tag: release/noetic/dwb_plugins/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +dynamic-graph: + tag: release/noetic/dynamic-graph/4.4.3-2 + url: https://github.com/stack-of-tasks/dynamic-graph-ros-release.git + version: 4.4.3 +dynamic-graph-python: + tag: release/noetic/dynamic-graph-python/4.0.11-1 + url: https://github.com/stack-of-tasks/dynamic-graph-python-ros-release.git + version: 4.0.11 +dynamic-graph-tutorial: + tag: release/noetic/dynamic-graph-tutorial/1.3.5-3 + url: https://github.com/stack-of-tasks/dynamic-graph-tutorial-ros-release.git + version: 1.3.5 +dynamic_edt_3d: + tag: release/noetic/dynamic_edt_3d/1.9.8-1 + url: https://github.com/ros-gbp/octomap-release.git + version: 1.9.8 +dynamic_reconfigure: + tag: release/noetic/dynamic_reconfigure/1.7.6-1 + url: https://github.com/ros-gbp/dynamic_reconfigure-release.git + version: 1.7.6 +dynamic_robot_state_publisher: + tag: release/noetic/dynamic_robot_state_publisher/1.2.0-1 + url: https://github.com/peci1/dynamic_robot_state_publisher-release.git + version: 1.2.0 +dynamic_tf_publisher: + tag: release/noetic/dynamic_tf_publisher/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +dynamixel_sdk: + tag: release/noetic/dynamixel_sdk/3.8.0-1 + url: https://github.com/ROBOTIS-GIT-release/DynamixelSDK-release.git + version: 3.8.0 +dynamixel_sdk_examples: + tag: release/noetic/dynamixel_sdk_examples/3.8.0-1 + url: https://github.com/ROBOTIS-GIT-release/DynamixelSDK-release.git + version: 3.8.0 +dynamixel_workbench: + tag: release/noetic/dynamixel_workbench/2.2.1-1 + url: https://github.com/ROBOTIS-GIT-release/dynamixel-workbench-release.git + version: 2.2.1 +dynamixel_workbench_controllers: + tag: release/noetic/dynamixel_workbench_controllers/2.2.1-1 + url: https://github.com/ROBOTIS-GIT-release/dynamixel-workbench-release.git + version: 2.2.1 +dynamixel_workbench_msgs: + tag: release/noetic/dynamixel_workbench_msgs/2.0.2-2 + url: https://github.com/ROBOTIS-GIT-release/dynamixel-workbench-msgs-release.git + version: 2.0.2 +dynamixel_workbench_operators: + tag: release/noetic/dynamixel_workbench_operators/2.2.1-1 + url: https://github.com/ROBOTIS-GIT-release/dynamixel-workbench-release.git + version: 2.2.1 +dynamixel_workbench_toolbox: + tag: release/noetic/dynamixel_workbench_toolbox/2.2.1-1 + url: https://github.com/ROBOTIS-GIT-release/dynamixel-workbench-release.git + version: 2.2.1 +easy_markers: + tag: release/noetic/easy_markers/0.3.1-1 + url: https://github.com/wu-robotics/wu_ros_tools.git + version: 0.3.1 +ecl_build: + tag: release/noetic/ecl_build/0.61.8-1 + url: https://github.com/yujinrobot-release/ecl_tools-release.git + version: 0.61.8 +ecl_command_line: + tag: release/noetic/ecl_command_line/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_concepts: + tag: release/noetic/ecl_concepts/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_config: + tag: release/noetic/ecl_config/0.61.6-1 + url: https://github.com/yujinrobot-release/ecl_lite-release.git + version: 0.61.6 +ecl_console: + tag: release/noetic/ecl_console/0.61.6-1 + url: https://github.com/yujinrobot-release/ecl_lite-release.git + version: 0.61.6 +ecl_containers: + tag: release/noetic/ecl_containers/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_converters: + tag: release/noetic/ecl_converters/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_converters_lite: + tag: release/noetic/ecl_converters_lite/0.61.6-1 + url: https://github.com/yujinrobot-release/ecl_lite-release.git + version: 0.61.6 +ecl_core: + tag: release/noetic/ecl_core/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_core_apps: + tag: release/noetic/ecl_core_apps/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_devices: + tag: release/noetic/ecl_devices/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_eigen: + tag: release/noetic/ecl_eigen/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_errors: + tag: release/noetic/ecl_errors/0.61.6-1 + url: https://github.com/yujinrobot-release/ecl_lite-release.git + version: 0.61.6 +ecl_exceptions: + tag: release/noetic/ecl_exceptions/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_filesystem: + tag: release/noetic/ecl_filesystem/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_formatters: + tag: release/noetic/ecl_formatters/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_geometry: + tag: release/noetic/ecl_geometry/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_io: + tag: release/noetic/ecl_io/0.61.6-1 + url: https://github.com/yujinrobot-release/ecl_lite-release.git + version: 0.61.6 +ecl_ipc: + tag: release/noetic/ecl_ipc/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_license: + tag: release/noetic/ecl_license/0.61.8-1 + url: https://github.com/yujinrobot-release/ecl_tools-release.git + version: 0.61.8 +ecl_linear_algebra: + tag: release/noetic/ecl_linear_algebra/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_lite: + tag: release/noetic/ecl_lite/0.61.6-1 + url: https://github.com/yujinrobot-release/ecl_lite-release.git + version: 0.61.6 +ecl_math: + tag: release/noetic/ecl_math/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_mobile_robot: + tag: release/noetic/ecl_mobile_robot/0.60.3-2 + url: https://github.com/yujinrobot-release/ecl_navigation-release.git + version: 0.60.3 +ecl_mpl: + tag: release/noetic/ecl_mpl/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_navigation: + tag: release/noetic/ecl_navigation/0.60.3-2 + url: https://github.com/yujinrobot-release/ecl_navigation-release.git + version: 0.60.3 +ecl_sigslots: + tag: release/noetic/ecl_sigslots/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_sigslots_lite: + tag: release/noetic/ecl_sigslots_lite/0.61.6-1 + url: https://github.com/yujinrobot-release/ecl_lite-release.git + version: 0.61.6 +ecl_statistics: + tag: release/noetic/ecl_statistics/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_streams: + tag: release/noetic/ecl_streams/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_threads: + tag: release/noetic/ecl_threads/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_time: + tag: release/noetic/ecl_time/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_time_lite: + tag: release/noetic/ecl_time_lite/0.61.6-1 + url: https://github.com/yujinrobot-release/ecl_lite-release.git + version: 0.61.6 +ecl_tools: + tag: release/noetic/ecl_tools/0.61.8-1 + url: https://github.com/yujinrobot-release/ecl_tools-release.git + version: 0.61.8 +ecl_type_traits: + tag: release/noetic/ecl_type_traits/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +ecl_utilities: + tag: release/noetic/ecl_utilities/0.62.3-1 + url: https://github.com/yujinrobot-release/ecl_core-release.git + version: 0.62.3 +effort_controllers: + tag: release/noetic/effort_controllers/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +eigen_conversions: + tag: release/noetic/eigen_conversions/1.13.4-1 + url: https://github.com/ros-gbp/geometry-release.git + version: 1.13.4 +eigen_stl_containers: + tag: release/noetic/eigen_stl_containers/0.1.8-1 + url: https://github.com/ros-gbp/eigen_stl_containers-release.git + version: 0.1.8 +eigenpy: + tag: release/noetic/eigenpy/3.8.2-1 + url: https://github.com/stack-of-tasks/eigenpy-ros-release.git + version: 3.8.2 +eiquadprog: + tag: release/noetic/eiquadprog/1.2.9-1 + url: https://github.com/stack-of-tasks/eiquadprog-ros-release.git + version: 1.2.9 +electronic_io: + tag: release/noetic/electronic_io/1.0.3-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/electronic-io.git + version: 1.0.3 +electronic_io_msgs: + tag: release/noetic/electronic_io_msgs/1.0.3-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/electronic-io.git + version: 1.0.3 +eml: + tag: release/noetic/eml/1.8.15-7 + url: https://github.com/ros-gbp/eml-release.git + version: 1.8.15 +emotion_analyzer: + tag: release/noetic/emotion_analyzer/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +end_effector: + tag: release/noetic/end_effector/1.0.6-2 + url: https://github.com/ADVRHumanoids/ROSEndEffector-release.git + version: 1.0.6 +er_public_msgs: + tag: release/noetic/er_public_msgs/1.4.0-1 + url: https://github.com/enabled-robotics/er_public_msgs-release.git + version: 1.4.0 +ergodic_exploration: + tag: release/noetic/ergodic_exploration/1.0.0-2 + url: https://github.com/bostoncleek/ergodic_exploration-release.git + version: 1.0.0 +ess_imu_driver: + tag: release/noetic/ess_imu_driver/2.0.2-1 + url: https://github.com/cubicleguy/ess_imu_driver-release.git + version: 2.0.2 +ess_imu_ros1_uart_driver: + tag: release/noetic/ess_imu_ros1_uart_driver/1.3.2-1 + url: https://github.com/cubicleguy/ess_imu_ros1_uart_driver-release.git + version: 1.3.2 +ethercat_grant: + tag: release/noetic/ethercat_grant/0.3.2-1 + url: https://github.com/shadow-robot/ethercat_grant-release.git + version: 0.3.2 +ethercat_hardware: + tag: release/noetic/ethercat_hardware/1.9.0-1 + url: https://github.com/pr2-gbp/pr2_ethercat_drivers-release.git + version: 1.9.0 +ethercat_trigger_controllers: + tag: release/noetic/ethercat_trigger_controllers/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +etsi_its_cam_coding: + tag: release/noetic/etsi_its_cam_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_cam_conversion: + tag: release/noetic/etsi_its_cam_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_cam_msgs: + tag: release/noetic/etsi_its_cam_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_cam_ts_coding: + tag: release/noetic/etsi_its_cam_ts_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_cam_ts_conversion: + tag: release/noetic/etsi_its_cam_ts_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_cam_ts_msgs: + tag: release/noetic/etsi_its_cam_ts_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_coding: + tag: release/noetic/etsi_its_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_conversion: + tag: release/noetic/etsi_its_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_cpm_ts_coding: + tag: release/noetic/etsi_its_cpm_ts_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_cpm_ts_conversion: + tag: release/noetic/etsi_its_cpm_ts_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_cpm_ts_msgs: + tag: release/noetic/etsi_its_cpm_ts_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_denm_coding: + tag: release/noetic/etsi_its_denm_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_denm_conversion: + tag: release/noetic/etsi_its_denm_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_denm_msgs: + tag: release/noetic/etsi_its_denm_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_denm_ts_coding: + tag: release/noetic/etsi_its_denm_ts_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_denm_ts_conversion: + tag: release/noetic/etsi_its_denm_ts_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_denm_ts_msgs: + tag: release/noetic/etsi_its_denm_ts_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_mapem_ts_coding: + tag: release/noetic/etsi_its_mapem_ts_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_mapem_ts_conversion: + tag: release/noetic/etsi_its_mapem_ts_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_mapem_ts_msgs: + tag: release/noetic/etsi_its_mapem_ts_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_mcm_uulm_coding: + tag: release/noetic/etsi_its_mcm_uulm_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_mcm_uulm_conversion: + tag: release/noetic/etsi_its_mcm_uulm_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_mcm_uulm_msgs: + tag: release/noetic/etsi_its_mcm_uulm_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_messages: + tag: release/noetic/etsi_its_messages/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_msgs: + tag: release/noetic/etsi_its_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_msgs_utils: + tag: release/noetic/etsi_its_msgs_utils/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_primitives_conversion: + tag: release/noetic/etsi_its_primitives_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_rviz_plugins: + tag: release/noetic/etsi_its_rviz_plugins/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_spatem_ts_coding: + tag: release/noetic/etsi_its_spatem_ts_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_spatem_ts_conversion: + tag: release/noetic/etsi_its_spatem_ts_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_spatem_ts_msgs: + tag: release/noetic/etsi_its_spatem_ts_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_vam_ts_coding: + tag: release/noetic/etsi_its_vam_ts_coding/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_vam_ts_conversion: + tag: release/noetic/etsi_its_vam_ts_conversion/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +etsi_its_vam_ts_msgs: + tag: release/noetic/etsi_its_vam_ts_msgs/3.2.0-1 + url: https://github.com/ika-rwth-aachen/etsi_its_messages-release.git + version: 3.2.0 +eus_assimp: + tag: release/noetic/eus_assimp/0.4.5-1 + url: https://github.com/tork-a/jsk_model_tools-release.git + version: 0.4.5 +eus_nlopt: + tag: release/noetic/eus_nlopt/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +eus_qp: + tag: release/noetic/eus_qp/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +eus_qpoases: + tag: release/noetic/eus_qpoases/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +eus_teleop: + tag: release/noetic/eus_teleop/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +euscollada: + tag: release/noetic/euscollada/0.4.5-1 + url: https://github.com/tork-a/jsk_model_tools-release.git + version: 0.4.5 +euslime: + tag: release/noetic/euslime/1.1.4-4 + url: https://github.com/jsk-ros-pkg/euslime-release.git + version: 1.1.4 +euslisp: + tag: release/noetic/euslisp/9.29.0-2 + url: https://github.com/tork-a/euslisp-release.git + version: 9.29.0 +eusurdf: + tag: release/noetic/eusurdf/0.4.5-1 + url: https://github.com/tork-a/jsk_model_tools-release.git + version: 0.4.5 +executive_smach: + tag: release/noetic/executive_smach/2.5.3-1 + url: https://github.com/ros-gbp/executive_smach-release.git + version: 2.5.3 +executive_smach_visualization: + tag: release/noetic/executive_smach_visualization/4.1.0-1 + url: https://github.com/jbohren/executive_smach_visualization-release.git + version: 4.1.0 +exiftool_metadata_extractor: + tag: release/noetic/exiftool_metadata_extractor/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +exiv2_metadata_extractor: + tag: release/noetic/exiv2_metadata_extractor/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +exotica: + tag: release/noetic/exotica/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_aico_solver: + tag: release/noetic/exotica_aico_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_cartpole_dynamics_solver: + tag: release/noetic/exotica_cartpole_dynamics_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_collision_scene_fcl_latest: + tag: release/noetic/exotica_collision_scene_fcl_latest/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_core: + tag: release/noetic/exotica_core/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_core_task_maps: + tag: release/noetic/exotica_core_task_maps/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_ddp_solver: + tag: release/noetic/exotica_ddp_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_double_integrator_dynamics_solver: + tag: release/noetic/exotica_double_integrator_dynamics_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_dynamics_solvers: + tag: release/noetic/exotica_dynamics_solvers/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_examples: + tag: release/noetic/exotica_examples/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_ik_solver: + tag: release/noetic/exotica_ik_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_ilqg_solver: + tag: release/noetic/exotica_ilqg_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_ilqr_solver: + tag: release/noetic/exotica_ilqr_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_levenberg_marquardt_solver: + tag: release/noetic/exotica_levenberg_marquardt_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_ompl_control_solver: + tag: release/noetic/exotica_ompl_control_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_ompl_solver: + tag: release/noetic/exotica_ompl_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_pendulum_dynamics_solver: + tag: release/noetic/exotica_pendulum_dynamics_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_pinocchio_dynamics_solver: + tag: release/noetic/exotica_pinocchio_dynamics_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_python: + tag: release/noetic/exotica_python/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_quadrotor_dynamics_solver: + tag: release/noetic/exotica_quadrotor_dynamics_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_scipy_solver: + tag: release/noetic/exotica_scipy_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_time_indexed_rrt_connect_solver: + tag: release/noetic/exotica_time_indexed_rrt_connect_solver/6.2.0-1 + url: https://github.com/ipab-slmc/exotica-release.git + version: 6.2.0 +exotica_val_description: + tag: release/noetic/exotica_val_description/1.0.0-1 + url: https://github.com/wxmerkt/exotica_val_description-release.git + version: 1.0.0 +explore_lite: + tag: release/noetic/explore_lite/2.1.4-1 + url: https://github.com/hrnr/m-explore-release.git + version: 2.1.4 +face_detector: + tag: release/noetic/face_detector/1.4.2-1 + url: https://github.com/OSUrobotics/people-release.git + version: 1.4.2 +fadecandy_driver: + tag: release/noetic/fadecandy_driver/0.2.2-1 + url: https://github.com/iron-ox/fadecandy_ros-release.git + version: 0.2.2 +fadecandy_msgs: + tag: release/noetic/fadecandy_msgs/0.2.2-1 + url: https://github.com/iron-ox/fadecandy_ros-release.git + version: 0.2.2 +fake_localization: + tag: release/noetic/fake_localization/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +fanuc_cr35ia_support: + tag: release/noetic/fanuc_cr35ia_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_cr7ia_support: + tag: release/noetic/fanuc_cr7ia_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_crx10ia_support: + tag: release/noetic/fanuc_crx10ia_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_driver: + tag: release/noetic/fanuc_driver/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_lrmate200i_support: + tag: release/noetic/fanuc_lrmate200i_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_lrmate200ib_support: + tag: release/noetic/fanuc_lrmate200ib_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_lrmate200ic_support: + tag: release/noetic/fanuc_lrmate200ic_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_lrmate200id_support: + tag: release/noetic/fanuc_lrmate200id_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m10ia_support: + tag: release/noetic/fanuc_m10ia_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m16ib_support: + tag: release/noetic/fanuc_m16ib_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m20ia_support: + tag: release/noetic/fanuc_m20ia_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m20ib_support: + tag: release/noetic/fanuc_m20ib_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m430ia_support: + tag: release/noetic/fanuc_m430ia_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m6ib_support: + tag: release/noetic/fanuc_m6ib_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m710ic_support: + tag: release/noetic/fanuc_m710ic_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m900ia_support: + tag: release/noetic/fanuc_m900ia_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_m900ib_support: + tag: release/noetic/fanuc_m900ib_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_r1000ia_support: + tag: release/noetic/fanuc_r1000ia_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_r2000ib_support: + tag: release/noetic/fanuc_r2000ib_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_r2000ic_support: + tag: release/noetic/fanuc_r2000ic_support/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fanuc_resources: + tag: release/noetic/fanuc_resources/0.6.0-1 + url: https://github.com/ros-industrial-release/fanuc-release.git + version: 0.6.0 +fath_pivot_mount_description: + tag: release/noetic/fath_pivot_mount_description/0.1.1-2 + url: https://github.com/clearpath-gbp/fath_pivot_mount_description-release.git + version: 0.1.1 +fcl: + tag: release/noetic/fcl/0.6.1-3 + url: https://github.com/ros-gbp/fcl-release.git + version: 0.6.1 +fcl_catkin: + tag: release/noetic/fcl_catkin/0.6.1-1 + url: https://github.com/wxmerkt/fcl_catkin-release.git + version: 0.6.1 +fetch_auto_dock_msgs: + tag: release/noetic/fetch_auto_dock_msgs/1.2.0-1 + url: https://github.com/fetchrobotics-gbp/fetch_msgs-release.git + version: 1.2.0 +fetch_bringup: + tag: release/noetic/fetch_bringup/0.9.3-1 + url: https://github.com/fetchrobotics-gbp/fetch_robots-release.git + version: 0.9.3 +fetch_calibration: + tag: release/noetic/fetch_calibration/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_depth_layer: + tag: release/noetic/fetch_depth_layer/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_description: + tag: release/noetic/fetch_description/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_driver_msgs: + tag: release/noetic/fetch_driver_msgs/1.2.0-1 + url: https://github.com/fetchrobotics-gbp/fetch_msgs-release.git + version: 1.2.0 +fetch_drivers: + tag: release/noetic/fetch_drivers/0.9.3-1 + url: https://github.com/fetchrobotics-gbp/fetch_robots-release.git + version: 0.9.3 +fetch_ikfast_plugin: + tag: release/noetic/fetch_ikfast_plugin/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_maps: + tag: release/noetic/fetch_maps/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_moveit_config: + tag: release/noetic/fetch_moveit_config/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_navigation: + tag: release/noetic/fetch_navigation/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_open_auto_dock: + tag: release/noetic/fetch_open_auto_dock/0.1.3-2 + url: https://github.com/fetchrobotics-gbp/fetch_open_auto_dock-gbp.git + version: 0.1.3 +fetch_ros: + tag: release/noetic/fetch_ros/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_teleop: + tag: release/noetic/fetch_teleop/0.9.1-1 + url: https://github.com/fetchrobotics-gbp/fetch_ros-release.git + version: 0.9.1 +fetch_tools: + tag: release/noetic/fetch_tools/0.3.3-1 + url: https://github.com/fetchrobotics-gbp/fetch_tools-release.git + version: 0.3.3 +ff: + tag: release/noetic/ff/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +ffha: + tag: release/noetic/ffha/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +fiducial_msgs: + tag: release/noetic/fiducial_msgs/0.12.0-1 + url: https://github.com/UbiquityRobotics-release/fiducials-release.git + version: 0.12.0 +fiducial_slam: + tag: release/noetic/fiducial_slam/0.12.0-1 + url: https://github.com/UbiquityRobotics-release/fiducials-release.git + version: 0.12.0 +fiducials: + tag: release/noetic/fiducials/0.12.0-1 + url: https://github.com/UbiquityRobotics-release/fiducials-release.git + version: 0.12.0 +fields2cover: + tag: release/noetic/fields2cover/2.0.0-4 + url: https://github.com/Fields2Cover/fields2cover-release.git + version: 2.0.0 +filters: + tag: release/noetic/filters/1.9.3-1 + url: https://github.com/ros-gbp/filters-release.git + version: 1.9.3 +find_object_2d: + tag: release/noetic/find_object_2d/0.7.0-2 + url: https://github.com/introlab/find_object_2d-release.git + version: 0.7.0 +fingertip_pressure: + tag: release/noetic/fingertip_pressure/1.9.0-1 + url: https://github.com/pr2-gbp/pr2_ethercat_drivers-release.git + version: 1.9.0 +fkie_master_discovery: + tag: release/noetic/fkie_master_discovery/1.3.2-2 + url: https://github.com/fkie-release/multimaster_fkie-release.git + version: 1.3.2 +fkie_master_sync: + tag: release/noetic/fkie_master_sync/1.3.2-2 + url: https://github.com/fkie-release/multimaster_fkie-release.git + version: 1.3.2 +fkie_message_filters: + tag: release/noetic/fkie_message_filters/1.1.2-1 + url: https://github.com/fkie-release/message_filters-release.git + version: 1.1.2 +fkie_multimaster: + tag: release/noetic/fkie_multimaster/1.3.2-2 + url: https://github.com/fkie-release/multimaster_fkie-release.git + version: 1.3.2 +fkie_multimaster_msgs: + tag: release/noetic/fkie_multimaster_msgs/1.3.2-2 + url: https://github.com/fkie-release/multimaster_fkie-release.git + version: 1.3.2 +fkie_node_manager: + tag: release/noetic/fkie_node_manager/1.3.2-2 + url: https://github.com/fkie-release/multimaster_fkie-release.git + version: 1.3.2 +fkie_node_manager_daemon: + tag: release/noetic/fkie_node_manager_daemon/1.3.2-2 + url: https://github.com/fkie-release/multimaster_fkie-release.git + version: 1.3.2 +fkie_potree_rviz_plugin: + tag: release/noetic/fkie_potree_rviz_plugin/2.0.1-1 + url: https://github.com/fkie-release/potree_rviz_plugin-release.git + version: 2.0.1 +flatland: + tag: release/noetic/flatland/1.3.3-1 + url: https://github.com/avidbots/flatland-release.git + version: 1.3.3 +flatland_msgs: + tag: release/noetic/flatland_msgs/1.3.3-1 + url: https://github.com/avidbots/flatland-release.git + version: 1.3.3 +flatland_plugins: + tag: release/noetic/flatland_plugins/1.3.3-1 + url: https://github.com/avidbots/flatland-release.git + version: 1.3.3 +flatland_server: + tag: release/noetic/flatland_server/1.3.3-1 + url: https://github.com/avidbots/flatland-release.git + version: 1.3.3 +flatland_viz: + tag: release/noetic/flatland_viz/1.3.3-1 + url: https://github.com/avidbots/flatland-release.git + version: 1.3.3 +flexbe_behavior_engine: + tag: release/noetic/flexbe_behavior_engine/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flexbe_core: + tag: release/noetic/flexbe_core/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flexbe_input: + tag: release/noetic/flexbe_input/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flexbe_mirror: + tag: release/noetic/flexbe_mirror/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flexbe_msgs: + tag: release/noetic/flexbe_msgs/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flexbe_onboard: + tag: release/noetic/flexbe_onboard/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flexbe_states: + tag: release/noetic/flexbe_states/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flexbe_testing: + tag: release/noetic/flexbe_testing/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flexbe_widget: + tag: release/noetic/flexbe_widget/1.4.0-2 + url: https://github.com/flexbe/flexbe_behavior_engine-release.git + version: 1.4.0 +flir_camera_description: + tag: release/noetic/flir_camera_description/0.2.5-1 + url: https://github.com/ros-drivers-gbp/flir_camera_driver-release.git + version: 0.2.5 +flir_camera_driver: + tag: release/noetic/flir_camera_driver/0.2.5-1 + url: https://github.com/ros-drivers-gbp/flir_camera_driver-release.git + version: 0.2.5 +floam: + tag: release/noetic/floam/0.1.0-1 + url: https://github.com/flynneva/floam-release.git + version: 0.1.0 +fmi_adapter: + tag: release/noetic/fmi_adapter/1.0.4-1 + url: https://github.com/boschresearch/fmi_adapter-release.git + version: 1.0.4 +fmi_adapter_examples: + tag: release/noetic/fmi_adapter_examples/1.0.4-1 + url: https://github.com/boschresearch/fmi_adapter-release.git + version: 1.0.4 +force_torque_sensor_controller: + tag: release/noetic/force_torque_sensor_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +forward_command_controller: + tag: release/noetic/forward_command_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +four_wheel_steering_controller: + tag: release/noetic/four_wheel_steering_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +four_wheel_steering_msgs: + tag: release/noetic/four_wheel_steering_msgs/1.1.1-2 + url: https://github.com/ros-drivers-gbp/four_wheel_steering_msgs-release.git + version: 1.1.1 +foxglove_bridge: + tag: release/noetic/foxglove_bridge/0.8.4-1 + url: https://github.com/foxglove/ros_foxglove_bridge-release.git + version: 0.8.4 +foxglove_msgs: + tag: release/noetic/foxglove_msgs/2.3.0-1 + url: https://github.com/foxglove/ros_foxglove_msgs-release.git + version: 2.3.0 +frame_editor: + tag: release/noetic/frame_editor/1.2.0-1 + url: https://github.com/ipa320/rqt_frame_editor_plugin-release.git + version: 1.2.0 +franka_control: + tag: release/noetic/franka_control/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +franka_description: + tag: release/noetic/franka_description/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +franka_example_controllers: + tag: release/noetic/franka_example_controllers/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +franka_gazebo: + tag: release/noetic/franka_gazebo/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +franka_gripper: + tag: release/noetic/franka_gripper/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +franka_hw: + tag: release/noetic/franka_hw/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +franka_msgs: + tag: release/noetic/franka_msgs/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +franka_ros: + tag: release/noetic/franka_ros/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +franka_visualization: + tag: release/noetic/franka_visualization/0.10.1-1 + url: https://github.com/frankaemika/franka_ros-release.git + version: 0.10.1 +freight_bringup: + tag: release/noetic/freight_bringup/0.9.3-1 + url: https://github.com/fetchrobotics-gbp/fetch_robots-release.git + version: 0.9.3 +fuse: + tag: release/noetic/fuse/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_constraints: + tag: release/noetic/fuse_constraints/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_core: + tag: release/noetic/fuse_core/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_doc: + tag: release/noetic/fuse_doc/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_graphs: + tag: release/noetic/fuse_graphs/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_loss: + tag: release/noetic/fuse_loss/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_models: + tag: release/noetic/fuse_models/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_msgs: + tag: release/noetic/fuse_msgs/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_optimizers: + tag: release/noetic/fuse_optimizers/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_publishers: + tag: release/noetic/fuse_publishers/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_variables: + tag: release/noetic/fuse_variables/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +fuse_viz: + tag: release/noetic/fuse_viz/0.4.2-1 + url: https://github.com/locusrobotics/fuse-release.git + version: 0.4.2 +gazebo_custom_sensor_preloader: + tag: release/noetic/gazebo_custom_sensor_preloader/1.1.0-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/gazebo_custom_sensor_preloader + version: 1.1.0 +gazebo_dev: + tag: release/noetic/gazebo_dev/2.9.3-1 + url: https://github.com/ros-gbp/gazebo_ros_pkgs-release.git + version: 2.9.3 +gazebo_model_attachment_plugin: + tag: release/noetic/gazebo_model_attachment_plugin/1.0.2-5 + url: https://github.com/ros2-gbp/boeing_gazebo_model_attachement_plugin-release.git + version: 1.0.2 +gazebo_msgs: + tag: release/noetic/gazebo_msgs/2.9.3-1 + url: https://github.com/ros-gbp/gazebo_ros_pkgs-release.git + version: 2.9.3 +gazebo_noisy_depth_camera: + tag: release/noetic/gazebo_noisy_depth_camera/1.0.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/gazebo_noisy_depth_camera-release.git + version: 1.0.1 +gazebo_plugins: + tag: release/noetic/gazebo_plugins/2.9.3-1 + url: https://github.com/ros-gbp/gazebo_ros_pkgs-release.git + version: 2.9.3 +gazebo_ros: + tag: release/noetic/gazebo_ros/2.9.3-1 + url: https://github.com/ros-gbp/gazebo_ros_pkgs-release.git + version: 2.9.3 +gazebo_ros_control: + tag: release/noetic/gazebo_ros_control/2.9.3-1 + url: https://github.com/ros-gbp/gazebo_ros_pkgs-release.git + version: 2.9.3 +gazebo_ros_control_select_joints: + tag: release/noetic/gazebo_ros_control_select_joints/2.5.7-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/gazebo_ros_control_select_joints-release.git + version: 2.5.7 +gazebo_ros_pkgs: + tag: release/noetic/gazebo_ros_pkgs/2.9.3-1 + url: https://github.com/ros-gbp/gazebo_ros_pkgs-release.git + version: 2.9.3 +gazebo_video_monitor_msgs: + tag: release/noetic/gazebo_video_monitor_msgs/0.7.1-2 + url: https://github.com/nlamprian/gazebo_video_monitors-release.git + version: 0.7.1 +gazebo_video_monitor_plugins: + tag: release/noetic/gazebo_video_monitor_plugins/0.7.1-2 + url: https://github.com/nlamprian/gazebo_video_monitors-release.git + version: 0.7.1 +gazebo_video_monitor_utils: + tag: release/noetic/gazebo_video_monitor_utils/0.7.1-2 + url: https://github.com/nlamprian/gazebo_video_monitors-release.git + version: 0.7.1 +gazebo_video_monitors: + tag: release/noetic/gazebo_video_monitors/0.7.1-2 + url: https://github.com/nlamprian/gazebo_video_monitors-release.git + version: 0.7.1 +gdrive_ros: + tag: release/noetic/gdrive_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +gencpp: + tag: release/noetic/gencpp/0.7.2-1 + url: https://github.com/ros-gbp/gencpp-release.git + version: 0.7.2 +generic_throttle: + tag: release/noetic/generic_throttle/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +geneus: + tag: release/noetic/geneus/3.0.0-1 + url: https://github.com/tork-a/geneus-release.git + version: 3.0.0 +genlisp: + tag: release/noetic/genlisp/0.4.18-1 + url: https://github.com/ros-gbp/genlisp-release.git + version: 0.4.18 +genmsg: + tag: release/noetic/genmsg/0.6.1-1 + url: https://github.com/ros-gbp/genmsg-release.git + version: 0.6.1 +genmypy: + tag: release/noetic/genmypy/0.3.2-1 + url: https://github.com/rospypi/genmypy-release.git + version: 0.3.2 +gennodejs: + tag: release/noetic/gennodejs/2.0.2-1 + url: https://github.com/sloretz/gennodejs-release.git + version: 2.0.2 +genpy: + tag: release/noetic/genpy/0.6.18-1 + url: https://github.com/ros-gbp/genpy-release.git + version: 0.6.18 +geodesy: + tag: release/noetic/geodesy/0.5.6-1 + url: https://github.com/ros-geographic-info/geographic_info-release.git + version: 0.5.6 +geographic_info: + tag: release/noetic/geographic_info/0.5.6-1 + url: https://github.com/ros-geographic-info/geographic_info-release.git + version: 0.5.6 +geographic_msgs: + tag: release/noetic/geographic_msgs/0.5.6-1 + url: https://github.com/ros-geographic-info/geographic_info-release.git + version: 0.5.6 +geometric_shapes: + tag: release/noetic/geometric_shapes/0.7.7-1 + url: https://github.com/ros-gbp/geometric_shapes-release.git + version: 0.7.7 +geometry: + tag: release/noetic/geometry/1.13.4-1 + url: https://github.com/ros-gbp/geometry-release.git + version: 1.13.4 +geometry2: + tag: release/noetic/geometry2/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +geometry_msgs: + tag: release/noetic/geometry_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +geometry_tutorials: + tag: release/noetic/geometry_tutorials/0.2.4-1 + url: https://github.com/ros-gbp/geometry_tutorials-release.git + version: 0.2.4 +gl_dependency: + tag: release/noetic/gl_dependency/1.1.4-1 + url: https://github.com/ros-gbp/gl_dependency-release.git + version: 1.1.4 +global_planner: + tag: release/noetic/global_planner/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +global_planner_tests: + tag: release/noetic/global_planner_tests/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +gmapping: + tag: release/noetic/gmapping/1.4.2-1 + url: https://github.com/ros-gbp/slam_gmapping-release.git + version: 1.4.2 +gmcl: + tag: release/noetic/gmcl/1.0.1-3 + url: https://github.com/adler-1994/gmcl-release.git + version: 1.0.1 +gnss_info: + tag: release/noetic/gnss_info/1.0.2-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/gnss-info.git + version: 1.0.2 +gnss_info_msgs: + tag: release/noetic/gnss_info_msgs/1.0.2-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/gnss-info.git + version: 1.0.2 +gnsstk: + tag: release/noetic/gnsstk/14.3.0-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/gnsstk-release.git + version: 14.3.0 +gnsstk_ros: + tag: release/noetic/gnsstk_ros/1.0.2-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/gnss-info.git + version: 1.0.2 +goal_passer: + tag: release/noetic/goal_passer/0.4.1-1 + url: https://github.com/ros-gbp/navigation_experimental-release.git + version: 0.4.1 +google_chat_ros: + tag: release/noetic/google_chat_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +google_cloud_texttospeech: + tag: release/noetic/google_cloud_texttospeech/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +gpio_controller: + tag: release/noetic/gpio_controller/0.1.10-1 + url: https://github.com/rm-controls/rm_controllers-release.git + version: 0.1.10 +gpmf_metadata_extractor: + tag: release/noetic/gpmf_metadata_extractor/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +gpp_interface: + tag: release/noetic/gpp_interface/0.1.0-1 + url: https://github.com/dorezyuk/gpp-release.git + version: 0.1.0 +gpp_plugin: + tag: release/noetic/gpp_plugin/0.1.0-1 + url: https://github.com/dorezyuk/gpp-release.git + version: 0.1.0 +gpp_prune_path: + tag: release/noetic/gpp_prune_path/0.1.0-1 + url: https://github.com/dorezyuk/gpp-release.git + version: 0.1.0 +gpp_update_map: + tag: release/noetic/gpp_update_map/0.1.0-1 + url: https://github.com/dorezyuk/gpp-release.git + version: 0.1.0 +gps_common: + tag: release/noetic/gps_common/0.3.4-1 + url: https://github.com/swri-robotics-gbp/gps_umd-release.git + version: 0.3.4 +gps_umd: + tag: release/noetic/gps_umd/0.3.4-1 + url: https://github.com/swri-robotics-gbp/gps_umd-release.git + version: 0.3.4 +gpsd_client: + tag: release/noetic/gpsd_client/0.3.4-1 + url: https://github.com/swri-robotics-gbp/gps_umd-release.git + version: 0.3.4 +graceful_controller: + tag: release/noetic/graceful_controller/0.4.8-1 + url: https://github.com/mikeferguson/graceful_controller-gbp.git + version: 0.4.8 +graceful_controller_ros: + tag: release/noetic/graceful_controller_ros/0.4.8-1 + url: https://github.com/mikeferguson/graceful_controller-gbp.git + version: 0.4.8 +graft: + tag: release/noetic/graft/0.2.3-1 + url: https://github.com/ros-gbp/graft-release.git + version: 0.2.3 +graph_msgs: + tag: release/noetic/graph_msgs/0.1.0-2 + url: https://github.com/PickNikRobotics/graph_msgs-release.git + version: 0.1.0 +grasping_msgs: + tag: release/noetic/grasping_msgs/0.3.1-1 + url: https://github.com/mikeferguson/grasping_msgs-gbp.git + version: 0.3.1 +grepros: + tag: release/noetic/grepros/1.0.0-1 + url: https://github.com/suurjaak/grepros-release.git + version: 1.0.0 +grid_map: + tag: release/noetic/grid_map/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_core: + tag: release/noetic/grid_map_core/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_costmap_2d: + tag: release/noetic/grid_map_costmap_2d/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_cv: + tag: release/noetic/grid_map_cv/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_demos: + tag: release/noetic/grid_map_demos/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_filters: + tag: release/noetic/grid_map_filters/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_loader: + tag: release/noetic/grid_map_loader/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_msgs: + tag: release/noetic/grid_map_msgs/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_octomap: + tag: release/noetic/grid_map_octomap/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_pcl: + tag: release/noetic/grid_map_pcl/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_ros: + tag: release/noetic/grid_map_ros/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_rviz_plugin: + tag: release/noetic/grid_map_rviz_plugin/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_sdf: + tag: release/noetic/grid_map_sdf/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +grid_map_visualization: + tag: release/noetic/grid_map_visualization/1.6.4-1 + url: https://github.com/anybotics/grid_map-release.git + version: 1.6.4 +gripper_action_controller: + tag: release/noetic/gripper_action_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +grpc: + tag: release/noetic/grpc/0.0.17-1 + url: https://github.com/CogRobRelease/catkin_grpc-release.git + version: 0.0.17 +gtsam: + tag: release/noetic/gtsam/4.2.0-2 + url: https://github.com/mrpt-ros-pkg-release/gtsam-release.git + version: 4.2.0 +handeye: + tag: release/noetic/handeye/0.1.2-2 + url: https://github.com/crigroup/handeye-release.git + version: 0.1.2 +hardware_interface: + tag: release/noetic/hardware_interface/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +hatchbed_common: + tag: release/noetic/hatchbed_common/0.0.2-1 + url: https://github.com/ros2-gbp/hatchbed_common-release.git + version: 0.0.2 +hdf5_map_io: + tag: release/noetic/hdf5_map_io/1.1.0-1 + url: https://github.com/uos-gbp/mesh-tools.git + version: 1.1.0 +hebi_cpp_api: + tag: release/noetic/hebi_cpp_api/3.2.0-1 + url: https://github.com/HebiRobotics/hebi_cpp_api_ros-release.git + version: 3.2.0 +hector_components_description: + tag: release/noetic/hector_components_description/0.5.2-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_models-release.git + version: 0.5.2 +hector_compressed_map_transport: + tag: release/noetic/hector_compressed_map_transport/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_gazebo: + tag: release/noetic/hector_gazebo/0.5.4-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_gazebo-release.git + version: 0.5.4 +hector_gazebo_plugins: + tag: release/noetic/hector_gazebo_plugins/0.5.4-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_gazebo-release.git + version: 0.5.4 +hector_gazebo_thermal_camera: + tag: release/noetic/hector_gazebo_thermal_camera/0.5.4-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_gazebo-release.git + version: 0.5.4 +hector_gazebo_worlds: + tag: release/noetic/hector_gazebo_worlds/0.5.4-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_gazebo-release.git + version: 0.5.4 +hector_geotiff: + tag: release/noetic/hector_geotiff/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_geotiff_launch: + tag: release/noetic/hector_geotiff_launch/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_geotiff_plugins: + tag: release/noetic/hector_geotiff_plugins/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_imu_attitude_to_tf: + tag: release/noetic/hector_imu_attitude_to_tf/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_imu_tools: + tag: release/noetic/hector_imu_tools/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_localization: + tag: release/noetic/hector_localization/0.4.0-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_localization-release.git + version: 0.4.0 +hector_map_server: + tag: release/noetic/hector_map_server/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_map_tools: + tag: release/noetic/hector_map_tools/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_mapping: + tag: release/noetic/hector_mapping/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_marker_drawing: + tag: release/noetic/hector_marker_drawing/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_models: + tag: release/noetic/hector_models/0.5.2-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_models-release.git + version: 0.5.2 +hector_nav_msgs: + tag: release/noetic/hector_nav_msgs/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_pose_estimation: + tag: release/noetic/hector_pose_estimation/0.4.0-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_localization-release.git + version: 0.4.0 +hector_pose_estimation_core: + tag: release/noetic/hector_pose_estimation_core/0.4.0-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_localization-release.git + version: 0.4.0 +hector_sensors_description: + tag: release/noetic/hector_sensors_description/0.5.2-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_models-release.git + version: 0.5.2 +hector_sensors_gazebo: + tag: release/noetic/hector_sensors_gazebo/0.5.4-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_gazebo-release.git + version: 0.5.4 +hector_slam: + tag: release/noetic/hector_slam/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_slam_launch: + tag: release/noetic/hector_slam_launch/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_trajectory_server: + tag: release/noetic/hector_trajectory_server/0.5.2-4 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_slam-release.git + version: 0.5.2 +hector_xacro_tools: + tag: release/noetic/hector_xacro_tools/0.5.2-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_models-release.git + version: 0.5.2 +hls_lfcd_lds_driver: + tag: release/noetic/hls_lfcd_lds_driver/1.1.2-1 + url: https://github.com/ROBOTIS-GIT-release/hls-lfcd-lds-driver-release.git + version: 1.1.2 +hokuyo3d: + tag: release/noetic/hokuyo3d/0.2.1-1 + url: https://github.com/at-wat/hokuyo3d-release.git + version: 0.2.1 +hpp-fcl: + tag: release/noetic/hpp-fcl/2.4.5-1 + url: https://github.com/humanoid-path-planner/hpp-fcl-ros-release.git + version: 2.4.5 +hri: + tag: release/noetic/hri/0.6.4-1 + url: https://github.com/ros4hri/libhri-release.git + version: 0.6.4 +hri_actions_msgs: + tag: release/noetic/hri_actions_msgs/0.4.2-1 + url: https://github.com/ros4hri/hri_actions_msgs-release.git + version: 0.4.2 +hri_msgs: + tag: release/noetic/hri_msgs/0.9.0-1 + url: https://github.com/ros4hri/hri_msgs-release.git + version: 0.9.0 +hri_rviz: + tag: release/noetic/hri_rviz/0.4.2-1 + url: https://github.com/ros4hri/hri_rviz-release.git + version: 0.4.2 +human_description: + tag: release/noetic/human_description/1.0.0-1 + url: https://github.com/ros4hri/human_description-release.git + version: 1.0.0 +husky_control: + tag: release/noetic/husky_control/0.6.10-1 + url: https://github.com/clearpath-gbp/husky-release.git + version: 0.6.10 +husky_description: + tag: release/noetic/husky_description/0.6.10-1 + url: https://github.com/clearpath-gbp/husky-release.git + version: 0.6.10 +husky_desktop: + tag: release/noetic/husky_desktop/0.6.10-1 + url: https://github.com/clearpath-gbp/husky-release.git + version: 0.6.10 +husky_gazebo: + tag: release/noetic/husky_gazebo/0.6.10-1 + url: https://github.com/clearpath-gbp/husky-release.git + version: 0.6.10 +husky_msgs: + tag: release/noetic/husky_msgs/0.6.10-1 + url: https://github.com/clearpath-gbp/husky-release.git + version: 0.6.10 +husky_navigation: + tag: release/noetic/husky_navigation/0.6.10-1 + url: https://github.com/clearpath-gbp/husky-release.git + version: 0.6.10 +husky_simulator: + tag: release/noetic/husky_simulator/0.6.10-1 + url: https://github.com/clearpath-gbp/husky-release.git + version: 0.6.10 +husky_viz: + tag: release/noetic/husky_viz/0.6.10-1 + url: https://github.com/clearpath-gbp/husky-release.git + version: 0.6.10 +ibeo_msgs: + tag: release/noetic/ibeo_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +ifm3d: + tag: release/noetic/ifm3d/0.6.2-3 + url: https://github.com/ifm/ifm3d-ros-release.git + version: 0.6.2 +ifm3d_core: + tag: release/noetic/ifm3d_core/0.18.0-5 + url: https://github.com/ifm/ifm3d-release.git + version: 0.18.0 +ifopt: + tag: release/noetic/ifopt/2.1.3-1 + url: https://github.com/ethz-adrl/ifopt-release.git + version: 2.1.3 +ign_ros_control: + tag: release/noetic/ign_ros_control/0.0.1-1 + url: https://github.com/ros-gbp/ign_ros_control-release.git + version: 0.0.1 +ign_ros_control_demos: + tag: release/noetic/ign_ros_control_demos/0.0.1-1 + url: https://github.com/ros-gbp/ign_ros_control-release.git + version: 0.0.1 +image_cb_detector: + tag: release/noetic/image_cb_detector/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +image_common: + tag: release/noetic/image_common/1.12.1-1 + url: https://github.com/ros-gbp/image_common-release.git + version: 1.12.1 +image_exposure_msgs: + tag: release/noetic/image_exposure_msgs/0.15.1-1 + url: https://github.com/ros-drivers-gbp/pointgrey_camera_driver-release.git + version: 0.15.1 +image_geometry: + tag: release/noetic/image_geometry/1.16.2-1 + url: https://github.com/ros-gbp/vision_opencv-release.git + version: 1.16.2 +image_pipeline: + tag: release/noetic/image_pipeline/1.17.0-1 + url: https://github.com/ros-gbp/image_pipeline-release.git + version: 1.17.0 +image_proc: + tag: release/noetic/image_proc/1.17.0-1 + url: https://github.com/ros-gbp/image_pipeline-release.git + version: 1.17.0 +image_publisher: + tag: release/noetic/image_publisher/1.17.0-1 + url: https://github.com/ros-gbp/image_pipeline-release.git + version: 1.17.0 +image_rotate: + tag: release/noetic/image_rotate/1.17.0-1 + url: https://github.com/ros-gbp/image_pipeline-release.git + version: 1.17.0 +image_transport: + tag: release/noetic/image_transport/1.12.1-1 + url: https://github.com/ros-gbp/image_common-release.git + version: 1.12.1 +image_transport_codecs: + tag: release/noetic/image_transport_codecs/2.5.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/ros-utils.git + version: 2.5.1 +image_transport_plugins: + tag: release/noetic/image_transport_plugins/1.15.0-1 + url: https://github.com/ros2-gbp/image_transport_plugins-release.git + version: 1.15.0 +image_view: + tag: release/noetic/image_view/1.17.0-1 + url: https://github.com/ros-gbp/image_pipeline-release.git + version: 1.17.0 +image_view2: + tag: release/noetic/image_view2/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +imagesift: + tag: release/noetic/imagesift/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +imagezero: + tag: release/noetic/imagezero/0.2.5-1 + url: https://github.com/swri-robotics-gbp/imagezero_transport-release.git + version: 0.2.5 +imagezero_image_transport: + tag: release/noetic/imagezero_image_transport/0.2.5-1 + url: https://github.com/swri-robotics-gbp/imagezero_transport-release.git + version: 0.2.5 +imagezero_ros: + tag: release/noetic/imagezero_ros/0.2.5-1 + url: https://github.com/swri-robotics-gbp/imagezero_transport-release.git + version: 0.2.5 +imu_complementary_filter: + tag: release/noetic/imu_complementary_filter/1.2.7-1 + url: https://github.com/uos-gbp/imu_tools-release.git + version: 1.2.7 +imu_filter_madgwick: + tag: release/noetic/imu_filter_madgwick/1.2.7-1 + url: https://github.com/uos-gbp/imu_tools-release.git + version: 1.2.7 +imu_from_ios_sensorlog: + tag: release/noetic/imu_from_ios_sensorlog/0.0.1-1 + url: https://github.com/pietrocolombo/imu_from_ios_sensorlog-release.git + version: 0.0.1 +imu_monitor: + tag: release/noetic/imu_monitor/1.6.32-1 + url: https://github.com/pr2-gbp/pr2_robot-release.git + version: 1.6.32 +imu_pipeline: + tag: release/noetic/imu_pipeline/0.3.1-1 + url: https://github.com/ros-gbp/imu_pipeline-release.git + version: 0.3.1 +imu_processors: + tag: release/noetic/imu_processors/0.3.1-1 + url: https://github.com/ros-gbp/imu_pipeline-release.git + version: 0.3.1 +imu_sensor_controller: + tag: release/noetic/imu_sensor_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +imu_tools: + tag: release/noetic/imu_tools/1.2.7-1 + url: https://github.com/uos-gbp/imu_tools-release.git + version: 1.2.7 +imu_transformer: + tag: release/noetic/imu_transformer/0.3.1-1 + url: https://github.com/ros-gbp/imu_pipeline-release.git + version: 0.3.1 +industrial_core: + tag: release/noetic/industrial_core/0.7.3-1 + url: https://github.com/ros-industrial-release/industrial_core-release.git + version: 0.7.3 +industrial_deprecated: + tag: release/noetic/industrial_deprecated/0.7.3-1 + url: https://github.com/ros-industrial-release/industrial_core-release.git + version: 0.7.3 +industrial_msgs: + tag: release/noetic/industrial_msgs/0.7.3-1 + url: https://github.com/ros-industrial-release/industrial_core-release.git + version: 0.7.3 +industrial_robot_client: + tag: release/noetic/industrial_robot_client/0.7.3-1 + url: https://github.com/ros-industrial-release/industrial_core-release.git + version: 0.7.3 +industrial_robot_simulator: + tag: release/noetic/industrial_robot_simulator/0.7.3-1 + url: https://github.com/ros-industrial-release/industrial_core-release.git + version: 0.7.3 +industrial_robot_status_controller: + tag: release/noetic/industrial_robot_status_controller/0.1.2-1 + url: https://github.com/gavanderhoorn/industrial_robot_status_controller-release.git + version: 0.1.2 +industrial_robot_status_interface: + tag: release/noetic/industrial_robot_status_interface/0.1.2-1 + url: https://github.com/gavanderhoorn/industrial_robot_status_controller-release.git + version: 0.1.2 +industrial_trajectory_filters: + tag: release/noetic/industrial_trajectory_filters/0.7.3-1 + url: https://github.com/ros-industrial-release/industrial_core-release.git + version: 0.7.3 +industrial_utils: + tag: release/noetic/industrial_utils/0.7.3-1 + url: https://github.com/ros-industrial-release/industrial_core-release.git + version: 0.7.3 +influxdb_store: + tag: release/noetic/influxdb_store/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +inorbit_republisher: + tag: release/noetic/inorbit_republisher/0.3.2-1 + url: https://github.com/inorbit-ai/ros_inorbit_samples-release.git + version: 0.3.2 +interactive_marker_tutorials: + tag: release/noetic/interactive_marker_tutorials/0.11.2-1 + url: https://github.com/ros-gbp/visualization_tutorials-release.git + version: 0.11.2 +interactive_marker_twist_server: + tag: release/noetic/interactive_marker_twist_server/1.2.2-1 + url: https://github.com/ros-gbp/interactive_marker_twist_server-release.git + version: 1.2.2 +interactive_markers: + tag: release/noetic/interactive_markers/1.12.2-1 + url: https://github.com/ros-gbp/interactive_markers-release.git + version: 1.12.2 +interval_intersection: + tag: release/noetic/interval_intersection/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +ipa_3d_fov_visualization: + tag: release/noetic/ipa_3d_fov_visualization/0.6.20-1 + url: https://github.com/ipa320/cob_perception_common-release.git + version: 0.6.20 +ipa_differential_docking: + tag: release/noetic/ipa_differential_docking/0.6.13-1 + url: https://github.com/ipa320/cob_substitute-release.git + version: 0.6.13 +ipcamera_driver: + tag: release/noetic/ipcamera_driver/0.1.1-1 + url: https://github.com/alireza-hosseini/ipcamera_driver-release.git + version: 0.1.1 +ira_laser_tools: + tag: release/noetic/ira_laser_tools/1.0.7-1 + url: https://github.com/iralabdisco/ira_laser_tools-release.git + version: 1.0.7 +iris_lama: + tag: release/noetic/iris_lama/1.3.1-1 + url: https://github.com/eupedrosa/iris_lama-release.git + version: 1.3.1 +iris_lama_ros: + tag: release/noetic/iris_lama_ros/1.3.3-1 + url: https://github.com/eupedrosa/iris_lama_ros-release.git + version: 1.3.3 +ivcon: + tag: release/noetic/ivcon/0.1.7-1 + url: https://github.com/ros-gbp/ivcon-release.git + version: 0.1.7 +ixblue_ins: + tag: release/noetic/ixblue_ins/0.1.5-1 + url: https://github.com/ixblue/ixblue_ins_stdbin_driver-release.git + version: 0.1.5 +ixblue_ins_driver: + tag: release/noetic/ixblue_ins_driver/0.1.5-1 + url: https://github.com/ixblue/ixblue_ins_stdbin_driver-release.git + version: 0.1.5 +ixblue_ins_msgs: + tag: release/noetic/ixblue_ins_msgs/0.1.5-1 + url: https://github.com/ixblue/ixblue_ins_stdbin_driver-release.git + version: 0.1.5 +ixblue_stdbin_decoder: + tag: release/noetic/ixblue_stdbin_decoder/0.2.0-1 + url: https://github.com/ixblue/ixblue_stdbin_decoder-release.git + version: 0.2.0 +jackal_control: + tag: release/noetic/jackal_control/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_description: + tag: release/noetic/jackal_description/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_desktop: + tag: release/noetic/jackal_desktop/0.4.1-2 + url: https://github.com/clearpath-gbp/jackal_desktop-release.git + version: 0.4.1 +jackal_gazebo: + tag: release/noetic/jackal_gazebo/0.4.0-4 + url: https://github.com/clearpath-gbp/jackal_simulator-release.git + version: 0.4.0 +jackal_msgs: + tag: release/noetic/jackal_msgs/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_navigation: + tag: release/noetic/jackal_navigation/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_simulator: + tag: release/noetic/jackal_simulator/0.4.0-4 + url: https://github.com/clearpath-gbp/jackal_simulator-release.git + version: 0.4.0 +jackal_tutorials: + tag: release/noetic/jackal_tutorials/0.8.10-1 + url: https://github.com/clearpath-gbp/jackal-release.git + version: 0.8.10 +jackal_viz: + tag: release/noetic/jackal_viz/0.4.1-2 + url: https://github.com/clearpath-gbp/jackal_desktop-release.git + version: 0.4.1 +jderobot_assets: + tag: release/noetic/jderobot_assets/1.1.0-1 + url: https://github.com/JdeRobot/assets-release.git + version: 1.1.0 +jderobot_drones: + tag: release/noetic/jderobot_drones/1.4.2-1 + url: https://github.com/JdeRobot/drones-release.git + version: 1.4.2 +joint_limits_interface: + tag: release/noetic/joint_limits_interface/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +joint_qualification_controllers: + tag: release/noetic/joint_qualification_controllers/1.0.15-1 + url: https://github.com/pr2-gbp/pr2_self_test-release.git + version: 1.0.15 +joint_state_controller: + tag: release/noetic/joint_state_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +joint_state_publisher: + tag: release/noetic/joint_state_publisher/1.15.2-1 + url: https://github.com/ros-gbp/joint_state_publisher-release.git + version: 1.15.2 +joint_state_publisher_gui: + tag: release/noetic/joint_state_publisher_gui/1.15.2-1 + url: https://github.com/ros-gbp/joint_state_publisher-release.git + version: 1.15.2 +joint_states_settler: + tag: release/noetic/joint_states_settler/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +joint_trajectory_action: + tag: release/noetic/joint_trajectory_action/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +joint_trajectory_action_tools: + tag: release/noetic/joint_trajectory_action_tools/0.0.12-1 + url: https://github.com/pr2-gbp/pr2_common_actions-release.git + version: 0.0.12 +joint_trajectory_controller: + tag: release/noetic/joint_trajectory_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +joint_trajectory_generator: + tag: release/noetic/joint_trajectory_generator/0.0.12-1 + url: https://github.com/pr2-gbp/pr2_common_actions-release.git + version: 0.0.12 +joy: + tag: release/noetic/joy/1.15.1-1 + url: https://github.com/ros-gbp/joystick_drivers-release.git + version: 1.15.1 +joy_listener: + tag: release/noetic/joy_listener/0.3.1-1 + url: https://github.com/wu-robotics/wu_ros_tools.git + version: 0.3.1 +joy_mouse: + tag: release/noetic/joy_mouse/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +joy_teleop: + tag: release/noetic/joy_teleop/0.5.0-1 + url: https://github.com/ros-gbp/teleop_tools-release.git + version: 0.5.0 +joystick_drivers: + tag: release/noetic/joystick_drivers/1.15.1-1 + url: https://github.com/ros-gbp/joystick_drivers-release.git + version: 1.15.1 +joystick_interrupt: + tag: release/noetic/joystick_interrupt/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +jsk_3rdparty: + tag: release/noetic/jsk_3rdparty/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +jsk_calibration: + tag: release/noetic/jsk_calibration/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +jsk_common: + tag: release/noetic/jsk_common/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +jsk_common_msgs: + tag: release/noetic/jsk_common_msgs/4.3.2-1 + url: https://github.com/tork-a/jsk_common_msgs-release.git + version: 4.3.2 +jsk_control: + tag: release/noetic/jsk_control/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +jsk_data: + tag: release/noetic/jsk_data/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +jsk_footstep_controller: + tag: release/noetic/jsk_footstep_controller/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +jsk_footstep_msgs: + tag: release/noetic/jsk_footstep_msgs/4.3.2-1 + url: https://github.com/tork-a/jsk_common_msgs-release.git + version: 4.3.2 +jsk_footstep_planner: + tag: release/noetic/jsk_footstep_planner/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +jsk_gui_msgs: + tag: release/noetic/jsk_gui_msgs/4.3.2-1 + url: https://github.com/tork-a/jsk_common_msgs-release.git + version: 4.3.2 +jsk_hark_msgs: + tag: release/noetic/jsk_hark_msgs/4.3.2-1 + url: https://github.com/tork-a/jsk_common_msgs-release.git + version: 4.3.2 +jsk_ik_server: + tag: release/noetic/jsk_ik_server/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +jsk_interactive: + tag: release/noetic/jsk_interactive/2.1.10-1 + url: https://github.com/tork-a/jsk_visualization-release.git + version: 2.1.10 +jsk_interactive_marker: + tag: release/noetic/jsk_interactive_marker/2.1.10-1 + url: https://github.com/tork-a/jsk_visualization-release.git + version: 2.1.10 +jsk_interactive_test: + tag: release/noetic/jsk_interactive_test/2.1.10-1 + url: https://github.com/tork-a/jsk_visualization-release.git + version: 2.1.10 +jsk_model_tools: + tag: release/noetic/jsk_model_tools/0.4.5-1 + url: https://github.com/tork-a/jsk_model_tools-release.git + version: 0.4.5 +jsk_network_tools: + tag: release/noetic/jsk_network_tools/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +jsk_pcl_ros: + tag: release/noetic/jsk_pcl_ros/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +jsk_pcl_ros_utils: + tag: release/noetic/jsk_pcl_ros_utils/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +jsk_perception: + tag: release/noetic/jsk_perception/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +jsk_planning: + tag: release/noetic/jsk_planning/0.1.14-1 + url: https://github.com/tork-a/jsk_planning-release.git + version: 0.1.14 +jsk_pr2eus: + tag: release/noetic/jsk_pr2eus/0.3.15-4 + url: https://github.com/tork-a/jsk_pr2eus-release.git + version: 0.3.15 +jsk_recognition: + tag: release/noetic/jsk_recognition/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +jsk_recognition_msgs: + tag: release/noetic/jsk_recognition_msgs/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +jsk_recognition_utils: + tag: release/noetic/jsk_recognition_utils/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +jsk_rosbag_tools: + tag: release/noetic/jsk_rosbag_tools/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +jsk_roseus: + tag: release/noetic/jsk_roseus/1.7.5-2 + url: https://github.com/tork-a/jsk_roseus-release.git + version: 1.7.5 +jsk_rqt_plugins: + tag: release/noetic/jsk_rqt_plugins/2.1.10-1 + url: https://github.com/tork-a/jsk_visualization-release.git + version: 2.1.10 +jsk_rviz_plugins: + tag: release/noetic/jsk_rviz_plugins/2.1.10-1 + url: https://github.com/tork-a/jsk_visualization-release.git + version: 2.1.10 +jsk_teleop_joy: + tag: release/noetic/jsk_teleop_joy/0.1.18-1 + url: https://github.com/tork-a/jsk_control-release.git + version: 0.1.18 +jsk_tilt_laser: + tag: release/noetic/jsk_tilt_laser/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +jsk_tools: + tag: release/noetic/jsk_tools/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +jsk_topic_tools: + tag: release/noetic/jsk_topic_tools/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +jsk_visualization: + tag: release/noetic/jsk_visualization/2.1.10-1 + url: https://github.com/tork-a/jsk_visualization-release.git + version: 2.1.10 +jskeus: + tag: release/noetic/jskeus/1.2.5-1 + url: https://github.com/tork-a/jskeus-release.git + version: 1.2.5 +julius: + tag: release/noetic/julius/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +julius_ros: + tag: release/noetic/julius_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +kalman_filter: + tag: release/noetic/kalman_filter/0.3.1-1 + url: https://github.com/wu-robotics/wu_ros_tools.git + version: 0.3.1 +kartech_linear_actuator_msgs: + tag: release/noetic/kartech_linear_actuator_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +kdl_conversions: + tag: release/noetic/kdl_conversions/1.13.4-1 + url: https://github.com/ros-gbp/geometry-release.git + version: 1.13.4 +kdl_parser: + tag: release/noetic/kdl_parser/1.14.2-1 + url: https://github.com/ros-gbp/kdl_parser-release.git + version: 1.14.2 +kdl_parser_py: + tag: release/noetic/kdl_parser_py/1.14.2-1 + url: https://github.com/ros-gbp/kdl_parser-release.git + version: 1.14.2 +key_teleop: + tag: release/noetic/key_teleop/0.5.0-1 + url: https://github.com/ros-gbp/teleop_tools-release.git + version: 0.5.0 +khi_duaro_description: + tag: release/noetic/khi_duaro_description/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_duaro_gazebo: + tag: release/noetic/khi_duaro_gazebo/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_duaro_ikfast_plugin: + tag: release/noetic/khi_duaro_ikfast_plugin/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_duaro_moveit_config: + tag: release/noetic/khi_duaro_moveit_config/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_robot: + tag: release/noetic/khi_robot/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_robot_bringup: + tag: release/noetic/khi_robot_bringup/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_robot_control: + tag: release/noetic/khi_robot_control/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_robot_msgs: + tag: release/noetic/khi_robot_msgs/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_robot_test: + tag: release/noetic/khi_robot_test/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs007l_moveit_config: + tag: release/noetic/khi_rs007l_moveit_config/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs007n_moveit_config: + tag: release/noetic/khi_rs007n_moveit_config/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs013n_moveit_config: + tag: release/noetic/khi_rs013n_moveit_config/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs020n_moveit_config: + tag: release/noetic/khi_rs020n_moveit_config/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs025n_moveit_config: + tag: release/noetic/khi_rs025n_moveit_config/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs080n_moveit_config: + tag: release/noetic/khi_rs080n_moveit_config/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs_description: + tag: release/noetic/khi_rs_description/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs_gazebo: + tag: release/noetic/khi_rs_gazebo/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +khi_rs_ikfast_plugin: + tag: release/noetic/khi_rs_ikfast_plugin/1.4.0-2 + url: https://github.com/Kawasaki-Robotics/khi_robot-release.git + version: 1.4.0 +knowledge_representation: + tag: release/noetic/knowledge_representation/0.9.6-1 + url: https://github.com/utexas-bwi-gbp/knowledge_representation-release.git + version: 0.9.6 +kobuki_core: + tag: release/noetic/kobuki_core/0.7.12-1 + url: https://github.com/yujinrobot-release/kobuki_core-release.git + version: 0.7.12 +kobuki_dock_drive: + tag: release/noetic/kobuki_dock_drive/0.7.12-1 + url: https://github.com/yujinrobot-release/kobuki_core-release.git + version: 0.7.12 +kobuki_driver: + tag: release/noetic/kobuki_driver/0.7.12-1 + url: https://github.com/yujinrobot-release/kobuki_core-release.git + version: 0.7.12 +kobuki_ftdi: + tag: release/noetic/kobuki_ftdi/0.7.12-1 + url: https://github.com/yujinrobot-release/kobuki_core-release.git + version: 0.7.12 +kobuki_msgs: + tag: release/noetic/kobuki_msgs/0.7.0-1 + url: https://github.com/yujinrobot-release/kobuki_msgs-release.git + version: 0.7.0 +kvh_geo_fog_3d: + tag: release/noetic/kvh_geo_fog_3d/1.5.1-1 + url: https://github.com/MITRE/kvh_geo_fog_3d-release.git + version: 1.5.1 +kvh_geo_fog_3d_driver: + tag: release/noetic/kvh_geo_fog_3d_driver/1.5.1-1 + url: https://github.com/MITRE/kvh_geo_fog_3d-release.git + version: 1.5.1 +kvh_geo_fog_3d_msgs: + tag: release/noetic/kvh_geo_fog_3d_msgs/1.5.1-1 + url: https://github.com/MITRE/kvh_geo_fog_3d-release.git + version: 1.5.1 +kvh_geo_fog_3d_rviz: + tag: release/noetic/kvh_geo_fog_3d_rviz/1.5.1-1 + url: https://github.com/MITRE/kvh_geo_fog_3d-release.git + version: 1.5.1 +label_manager: + tag: release/noetic/label_manager/1.1.0-1 + url: https://github.com/uos-gbp/mesh-tools.git + version: 1.1.0 +lanelet2: + tag: release/noetic/lanelet2/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_core: + tag: release/noetic/lanelet2_core/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_examples: + tag: release/noetic/lanelet2_examples/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_io: + tag: release/noetic/lanelet2_io/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_maps: + tag: release/noetic/lanelet2_maps/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_matching: + tag: release/noetic/lanelet2_matching/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_projection: + tag: release/noetic/lanelet2_projection/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_python: + tag: release/noetic/lanelet2_python/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_routing: + tag: release/noetic/lanelet2_routing/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_traffic_rules: + tag: release/noetic/lanelet2_traffic_rules/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +lanelet2_validation: + tag: release/noetic/lanelet2_validation/1.2.2-2 + url: https://github.com/fzi-forschungszentrum-informatik/lanelet2-release.git + version: 1.2.2 +laptop_battery_monitor: + tag: release/noetic/laptop_battery_monitor/0.2.2-1 + url: https://github.com/ros-gbp/linux_peripheral_interfaces-release.git + version: 0.2.2 +laser_assembler: + tag: release/noetic/laser_assembler/1.7.8-1 + url: https://github.com/ros-gbp/laser_assembler-release.git + version: 1.7.8 +laser_cb_detector: + tag: release/noetic/laser_cb_detector/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +laser_filtering: + tag: release/noetic/laser_filtering/0.0.6-1 + url: https://github.com/wu-robotics/laser_filtering_release.git + version: 0.0.6 +laser_filters: + tag: release/noetic/laser_filters/1.9.1-2 + url: https://github.com/ros-gbp/laser_filters-release.git + version: 1.9.1 +laser_geometry: + tag: release/noetic/laser_geometry/1.6.8-1 + url: https://github.com/ros-gbp/laser_geometry-release.git + version: 1.6.8 +laser_ortho_projector: + tag: release/noetic/laser_ortho_projector/0.4.0-1 + url: https://github.com/ros-gbp/scan_tools-release.git + version: 0.4.0 +laser_pipeline: + tag: release/noetic/laser_pipeline/1.6.4-1 + url: https://github.com/ros-gbp/laser_pipeline-release.git + version: 1.6.4 +laser_proc: + tag: release/noetic/laser_proc/0.1.6-1 + url: https://github.com/ros-gbp/laser_proc-release.git + version: 0.1.6 +laser_scan_densifier: + tag: release/noetic/laser_scan_densifier/0.7.17-2 + url: https://github.com/4am-robotics/cob_driver-release.git + version: 0.7.17 +laser_scan_matcher: + tag: release/noetic/laser_scan_matcher/0.4.0-1 + url: https://github.com/ros-gbp/scan_tools-release.git + version: 0.4.0 +laser_scan_sparsifier: + tag: release/noetic/laser_scan_sparsifier/0.4.0-1 + url: https://github.com/ros-gbp/scan_tools-release.git + version: 0.4.0 +laser_scan_splitter: + tag: release/noetic/laser_scan_splitter/0.4.0-1 + url: https://github.com/ros-gbp/scan_tools-release.git + version: 0.4.0 +laser_tilt_controller_filter: + tag: release/noetic/laser_tilt_controller_filter/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +led_msgs: + tag: release/noetic/led_msgs/0.0.11-1 + url: https://github.com/CopterExpress/ros_led-release.git + version: 0.0.11 +leg_detector: + tag: release/noetic/leg_detector/1.4.2-1 + url: https://github.com/OSUrobotics/people-release.git + version: 1.4.2 +lensfun_metadata_extractor: + tag: release/noetic/lensfun_metadata_extractor/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +leo: + tag: release/noetic/leo/2.3.0-1 + url: https://github.com/fictionlab-gbp/leo_common-release.git + version: 2.3.0 +leo_bringup: + tag: release/noetic/leo_bringup/2.4.1-2 + url: https://github.com/fictionlab-gbp/leo_robot-release.git + version: 2.4.1 +leo_description: + tag: release/noetic/leo_description/2.3.0-1 + url: https://github.com/fictionlab-gbp/leo_common-release.git + version: 2.3.0 +leo_desktop: + tag: release/noetic/leo_desktop/0.3.0-1 + url: https://github.com/fictionlab-gbp/leo_desktop-release.git + version: 0.3.0 +leo_example_follow_ar_tag: + tag: release/noetic/leo_example_follow_ar_tag/0.1.1-1 + url: https://github.com/fictionlab-gbp/leo_examples-release.git + version: 0.1.1 +leo_example_line_follower: + tag: release/noetic/leo_example_line_follower/0.1.1-1 + url: https://github.com/fictionlab-gbp/leo_examples-release.git + version: 0.1.1 +leo_example_object_detection: + tag: release/noetic/leo_example_object_detection/0.1.1-1 + url: https://github.com/fictionlab-gbp/leo_examples-release.git + version: 0.1.1 +leo_examples: + tag: release/noetic/leo_examples/0.1.1-1 + url: https://github.com/fictionlab-gbp/leo_examples-release.git + version: 0.1.1 +leo_fw: + tag: release/noetic/leo_fw/2.4.1-2 + url: https://github.com/fictionlab-gbp/leo_robot-release.git + version: 2.4.1 +leo_gazebo: + tag: release/noetic/leo_gazebo/1.1.0-1 + url: https://github.com/fictionlab-gbp/leo_simulator-release.git + version: 1.1.0 +leo_gazebo_plugins: + tag: release/noetic/leo_gazebo_plugins/1.1.0-1 + url: https://github.com/fictionlab-gbp/leo_simulator-release.git + version: 1.1.0 +leo_gazebo_worlds: + tag: release/noetic/leo_gazebo_worlds/1.1.0-1 + url: https://github.com/fictionlab-gbp/leo_simulator-release.git + version: 1.1.0 +leo_msgs: + tag: release/noetic/leo_msgs/2.3.0-1 + url: https://github.com/fictionlab-gbp/leo_common-release.git + version: 2.3.0 +leo_robot: + tag: release/noetic/leo_robot/2.4.1-2 + url: https://github.com/fictionlab-gbp/leo_robot-release.git + version: 2.4.1 +leo_simulator: + tag: release/noetic/leo_simulator/1.1.0-1 + url: https://github.com/fictionlab-gbp/leo_simulator-release.git + version: 1.1.0 +leo_teleop: + tag: release/noetic/leo_teleop/2.3.0-1 + url: https://github.com/fictionlab-gbp/leo_common-release.git + version: 2.3.0 +leo_viz: + tag: release/noetic/leo_viz/0.3.0-1 + url: https://github.com/fictionlab-gbp/leo_desktop-release.git + version: 0.3.0 +lgsvl_msgs: + tag: release/noetic/lgsvl_msgs/0.0.4-1 + url: https://github.com/lgsvl/lgsvl_msgs-release.git + version: 0.0.4 +libcmt: + tag: release/noetic/libcmt/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +libcreate: + tag: release/noetic/libcreate/3.0.0-1 + url: https://github.com/AutonomyLab/libcreate-release.git + version: 3.0.0 +libdlib: + tag: release/noetic/libdlib/0.6.19-1 + url: https://github.com/ipa320/cob_extern-release.git + version: 0.6.19 +libexif_metadata_extractor: + tag: release/noetic/libexif_metadata_extractor/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +libfranka: + tag: release/noetic/libfranka/0.9.2-1 + url: https://github.com/frankaemika/libfranka-release.git + version: 0.9.2 +libg2o: + tag: release/noetic/libg2o/2020.5.3-1 + url: https://github.com/ros-gbp/libg2o-release.git + version: 2020.5.3 +libmavconn: + tag: release/noetic/libmavconn/1.20.1-1 + url: https://github.com/mavlink/mavros-release.git + version: 1.20.1 +libnabo: + tag: release/noetic/libnabo/1.0.7-1 + url: https://github.com/nobleo/libnabo-release.git + version: 1.0.7 +libntcan: + tag: release/noetic/libntcan/0.6.19-1 + url: https://github.com/ipa320/cob_extern-release.git + version: 0.6.19 +libpcan: + tag: release/noetic/libpcan/0.6.19-1 + url: https://github.com/ipa320/cob_extern-release.git + version: 0.6.19 +libphidget22: + tag: release/noetic/libphidget22/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +libphidgets: + tag: release/noetic/libphidgets/0.6.19-1 + url: https://github.com/ipa320/cob_extern-release.git + version: 0.6.19 +libpointmatcher: + tag: release/noetic/libpointmatcher/1.3.1-1 + url: https://github.com/nobleo/libpointmatcher-release.git + version: 1.3.1 +librealsense2: + tag: release/noetic/librealsense2/2.50.0-1 + url: https://github.com/IntelRealSense/librealsense2-release.git + version: 2.50.0 +librviz_tutorial: + tag: release/noetic/librviz_tutorial/0.11.2-1 + url: https://github.com/ros-gbp/visualization_tutorials-release.git + version: 0.11.2 +libsensors_monitor: + tag: release/noetic/libsensors_monitor/0.2.2-1 + url: https://github.com/ros-gbp/linux_peripheral_interfaces-release.git + version: 0.2.2 +libsiftfast: + tag: release/noetic/libsiftfast/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +libuvc_camera: + tag: release/noetic/libuvc_camera/0.0.11-1 + url: https://github.com/ros-drivers-gbp/libuvc_ros-release.git + version: 0.0.11 +libuvc_ros: + tag: release/noetic/libuvc_ros/0.0.11-1 + url: https://github.com/ros-drivers-gbp/libuvc_ros-release.git + version: 0.0.11 +linux_peripheral_interfaces: + tag: release/noetic/linux_peripheral_interfaces/0.2.2-1 + url: https://github.com/ros-gbp/linux_peripheral_interfaces-release.git + version: 0.2.2 +lms1xx: + tag: release/noetic/lms1xx/0.3.0-2 + url: https://github.com/clearpath-gbp/lms1xx-release.git + version: 0.3.0 +lockfree: + tag: release/noetic/lockfree/1.0.25-1 + url: https://github.com/ros-gbp/ros_realtime-release.git + version: 1.0.25 +locomotor: + tag: release/noetic/locomotor/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +locomotor_msgs: + tag: release/noetic/locomotor_msgs/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +locomove_base: + tag: release/noetic/locomove_base/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +log_view: + tag: release/noetic/log_view/0.1.3-1 + url: https://github.com/hatchbed/log_view-release.git + version: 0.1.3 +lpg_planner: + tag: release/noetic/lpg_planner/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +lsc_ros_driver: + tag: release/noetic/lsc_ros_driver/1.0.4-1 + url: https://github.com/AutonicsLiDAR-release/lsc_ros_driver-release.git + version: 1.0.4 +lusb: + tag: release/noetic/lusb/1.1.0-1 + url: https://github.com/DataspeedInc-release/lusb-release.git + version: 1.1.0 +lvr2: + tag: release/noetic/lvr2/20.11.3-4 + url: https://github.com/uos-gbp/lvr2-release.git + version: 20.11.3 +magic_enum: + tag: release/noetic/magic_enum/0.9.5-1 + url: https://github.com/nobleo/magic_enum-release.git + version: 0.9.5 +magical_ros2_conversion_tool: + tag: release/noetic/magical_ros2_conversion_tool/1.2.1-1 + url: https://github.com/wu-robotics/roscompile-release.git + version: 1.2.1 +magnetic_model: + tag: release/noetic/magnetic_model/2.0.3-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/compass.git + version: 2.0.3 +magnetometer_compass: + tag: release/noetic/magnetometer_compass/2.0.3-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/compass.git + version: 2.0.3 +magnetometer_pipeline: + tag: release/noetic/magnetometer_pipeline/2.0.3-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/compass.git + version: 2.0.3 +map_laser: + tag: release/noetic/map_laser/0.0.6-1 + url: https://github.com/wu-robotics/laser_filtering_release.git + version: 0.0.6 +map_msgs: + tag: release/noetic/map_msgs/1.14.2-1 + url: https://github.com/ros-gbp/navigation_msgs-release.git + version: 1.14.2 +map_organizer: + tag: release/noetic/map_organizer/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +map_organizer_msgs: + tag: release/noetic/map_organizer_msgs/0.14.0-1 + url: https://github.com/at-wat/neonavigation_msgs-release.git + version: 0.14.0 +map_server: + tag: release/noetic/map_server/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +mapviz: + tag: release/noetic/mapviz/1.4.3-1 + url: https://github.com/swri-robotics-gbp/mapviz-release.git + version: 1.4.3 +mapviz_plugins: + tag: release/noetic/mapviz_plugins/1.4.3-1 + url: https://github.com/swri-robotics-gbp/mapviz-release.git + version: 1.4.3 +marine_acoustic_msgs: + tag: release/noetic/marine_acoustic_msgs/2.0.2-1 + url: https://github.com/CCOMJHC/marine_msgs-release.git + version: 2.0.2 +marine_sensor_msgs: + tag: release/noetic/marine_sensor_msgs/2.0.2-1 + url: https://github.com/CCOMJHC/marine_msgs-release.git + version: 2.0.2 +marker_msgs: + tag: release/noetic/marker_msgs/0.0.6-7 + url: https://github.com/tuw-robotics/marker_msgs-release.git + version: 0.0.6 +marti_can_msgs: + tag: release/noetic/marti_can_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marti_common_msgs: + tag: release/noetic/marti_common_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marti_data_structures: + tag: release/noetic/marti_data_structures/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +marti_dbw_msgs: + tag: release/noetic/marti_dbw_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marti_introspection_msgs: + tag: release/noetic/marti_introspection_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marti_nav_msgs: + tag: release/noetic/marti_nav_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marti_perception_msgs: + tag: release/noetic/marti_perception_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marti_sensor_msgs: + tag: release/noetic/marti_sensor_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marti_status_msgs: + tag: release/noetic/marti_status_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marti_visualization_msgs: + tag: release/noetic/marti_visualization_msgs/0.12.2-1 + url: https://github.com/swri-robotics-gbp/marti_messages-release.git + version: 0.12.2 +marvelmind_nav: + tag: release/noetic/marvelmind_nav/1.0.13-1 + url: https://github.com/MarvelmindRobotics/marvelmind_nav-release.git + version: 1.0.13 +massrobotics_amr_sender: + tag: release/noetic/massrobotics_amr_sender/1.0.1-1 + url: https://github.com/inorbit-ai/ros_amr_interop-release.git + version: 1.0.1 +mavlink: + tag: release/noetic/mavlink/2025.5.5-1 + url: https://github.com/mavlink/mavlink-gbp-release.git + version: 2025.5.5 +mavros: + tag: release/noetic/mavros/1.20.1-1 + url: https://github.com/mavlink/mavros-release.git + version: 1.20.1 +mavros_extras: + tag: release/noetic/mavros_extras/1.20.1-1 + url: https://github.com/mavlink/mavros-release.git + version: 1.20.1 +mavros_msgs: + tag: release/noetic/mavros_msgs/1.20.1-1 + url: https://github.com/mavlink/mavros-release.git + version: 1.20.1 +mbf_abstract_core: + tag: release/noetic/mbf_abstract_core/0.4.0-1 + url: https://github.com/uos-gbp/move_base_flex-release.git + version: 0.4.0 +mbf_abstract_nav: + tag: release/noetic/mbf_abstract_nav/0.4.0-1 + url: https://github.com/uos-gbp/move_base_flex-release.git + version: 0.4.0 +mbf_costmap_core: + tag: release/noetic/mbf_costmap_core/0.4.0-1 + url: https://github.com/uos-gbp/move_base_flex-release.git + version: 0.4.0 +mbf_costmap_nav: + tag: release/noetic/mbf_costmap_nav/0.4.0-1 + url: https://github.com/uos-gbp/move_base_flex-release.git + version: 0.4.0 +mbf_mesh_core: + tag: release/noetic/mbf_mesh_core/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +mbf_mesh_nav: + tag: release/noetic/mbf_mesh_nav/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +mbf_msgs: + tag: release/noetic/mbf_msgs/0.4.0-1 + url: https://github.com/uos-gbp/move_base_flex-release.git + version: 0.4.0 +mbf_simple_nav: + tag: release/noetic/mbf_simple_nav/0.4.0-1 + url: https://github.com/uos-gbp/move_base_flex-release.git + version: 0.4.0 +mbf_utility: + tag: release/noetic/mbf_utility/0.4.0-1 + url: https://github.com/uos-gbp/move_base_flex-release.git + version: 0.4.0 +mcl_3dl: + tag: release/noetic/mcl_3dl/0.6.4-1 + url: https://github.com/at-wat/mcl_3dl-release.git + version: 0.6.4 +mcl_3dl_msgs: + tag: release/noetic/mcl_3dl_msgs/0.6.0-1 + url: https://github.com/at-wat/mcl_3dl_msgs-release.git + version: 0.6.0 +mecanum_gazebo_plugin: + tag: release/noetic/mecanum_gazebo_plugin/0.2.0-1 + url: https://github.com/clearpath-gbp/ridgeback_simulator-release.git + version: 0.2.0 +media_export: + tag: release/noetic/media_export/0.3.0-1 + url: https://github.com/ros-gbp/media_export-release.git + version: 0.3.0 +mesh_client: + tag: release/noetic/mesh_client/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +mesh_controller: + tag: release/noetic/mesh_controller/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +mesh_layers: + tag: release/noetic/mesh_layers/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +mesh_map: + tag: release/noetic/mesh_map/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +mesh_msgs: + tag: release/noetic/mesh_msgs/1.1.0-1 + url: https://github.com/uos-gbp/mesh-tools.git + version: 1.1.0 +mesh_msgs_conversions: + tag: release/noetic/mesh_msgs_conversions/1.1.0-1 + url: https://github.com/uos-gbp/mesh-tools.git + version: 1.1.0 +mesh_msgs_hdf5: + tag: release/noetic/mesh_msgs_hdf5/1.1.0-1 + url: https://github.com/uos-gbp/mesh-tools.git + version: 1.1.0 +mesh_msgs_transform: + tag: release/noetic/mesh_msgs_transform/1.1.0-1 + url: https://github.com/uos-gbp/mesh-tools.git + version: 1.1.0 +mesh_navigation: + tag: release/noetic/mesh_navigation/1.0.1-2 + url: https://github.com/uos-gbp/mesh_navigation-release.git + version: 1.0.1 +mesh_tools: + tag: release/noetic/mesh_tools/1.1.0-1 + url: https://github.com/uos-gbp/mesh-tools.git + version: 1.1.0 +message_filters: + tag: release/noetic/message_filters/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +message_generation: + tag: release/noetic/message_generation/0.4.1-1 + url: https://github.com/ros-gbp/message_generation-release.git + version: 0.4.1 +message_runtime: + tag: release/noetic/message_runtime/0.4.13-1 + url: https://github.com/ros-gbp/message_runtime-release.git + version: 0.4.13 +message_tf_frame_transformer: + tag: release/noetic/message_tf_frame_transformer/1.1.1-1 + url: https://github.com/ika-rwth-aachen/message_tf_frame_transformer-release.git + version: 1.1.1 +message_to_tf: + tag: release/noetic/message_to_tf/0.4.0-1 + url: https://github.com/tu-darmstadt-ros-pkg-gbp/hector_localization-release.git + version: 0.4.0 +mia_hand_bringup: + tag: release/noetic/mia_hand_bringup/1.0.2-1 + url: https://github.com/Prensilia-srl/mia_hand_ros_pkgs-release.git + version: 1.0.2 +mia_hand_description: + tag: release/noetic/mia_hand_description/1.0.2-1 + url: https://github.com/Prensilia-srl/mia_hand_ros_pkgs-release.git + version: 1.0.2 +mia_hand_driver: + tag: release/noetic/mia_hand_driver/1.0.2-1 + url: https://github.com/Prensilia-srl/mia_hand_ros_pkgs-release.git + version: 1.0.2 +mia_hand_gazebo: + tag: release/noetic/mia_hand_gazebo/1.0.2-1 + url: https://github.com/Prensilia-srl/mia_hand_ros_pkgs-release.git + version: 1.0.2 +mia_hand_moveit_config: + tag: release/noetic/mia_hand_moveit_config/1.0.2-1 + url: https://github.com/Prensilia-srl/mia_hand_ros_pkgs-release.git + version: 1.0.2 +mia_hand_msgs: + tag: release/noetic/mia_hand_msgs/1.0.2-1 + url: https://github.com/Prensilia-srl/mia_hand_ros_pkgs-release.git + version: 1.0.2 +mia_hand_ros_control: + tag: release/noetic/mia_hand_ros_control/1.0.2-1 + url: https://github.com/Prensilia-srl/mia_hand_ros_pkgs-release.git + version: 1.0.2 +mia_hand_ros_pkgs: + tag: release/noetic/mia_hand_ros_pkgs/1.0.2-1 + url: https://github.com/Prensilia-srl/mia_hand_ros_pkgs-release.git + version: 1.0.2 +microstrain_3dmgx2_imu: + tag: release/noetic/microstrain_3dmgx2_imu/1.5.13-1 + url: https://github.com/ros-gbp/microstrain_3dmgx2_imu-release.git + version: 1.5.13 +microstrain_inertial_description: + tag: release/noetic/microstrain_inertial_description/4.6.0-1 + url: https://github.com/LORD-MicroStrain/microstrain_inertial-release.git + version: 4.6.0 +microstrain_inertial_driver: + tag: release/noetic/microstrain_inertial_driver/4.6.0-1 + url: https://github.com/LORD-MicroStrain/microstrain_inertial-release.git + version: 4.6.0 +microstrain_inertial_examples: + tag: release/noetic/microstrain_inertial_examples/4.6.0-1 + url: https://github.com/LORD-MicroStrain/microstrain_inertial-release.git + version: 4.6.0 +microstrain_inertial_msgs: + tag: release/noetic/microstrain_inertial_msgs/4.6.0-1 + url: https://github.com/LORD-MicroStrain/microstrain_inertial-release.git + version: 4.6.0 +microstrain_inertial_rqt: + tag: release/noetic/microstrain_inertial_rqt/4.6.0-1 + url: https://github.com/LORD-MicroStrain/microstrain_inertial-release.git + version: 4.6.0 +mikrotik_swos_tools: + tag: release/noetic/mikrotik_swos_tools/1.1.1-1 + url: https://github.com/peci1/mikrotik_swos_tools-release.git + version: 1.1.1 +mini_maxwell: + tag: release/noetic/mini_maxwell/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +mir_actions: + tag: release/noetic/mir_actions/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +mir_description: + tag: release/noetic/mir_description/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +mir_driver: + tag: release/noetic/mir_driver/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +mir_dwb_critics: + tag: release/noetic/mir_dwb_critics/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +mir_gazebo: + tag: release/noetic/mir_gazebo/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +mir_msgs: + tag: release/noetic/mir_msgs/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +mir_navigation: + tag: release/noetic/mir_navigation/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +mir_robot: + tag: release/noetic/mir_robot/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +mk: + tag: release/noetic/mk/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +mlx90640_thermal_camera: + tag: release/noetic/mlx90640_thermal_camera/1.0.0-1 + url: https://github.com/vakshit/mlx90640_thermal_camera-release.git + version: 1.0.0 +mobile_robot_simulator: + tag: release/noetic/mobile_robot_simulator/1.0.1-1 + url: https://github.com/nobleo/mobile_robot_simulator-release.git + version: 1.0.1 +mobileye_560_660_msgs: + tag: release/noetic/mobileye_560_660_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +mocap_nokov: + tag: release/noetic/mocap_nokov/0.0.4-1 + url: https://github.com/NOKOV-MOCAP/mocap_nokov_release.git + version: 0.0.4 +mocap_optitrack: + tag: release/noetic/mocap_optitrack/0.1.4-1 + url: https://github.com/ros-drivers-gbp/mocap_optitrack-release.git + version: 0.1.4 +mola_common: + tag: release/noetic/mola_common/0.4.0-1 + url: https://github.com/mrpt-ros-pkg-release/mola_common-release.git + version: 0.4.0 +mongodb_log: + tag: release/noetic/mongodb_log/0.6.0-1 + url: https://github.com/strands-project-releases/mongodb_store.git + version: 0.6.0 +mongodb_store: + tag: release/noetic/mongodb_store/0.6.0-1 + url: https://github.com/strands-project-releases/mongodb_store.git + version: 0.6.0 +mongodb_store_msgs: + tag: release/noetic/mongodb_store_msgs/0.6.0-1 + url: https://github.com/strands-project-releases/mongodb_store.git + version: 0.6.0 +monkeywrench: + tag: release/noetic/monkeywrench/0.1.0-1 + url: https://github.com/cst0/ros-monkeywrench-release.git + version: 0.1.0 +monocam_settler: + tag: release/noetic/monocam_settler/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +mouse_teleop: + tag: release/noetic/mouse_teleop/0.5.0-1 + url: https://github.com/ros-gbp/teleop_tools-release.git + version: 0.5.0 +move_base: + tag: release/noetic/move_base/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +move_base_flex: + tag: release/noetic/move_base_flex/0.4.0-1 + url: https://github.com/uos-gbp/move_base_flex-release.git + version: 0.4.0 +move_base_msgs: + tag: release/noetic/move_base_msgs/1.14.2-1 + url: https://github.com/ros-gbp/navigation_msgs-release.git + version: 1.14.2 +move_base_sequence: + tag: release/noetic/move_base_sequence/0.0.1-1 + url: https://github.com/MarkNaeem/move_base_sequence-release.git + version: 0.0.1 +move_basic: + tag: release/noetic/move_basic/0.4.2-1 + url: https://github.com/UbiquityRobotics-release/move_basic-release.git + version: 0.4.2 +move_slow_and_clear: + tag: release/noetic/move_slow_and_clear/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +moveit: + tag: release/noetic/moveit/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_chomp_optimizer_adapter: + tag: release/noetic/moveit_chomp_optimizer_adapter/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_commander: + tag: release/noetic/moveit_commander/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_core: + tag: release/noetic/moveit_core/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_fake_controller_manager: + tag: release/noetic/moveit_fake_controller_manager/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_kinematics: + tag: release/noetic/moveit_kinematics/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_msgs: + tag: release/noetic/moveit_msgs/0.11.4-1 + url: https://github.com/ros-gbp/moveit_msgs-release.git + version: 0.11.4 +moveit_opw_kinematics_plugin: + tag: release/noetic/moveit_opw_kinematics_plugin/0.4.0-3 + url: https://github.com/JeroenDM/moveit_opw_kinematics_plugin-release.git + version: 0.4.0 +moveit_planners: + tag: release/noetic/moveit_planners/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_planners_chomp: + tag: release/noetic/moveit_planners_chomp/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_planners_ompl: + tag: release/noetic/moveit_planners_ompl/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_plugins: + tag: release/noetic/moveit_plugins/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_python: + tag: release/noetic/moveit_python/0.4.5-1 + url: https://github.com/mikeferguson/moveit_python-release.git + version: 0.4.5 +moveit_resources: + tag: release/noetic/moveit_resources/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_dual_panda_moveit_config: + tag: release/noetic/moveit_resources_dual_panda_moveit_config/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_fanuc_description: + tag: release/noetic/moveit_resources_fanuc_description/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_fanuc_moveit_config: + tag: release/noetic/moveit_resources_fanuc_moveit_config/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_panda_description: + tag: release/noetic/moveit_resources_panda_description/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_panda_moveit_config: + tag: release/noetic/moveit_resources_panda_moveit_config/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_pr2_description: + tag: release/noetic/moveit_resources_pr2_description/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_prbt_ikfast_manipulator_plugin: + tag: release/noetic/moveit_resources_prbt_ikfast_manipulator_plugin/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_prbt_moveit_config: + tag: release/noetic/moveit_resources_prbt_moveit_config/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_prbt_pg70_support: + tag: release/noetic/moveit_resources_prbt_pg70_support/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_resources_prbt_support: + tag: release/noetic/moveit_resources_prbt_support/0.8.3-1 + url: https://github.com/ros-gbp/moveit_resources-release.git + version: 0.8.3 +moveit_ros: + tag: release/noetic/moveit_ros/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_benchmarks: + tag: release/noetic/moveit_ros_benchmarks/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_control_interface: + tag: release/noetic/moveit_ros_control_interface/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_manipulation: + tag: release/noetic/moveit_ros_manipulation/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_move_group: + tag: release/noetic/moveit_ros_move_group/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_occupancy_map_monitor: + tag: release/noetic/moveit_ros_occupancy_map_monitor/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_perception: + tag: release/noetic/moveit_ros_perception/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_planning: + tag: release/noetic/moveit_ros_planning/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_planning_interface: + tag: release/noetic/moveit_ros_planning_interface/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_robot_interaction: + tag: release/noetic/moveit_ros_robot_interaction/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_visualization: + tag: release/noetic/moveit_ros_visualization/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_ros_warehouse: + tag: release/noetic/moveit_ros_warehouse/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_runtime: + tag: release/noetic/moveit_runtime/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_servo: + tag: release/noetic/moveit_servo/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_setup_assistant: + tag: release/noetic/moveit_setup_assistant/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_sim_controller: + tag: release/noetic/moveit_sim_controller/0.3.0-1 + url: https://github.com/PickNikRobotics/moveit_sim_controller-release.git + version: 0.3.0 +moveit_simple_controller_manager: + tag: release/noetic/moveit_simple_controller_manager/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +moveit_task_constructor_capabilities: + tag: release/noetic/moveit_task_constructor_capabilities/0.1.3-1 + url: https://github.com/ros-gbp/moveit_task_constructor-release.git + version: 0.1.3 +moveit_task_constructor_core: + tag: release/noetic/moveit_task_constructor_core/0.1.3-1 + url: https://github.com/ros-gbp/moveit_task_constructor-release.git + version: 0.1.3 +moveit_task_constructor_demo: + tag: release/noetic/moveit_task_constructor_demo/0.1.3-1 + url: https://github.com/ros-gbp/moveit_task_constructor-release.git + version: 0.1.3 +moveit_task_constructor_msgs: + tag: release/noetic/moveit_task_constructor_msgs/0.1.3-1 + url: https://github.com/ros-gbp/moveit_task_constructor-release.git + version: 0.1.3 +moveit_task_constructor_visualization: + tag: release/noetic/moveit_task_constructor_visualization/0.1.3-1 + url: https://github.com/ros-gbp/moveit_task_constructor-release.git + version: 0.1.3 +moveit_visual_tools: + tag: release/noetic/moveit_visual_tools/3.6.1-1 + url: https://github.com/ros-gbp/moveit_visual_tools-release.git + version: 3.6.1 +movie_publisher: + tag: release/noetic/movie_publisher/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +movie_publisher_plugins: + tag: release/noetic/movie_publisher_plugins/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +movie_publisher_plugins_copyleft: + tag: release/noetic/movie_publisher_plugins_copyleft/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +movie_publisher_plugins_nonfree: + tag: release/noetic/movie_publisher_plugins_nonfree/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +movie_publisher_plugins_permissive: + tag: release/noetic/movie_publisher_plugins_permissive/3.0.2-1 + url: https://github.com/peci1/movie_publisher-release.git + version: 3.0.2 +mp2p_icp: + tag: release/noetic/mp2p_icp/1.6.6-1 + url: https://github.com/mrpt-ros-pkg-release/mp2p_icp-release.git + version: 1.6.6 +mpc_local_planner: + tag: release/noetic/mpc_local_planner/0.0.3-1 + url: https://github.com/rst-tu-dortmund/mpc_local_planner-release.git + version: 0.0.3 +mpc_local_planner_examples: + tag: release/noetic/mpc_local_planner_examples/0.0.3-1 + url: https://github.com/rst-tu-dortmund/mpc_local_planner-release.git + version: 0.0.3 +mpc_local_planner_msgs: + tag: release/noetic/mpc_local_planner_msgs/0.0.3-1 + url: https://github.com/rst-tu-dortmund/mpc_local_planner-release.git + version: 0.0.3 +mqtt_bridge: + tag: release/noetic/mqtt_bridge/0.2.1-1 + url: https://github.com/groove-x/mqtt_bridge-release.git + version: 0.2.1 +mqtt_client: + tag: release/noetic/mqtt_client/2.3.0-1 + url: https://github.com/ika-rwth-aachen/mqtt_client-release.git + version: 2.3.0 +mqtt_client_interfaces: + tag: release/noetic/mqtt_client_interfaces/2.3.0-1 + url: https://github.com/ika-rwth-aachen/mqtt_client-release.git + version: 2.3.0 +mrpt2: + tag: release/noetic/mrpt2/2.13.5-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt2-release.git + version: 2.13.5 +mrpt_apps: + tag: release/noetic/mrpt_apps/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_ekf_slam_2d: + tag: release/noetic/mrpt_ekf_slam_2d/0.1.19-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_slam-release.git + version: 0.1.19 +mrpt_ekf_slam_3d: + tag: release/noetic/mrpt_ekf_slam_3d/0.1.19-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_slam-release.git + version: 0.1.19 +mrpt_generic_sensor: + tag: release/noetic/mrpt_generic_sensor/0.0.4-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_sensors-release.git + version: 0.0.4 +mrpt_graphslam_2d: + tag: release/noetic/mrpt_graphslam_2d/0.1.19-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_slam-release.git + version: 0.1.19 +mrpt_icp_slam_2d: + tag: release/noetic/mrpt_icp_slam_2d/0.1.19-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_slam-release.git + version: 0.1.19 +mrpt_libapps: + tag: release/noetic/mrpt_libapps/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libbase: + tag: release/noetic/mrpt_libbase/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libgui: + tag: release/noetic/mrpt_libgui/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libhwdrivers: + tag: release/noetic/mrpt_libhwdrivers/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libmaps: + tag: release/noetic/mrpt_libmaps/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libmath: + tag: release/noetic/mrpt_libmath/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libnav: + tag: release/noetic/mrpt_libnav/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libobs: + tag: release/noetic/mrpt_libobs/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libopengl: + tag: release/noetic/mrpt_libopengl/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libposes: + tag: release/noetic/mrpt_libposes/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libros_bridge: + tag: release/noetic/mrpt_libros_bridge/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libslam: + tag: release/noetic/mrpt_libslam/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_libtclap: + tag: release/noetic/mrpt_libtclap/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_ros-release.git + version: 2.14.8 +mrpt_local_obstacles: + tag: release/noetic/mrpt_local_obstacles/1.0.7-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_navigation-release.git + version: 1.0.7 +mrpt_localization: + tag: release/noetic/mrpt_localization/1.0.7-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_navigation-release.git + version: 1.0.7 +mrpt_map: + tag: release/noetic/mrpt_map/1.0.7-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_navigation-release.git + version: 1.0.7 +mrpt_msgs: + tag: release/noetic/mrpt_msgs/0.5.0-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_msgs-release.git + version: 0.5.0 +mrpt_msgs_bridge: + tag: release/noetic/mrpt_msgs_bridge/1.0.7-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_navigation-release.git + version: 1.0.7 +mrpt_navigation: + tag: release/noetic/mrpt_navigation/1.0.7-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_navigation-release.git + version: 1.0.7 +mrpt_path_planning: + tag: release/noetic/mrpt_path_planning/0.2.1-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_path_planning-release.git + version: 0.2.1 +mrpt_rawlog: + tag: release/noetic/mrpt_rawlog/1.0.7-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_navigation-release.git + version: 1.0.7 +mrpt_rbpf_slam: + tag: release/noetic/mrpt_rbpf_slam/0.1.19-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_slam-release.git + version: 0.1.19 +mrpt_reactivenav2d: + tag: release/noetic/mrpt_reactivenav2d/1.0.7-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_navigation-release.git + version: 1.0.7 +mrpt_sensorlib: + tag: release/noetic/mrpt_sensorlib/0.0.4-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_sensors-release.git + version: 0.0.4 +mrpt_sensors: + tag: release/noetic/mrpt_sensors/0.0.4-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_sensors-release.git + version: 0.0.4 +mrpt_sensors_examples: + tag: release/noetic/mrpt_sensors_examples/0.0.4-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_sensors-release.git + version: 0.0.4 +mrpt_slam: + tag: release/noetic/mrpt_slam/0.1.19-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_slam-release.git + version: 0.1.19 +mrpt_tutorials: + tag: release/noetic/mrpt_tutorials/1.0.7-1 + url: https://github.com/mrpt-ros-pkg-release/mrpt_navigation-release.git + version: 1.0.7 +mrt_cmake_modules: + tag: release/noetic/mrt_cmake_modules/1.0.11-1 + url: https://github.com/KIT-MRT/mrt_cmake_modules-release.git + version: 1.0.11 +multi_map_server: + tag: release/noetic/multi_map_server/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +multi_object_tracking_lidar: + tag: release/noetic/multi_object_tracking_lidar/1.0.4-1 + url: https://github.com/praveen-palanisamy/multi_object_tracking_lidar-release.git + version: 1.0.4 +multires_image: + tag: release/noetic/multires_image/1.4.3-1 + url: https://github.com/swri-robotics-gbp/mapviz-release.git + version: 1.4.3 +multirobot_map_merge: + tag: release/noetic/multirobot_map_merge/2.1.4-1 + url: https://github.com/hrnr/m-explore-release.git + version: 2.1.4 +multisense: + tag: release/noetic/multisense/4.0.5-1 + url: https://github.com/carnegieroboticsllc/multisense_ros-release.git + version: 4.0.5 +multisense_bringup: + tag: release/noetic/multisense_bringup/4.0.5-1 + url: https://github.com/carnegieroboticsllc/multisense_ros-release.git + version: 4.0.5 +multisense_cal_check: + tag: release/noetic/multisense_cal_check/4.0.5-1 + url: https://github.com/carnegieroboticsllc/multisense_ros-release.git + version: 4.0.5 +multisense_description: + tag: release/noetic/multisense_description/4.0.5-1 + url: https://github.com/carnegieroboticsllc/multisense_ros-release.git + version: 4.0.5 +multisense_lib: + tag: release/noetic/multisense_lib/4.0.5-1 + url: https://github.com/carnegieroboticsllc/multisense_ros-release.git + version: 4.0.5 +multisense_ros: + tag: release/noetic/multisense_ros/4.0.5-1 + url: https://github.com/carnegieroboticsllc/multisense_ros-release.git + version: 4.0.5 +mvsim: + tag: release/noetic/mvsim/0.13.2-1 + url: https://github.com/ual-arm-ros-pkg-release/mvsim-release.git + version: 0.13.2 +nao_meshes: + tag: release/noetic/nao_meshes/0.1.13-0 + url: https://github.com/ros-naoqi/nao_meshes-release.git + version: 0.1.13 +naoqi_bridge_msgs: + tag: release/noetic/naoqi_bridge_msgs/0.0.9-1 + url: https://github.com/ros-naoqi/naoqi_bridge_msgs-release.git + version: 0.0.9 +naoqi_driver: + tag: release/noetic/naoqi_driver/0.6.0-1 + url: https://github.com/ros-naoqi/naoqi_driver-release.git + version: 0.6.0 +naoqi_libqi: + tag: release/noetic/naoqi_libqi/2.9.7-0 + url: https://github.com/ros-naoqi/libqi-release.git + version: 2.9.7 +naoqi_libqicore: + tag: release/noetic/naoqi_libqicore/2.9.7-0 + url: https://github.com/ros-naoqi/libqicore-release.git + version: 2.9.7 +nav2d: + tag: release/noetic/nav2d/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav2d_exploration: + tag: release/noetic/nav2d_exploration/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav2d_karto: + tag: release/noetic/nav2d_karto/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav2d_localizer: + tag: release/noetic/nav2d_localizer/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav2d_msgs: + tag: release/noetic/nav2d_msgs/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav2d_navigator: + tag: release/noetic/nav2d_navigator/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav2d_operator: + tag: release/noetic/nav2d_operator/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav2d_remote: + tag: release/noetic/nav2d_remote/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav2d_tutorials: + tag: release/noetic/nav2d_tutorials/0.4.3-1 + url: https://github.com/skasperski/navigation_2d-release.git + version: 0.4.3 +nav_2d_msgs: + tag: release/noetic/nav_2d_msgs/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +nav_2d_utils: + tag: release/noetic/nav_2d_utils/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +nav_core: + tag: release/noetic/nav_core/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +nav_core2: + tag: release/noetic/nav_core2/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +nav_core_adapter: + tag: release/noetic/nav_core_adapter/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +nav_grid: + tag: release/noetic/nav_grid/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +nav_grid_iterators: + tag: release/noetic/nav_grid_iterators/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +nav_grid_pub_sub: + tag: release/noetic/nav_grid_pub_sub/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +nav_grid_server: + tag: release/noetic/nav_grid_server/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +nav_msgs: + tag: release/noetic/nav_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +navfn: + tag: release/noetic/navfn/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +navigation: + tag: release/noetic/navigation/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +navigation_experimental: + tag: release/noetic/navigation_experimental/0.4.1-1 + url: https://github.com/ros-gbp/navigation_experimental-release.git + version: 0.4.1 +ncd_parser: + tag: release/noetic/ncd_parser/0.4.0-1 + url: https://github.com/ros-gbp/scan_tools-release.git + version: 0.4.0 +neo_local_planner: + tag: release/noetic/neo_local_planner/1.0.1-1 + url: https://github.com/neobotix/neo_local_planner-release.git + version: 1.0.1 +neobotix_usboard_msgs: + tag: release/noetic/neobotix_usboard_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +neonavigation: + tag: release/noetic/neonavigation/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +neonavigation_common: + tag: release/noetic/neonavigation_common/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +neonavigation_launch: + tag: release/noetic/neonavigation_launch/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +neonavigation_metrics_msgs: + tag: release/noetic/neonavigation_metrics_msgs/0.14.0-1 + url: https://github.com/at-wat/neonavigation_msgs-release.git + version: 0.14.0 +neonavigation_msgs: + tag: release/noetic/neonavigation_msgs/0.14.0-1 + url: https://github.com/at-wat/neonavigation_msgs-release.git + version: 0.14.0 +neonavigation_rviz_plugins: + tag: release/noetic/neonavigation_rviz_plugins/0.17.1-1 + url: https://github.com/at-wat/neonavigation_rviz_plugins-release.git + version: 0.17.1 +nerian_stereo: + tag: release/noetic/nerian_stereo/3.11.1-2 + url: https://github.com/nerian-vision/nerian_stereo-release.git + version: 3.11.1 +network_interface: + tag: release/noetic/network_interface/3.1.0-1 + url: https://github.com/astuff/network_interface-release.git + version: 3.1.0 +nfc_ros: + tag: release/noetic/nfc_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +nicla_vision_ros: + tag: release/noetic/nicla_vision_ros/1.0.2-1 + url: https://github.com/ADVRHumanoids/nicla_vision_ros-release.git + version: 1.0.2 +nmea_comms: + tag: release/noetic/nmea_comms/1.2.0-3 + url: https://github.com/ros-drivers-gbp/nmea_comms-release.git + version: 1.2.0 +nmea_msgs: + tag: release/noetic/nmea_msgs/1.1.0-1 + url: https://github.com/ros-drivers-gbp/nmea_msgs-release.git + version: 1.1.0 +nmea_navsat_driver: + tag: release/noetic/nmea_navsat_driver/0.6.1-2 + url: https://github.com/ros-drivers-gbp/nmea_navsat_driver-release.git + version: 0.6.1 +nodelet: + tag: release/noetic/nodelet/1.11.2-1 + url: https://github.com/ros-gbp/nodelet_core-release.git + version: 1.11.2 +nodelet_core: + tag: release/noetic/nodelet_core/1.11.2-1 + url: https://github.com/ros-gbp/nodelet_core-release.git + version: 1.11.2 +nodelet_topic_tools: + tag: release/noetic/nodelet_topic_tools/1.11.2-1 + url: https://github.com/ros-gbp/nodelet_core-release.git + version: 1.11.2 +nodelet_tutorial_math: + tag: release/noetic/nodelet_tutorial_math/0.2.0-1 + url: https://github.com/ros-gbp/common_tutorials-release.git + version: 0.2.0 +nonpersistent_voxel_layer: + tag: release/noetic/nonpersistent_voxel_layer/1.3.0-2 + url: https://github.com/SteveMacenski/nonpersistent_voxel_layer-release.git + version: 1.3.0 +novatel_gps_driver: + tag: release/noetic/novatel_gps_driver/3.9.0-2 + url: https://github.com/swri-robotics-gbp/novatel_gps_driver-release.git + version: 3.9.0 +novatel_gps_msgs: + tag: release/noetic/novatel_gps_msgs/3.9.0-2 + url: https://github.com/swri-robotics-gbp/novatel_gps_driver-release.git + version: 3.9.0 +novatel_oem7_driver: + tag: release/noetic/novatel_oem7_driver/4.3.0-5 + url: https://github.com/novatel-gbp/novatel_oem7_driver-release.git + version: 4.3.0 +novatel_oem7_msgs: + tag: release/noetic/novatel_oem7_msgs/4.3.0-5 + url: https://github.com/novatel-gbp/novatel_oem7_driver-release.git + version: 4.3.0 +ntpd_driver: + tag: release/noetic/ntpd_driver/1.3.0-1 + url: https://github.com/vooon/ntpd_driver-release.git + version: 1.3.0 +ntrip_client: + tag: release/noetic/ntrip_client/1.4.1-1 + url: https://github.com/LORD-MicroStrain/ntrip_client-release.git + version: 1.4.1 +obj_to_pointcloud: + tag: release/noetic/obj_to_pointcloud/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +object_recognition_msgs: + tag: release/noetic/object_recognition_msgs/0.4.2-1 + url: https://github.com/ros-gbp/object_recognition_msgs-release.git + version: 0.4.2 +ocean_battery_driver: + tag: release/noetic/ocean_battery_driver/1.1.10-1 + url: https://github.com/pr2-gbp/pr2_power_drivers-release.git + version: 1.1.10 +octomap: + tag: release/noetic/octomap/1.9.8-1 + url: https://github.com/ros-gbp/octomap-release.git + version: 1.9.8 +octomap_mapping: + tag: release/noetic/octomap_mapping/0.6.8-1 + url: https://github.com/ros-gbp/octomap_mapping-release.git + version: 0.6.8 +octomap_msgs: + tag: release/noetic/octomap_msgs/0.3.5-1 + url: https://github.com/ros-gbp/octomap_msgs-release.git + version: 0.3.5 +octomap_ros: + tag: release/noetic/octomap_ros/0.4.1-1 + url: https://github.com/ros-gbp/octomap_ros-release.git + version: 0.4.1 +octomap_rviz_plugins: + tag: release/noetic/octomap_rviz_plugins/0.2.4-1 + url: https://github.com/ros-gbp/octomap_rviz_plugins-release.git + version: 0.2.4 +octomap_server: + tag: release/noetic/octomap_server/0.6.8-1 + url: https://github.com/ros-gbp/octomap_mapping-release.git + version: 0.6.8 +octovis: + tag: release/noetic/octovis/1.9.8-1 + url: https://github.com/ros-gbp/octomap-release.git + version: 1.9.8 +odva_ethernetip: + tag: release/noetic/odva_ethernetip/0.1.5-1 + url: https://github.com/ros-drivers-gbp/odva_ethernetip-release.git + version: 0.1.5 +oled_display_node: + tag: release/noetic/oled_display_node/1.0.0-1 + url: https://github.com/UbiquityRobotics-release/oled_display_node-release.git + version: 1.0.0 +ompl: + tag: release/noetic/ompl/1.6.0-1 + url: https://github.com/ros-gbp/ompl-release.git + version: 1.6.0 +omron_os32c_driver: + tag: release/noetic/omron_os32c_driver/1.1.0-1 + url: https://github.com/ros-drivers-gbp/omron-release.git + version: 1.1.0 +open_karto: + tag: release/noetic/open_karto/1.2.2-1 + url: https://github.com/ros-gbp/open_karto-release.git + version: 1.2.2 +open_manipulator_gazebo: + tag: release/noetic/open_manipulator_gazebo/1.1.1-1 + url: https://github.com/ROBOTIS-GIT-release/open_manipulator_simulations-release.git + version: 1.1.1 +open_manipulator_msgs: + tag: release/noetic/open_manipulator_msgs/1.0.1-1 + url: https://github.com/ROBOTIS-GIT-release/open_manipulator_msgs-release.git + version: 1.0.1 +open_manipulator_p_gazebo: + tag: release/noetic/open_manipulator_p_gazebo/1.0.1-1 + url: https://github.com/ROBOTIS-GIT-release/open_manipulator_p_simulations-release.git + version: 1.0.1 +open_manipulator_p_simulations: + tag: release/noetic/open_manipulator_p_simulations/1.0.1-1 + url: https://github.com/ROBOTIS-GIT-release/open_manipulator_p_simulations-release.git + version: 1.0.1 +open_manipulator_simulations: + tag: release/noetic/open_manipulator_simulations/1.1.1-1 + url: https://github.com/ROBOTIS-GIT-release/open_manipulator_simulations-release.git + version: 1.1.1 +opencv_apps: + tag: release/noetic/opencv_apps/2.0.2-1 + url: https://github.com/ros-perception/opencv_apps-release.git + version: 2.0.2 +opengm: + tag: release/noetic/opengm/0.6.19-1 + url: https://github.com/ipa320/cob_extern-release.git + version: 0.6.19 +openhrp3: + tag: release/noetic/openhrp3/3.1.10-2 + url: https://github.com/tork-a/openhrp3-release.git + version: 3.1.10 +openni2_camera: + tag: release/noetic/openni2_camera/1.6.1-1 + url: https://github.com/ros-gbp/openni2_camera-release.git + version: 1.6.1 +openni2_launch: + tag: release/noetic/openni2_launch/1.6.1-1 + url: https://github.com/ros-gbp/openni2_camera-release.git + version: 1.6.1 +openni_camera: + tag: release/noetic/openni_camera/1.11.1-1 + url: https://github.com/ros-gbp/openni_camera-release.git + version: 1.11.1 +openni_description: + tag: release/noetic/openni_description/1.11.1-1 + url: https://github.com/ros-gbp/openni_camera-release.git + version: 1.11.1 +openni_launch: + tag: release/noetic/openni_launch/1.11.1-1 + url: https://github.com/ros-gbp/openni_camera-release.git + version: 1.11.1 +openrtm_aist: + tag: release/noetic/openrtm_aist/1.1.2-5 + url: https://github.com/tork-a/openrtm_aist-release.git + version: 1.1.2 +openrtm_aist_python: + tag: release/noetic/openrtm_aist_python/1.1.0-8 + url: https://github.com/tork-a/openrtm_aist_python-release.git + version: 1.1.0 +openslam_gmapping: + tag: release/noetic/openslam_gmapping/0.2.1-1 + url: https://github.com/ros-gbp/openslam_gmapping-release.git + version: 0.2.1 +openzen_sensor: + tag: release/noetic/openzen_sensor/1.2.0-1 + url: https://github.com/lp-research/openzen_sensor-release.git + version: 1.2.0 +opt_camera: + tag: release/noetic/opt_camera/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +opw_kinematics: + tag: release/noetic/opw_kinematics/0.5.0-1 + url: https://github.com/ros-industrial-release/opw_kinematics-release.git + version: 0.5.0 +ortools_vendor: + tag: release/noetic/ortools_vendor/9.9.0-6 + url: https://github.com/ros2-gbp/ortools_vendor-release.git + version: 9.9.0 +osm_cartography: + tag: release/noetic/osm_cartography/0.3.0-1 + url: https://github.com/ros-geographic-info/open_street_map-release.git + version: 0.3.0 +osqp: + tag: release/noetic/osqp/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +osqp_vendor: + tag: release/noetic/osqp_vendor/0.2.0-1 + url: https://github.com/tier4/osqp_vendor-release.git + version: 0.2.0 +oxford_gps_eth: + tag: release/noetic/oxford_gps_eth/1.2.1-1 + url: https://github.com/DataspeedInc-release/oxford_gps_eth-release.git + version: 1.2.1 +p2os_doc: + tag: release/noetic/p2os_doc/2.2.1-2 + url: https://github.com/allenh1/p2os-release.git + version: 2.2.1 +p2os_driver: + tag: release/noetic/p2os_driver/2.2.1-2 + url: https://github.com/allenh1/p2os-release.git + version: 2.2.1 +p2os_launch: + tag: release/noetic/p2os_launch/2.2.1-2 + url: https://github.com/allenh1/p2os-release.git + version: 2.2.1 +p2os_msgs: + tag: release/noetic/p2os_msgs/2.2.1-2 + url: https://github.com/allenh1/p2os-release.git + version: 2.2.1 +p2os_teleop: + tag: release/noetic/p2os_teleop/2.2.1-2 + url: https://github.com/allenh1/p2os-release.git + version: 2.2.1 +p2os_urdf: + tag: release/noetic/p2os_urdf/2.2.1-2 + url: https://github.com/allenh1/p2os-release.git + version: 2.2.1 +pacmod_msgs: + tag: release/noetic/pacmod_msgs/3.3.0-1 + url: https://github.com/astuff/astuff_sensor_msgs-release.git + version: 3.3.0 +paho-mqtt-c: + tag: release/noetic/paho-mqtt-c/1.3.13-1 + url: https://github.com/nobleo/paho.mqtt.c-release.git + version: 1.3.13 +paho-mqtt-cpp: + tag: release/noetic/paho-mqtt-cpp/1.3.1-1 + url: https://github.com/nobleo/paho.mqtt.cpp-release.git + version: 1.3.1 +pal_carbon_collector: + tag: release/noetic/pal_carbon_collector/1.5.1-1 + url: https://github.com/pal-gbp/pal_statistics-release.git + version: 1.5.1 +pal_statistics: + tag: release/noetic/pal_statistics/1.5.1-1 + url: https://github.com/pal-gbp/pal_statistics-release.git + version: 1.5.1 +pal_statistics_msgs: + tag: release/noetic/pal_statistics_msgs/1.5.1-1 + url: https://github.com/pal-gbp/pal_statistics-release.git + version: 1.5.1 +panda_moveit_config: + tag: release/noetic/panda_moveit_config/0.8.1-1 + url: https://github.com/ros-gbp/panda_moveit_config-release.git + version: 0.8.1 +parameter_pa: + tag: release/noetic/parameter_pa/1.2.3-2 + url: https://github.com/TUC-ProAut/ros_parameter-release.git + version: 1.2.3 +pass_through_controllers: + tag: release/noetic/pass_through_controllers/0.1.0-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_passthrough_controllers-release.git + version: 0.1.0 +pcl_conversions: + tag: release/noetic/pcl_conversions/1.7.4-1 + url: https://github.com/ros-gbp/perception_pcl-release.git + version: 1.7.4 +pcl_msgs: + tag: release/noetic/pcl_msgs/0.3.0-1 + url: https://github.com/ros-gbp/pcl_msgs-release.git + version: 0.3.0 +pcl_ros: + tag: release/noetic/pcl_ros/1.7.4-1 + url: https://github.com/ros-gbp/perception_pcl-release.git + version: 1.7.4 +pddl_msgs: + tag: release/noetic/pddl_msgs/0.1.14-1 + url: https://github.com/tork-a/jsk_planning-release.git + version: 0.1.14 +pddl_planner: + tag: release/noetic/pddl_planner/0.1.14-1 + url: https://github.com/tork-a/jsk_planning-release.git + version: 0.1.14 +pddl_planner_viewer: + tag: release/noetic/pddl_planner_viewer/0.1.14-1 + url: https://github.com/tork-a/jsk_planning-release.git + version: 0.1.14 +people: + tag: release/noetic/people/1.4.2-1 + url: https://github.com/OSUrobotics/people-release.git + version: 1.4.2 +people_msgs: + tag: release/noetic/people_msgs/1.4.2-1 + url: https://github.com/OSUrobotics/people-release.git + version: 1.4.2 +people_tracking_filter: + tag: release/noetic/people_tracking_filter/1.4.2-1 + url: https://github.com/OSUrobotics/people-release.git + version: 1.4.2 +people_velocity_tracker: + tag: release/noetic/people_velocity_tracker/1.4.2-1 + url: https://github.com/OSUrobotics/people-release.git + version: 1.4.2 +pepper_meshes: + tag: release/noetic/pepper_meshes/0.2.5-0 + url: https://github.com/ros-naoqi/pepper_meshes-release.git + version: 0.2.5 +perception: + tag: release/noetic/perception/1.5.0-1 + url: https://github.com/ros-gbp/metapackages-release.git + version: 1.5.0 +perception_pcl: + tag: release/noetic/perception_pcl/1.7.4-1 + url: https://github.com/ros-gbp/perception_pcl-release.git + version: 1.7.4 +pf_description: + tag: release/noetic/pf_description/1.2.0-1 + url: https://github.com/PepperlFuchs/pf_lidar_ros_driver-release.git + version: 1.2.0 +pf_driver: + tag: release/noetic/pf_driver/1.2.0-1 + url: https://github.com/PepperlFuchs/pf_lidar_ros_driver-release.git + version: 1.2.0 +pgm_learner: + tag: release/noetic/pgm_learner/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +phidgets_accelerometer: + tag: release/noetic/phidgets_accelerometer/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_analog_inputs: + tag: release/noetic/phidgets_analog_inputs/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_analog_outputs: + tag: release/noetic/phidgets_analog_outputs/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_api: + tag: release/noetic/phidgets_api/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_current_inputs: + tag: release/noetic/phidgets_current_inputs/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_digital_inputs: + tag: release/noetic/phidgets_digital_inputs/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_digital_outputs: + tag: release/noetic/phidgets_digital_outputs/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_drivers: + tag: release/noetic/phidgets_drivers/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_gyroscope: + tag: release/noetic/phidgets_gyroscope/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_high_speed_encoder: + tag: release/noetic/phidgets_high_speed_encoder/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_humidity: + tag: release/noetic/phidgets_humidity/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_ik: + tag: release/noetic/phidgets_ik/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_magnetometer: + tag: release/noetic/phidgets_magnetometer/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_motors: + tag: release/noetic/phidgets_motors/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_msgs: + tag: release/noetic/phidgets_msgs/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_spatial: + tag: release/noetic/phidgets_spatial/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +phidgets_temperature: + tag: release/noetic/phidgets_temperature/1.0.10-1 + url: https://github.com/ros-drivers-gbp/phidgets_drivers-release.git + version: 1.0.10 +picovoice_driver: + tag: release/noetic/picovoice_driver/1.0.1-1 + url: https://github.com/reinzor/picovoice_ros-release.git + version: 1.0.1 +picovoice_msgs: + tag: release/noetic/picovoice_msgs/1.0.1-1 + url: https://github.com/reinzor/picovoice_ros-release.git + version: 1.0.1 +pid: + tag: release/noetic/pid/0.0.28-1 + url: https://github.com/AndyZe/pid-release.git + version: 0.0.28 +pilz_control: + tag: release/noetic/pilz_control/0.6.0-1 + url: https://github.com/PilzDE/pilz_robots-release.git + version: 0.6.0 +pilz_industrial_motion: + tag: release/noetic/pilz_industrial_motion/0.5.0-4 + url: https://github.com/PilzDE/pilz_industrial_motion-release.git + version: 0.5.0 +pilz_industrial_motion_planner: + tag: release/noetic/pilz_industrial_motion_planner/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +pilz_industrial_motion_planner_testutils: + tag: release/noetic/pilz_industrial_motion_planner_testutils/1.1.16-1 + url: https://github.com/ros-gbp/moveit-release.git + version: 1.1.16 +pilz_industrial_motion_testutils: + tag: release/noetic/pilz_industrial_motion_testutils/0.7.2-1 + url: https://github.com/PilzDE/pilz_common-release.git + version: 0.7.2 +pilz_msgs: + tag: release/noetic/pilz_msgs/0.7.2-1 + url: https://github.com/PilzDE/pilz_common-release.git + version: 0.7.2 +pilz_robot_programming: + tag: release/noetic/pilz_robot_programming/0.5.0-4 + url: https://github.com/PilzDE/pilz_industrial_motion-release.git + version: 0.5.0 +pilz_robots: + tag: release/noetic/pilz_robots/0.6.0-1 + url: https://github.com/PilzDE/pilz_robots-release.git + version: 0.6.0 +pilz_status_indicator_rqt: + tag: release/noetic/pilz_status_indicator_rqt/0.6.0-1 + url: https://github.com/PilzDE/pilz_robots-release.git + version: 0.6.0 +pilz_testutils: + tag: release/noetic/pilz_testutils/0.7.2-1 + url: https://github.com/PilzDE/pilz_common-release.git + version: 0.7.2 +pilz_utils: + tag: release/noetic/pilz_utils/0.7.2-1 + url: https://github.com/PilzDE/pilz_common-release.git + version: 0.7.2 +pincher_arm: + tag: release/noetic/pincher_arm/0.2.0-1 + url: https://github.com/fictionlab-gbp/pincher_arm-release.git + version: 0.2.0 +pincher_arm_bringup: + tag: release/noetic/pincher_arm_bringup/0.2.0-1 + url: https://github.com/fictionlab-gbp/pincher_arm-release.git + version: 0.2.0 +pincher_arm_description: + tag: release/noetic/pincher_arm_description/0.2.0-1 + url: https://github.com/fictionlab-gbp/pincher_arm-release.git + version: 0.2.0 +pincher_arm_ikfast_plugin: + tag: release/noetic/pincher_arm_ikfast_plugin/0.2.0-1 + url: https://github.com/fictionlab-gbp/pincher_arm-release.git + version: 0.2.0 +pincher_arm_moveit_config: + tag: release/noetic/pincher_arm_moveit_config/0.2.0-1 + url: https://github.com/fictionlab-gbp/pincher_arm-release.git + version: 0.2.0 +pincher_arm_moveit_demos: + tag: release/noetic/pincher_arm_moveit_demos/0.2.0-1 + url: https://github.com/fictionlab-gbp/pincher_arm-release.git + version: 0.2.0 +pinocchio: + tag: release/noetic/pinocchio/3.3.0-1 + url: https://github.com/stack-of-tasks/pinocchio-ros-release.git + version: 3.3.0 +planner_cspace: + tag: release/noetic/planner_cspace/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +planner_cspace_msgs: + tag: release/noetic/planner_cspace_msgs/0.14.0-1 + url: https://github.com/at-wat/neonavigation_msgs-release.git + version: 0.14.0 +plotjuggler: + tag: release/noetic/plotjuggler/3.9.1-1 + url: https://github.com/facontidavide/plotjuggler-release.git + version: 3.9.1 +plotjuggler_msgs: + tag: release/noetic/plotjuggler_msgs/0.2.1-1 + url: https://github.com/facontidavide/plotjuggler_msgs-release.git + version: 0.2.1 +plotjuggler_ros: + tag: release/noetic/plotjuggler_ros/2.1.1-2 + url: https://github.com/PlotJuggler/plotjuggler-ros-plugins-release.git + version: 2.1.1 +pluginlib: + tag: release/noetic/pluginlib/1.13.2-1 + url: https://github.com/ros-gbp/pluginlib-release.git + version: 1.13.2 +pluginlib_tutorials: + tag: release/noetic/pluginlib_tutorials/0.2.0-1 + url: https://github.com/ros-gbp/common_tutorials-release.git + version: 0.2.0 +point_cloud2_filters: + tag: release/noetic/point_cloud2_filters/1.0.3-1 + url: https://github.com/ADVRHumanoids/point_cloud2_filters-release.git + version: 1.0.3 +point_cloud_color: + tag: release/noetic/point_cloud_color/1.2.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/point_cloud_color.git + version: 1.2.1 +point_cloud_transport: + tag: release/noetic/point_cloud_transport/1.0.11-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/point_cloud_transport.git + version: 1.0.11 +point_cloud_transport_plugins: + tag: release/noetic/point_cloud_transport_plugins/1.0.5-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/point_cloud_transport_plugins.git + version: 1.0.5 +pointcloud_to_laserscan: + tag: release/noetic/pointcloud_to_laserscan/1.4.1-1 + url: https://github.com/ros-gbp/pointcloud_to_laserscan-release.git + version: 1.4.1 +pointgrey_camera_description: + tag: release/noetic/pointgrey_camera_description/0.15.1-1 + url: https://github.com/ros-drivers-gbp/pointgrey_camera_driver-release.git + version: 0.15.1 +pointgrey_camera_driver: + tag: release/noetic/pointgrey_camera_driver/0.15.1-1 + url: https://github.com/ros-drivers-gbp/pointgrey_camera_driver-release.git + version: 0.15.1 +points_preprocessor: + tag: release/noetic/points_preprocessor/1.14.14-3 + url: https://github.com/nobleo/core_perception-release.git + version: 1.14.14 +polar_scan_matcher: + tag: release/noetic/polar_scan_matcher/0.4.0-1 + url: https://github.com/ros-gbp/scan_tools-release.git + version: 0.4.0 +polled_camera: + tag: release/noetic/polled_camera/1.12.1-1 + url: https://github.com/ros-gbp/image_common-release.git + version: 1.12.1 +pose_base_controller: + tag: release/noetic/pose_base_controller/0.4.1-1 + url: https://github.com/ros-gbp/navigation_experimental-release.git + version: 0.4.1 +pose_cov_ops: + tag: release/noetic/pose_cov_ops/0.3.13-1 + url: https://github.com/mrpt-ros-pkg-release/pose_cov_ops-release.git + version: 0.3.13 +pose_follower: + tag: release/noetic/pose_follower/0.4.1-1 + url: https://github.com/ros-gbp/navigation_experimental-release.git + version: 0.4.1 +posedetection_msgs: + tag: release/noetic/posedetection_msgs/4.3.2-1 + url: https://github.com/tork-a/jsk_common_msgs-release.git + version: 4.3.2 +position_controllers: + tag: release/noetic/position_controllers/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +power_monitor: + tag: release/noetic/power_monitor/1.1.10-1 + url: https://github.com/pr2-gbp/pr2_power_drivers-release.git + version: 1.1.10 +power_msgs: + tag: release/noetic/power_msgs/0.4.2-1 + url: https://github.com/fetchrobotics-gbp/power_msgs-release.git + version: 0.4.2 +pr2_app_manager: + tag: release/noetic/pr2_app_manager/0.6.2-1 + url: https://github.com/pr2-gbp/pr2_apps-release.git + version: 0.6.2 +pr2_apps: + tag: release/noetic/pr2_apps/0.6.2-1 + url: https://github.com/pr2-gbp/pr2_apps-release.git + version: 0.6.2 +pr2_arm_kinematics: + tag: release/noetic/pr2_arm_kinematics/1.0.11-1 + url: https://github.com/pr2-gbp/pr2_kinematics-release.git + version: 1.0.11 +pr2_arm_move_ik: + tag: release/noetic/pr2_arm_move_ik/0.0.12-1 + url: https://github.com/pr2-gbp/pr2_common_actions-release.git + version: 0.0.12 +pr2_bringup: + tag: release/noetic/pr2_bringup/1.6.32-1 + url: https://github.com/pr2-gbp/pr2_robot-release.git + version: 1.6.32 +pr2_bringup_tests: + tag: release/noetic/pr2_bringup_tests/1.0.15-1 + url: https://github.com/pr2-gbp/pr2_self_test-release.git + version: 1.0.15 +pr2_calibration_controllers: + tag: release/noetic/pr2_calibration_controllers/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +pr2_camera_synchronizer: + tag: release/noetic/pr2_camera_synchronizer/1.6.32-1 + url: https://github.com/pr2-gbp/pr2_robot-release.git + version: 1.6.32 +pr2_common: + tag: release/noetic/pr2_common/1.13.1-1 + url: https://github.com/pr2-gbp/pr2_common-release.git + version: 1.13.1 +pr2_common_action_msgs: + tag: release/noetic/pr2_common_action_msgs/0.0.12-1 + url: https://github.com/pr2-gbp/pr2_common_actions-release.git + version: 0.0.12 +pr2_common_actions: + tag: release/noetic/pr2_common_actions/0.0.12-1 + url: https://github.com/pr2-gbp/pr2_common_actions-release.git + version: 0.0.12 +pr2_computer_monitor: + tag: release/noetic/pr2_computer_monitor/1.6.32-1 + url: https://github.com/pr2-gbp/pr2_robot-release.git + version: 1.6.32 +pr2_controller_configuration: + tag: release/noetic/pr2_controller_configuration/1.6.32-1 + url: https://github.com/pr2-gbp/pr2_robot-release.git + version: 1.6.32 +pr2_controller_configuration_gazebo: + tag: release/noetic/pr2_controller_configuration_gazebo/2.1.0-1 + url: https://github.com/pr2-gbp/pr2_simulator-release.git + version: 2.1.0 +pr2_controller_interface: + tag: release/noetic/pr2_controller_interface/1.8.21-1 + url: https://github.com/pr2-gbp/pr2_mechanism-release.git + version: 1.8.21 +pr2_controller_manager: + tag: release/noetic/pr2_controller_manager/1.8.21-1 + url: https://github.com/pr2-gbp/pr2_mechanism-release.git + version: 1.8.21 +pr2_controllers: + tag: release/noetic/pr2_controllers/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +pr2_controllers_msgs: + tag: release/noetic/pr2_controllers_msgs/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +pr2_counterbalance_check: + tag: release/noetic/pr2_counterbalance_check/1.0.15-1 + url: https://github.com/pr2-gbp/pr2_self_test-release.git + version: 1.0.15 +pr2_dashboard_aggregator: + tag: release/noetic/pr2_dashboard_aggregator/1.13.1-1 + url: https://github.com/pr2-gbp/pr2_common-release.git + version: 1.13.1 +pr2_description: + tag: release/noetic/pr2_description/1.13.1-1 + url: https://github.com/pr2-gbp/pr2_common-release.git + version: 1.13.1 +pr2_ethercat: + tag: release/noetic/pr2_ethercat/1.6.32-1 + url: https://github.com/pr2-gbp/pr2_robot-release.git + version: 1.6.32 +pr2_ethercat_drivers: + tag: release/noetic/pr2_ethercat_drivers/1.9.0-1 + url: https://github.com/pr2-gbp/pr2_ethercat_drivers-release.git + version: 1.9.0 +pr2_gazebo: + tag: release/noetic/pr2_gazebo/2.1.0-1 + url: https://github.com/pr2-gbp/pr2_simulator-release.git + version: 2.1.0 +pr2_gazebo_plugins: + tag: release/noetic/pr2_gazebo_plugins/2.1.0-1 + url: https://github.com/pr2-gbp/pr2_simulator-release.git + version: 2.1.0 +pr2_gripper_action: + tag: release/noetic/pr2_gripper_action/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +pr2_gripper_sensor: + tag: release/noetic/pr2_gripper_sensor/1.0.12-1 + url: https://github.com/pr2-gbp/pr2_gripper_sensor-release.git + version: 1.0.12 +pr2_gripper_sensor_action: + tag: release/noetic/pr2_gripper_sensor_action/1.0.12-1 + url: https://github.com/pr2-gbp/pr2_gripper_sensor-release.git + version: 1.0.12 +pr2_gripper_sensor_controller: + tag: release/noetic/pr2_gripper_sensor_controller/1.0.12-1 + url: https://github.com/pr2-gbp/pr2_gripper_sensor-release.git + version: 1.0.12 +pr2_gripper_sensor_msgs: + tag: release/noetic/pr2_gripper_sensor_msgs/1.0.12-1 + url: https://github.com/pr2-gbp/pr2_gripper_sensor-release.git + version: 1.0.12 +pr2_hardware_interface: + tag: release/noetic/pr2_hardware_interface/1.8.21-1 + url: https://github.com/pr2-gbp/pr2_mechanism-release.git + version: 1.8.21 +pr2_head_action: + tag: release/noetic/pr2_head_action/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +pr2_kinematics: + tag: release/noetic/pr2_kinematics/1.0.11-1 + url: https://github.com/pr2-gbp/pr2_kinematics-release.git + version: 1.0.11 +pr2_machine: + tag: release/noetic/pr2_machine/1.13.1-1 + url: https://github.com/pr2-gbp/pr2_common-release.git + version: 1.13.1 +pr2_mannequin_mode: + tag: release/noetic/pr2_mannequin_mode/0.6.2-1 + url: https://github.com/pr2-gbp/pr2_apps-release.git + version: 0.6.2 +pr2_mechanism: + tag: release/noetic/pr2_mechanism/1.8.21-1 + url: https://github.com/pr2-gbp/pr2_mechanism-release.git + version: 1.8.21 +pr2_mechanism_controllers: + tag: release/noetic/pr2_mechanism_controllers/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +pr2_mechanism_diagnostics: + tag: release/noetic/pr2_mechanism_diagnostics/1.8.21-1 + url: https://github.com/pr2-gbp/pr2_mechanism-release.git + version: 1.8.21 +pr2_mechanism_model: + tag: release/noetic/pr2_mechanism_model/1.8.21-1 + url: https://github.com/pr2-gbp/pr2_mechanism-release.git + version: 1.8.21 +pr2_mechanism_msgs: + tag: release/noetic/pr2_mechanism_msgs/1.8.2-1 + url: https://github.com/ros-gbp/pr2_mechanism_msgs-release.git + version: 1.8.2 +pr2_motor_diagnostic_tool: + tag: release/noetic/pr2_motor_diagnostic_tool/1.0.15-1 + url: https://github.com/pr2-gbp/pr2_self_test-release.git + version: 1.0.15 +pr2_move_base: + tag: release/noetic/pr2_move_base/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_msgs: + tag: release/noetic/pr2_msgs/1.13.1-1 + url: https://github.com/pr2-gbp/pr2_common-release.git + version: 1.13.1 +pr2_navigation: + tag: release/noetic/pr2_navigation/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_navigation_config: + tag: release/noetic/pr2_navigation_config/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_navigation_global: + tag: release/noetic/pr2_navigation_global/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_navigation_local: + tag: release/noetic/pr2_navigation_local/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_navigation_perception: + tag: release/noetic/pr2_navigation_perception/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_navigation_self_filter: + tag: release/noetic/pr2_navigation_self_filter/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_navigation_slam: + tag: release/noetic/pr2_navigation_slam/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_navigation_teleop: + tag: release/noetic/pr2_navigation_teleop/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +pr2_position_scripts: + tag: release/noetic/pr2_position_scripts/0.6.2-1 + url: https://github.com/pr2-gbp/pr2_apps-release.git + version: 0.6.2 +pr2_power_board: + tag: release/noetic/pr2_power_board/1.1.10-1 + url: https://github.com/pr2-gbp/pr2_power_drivers-release.git + version: 1.1.10 +pr2_power_drivers: + tag: release/noetic/pr2_power_drivers/1.1.10-1 + url: https://github.com/pr2-gbp/pr2_power_drivers-release.git + version: 1.1.10 +pr2_robot: + tag: release/noetic/pr2_robot/1.6.32-1 + url: https://github.com/pr2-gbp/pr2_robot-release.git + version: 1.6.32 +pr2_run_stop_auto_restart: + tag: release/noetic/pr2_run_stop_auto_restart/1.6.32-1 + url: https://github.com/pr2-gbp/pr2_robot-release.git + version: 1.6.32 +pr2_self_test: + tag: release/noetic/pr2_self_test/1.0.15-1 + url: https://github.com/pr2-gbp/pr2_self_test-release.git + version: 1.0.15 +pr2_self_test_msgs: + tag: release/noetic/pr2_self_test_msgs/1.0.15-1 + url: https://github.com/pr2-gbp/pr2_self_test-release.git + version: 1.0.15 +pr2_simulator: + tag: release/noetic/pr2_simulator/2.1.0-1 + url: https://github.com/pr2-gbp/pr2_simulator-release.git + version: 2.1.0 +pr2_teleop: + tag: release/noetic/pr2_teleop/0.6.2-1 + url: https://github.com/pr2-gbp/pr2_apps-release.git + version: 0.6.2 +pr2_tilt_laser_interface: + tag: release/noetic/pr2_tilt_laser_interface/0.0.12-1 + url: https://github.com/pr2-gbp/pr2_common_actions-release.git + version: 0.0.12 +pr2_tuck_arms_action: + tag: release/noetic/pr2_tuck_arms_action/0.0.12-1 + url: https://github.com/pr2-gbp/pr2_common_actions-release.git + version: 0.0.12 +pr2_tuckarm: + tag: release/noetic/pr2_tuckarm/0.6.2-1 + url: https://github.com/pr2-gbp/pr2_apps-release.git + version: 0.6.2 +pr2eus: + tag: release/noetic/pr2eus/0.3.15-4 + url: https://github.com/tork-a/jsk_pr2eus-release.git + version: 0.3.15 +pr2eus_moveit: + tag: release/noetic/pr2eus_moveit/0.3.15-4 + url: https://github.com/tork-a/jsk_pr2eus-release.git + version: 0.3.15 +prbt_gazebo: + tag: release/noetic/prbt_gazebo/0.6.0-1 + url: https://github.com/PilzDE/pilz_robots-release.git + version: 0.6.0 +prbt_grippers: + tag: release/noetic/prbt_grippers/0.0.5-2 + url: https://github.com/PilzDE/prbt_grippers-release.git + version: 0.0.5 +prbt_hardware_support: + tag: release/noetic/prbt_hardware_support/0.6.0-1 + url: https://github.com/PilzDE/pilz_robots-release.git + version: 0.6.0 +prbt_ikfast_manipulator_plugin: + tag: release/noetic/prbt_ikfast_manipulator_plugin/0.6.0-1 + url: https://github.com/PilzDE/pilz_robots-release.git + version: 0.6.0 +prbt_moveit_config: + tag: release/noetic/prbt_moveit_config/0.6.0-1 + url: https://github.com/PilzDE/pilz_robots-release.git + version: 0.6.0 +prbt_pg70_support: + tag: release/noetic/prbt_pg70_support/0.0.5-2 + url: https://github.com/PilzDE/prbt_grippers-release.git + version: 0.0.5 +prbt_support: + tag: release/noetic/prbt_support/0.6.0-1 + url: https://github.com/PilzDE/pilz_robots-release.git + version: 0.6.0 +prosilica_camera: + tag: release/noetic/prosilica_camera/1.9.5-1 + url: https://github.com/ros-drivers-gbp/prosilica_driver-release.git + version: 1.9.5 +prosilica_gige_sdk: + tag: release/noetic/prosilica_gige_sdk/1.26.3-2 + url: https://github.com/ros-drivers-gbp/prosilica_gige_sdk-release.git + version: 1.26.3 +psen_scan_v2: + tag: release/noetic/psen_scan_v2/0.10.2-1 + url: https://github.com/PilzDE/psen_scan_v2-release.git + version: 0.10.2 +py_binding_tools: + tag: release/noetic/py_binding_tools/1.0.0-1 + url: https://github.com/ros-gbp/py_binding_tools-release.git + version: 1.0.0 +py_trees: + tag: release/noetic/py_trees/0.7.6-2 + url: https://github.com/stonier/py_trees-release.git + version: 0.7.6 +py_trees_msgs: + tag: release/noetic/py_trees_msgs/0.3.7-2 + url: https://github.com/stonier/py_trees_msgs-release.git + version: 0.3.7 +py_trees_ros: + tag: release/noetic/py_trees_ros/0.6.1-1 + url: https://github.com/stonier/py_trees_ros-release.git + version: 0.6.1 +pybind11_catkin: + tag: release/noetic/pybind11_catkin/2.10.3-2 + url: https://github.com/wxmerkt/pybind11_catkin-release.git + version: 2.10.3 +pyhri: + tag: release/noetic/pyhri/0.4.1-1 + url: https://github.com/ros4hri/pyhri-release.git + version: 0.4.1 +pyquaternion: + tag: release/noetic/pyquaternion/0.9.6-1 + url: https://github.com/Achllle/pyquaternion-release.git + version: 0.9.6 +python_mrpt: + tag: release/noetic/python_mrpt/2.14.8-1 + url: https://github.com/mrpt-ros-pkg-release/python_mrpt_ros-release.git + version: 2.14.8 +python_qt_binding: + tag: release/noetic/python_qt_binding/0.4.6-1 + url: https://github.com/ros-gbp/python_qt_binding-release.git + version: 0.4.6 +qb_chain_control: + tag: release/noetic/qb_chain_control/2.2.3-1 + url: https://bitbucket.org/qbrobotics/qbchain-ros-release.git + version: 2.2.3 +qb_chain_description: + tag: release/noetic/qb_chain_description/2.2.3-1 + url: https://bitbucket.org/qbrobotics/qbchain-ros-release.git + version: 2.2.3 +qb_chain_msgs: + tag: release/noetic/qb_chain_msgs/2.2.3-1 + url: https://bitbucket.org/qbrobotics/qbchain-ros-release.git + version: 2.2.3 +qb_device: + tag: release/noetic/qb_device/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_bringup: + tag: release/noetic/qb_device_bringup/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_control: + tag: release/noetic/qb_device_control/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_description: + tag: release/noetic/qb_device_description/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_driver: + tag: release/noetic/qb_device_driver/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_gazebo: + tag: release/noetic/qb_device_gazebo/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_hardware_interface: + tag: release/noetic/qb_device_hardware_interface/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_msgs: + tag: release/noetic/qb_device_msgs/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_srvs: + tag: release/noetic/qb_device_srvs/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_device_utils: + tag: release/noetic/qb_device_utils/3.1.0-1 + url: https://bitbucket.org/qbrobotics/qbdevice-ros-release.git + version: 3.1.0 +qb_hand: + tag: release/noetic/qb_hand/3.0.3-1 + url: https://bitbucket.org/qbrobotics/qbhand-ros-release.git + version: 3.0.3 +qb_hand_control: + tag: release/noetic/qb_hand_control/3.0.3-1 + url: https://bitbucket.org/qbrobotics/qbhand-ros-release.git + version: 3.0.3 +qb_hand_description: + tag: release/noetic/qb_hand_description/3.0.3-1 + url: https://bitbucket.org/qbrobotics/qbhand-ros-release.git + version: 3.0.3 +qb_hand_gazebo: + tag: release/noetic/qb_hand_gazebo/3.0.3-1 + url: https://bitbucket.org/qbrobotics/qbhand-ros-release.git + version: 3.0.3 +qb_hand_hardware_interface: + tag: release/noetic/qb_hand_hardware_interface/3.0.3-1 + url: https://bitbucket.org/qbrobotics/qbhand-ros-release.git + version: 3.0.3 +qb_move: + tag: release/noetic/qb_move/3.0.3-2 + url: https://bitbucket.org/qbrobotics/qbmove-ros-release.git + version: 3.0.3 +qb_move_control: + tag: release/noetic/qb_move_control/3.0.3-2 + url: https://bitbucket.org/qbrobotics/qbmove-ros-release.git + version: 3.0.3 +qb_move_description: + tag: release/noetic/qb_move_description/3.0.3-2 + url: https://bitbucket.org/qbrobotics/qbmove-ros-release.git + version: 3.0.3 +qb_move_gazebo: + tag: release/noetic/qb_move_gazebo/3.0.3-2 + url: https://bitbucket.org/qbrobotics/qbmove-ros-release.git + version: 3.0.3 +qb_move_hardware_interface: + tag: release/noetic/qb_move_hardware_interface/3.0.3-2 + url: https://bitbucket.org/qbrobotics/qbmove-ros-release.git + version: 3.0.3 +qb_softhand_industry: + tag: release/noetic/qb_softhand_industry/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qb_softhand_industry_bringup: + tag: release/noetic/qb_softhand_industry_bringup/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qb_softhand_industry_control: + tag: release/noetic/qb_softhand_industry_control/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qb_softhand_industry_description: + tag: release/noetic/qb_softhand_industry_description/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qb_softhand_industry_driver: + tag: release/noetic/qb_softhand_industry_driver/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qb_softhand_industry_hardware_interface: + tag: release/noetic/qb_softhand_industry_hardware_interface/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qb_softhand_industry_msgs: + tag: release/noetic/qb_softhand_industry_msgs/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qb_softhand_industry_srvs: + tag: release/noetic/qb_softhand_industry_srvs/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qb_softhand_industry_utils: + tag: release/noetic/qb_softhand_industry_utils/1.2.5-1 + url: https://bitbucket.org/qbrobotics/qbshin-ros-release.git + version: 1.2.5 +qoi_image_transport: + tag: release/noetic/qoi_image_transport/1.0.4-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/qoi_image_transport.git + version: 1.0.4 +qpoases_vendor: + tag: release/noetic/qpoases_vendor/3.2.1-1 + url: https://github.com/autoware-ai/qpoases_vendor-release.git + version: 3.2.1 +qt_advanced_docking: + tag: release/noetic/qt_advanced_docking/3.8.2-7 + url: https://github.com/tesseract-robotics-release/qt_advanced_docking_system-release.git + version: 3.8.2 +qt_dotgraph: + tag: release/noetic/qt_dotgraph/0.4.5-1 + url: https://github.com/ros-gbp/qt_gui_core-release.git + version: 0.4.5 +qt_gui: + tag: release/noetic/qt_gui/0.4.5-1 + url: https://github.com/ros-gbp/qt_gui_core-release.git + version: 0.4.5 +qt_gui_app: + tag: release/noetic/qt_gui_app/0.4.5-1 + url: https://github.com/ros-gbp/qt_gui_core-release.git + version: 0.4.5 +qt_gui_core: + tag: release/noetic/qt_gui_core/0.4.5-1 + url: https://github.com/ros-gbp/qt_gui_core-release.git + version: 0.4.5 +qt_gui_cpp: + tag: release/noetic/qt_gui_cpp/0.4.5-1 + url: https://github.com/ros-gbp/qt_gui_core-release.git + version: 0.4.5 +qt_gui_py_common: + tag: release/noetic/qt_gui_py_common/0.4.5-1 + url: https://github.com/ros-gbp/qt_gui_core-release.git + version: 0.4.5 +quanergy_client: + tag: release/noetic/quanergy_client/5.0.0-1 + url: https://github.com/QuanergySystems/quanergy_client-release.git + version: 5.0.0 +quanergy_client_ros: + tag: release/noetic/quanergy_client_ros/4.0.1-1 + url: https://github.com/QuanergySystems/quanergy_client_ros-release.git + version: 4.0.1 +qwt_dependency: + tag: release/noetic/qwt_dependency/1.1.1-2 + url: https://github.com/ros-gbp/qwt_dependency-release.git + version: 1.1.1 +radar_msgs: + tag: release/noetic/radar_msgs/0.1.0-2 + url: https://github.com/ros2-gbp/radar_msgs-release.git + version: 0.1.0 +random_numbers: + tag: release/noetic/random_numbers/0.3.3-1 + url: https://github.com/ros-gbp/random_numbers-release.git + version: 0.3.3 +raw_description: + tag: release/noetic/raw_description/0.7.11-1 + url: https://github.com/4am-robotics/cob_common-release.git + version: 0.7.11 +razor_imu_9dof: + tag: release/noetic/razor_imu_9dof/1.3.0-2 + url: https://github.com/ENSTABretagneRobotics/razor_imu_9dof-release.git + version: 1.3.0 +rc_common_msgs: + tag: release/noetic/rc_common_msgs/0.5.3-1 + url: https://github.com/roboception-gbp/rc_common_msgs-release.git + version: 0.5.3 +rc_dynamics_api: + tag: release/noetic/rc_dynamics_api/0.10.1-1 + url: https://github.com/roboception-gbp/rc_dynamics_api-release.git + version: 0.10.1 +rc_genicam_api: + tag: release/noetic/rc_genicam_api/2.6.5-1 + url: https://github.com/roboception-gbp/rc_genicam_api-release.git + version: 2.6.5 +rc_genicam_camera: + tag: release/noetic/rc_genicam_camera/1.3.0-1 + url: https://github.com/roboception-gbp/rc_genicam_camera-release.git + version: 1.3.0 +rc_genicam_driver: + tag: release/noetic/rc_genicam_driver/0.7.0-1 + url: https://github.com/roboception-gbp/rc_genicam_driver_ros-release.git + version: 0.7.0 +rc_hand_eye_calibration_client: + tag: release/noetic/rc_hand_eye_calibration_client/3.3.2-1 + url: https://github.com/roboception-gbp/rc_visard-release.git + version: 3.3.2 +rc_pick_client: + tag: release/noetic/rc_pick_client/3.3.2-1 + url: https://github.com/roboception-gbp/rc_visard-release.git + version: 3.3.2 +rc_reason_clients: + tag: release/noetic/rc_reason_clients/0.4.0-2 + url: https://github.com/roboception-gbp/rc_reason_clients_ros-release.git + version: 0.4.0 +rc_reason_msgs: + tag: release/noetic/rc_reason_msgs/0.4.0-2 + url: https://github.com/roboception-gbp/rc_reason_clients_ros-release.git + version: 0.4.0 +rc_silhouettematch_client: + tag: release/noetic/rc_silhouettematch_client/3.3.2-1 + url: https://github.com/roboception-gbp/rc_visard-release.git + version: 3.3.2 +rc_tagdetect_client: + tag: release/noetic/rc_tagdetect_client/3.3.2-1 + url: https://github.com/roboception-gbp/rc_visard-release.git + version: 3.3.2 +rc_visard: + tag: release/noetic/rc_visard/3.3.2-1 + url: https://github.com/roboception-gbp/rc_visard-release.git + version: 3.3.2 +rc_visard_description: + tag: release/noetic/rc_visard_description/3.3.2-1 + url: https://github.com/roboception-gbp/rc_visard-release.git + version: 3.3.2 +rc_visard_driver: + tag: release/noetic/rc_visard_driver/3.3.2-1 + url: https://github.com/roboception-gbp/rc_visard-release.git + version: 3.3.2 +rcdiscover: + tag: release/noetic/rcdiscover/1.1.6-1 + url: https://github.com/roboception-gbp/rcdiscover-release.git + version: 1.1.6 +reach: + tag: release/noetic/reach/1.6.0-1 + url: https://github.com/ros2-gbp/reach-release.git + version: 1.6.0 +reach_ros: + tag: release/noetic/reach_ros/1.1.1-1 + url: https://github.com/ros-industrial-release/reach_ros-release.git + version: 1.1.1 +realsense2_camera: + tag: release/noetic/realsense2_camera/2.3.2-1 + url: https://github.com/IntelRealSense/realsense-ros-release.git + version: 2.3.2 +realsense2_description: + tag: release/noetic/realsense2_description/2.3.2-1 + url: https://github.com/IntelRealSense/realsense-ros-release.git + version: 2.3.2 +realtime_tools: + tag: release/noetic/realtime_tools/1.16.1-1 + url: https://github.com/ros-gbp/realtime_tools-release.git + version: 1.16.1 +remote_rosbag_record: + tag: release/noetic/remote_rosbag_record/0.0.4-1 + url: https://github.com/yoshito-n-students/remote_rosbag_record-release.git + version: 0.0.4 +resized_image_transport: + tag: release/noetic/resized_image_transport/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +resource_retriever: + tag: release/noetic/resource_retriever/1.12.10-1 + url: https://github.com/ros-gbp/resource_retriever-release.git + version: 1.12.10 +respeaker_ros: + tag: release/noetic/respeaker_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +rgbd_launch: + tag: release/noetic/rgbd_launch/2.4.0-1 + url: https://github.com/ros-gbp/rgbd_launch-release.git + version: 2.4.0 +ridgeback_control: + tag: release/noetic/ridgeback_control/0.3.5-1 + url: https://github.com/clearpath-gbp/ridgeback-release.git + version: 0.3.5 +ridgeback_description: + tag: release/noetic/ridgeback_description/0.3.5-1 + url: https://github.com/clearpath-gbp/ridgeback-release.git + version: 0.3.5 +ridgeback_desktop: + tag: release/noetic/ridgeback_desktop/0.1.3-1 + url: https://github.com/clearpath-gbp/ridgeback_desktop-release.git + version: 0.1.3 +ridgeback_gazebo: + tag: release/noetic/ridgeback_gazebo/0.2.0-1 + url: https://github.com/clearpath-gbp/ridgeback_simulator-release.git + version: 0.2.0 +ridgeback_gazebo_plugins: + tag: release/noetic/ridgeback_gazebo_plugins/0.2.0-1 + url: https://github.com/clearpath-gbp/ridgeback_simulator-release.git + version: 0.2.0 +ridgeback_msgs: + tag: release/noetic/ridgeback_msgs/0.3.5-1 + url: https://github.com/clearpath-gbp/ridgeback-release.git + version: 0.3.5 +ridgeback_navigation: + tag: release/noetic/ridgeback_navigation/0.3.5-1 + url: https://github.com/clearpath-gbp/ridgeback-release.git + version: 0.3.5 +ridgeback_simulator: + tag: release/noetic/ridgeback_simulator/0.2.0-1 + url: https://github.com/clearpath-gbp/ridgeback_simulator-release.git + version: 0.2.0 +ridgeback_viz: + tag: release/noetic/ridgeback_viz/0.1.3-1 + url: https://github.com/clearpath-gbp/ridgeback_desktop-release.git + version: 0.1.3 +rm_calibration_controllers: + tag: release/noetic/rm_calibration_controllers/0.1.10-1 + url: https://github.com/rm-controls/rm_controllers-release.git + version: 0.1.10 +rm_common: + tag: release/noetic/rm_common/0.1.18-1 + url: https://github.com/rm-controls/rm_control-release.git + version: 0.1.18 +rm_control: + tag: release/noetic/rm_control/0.1.18-1 + url: https://github.com/rm-controls/rm_control-release.git + version: 0.1.18 +rm_dbus: + tag: release/noetic/rm_dbus/0.1.18-1 + url: https://github.com/rm-controls/rm_control-release.git + version: 0.1.18 +rm_description: + tag: release/noetic/rm_description/0.1.9-1 + url: https://github.com/rm-controls/rm_description-release.git + version: 0.1.9 +rm_gazebo: + tag: release/noetic/rm_gazebo/0.1.18-1 + url: https://github.com/rm-controls/rm_control-release.git + version: 0.1.18 +rm_gimbal_controllers: + tag: release/noetic/rm_gimbal_controllers/0.1.10-1 + url: https://github.com/rm-controls/rm_controllers-release.git + version: 0.1.10 +rm_hw: + tag: release/noetic/rm_hw/0.1.18-1 + url: https://github.com/rm-controls/rm_control-release.git + version: 0.1.18 +rm_msgs: + tag: release/noetic/rm_msgs/0.1.18-1 + url: https://github.com/rm-controls/rm_control-release.git + version: 0.1.18 +rm_orientation_controller: + tag: release/noetic/rm_orientation_controller/0.1.10-1 + url: https://github.com/rm-controls/rm_controllers-release.git + version: 0.1.10 +rm_referee: + tag: release/noetic/rm_referee/0.1.18-1 + url: https://github.com/rm-controls/rm_control-release.git + version: 0.1.18 +rm_shooter_controllers: + tag: release/noetic/rm_shooter_controllers/0.1.10-1 + url: https://github.com/rm-controls/rm_controllers-release.git + version: 0.1.10 +robot: + tag: release/noetic/robot/1.5.0-1 + url: https://github.com/ros-gbp/metapackages-release.git + version: 1.5.0 +robot_body_filter: + tag: release/noetic/robot_body_filter/1.3.2-1 + url: https://github.com/peci1/robot_body_filter-release.git + version: 1.3.2 +robot_calibration: + tag: release/noetic/robot_calibration/0.7.2-1 + url: https://github.com/ros-gbp/robot_calibration-release.git + version: 0.7.2 +robot_calibration_msgs: + tag: release/noetic/robot_calibration_msgs/0.7.2-1 + url: https://github.com/ros-gbp/robot_calibration-release.git + version: 0.7.2 +robot_controllers: + tag: release/noetic/robot_controllers/0.7.1-4 + url: https://github.com/fetchrobotics-gbp/robot_controllers-release.git + version: 0.7.1 +robot_controllers_interface: + tag: release/noetic/robot_controllers_interface/0.7.1-4 + url: https://github.com/fetchrobotics-gbp/robot_controllers-release.git + version: 0.7.1 +robot_controllers_msgs: + tag: release/noetic/robot_controllers_msgs/0.7.1-4 + url: https://github.com/fetchrobotics-gbp/robot_controllers-release.git + version: 0.7.1 +robot_localization: + tag: release/noetic/robot_localization/2.7.7-1 + url: https://github.com/cra-ros-pkg/robot_localization-release.git + version: 2.7.7 +robot_mechanism_controllers: + tag: release/noetic/robot_mechanism_controllers/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +robot_nav_rviz_plugins: + tag: release/noetic/robot_nav_rviz_plugins/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +robot_nav_tools: + tag: release/noetic/robot_nav_tools/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +robot_nav_viz_demos: + tag: release/noetic/robot_nav_viz_demos/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +robot_navigation: + tag: release/noetic/robot_navigation/0.3.0-2 + url: https://github.com/DLu/robot_navigation-release.git + version: 0.3.0 +robot_pose_ekf: + tag: release/noetic/robot_pose_ekf/1.15.0-2 + url: https://github.com/ros-gbp/robot_pose_ekf-release.git + version: 1.15.0 +robot_self_filter: + tag: release/noetic/robot_self_filter/0.1.32-1 + url: https://github.com/pr2-gbp/robot_self_filter-gbp.git + version: 0.1.32 +robot_state_controller: + tag: release/noetic/robot_state_controller/0.1.10-1 + url: https://github.com/rm-controls/rm_controllers-release.git + version: 0.1.10 +robot_state_publisher: + tag: release/noetic/robot_state_publisher/1.15.3-1 + url: https://github.com/ros-gbp/robot_state_publisher-release.git + version: 1.15.3 +robot_upstart: + tag: release/noetic/robot_upstart/0.4.2-1 + url: https://github.com/clearpath-gbp/robot_upstart-release.git + version: 0.4.2 +roboticsgroup_upatras_gazebo_plugins: + tag: release/noetic/roboticsgroup_upatras_gazebo_plugins/0.2.0-2 + url: https://github.com/roboticsgroup/roboticsgroup_upatras_gazebo_plugins-release.git + version: 0.2.0 +robotis_manipulator: + tag: release/noetic/robotis_manipulator/1.1.1-2 + url: https://github.com/ROBOTIS-GIT-release/robotis_manipulator-release.git + version: 1.1.1 +robotont_description: + tag: release/noetic/robotont_description/0.0.8-2 + url: https://github.com/robotont-release/robotont_description-release.git + version: 0.0.8 +robotont_gazebo: + tag: release/noetic/robotont_gazebo/0.0.2-2 + url: https://github.com/robotont-release/robotont_gazebo-release.git + version: 0.0.2 +robotont_msgs: + tag: release/noetic/robotont_msgs/0.0.2-2 + url: https://github.com/robotont-release/robotont_msgs-release.git + version: 0.0.2 +robotont_nuc_description: + tag: release/noetic/robotont_nuc_description/0.0.2-1 + url: https://github.com/robotont-release/robotont_nuc_description-release.git + version: 0.0.2 +robotraconteur: + tag: release/noetic/robotraconteur/1.2.2-3 + url: https://github.com/robotraconteur-packaging/robotraconteur-ros-release.git + version: 1.2.2 +rokubimini: + tag: release/noetic/rokubimini/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +rokubimini_bus_manager: + tag: release/noetic/rokubimini_bus_manager/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +rokubimini_description: + tag: release/noetic/rokubimini_description/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +rokubimini_ethercat: + tag: release/noetic/rokubimini_ethercat/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +rokubimini_msgs: + tag: release/noetic/rokubimini_msgs/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +rokubimini_serial: + tag: release/noetic/rokubimini_serial/0.6.1-2 + url: https://gitlab.com/botasys/bota_driver-release.git + version: 0.6.1 +ros: + tag: release/noetic/ros/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +ros_babel_fish: + tag: release/noetic/ros_babel_fish/0.9.3-1 + url: https://github.com/StefanFabian/ros_babel_fish-release.git + version: 0.9.3 +ros_babel_fish_test_msgs: + tag: release/noetic/ros_babel_fish_test_msgs/0.9.3-1 + url: https://github.com/StefanFabian/ros_babel_fish-release.git + version: 0.9.3 +ros_base: + tag: release/noetic/ros_base/1.5.0-1 + url: https://github.com/ros-gbp/metapackages-release.git + version: 1.5.0 +ros_canopen: + tag: release/noetic/ros_canopen/0.8.5-1 + url: https://github.com/ros-industrial-release/ros_canopen-release.git + version: 0.8.5 +ros_comm: + tag: release/noetic/ros_comm/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +ros_control: + tag: release/noetic/ros_control/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +ros_control_boilerplate: + tag: release/noetic/ros_control_boilerplate/0.6.1-1 + url: https://github.com/PickNikRobotics/ros_control_boilerplate-release.git + version: 0.6.1 +ros_controllers: + tag: release/noetic/ros_controllers/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +ros_controllers_cartesian: + tag: release/noetic/ros_controllers_cartesian/0.1.7-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_controllers_cartesian-release.git + version: 0.1.7 +ros_core: + tag: release/noetic/ros_core/1.5.0-1 + url: https://github.com/ros-gbp/metapackages-release.git + version: 1.5.0 +ros_emacs_utils: + tag: release/noetic/ros_emacs_utils/0.4.18-1 + url: https://github.com/code-iai-release/ros_emacs_utils-release.git + version: 0.4.18 +ros_environment: + tag: release/noetic/ros_environment/1.3.2-1 + url: https://github.com/ros-gbp/ros_environment-release.git + version: 1.3.2 +ros_ethercat_eml: + tag: release/noetic/ros_ethercat_eml/0.4.0-2 + url: https://github.com/shadow-robot/ros_ethercat_eml-release.git + version: 0.4.0 +ros_google_cloud_language: + tag: release/noetic/ros_google_cloud_language/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +ros_ign: + tag: release/noetic/ros_ign/0.111.2-1 + url: https://github.com/ros-gbp/ros_ign-release.git + version: 0.111.2 +ros_ign_bridge: + tag: release/noetic/ros_ign_bridge/0.111.2-1 + url: https://github.com/ros-gbp/ros_ign-release.git + version: 0.111.2 +ros_ign_gazebo: + tag: release/noetic/ros_ign_gazebo/0.111.2-1 + url: https://github.com/ros-gbp/ros_ign-release.git + version: 0.111.2 +ros_ign_gazebo_demos: + tag: release/noetic/ros_ign_gazebo_demos/0.111.2-1 + url: https://github.com/ros-gbp/ros_ign-release.git + version: 0.111.2 +ros_ign_image: + tag: release/noetic/ros_ign_image/0.111.2-1 + url: https://github.com/ros-gbp/ros_ign-release.git + version: 0.111.2 +ros_industrial_cmake_boilerplate: + tag: release/noetic/ros_industrial_cmake_boilerplate/0.4.8-1 + url: https://github.com/ros-industrial-release/ros_industrial_cmake_boilerplate-release.git + version: 0.4.8 +ros_introspection: + tag: release/noetic/ros_introspection/1.2.1-1 + url: https://github.com/wu-robotics/roscompile-release.git + version: 1.2.1 +ros_numpy: + tag: release/noetic/ros_numpy/0.0.5-2 + url: https://github.com/eric-wieser/ros_numpy-release.git + version: 0.0.5 +ros_pytest: + tag: release/noetic/ros_pytest/0.2.1-1 + url: https://github.com/machinekoder/ros_pytest-release.git + version: 0.2.1 +ros_realtime: + tag: release/noetic/ros_realtime/1.0.25-1 + url: https://github.com/ros-gbp/ros_realtime-release.git + version: 1.0.25 +ros_speech_recognition: + tag: release/noetic/ros_speech_recognition/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +ros_tutorials: + tag: release/noetic/ros_tutorials/0.10.3-1 + url: https://github.com/ros-gbp/ros_tutorials-release.git + version: 0.10.3 +ros_type_introspection: + tag: release/noetic/ros_type_introspection/2.1.0-1 + url: https://github.com/facontidavide/ros_type_introspection-release.git + version: 2.1.0 +rosapi: + tag: release/noetic/rosapi/0.11.17-1 + url: https://github.com/RobotWebTools-release/rosbridge_suite-release.git + version: 0.11.17 +rosatomic: + tag: release/noetic/rosatomic/1.0.25-1 + url: https://github.com/ros-gbp/ros_realtime-release.git + version: 1.0.25 +rosauth: + tag: release/noetic/rosauth/1.0.1-1 + url: https://github.com/gt-rail-release/rosauth-release.git + version: 1.0.1 +rosbag: + tag: release/noetic/rosbag/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rosbag_fancy: + tag: release/noetic/rosbag_fancy/1.1.0-1 + url: https://github.com/xqms/rosbag_fancy-release.git + version: 1.1.0 +rosbag_fancy_msgs: + tag: release/noetic/rosbag_fancy_msgs/1.1.0-1 + url: https://github.com/xqms/rosbag_fancy-release.git + version: 1.1.0 +rosbag_migration_rule: + tag: release/noetic/rosbag_migration_rule/1.0.2-1 + url: https://github.com/ros-gbp/rosbag_migration_rule-release.git + version: 1.0.2 +rosbag_pandas: + tag: release/noetic/rosbag_pandas/0.5.4-1 + url: https://github.com/eurogroep/rosbag_pandas-release.git + version: 0.5.4 +rosbag_rviz_panel: + tag: release/noetic/rosbag_rviz_panel/0.1.9-2 + url: https://github.com/fada-catec/rosbag_rviz_panel-release.git + version: 0.1.9 +rosbag_snapshot: + tag: release/noetic/rosbag_snapshot/1.0.6-1 + url: https://github.com/ros-gbp/rosbag_snapshot-release.git + version: 1.0.6 +rosbag_snapshot_msgs: + tag: release/noetic/rosbag_snapshot_msgs/1.0.6-1 + url: https://github.com/ros-gbp/rosbag_snapshot-release.git + version: 1.0.6 +rosbag_storage: + tag: release/noetic/rosbag_storage/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rosbaglive: + tag: release/noetic/rosbaglive/0.3.1-1 + url: https://github.com/wu-robotics/wu_ros_tools.git + version: 0.3.1 +rosbash: + tag: release/noetic/rosbash/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +rosbash_params: + tag: release/noetic/rosbash_params/1.1.0-1 + url: https://github.com/peci1/rosbash_params-release.git + version: 1.1.0 +rosboost_cfg: + tag: release/noetic/rosboost_cfg/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +rosbridge_library: + tag: release/noetic/rosbridge_library/0.11.17-1 + url: https://github.com/RobotWebTools-release/rosbridge_suite-release.git + version: 0.11.17 +rosbridge_msgs: + tag: release/noetic/rosbridge_msgs/0.11.17-1 + url: https://github.com/RobotWebTools-release/rosbridge_suite-release.git + version: 0.11.17 +rosbridge_server: + tag: release/noetic/rosbridge_server/0.11.17-1 + url: https://github.com/RobotWebTools-release/rosbridge_suite-release.git + version: 0.11.17 +rosbridge_suite: + tag: release/noetic/rosbridge_suite/0.11.17-1 + url: https://github.com/RobotWebTools-release/rosbridge_suite-release.git + version: 0.11.17 +rosbuild: + tag: release/noetic/rosbuild/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +rosclean: + tag: release/noetic/rosclean/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +roscompile: + tag: release/noetic/roscompile/1.2.1-1 + url: https://github.com/wu-robotics/roscompile-release.git + version: 1.2.1 +rosconsole: + tag: release/noetic/rosconsole/1.14.4-1 + url: https://github.com/ros-gbp/rosconsole-release.git + version: 1.14.4 +rosconsole_bridge: + tag: release/noetic/rosconsole_bridge/0.5.5-1 + url: https://github.com/ros-gbp/rosconsole_bridge-release.git + version: 0.5.5 +roscpp: + tag: release/noetic/roscpp/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +roscpp_core: + tag: release/noetic/roscpp_core/0.7.3-1 + url: https://github.com/ros-gbp/roscpp_core-release.git + version: 0.7.3 +roscpp_serialization: + tag: release/noetic/roscpp_serialization/0.7.3-1 + url: https://github.com/ros-gbp/roscpp_core-release.git + version: 0.7.3 +roscpp_traits: + tag: release/noetic/roscpp_traits/0.7.3-1 + url: https://github.com/ros-gbp/roscpp_core-release.git + version: 0.7.3 +roscpp_tutorials: + tag: release/noetic/roscpp_tutorials/0.10.3-1 + url: https://github.com/ros-gbp/ros_tutorials-release.git + version: 0.10.3 +roscreate: + tag: release/noetic/roscreate/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +rosdiagnostic: + tag: release/noetic/rosdiagnostic/1.12.1-1 + url: https://github.com/ros-gbp/diagnostics-release.git + version: 1.12.1 +rosdoc_lite: + tag: release/noetic/rosdoc_lite/0.2.11-1 + url: https://github.com/ros-gbp/rosdoc_lite-release.git + version: 0.2.11 +rosee_msg: + tag: release/noetic/rosee_msg/1.0.2-2 + url: https://github.com/ADVRHumanoids/rosee_msg-release.git + version: 1.0.2 +rosemacs: + tag: release/noetic/rosemacs/0.4.18-1 + url: https://github.com/code-iai-release/ros_emacs_utils-release.git + version: 0.4.18 +roseus: + tag: release/noetic/roseus/1.7.5-2 + url: https://github.com/tork-a/jsk_roseus-release.git + version: 1.7.5 +roseus_smach: + tag: release/noetic/roseus_smach/1.7.5-2 + url: https://github.com/tork-a/jsk_roseus-release.git + version: 1.7.5 +roseus_tutorials: + tag: release/noetic/roseus_tutorials/1.7.5-2 + url: https://github.com/tork-a/jsk_roseus-release.git + version: 1.7.5 +rosfmt: + tag: release/noetic/rosfmt/8.0.0-1 + url: https://github.com/xqms/rosfmt-release.git + version: 8.0.0 +rosgraph: + tag: release/noetic/rosgraph/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rosgraph_msgs: + tag: release/noetic/rosgraph_msgs/1.11.4-1 + url: https://github.com/ros-gbp/ros_comm_msgs-release.git + version: 1.11.4 +roslang: + tag: release/noetic/roslang/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +roslaunch: + tag: release/noetic/roslaunch/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +roslib: + tag: release/noetic/roslib/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +roslint: + tag: release/noetic/roslint/0.12.0-1 + url: https://github.com/ros-gbp/roslint-release.git + version: 0.12.0 +roslisp: + tag: release/noetic/roslisp/1.9.25-1 + url: https://github.com/ros-gbp/roslisp-release.git + version: 1.9.25 +roslisp_common: + tag: release/noetic/roslisp_common/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +roslisp_repl: + tag: release/noetic/roslisp_repl/0.4.18-1 + url: https://github.com/code-iai-release/ros_emacs_utils-release.git + version: 0.4.18 +roslisp_utilities: + tag: release/noetic/roslisp_utilities/0.2.15-1 + url: https://github.com/ros-gbp/roslisp_common-release.git + version: 0.2.15 +roslz4: + tag: release/noetic/roslz4/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rosmake: + tag: release/noetic/rosmake/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +rosmaster: + tag: release/noetic/rosmaster/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rosmon: + tag: release/noetic/rosmon/2.5.1-2 + url: https://github.com/xqms/rosmon-release.git + version: 2.5.1 +rosmon_core: + tag: release/noetic/rosmon_core/2.5.1-2 + url: https://github.com/xqms/rosmon-release.git + version: 2.5.1 +rosmon_msgs: + tag: release/noetic/rosmon_msgs/2.5.1-2 + url: https://github.com/xqms/rosmon-release.git + version: 2.5.1 +rosmsg: + tag: release/noetic/rosmsg/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rosmsg_cpp: + tag: release/noetic/rosmsg_cpp/1.0.2-1 + url: https://github.com/ctu-vras/rosmsg_cpp-release.git + version: 1.0.2 +rosnode: + tag: release/noetic/rosnode/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rosout: + tag: release/noetic/rosout/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rospack: + tag: release/noetic/rospack/2.6.4-1 + url: https://github.com/ros-gbp/rospack-release.git + version: 2.6.4 +rosparam: + tag: release/noetic/rosparam/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rosparam_shortcuts: + tag: release/noetic/rosparam_shortcuts/0.4.0-1 + url: https://github.com/PickNikRobotics/rosparam_shortcuts-release.git + version: 0.4.0 +rospatlite: + tag: release/noetic/rospatlite/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +rospilot: + tag: release/noetic/rospilot/1.6.1-1 + url: https://github.com/rospilot/rospilot-release.git + version: 1.6.1 +rosping: + tag: release/noetic/rosping/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +rospy: + tag: release/noetic/rospy/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rospy_message_converter: + tag: release/noetic/rospy_message_converter/0.5.9-1 + url: https://github.com/uos-gbp/rospy_message_converter-release.git + version: 0.5.9 +rospy_tutorials: + tag: release/noetic/rospy_tutorials/0.10.3-1 + url: https://github.com/ros-gbp/ros_tutorials-release.git + version: 0.10.3 +rosrt: + tag: release/noetic/rosrt/1.0.25-1 + url: https://github.com/ros-gbp/ros_realtime-release.git + version: 1.0.25 +rosserial: + tag: release/noetic/rosserial/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_arduino: + tag: release/noetic/rosserial_arduino/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_chibios: + tag: release/noetic/rosserial_chibios/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_client: + tag: release/noetic/rosserial_client/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_embeddedlinux: + tag: release/noetic/rosserial_embeddedlinux/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_mbed: + tag: release/noetic/rosserial_mbed/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_msgs: + tag: release/noetic/rosserial_msgs/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_python: + tag: release/noetic/rosserial_python/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_server: + tag: release/noetic/rosserial_server/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_tivac: + tag: release/noetic/rosserial_tivac/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_vex_cortex: + tag: release/noetic/rosserial_vex_cortex/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_vex_v5: + tag: release/noetic/rosserial_vex_v5/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_windows: + tag: release/noetic/rosserial_windows/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosserial_xbee: + tag: release/noetic/rosserial_xbee/0.9.2-1 + url: https://github.com/ros-gbp/rosserial-release.git + version: 0.9.2 +rosservice: + tag: release/noetic/rosservice/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rostest: + tag: release/noetic/rostest/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rostime: + tag: release/noetic/rostime/0.7.3-1 + url: https://github.com/ros-gbp/roscpp_core-release.git + version: 0.7.3 +rostopic: + tag: release/noetic/rostopic/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +rostwitter: + tag: release/noetic/rostwitter/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +rosunit: + tag: release/noetic/rosunit/1.15.10-1 + url: https://github.com/ros-gbp/ros-release.git + version: 1.15.10 +roswtf: + tag: release/noetic/roswtf/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +roswww: + tag: release/noetic/roswww/0.1.13-1 + url: https://github.com/ros-gbp/roswww-release.git + version: 0.1.13 +rotate_recovery: + tag: release/noetic/rotate_recovery/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +route_network: + tag: release/noetic/route_network/0.3.0-1 + url: https://github.com/ros-geographic-info/open_street_map-release.git + version: 0.3.0 +rplidar_ros: + tag: release/noetic/rplidar_ros/2.1.5-1 + url: https://github.com/Slamtec/rplidar_ros-release.git + version: 2.1.5 +rqt: + tag: release/noetic/rqt/0.5.5-1 + url: https://github.com/ros-gbp/rqt-release.git + version: 0.5.5 +rqt_action: + tag: release/noetic/rqt_action/0.4.11-1 + url: https://github.com/ros-gbp/rqt_action-release.git + version: 0.4.11 +rqt_bag: + tag: release/noetic/rqt_bag/0.5.3-1 + url: https://github.com/ros-gbp/rqt_bag-release.git + version: 0.5.3 +rqt_bag_plugins: + tag: release/noetic/rqt_bag_plugins/0.5.3-1 + url: https://github.com/ros-gbp/rqt_bag-release.git + version: 0.5.3 +rqt_common_plugins: + tag: release/noetic/rqt_common_plugins/0.4.11-1 + url: https://github.com/ros-gbp/rqt_common_plugins-release.git + version: 0.4.11 +rqt_console: + tag: release/noetic/rqt_console/0.4.14-1 + url: https://github.com/ros-gbp/rqt_console-release.git + version: 0.4.14 +rqt_controller_manager: + tag: release/noetic/rqt_controller_manager/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +rqt_dep: + tag: release/noetic/rqt_dep/0.4.14-1 + url: https://github.com/ros-gbp/rqt_dep-release.git + version: 0.4.14 +rqt_drone_teleop: + tag: release/noetic/rqt_drone_teleop/1.4.2-1 + url: https://github.com/JdeRobot/drones-release.git + version: 1.4.2 +rqt_ez_publisher: + tag: release/noetic/rqt_ez_publisher/0.6.1-1 + url: https://github.com/OTL/rqt_ez_publisher-release.git + version: 0.6.1 +rqt_graph: + tag: release/noetic/rqt_graph/0.4.16-1 + url: https://github.com/ros-gbp/rqt_graph-release.git + version: 0.4.16 +rqt_ground_robot_teleop: + tag: release/noetic/rqt_ground_robot_teleop/1.4.2-1 + url: https://github.com/JdeRobot/drones-release.git + version: 1.4.2 +rqt_gui: + tag: release/noetic/rqt_gui/0.5.5-1 + url: https://github.com/ros-gbp/rqt-release.git + version: 0.5.5 +rqt_gui_cpp: + tag: release/noetic/rqt_gui_cpp/0.5.5-1 + url: https://github.com/ros-gbp/rqt-release.git + version: 0.5.5 +rqt_gui_py: + tag: release/noetic/rqt_gui_py/0.5.5-1 + url: https://github.com/ros-gbp/rqt-release.git + version: 0.5.5 +rqt_human_radar: + tag: release/noetic/rqt_human_radar/0.2.1-1 + url: https://github.com/ros4hri/rqt_human_radar-release.git + version: 0.2.1 +rqt_image_view: + tag: release/noetic/rqt_image_view/0.4.19-1 + url: https://github.com/ros-gbp/rqt_image_view-release.git + version: 0.4.19 +rqt_joint_trajectory_controller: + tag: release/noetic/rqt_joint_trajectory_controller/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +rqt_launch: + tag: release/noetic/rqt_launch/0.4.10-1 + url: https://github.com/ros-gbp/rqt_launch-release.git + version: 0.4.10 +rqt_logger_level: + tag: release/noetic/rqt_logger_level/0.4.13-1 + url: https://github.com/ros-gbp/rqt_logger_level-release.git + version: 0.4.13 +rqt_moveit: + tag: release/noetic/rqt_moveit/0.5.13-1 + url: https://github.com/ros-gbp/rqt_moveit-release.git + version: 0.5.13 +rqt_msg: + tag: release/noetic/rqt_msg/0.4.12-1 + url: https://github.com/ros-gbp/rqt_msg-release.git + version: 0.4.12 +rqt_multiplot: + tag: release/noetic/rqt_multiplot/0.0.12-1 + url: https://github.com/anybotics/rqt_multiplot_plugin-release.git + version: 0.0.12 +rqt_nav_view: + tag: release/noetic/rqt_nav_view/0.5.8-1 + url: https://github.com/ros-gbp/rqt_nav_view-release.git + version: 0.5.8 +rqt_plot: + tag: release/noetic/rqt_plot/0.4.16-1 + url: https://github.com/ros-gbp/rqt_plot-release.git + version: 0.4.16 +rqt_pose_view: + tag: release/noetic/rqt_pose_view/0.5.13-1 + url: https://github.com/ros-gbp/rqt_pose_view-release.git + version: 0.5.13 +rqt_pr2_dashboard: + tag: release/noetic/rqt_pr2_dashboard/0.4.2-1 + url: https://github.com/ros-gbp/rqt_pr2_dashboard-release.git + version: 0.4.2 +rqt_publisher: + tag: release/noetic/rqt_publisher/0.4.12-1 + url: https://github.com/ros-gbp/rqt_publisher-release.git + version: 0.4.12 +rqt_py_common: + tag: release/noetic/rqt_py_common/0.5.5-1 + url: https://github.com/ros-gbp/rqt-release.git + version: 0.5.5 +rqt_py_console: + tag: release/noetic/rqt_py_console/0.4.12-1 + url: https://github.com/ros-gbp/rqt_py_console-release.git + version: 0.4.12 +rqt_py_trees: + tag: release/noetic/rqt_py_trees/0.4.1-1 + url: https://github.com/stonier/rqt_py_trees-release.git + version: 0.4.1 +rqt_reconfigure: + tag: release/noetic/rqt_reconfigure/0.5.7-1 + url: https://github.com/ros-gbp/rqt_reconfigure-release.git + version: 0.5.7 +rqt_robot_dashboard: + tag: release/noetic/rqt_robot_dashboard/0.5.8-1 + url: https://github.com/ros-gbp/rqt_robot_dashboard-release.git + version: 0.5.8 +rqt_robot_monitor: + tag: release/noetic/rqt_robot_monitor/0.5.15-1 + url: https://github.com/ros-gbp/rqt_robot_monitor-release.git + version: 0.5.15 +rqt_robot_plugins: + tag: release/noetic/rqt_robot_plugins/0.5.8-1 + url: https://github.com/ros-gbp/rqt_robot_plugins-release.git + version: 0.5.8 +rqt_robot_steering: + tag: release/noetic/rqt_robot_steering/0.5.14-1 + url: https://github.com/ros-gbp/rqt_robot_steering-release.git + version: 0.5.14 +rqt_rosbag_fancy: + tag: release/noetic/rqt_rosbag_fancy/1.1.0-1 + url: https://github.com/xqms/rosbag_fancy-release.git + version: 1.1.0 +rqt_rosmon: + tag: release/noetic/rqt_rosmon/2.5.1-2 + url: https://github.com/xqms/rosmon-release.git + version: 2.5.1 +rqt_runtime_monitor: + tag: release/noetic/rqt_runtime_monitor/0.5.10-1 + url: https://github.com/ros-gbp/rqt_runtime_monitor-release.git + version: 0.5.10 +rqt_rviz: + tag: release/noetic/rqt_rviz/0.7.2-1 + url: https://github.com/ros-gbp/rqt_rviz-release.git + version: 0.7.2 +rqt_service_caller: + tag: release/noetic/rqt_service_caller/0.4.12-1 + url: https://github.com/ros-gbp/rqt_service_caller-release.git + version: 0.4.12 +rqt_shell: + tag: release/noetic/rqt_shell/0.4.13-1 + url: https://github.com/ros-gbp/rqt_shell-release.git + version: 0.4.13 +rqt_srv: + tag: release/noetic/rqt_srv/0.4.11-1 + url: https://github.com/ros-gbp/rqt_srv-release.git + version: 0.4.11 +rqt_tf_tree: + tag: release/noetic/rqt_tf_tree/0.6.5-1 + url: https://github.com/ros-gbp/rqt_tf_tree-release.git + version: 0.6.5 +rqt_top: + tag: release/noetic/rqt_top/0.4.11-1 + url: https://github.com/ros-gbp/rqt_top-release.git + version: 0.4.11 +rqt_topic: + tag: release/noetic/rqt_topic/0.4.15-1 + url: https://github.com/ros-gbp/rqt_topic-release.git + version: 0.4.15 +rqt_web: + tag: release/noetic/rqt_web/0.4.11-1 + url: https://github.com/ros-gbp/rqt_web-release.git + version: 0.4.11 +rslidar_sdk: + tag: release/noetic/rslidar_sdk/1.3.2-1 + url: https://github.com/nobleo/rslidar_sdk-release.git + version: 1.3.2 +rt_usb_9axisimu_driver: + tag: release/noetic/rt_usb_9axisimu_driver/1.0.1-5 + url: https://github.com/rt-net-gbp/rt_usb_9axisimu_driver-release.git + version: 1.0.1 +rtabmap: + tag: release/noetic/rtabmap/0.21.13-1 + url: https://github.com/introlab/rtabmap-release.git + version: 0.21.13 +rtabmap_conversions: + tag: release/noetic/rtabmap_conversions/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_costmap_plugins: + tag: release/noetic/rtabmap_costmap_plugins/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_demos: + tag: release/noetic/rtabmap_demos/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_examples: + tag: release/noetic/rtabmap_examples/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_launch: + tag: release/noetic/rtabmap_launch/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_legacy: + tag: release/noetic/rtabmap_legacy/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_msgs: + tag: release/noetic/rtabmap_msgs/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_odom: + tag: release/noetic/rtabmap_odom/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_python: + tag: release/noetic/rtabmap_python/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_ros: + tag: release/noetic/rtabmap_ros/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_rviz_plugins: + tag: release/noetic/rtabmap_rviz_plugins/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_slam: + tag: release/noetic/rtabmap_slam/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_sync: + tag: release/noetic/rtabmap_sync/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_util: + tag: release/noetic/rtabmap_util/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtabmap_viz: + tag: release/noetic/rtabmap_viz/0.21.13-1 + url: https://github.com/introlab/rtabmap_ros-release.git + version: 0.21.13 +rtcm_msgs: + tag: release/noetic/rtcm_msgs/1.1.6-1 + url: https://github.com/nobleo/rtcm_msgs-release.git + version: 1.1.6 +rtctree: + tag: release/noetic/rtctree/3.0.1-4 + url: https://github.com/tork-a/rtctree-release.git + version: 3.0.1 +rtshell: + tag: release/noetic/rtshell/3.0.1-5 + url: https://github.com/tork-a/rtshell-release.git + version: 3.0.1 +rtsprofile: + tag: release/noetic/rtsprofile/2.0.0-4 + url: https://github.com/tork-a/rtsprofile-release.git + version: 2.0.0 +ruckig: + tag: release/noetic/ruckig/0.9.2-1 + url: https://github.com/pantor/ruckig-release.git + version: 0.9.2 +rviz: + tag: release/noetic/rviz/1.14.26-1 + url: https://github.com/ros-gbp/rviz-release.git + version: 1.14.26 +rviz_animated_view_controller: + tag: release/noetic/rviz_animated_view_controller/0.2.0-2 + url: https://github.com/ros-gbp/rviz_animated_view_controller-release.git + version: 0.2.0 +rviz_imu_plugin: + tag: release/noetic/rviz_imu_plugin/1.2.7-1 + url: https://github.com/uos-gbp/imu_tools-release.git + version: 1.2.7 +rviz_map_plugin: + tag: release/noetic/rviz_map_plugin/1.1.0-1 + url: https://github.com/uos-gbp/mesh-tools.git + version: 1.1.0 +rviz_marker_tools: + tag: release/noetic/rviz_marker_tools/0.1.3-1 + url: https://github.com/ros-gbp/moveit_task_constructor-release.git + version: 0.1.3 +rviz_plugin_tutorials: + tag: release/noetic/rviz_plugin_tutorials/0.11.2-1 + url: https://github.com/ros-gbp/visualization_tutorials-release.git + version: 0.11.2 +rviz_python_tutorial: + tag: release/noetic/rviz_python_tutorial/0.11.2-1 + url: https://github.com/ros-gbp/visualization_tutorials-release.git + version: 0.11.2 +rviz_robot_description_topic: + tag: release/noetic/rviz_robot_description_topic/1.0.0-1 + url: https://github.com/nobleo/rviz_robot_description_topic-release.git + version: 1.0.0 +rviz_satellite: + tag: release/noetic/rviz_satellite/3.1.0-1 + url: https://github.com/nobleo/rviz_satellite-release.git + version: 3.1.0 +rviz_tool_cursor: + tag: release/noetic/rviz_tool_cursor/1.0.1-1 + url: https://github.com/ros-industrial-release/rviz_tool_cursor.git + version: 1.0.1 +rviz_tool_path_display: + tag: release/noetic/rviz_tool_path_display/0.1.1-1 + url: https://github.com/ros-industrial-release/rviz_tool_path_display-release.git + version: 0.1.1 +rviz_visual_tools: + tag: release/noetic/rviz_visual_tools/3.9.3-1 + url: https://github.com/PickNikRobotics/rviz_visual_tools-release.git + version: 3.9.3 +rwt_app_chooser: + tag: release/noetic/rwt_app_chooser/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +rwt_image_view: + tag: release/noetic/rwt_image_view/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +rwt_nav: + tag: release/noetic/rwt_nav/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +rwt_plot: + tag: release/noetic/rwt_plot/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +rwt_robot_monitor: + tag: release/noetic/rwt_robot_monitor/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +rwt_speech_recognition: + tag: release/noetic/rwt_speech_recognition/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +rwt_steer: + tag: release/noetic/rwt_steer/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +rwt_utils_3rdparty: + tag: release/noetic/rwt_utils_3rdparty/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +rx_service_tools: + tag: release/noetic/rx_service_tools/1.0.2-1 + url: https://github.com/nobleo/rx_service_tools-release.git + version: 1.0.2 +safety_limiter: + tag: release/noetic/safety_limiter/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +safety_limiter_msgs: + tag: release/noetic/safety_limiter_msgs/0.14.0-1 + url: https://github.com/at-wat/neonavigation_msgs-release.git + version: 0.14.0 +sainsmart_relay_usb: + tag: release/noetic/sainsmart_relay_usb/0.0.4-1 + url: https://github.com/DataspeedInc-release/sainsmart_relay_usb-release.git + version: 0.0.4 +sbg_driver: + tag: release/noetic/sbg_driver/3.2.0-1 + url: https://github.com/SBG-Systems/sbg_ros_driver-release.git + version: 3.2.0 +sbpl: + tag: release/noetic/sbpl/1.3.1-3 + url: https://github.com/ros-gbp/sbpl-release.git + version: 1.3.1 +sbpl_lattice_planner: + tag: release/noetic/sbpl_lattice_planner/0.4.1-1 + url: https://github.com/ros-gbp/navigation_experimental-release.git + version: 0.4.1 +sbpl_recovery: + tag: release/noetic/sbpl_recovery/0.4.1-1 + url: https://github.com/ros-gbp/navigation_experimental-release.git + version: 0.4.1 +scaled_controllers: + tag: release/noetic/scaled_controllers/0.1.0-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_scaled_controllers-release.git + version: 0.1.0 +scaled_joint_trajectory_controller: + tag: release/noetic/scaled_joint_trajectory_controller/0.1.0-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_scaled_controllers-release.git + version: 0.1.0 +scan_to_cloud_converter: + tag: release/noetic/scan_to_cloud_converter/0.4.0-1 + url: https://github.com/ros-gbp/scan_tools-release.git + version: 0.4.0 +scan_tools: + tag: release/noetic/scan_tools/0.4.0-1 + url: https://github.com/ros-gbp/scan_tools-release.git + version: 0.4.0 +scenario_test_tools: + tag: release/noetic/scenario_test_tools/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +schunk_description: + tag: release/noetic/schunk_description/0.6.14-1 + url: https://github.com/ipa320/schunk_modular_robotics-release.git + version: 0.6.14 +schunk_libm5api: + tag: release/noetic/schunk_libm5api/0.6.14-1 + url: https://github.com/ipa320/schunk_modular_robotics-release.git + version: 0.6.14 +schunk_modular_robotics: + tag: release/noetic/schunk_modular_robotics/0.6.14-1 + url: https://github.com/ipa320/schunk_modular_robotics-release.git + version: 0.6.14 +schunk_powercube_chain: + tag: release/noetic/schunk_powercube_chain/0.6.14-1 + url: https://github.com/ipa320/schunk_modular_robotics-release.git + version: 0.6.14 +schunk_sdh: + tag: release/noetic/schunk_sdh/0.6.14-1 + url: https://github.com/ipa320/schunk_modular_robotics-release.git + version: 0.6.14 +schunk_simulated_tactile_sensors: + tag: release/noetic/schunk_simulated_tactile_sensors/0.6.14-1 + url: https://github.com/ipa320/schunk_modular_robotics-release.git + version: 0.6.14 +schunk_svh: + tag: release/noetic/schunk_svh/0.1.2-1 + url: https://github.com/SCHUNK-GmbH-Co-KG/schunk_svh_ros_driver-release.git + version: 0.1.2 +schunk_svh_description: + tag: release/noetic/schunk_svh_description/0.1.2-1 + url: https://github.com/SCHUNK-GmbH-Co-KG/schunk_svh_ros_driver-release.git + version: 0.1.2 +schunk_svh_driver: + tag: release/noetic/schunk_svh_driver/0.1.2-1 + url: https://github.com/SCHUNK-GmbH-Co-KG/schunk_svh_ros_driver-release.git + version: 0.1.2 +schunk_svh_library: + tag: release/noetic/schunk_svh_library/1.0.1-4 + url: https://github.com/SCHUNK-GmbH-Co-KG/schunk_svh_library-release.git + version: 1.0.1 +schunk_svh_msgs: + tag: release/noetic/schunk_svh_msgs/0.1.2-1 + url: https://github.com/SCHUNK-GmbH-Co-KG/schunk_svh_ros_driver-release.git + version: 0.1.2 +schunk_svh_simulation: + tag: release/noetic/schunk_svh_simulation/0.1.2-1 + url: https://github.com/SCHUNK-GmbH-Co-KG/schunk_svh_ros_driver-release.git + version: 0.1.2 +sdc21x0: + tag: release/noetic/sdc21x0/1.1.8-1 + url: https://github.com/uos-gbp/mir_robot-release.git + version: 1.1.8 +sdhlibrary_cpp: + tag: release/noetic/sdhlibrary_cpp/0.2.10-1 + url: https://github.com/ipab-slmc/SDHLibrary-CPP-release.git + version: 0.2.10 +self_test: + tag: release/noetic/self_test/1.12.1-1 + url: https://github.com/ros-gbp/diagnostics-release.git + version: 1.12.1 +semantic_point_annotator: + tag: release/noetic/semantic_point_annotator/0.2.0-1 + url: https://github.com/pr2-gbp/pr2_navigation-release.git + version: 0.2.0 +sensor_filters: + tag: release/noetic/sensor_filters/1.1.1-1 + url: https://github.com/ctu-vras/sensor_filters-release.git + version: 1.1.1 +sensor_msgs: + tag: release/noetic/sensor_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +septentrio_gnss_driver: + tag: release/noetic/septentrio_gnss_driver/1.4.3-1 + url: https://github.com/septentrio-users/septentrio_gnss_driver-release.git + version: 1.4.3 +serial: + tag: release/noetic/serial/1.2.1-1 + url: https://github.com/wjwwood/serial-release.git + version: 1.2.1 +service_tools: + tag: release/noetic/service_tools/0.6.35-2 + url: https://github.com/4am-robotics/cob_command_tools-release.git + version: 0.6.35 +sesame_ros: + tag: release/noetic/sesame_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +settlerlib: + tag: release/noetic/settlerlib/0.10.15-1 + url: https://github.com/ros-gbp/calibration-release.git + version: 0.10.15 +shape_msgs: + tag: release/noetic/shape_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +sick_safetyscanners: + tag: release/noetic/sick_safetyscanners/1.0.9-1 + url: https://github.com/SICKAG/sick_safetyscanners-release.git + version: 1.0.9 +sick_safevisionary_base: + tag: release/noetic/sick_safevisionary_base/1.0.1-1 + url: https://github.com/SICKAG/sick_safevisionary_base-release.git + version: 1.0.1 +sick_safevisionary_driver: + tag: release/noetic/sick_safevisionary_driver/1.0.1-1 + url: https://github.com/SICKAG/sick_safevisionary_ros1-release.git + version: 1.0.1 +sick_safevisionary_msgs: + tag: release/noetic/sick_safevisionary_msgs/1.0.1-1 + url: https://github.com/SICKAG/sick_safevisionary_ros1-release.git + version: 1.0.1 +sick_scan: + tag: release/noetic/sick_scan/1.10.1-1 + url: https://github.com/SICKAG/sick_scan-release.git + version: 1.10.1 +sick_scan_xd: + tag: release/noetic/sick_scan_xd/3.6.0-1 + url: https://github.com/SICKAG/sick_scan_xd-release.git + version: 3.6.0 +sick_tim: + tag: release/noetic/sick_tim/0.0.18-1 + url: https://github.com/uos-gbp/sick_tim-release.git + version: 0.0.18 +sick_visionary_ros: + tag: release/noetic/sick_visionary_ros/1.1.2-1 + url: https://github.com/SICKAG/sick_visionary_ros-release.git + version: 1.1.2 +simple_grasping: + tag: release/noetic/simple_grasping/0.4.1-1 + url: https://github.com/ros-gbp/simple_grasping-release.git + version: 0.4.1 +simple_message: + tag: release/noetic/simple_message/0.7.3-1 + url: https://github.com/ros-industrial-release/industrial_core-release.git + version: 0.7.3 +simulators: + tag: release/noetic/simulators/1.5.0-1 + url: https://github.com/ros-gbp/metapackages-release.git + version: 1.5.0 +single_joint_position_action: + tag: release/noetic/single_joint_position_action/1.10.18-1 + url: https://github.com/pr2-gbp/pr2_controllers-release.git + version: 1.10.18 +slam_gmapping: + tag: release/noetic/slam_gmapping/1.4.2-1 + url: https://github.com/ros-gbp/slam_gmapping-release.git + version: 1.4.2 +slam_karto: + tag: release/noetic/slam_karto/0.8.1-1 + url: https://github.com/ros-gbp/slam_karto-release.git + version: 0.8.1 +slam_toolbox: + tag: release/noetic/slam_toolbox/1.5.7-1 + url: https://github.com/SteveMacenski/slam_toolbox-release.git + version: 1.5.7 +slam_toolbox_msgs: + tag: release/noetic/slam_toolbox_msgs/1.5.7-1 + url: https://github.com/SteveMacenski/slam_toolbox-release.git + version: 1.5.7 +slam_toolbox_rviz: + tag: release/noetic/slam_toolbox_rviz/1.5.7-1 + url: https://github.com/SteveMacenski/slam_toolbox-release.git + version: 1.5.7 +slider_publisher: + tag: release/noetic/slider_publisher/1.1.1-1 + url: https://github.com/oKermorgant/slider_publisher-release.git + version: 1.1.1 +slime_ros: + tag: release/noetic/slime_ros/0.4.18-1 + url: https://github.com/code-iai-release/ros_emacs_utils-release.git + version: 0.4.18 +slime_wrapper: + tag: release/noetic/slime_wrapper/0.4.18-1 + url: https://github.com/code-iai-release/ros_emacs_utils-release.git + version: 0.4.18 +smacc: + tag: release/noetic/smacc/1.4.6-1 + url: https://github.com/robosoft-ai/smacc-release.git + version: 1.4.6 +smacc_msgs: + tag: release/noetic/smacc_msgs/1.4.6-1 + url: https://github.com/robosoft-ai/smacc-release.git + version: 1.4.6 +smach: + tag: release/noetic/smach/2.5.3-1 + url: https://github.com/ros-gbp/executive_smach-release.git + version: 2.5.3 +smach_msgs: + tag: release/noetic/smach_msgs/2.5.3-1 + url: https://github.com/ros-gbp/executive_smach-release.git + version: 2.5.3 +smach_ros: + tag: release/noetic/smach_ros/2.5.3-1 + url: https://github.com/ros-gbp/executive_smach-release.git + version: 2.5.3 +smach_viewer: + tag: release/noetic/smach_viewer/4.1.0-1 + url: https://github.com/jbohren/executive_smach_visualization-release.git + version: 4.1.0 +smclib: + tag: release/noetic/smclib/1.8.7-1 + url: https://github.com/ros-gbp/bond_core-release.git + version: 1.8.7 +snmp_diagnostics: + tag: release/noetic/snmp_diagnostics/0.1.1-1 + url: https://gitlab.fel.cvut.cz/cras/ros-release/snmp_diagnostics.git + version: 0.1.1 +snmp_ros: + tag: release/noetic/snmp_ros/1.0.2-1 + url: https://github.com/ctu-vras/snmp_ros-release.git + version: 1.0.2 +snowbot_operating_system: + tag: release/noetic/snowbot_operating_system/0.0.5-1 + url: https://github.com/PickNikRobotics/snowbot_release.git + version: 0.0.5 +sob_layer: + tag: release/noetic/sob_layer/0.1.1-1 + url: https://github.com/dorezyuk/sob_layer-release.git + version: 0.1.1 +socketcan_bridge: + tag: release/noetic/socketcan_bridge/0.8.5-1 + url: https://github.com/ros-industrial-release/ros_canopen-release.git + version: 0.8.5 +socketcan_interface: + tag: release/noetic/socketcan_interface/0.8.5-1 + url: https://github.com/ros-industrial-release/ros_canopen-release.git + version: 0.8.5 +soem: + tag: release/noetic/soem/1.4.1003-1 + url: https://github.com/mgruhler/soem-gbp.git + version: 1.4.1003 +sophus: + tag: release/noetic/sophus/1.2.1-1 + url: https://github.com/yujinrobot-release/sophus-release.git + version: 1.2.1 +sot-core: + tag: release/noetic/sot-core/4.11.8-2 + url: https://github.com/stack-of-tasks/sot-core-ros-release.git + version: 4.11.8 +sot-dynamic-pinocchio: + tag: release/noetic/sot-dynamic-pinocchio/3.6.5-2 + url: https://github.com/stack-of-tasks/sot-dynamic-pinocchio-ros-release.git + version: 3.6.5 +sot-tools: + tag: release/noetic/sot-tools/2.3.5-2 + url: https://github.com/stack-of-tasks/sot-tools-ros-release.git + version: 2.3.5 +sound_classification: + tag: release/noetic/sound_classification/1.2.19-1 + url: https://github.com/tork-a/jsk_recognition-release.git + version: 1.2.19 +sound_play: + tag: release/noetic/sound_play/0.3.18-1 + url: https://github.com/ros-gbp/audio_common-release.git + version: 0.3.18 +spacenav_node: + tag: release/noetic/spacenav_node/1.15.1-1 + url: https://github.com/ros-gbp/joystick_drivers-release.git + version: 1.15.1 +sparse_bundle_adjustment: + tag: release/noetic/sparse_bundle_adjustment/0.4.4-1 + url: https://github.com/ros-gbp/sparse_bundle_adjustment-release.git + version: 0.4.4 +spatio_temporal_voxel_layer: + tag: release/noetic/spatio_temporal_voxel_layer/1.4.5-1 + url: https://github.com/SteveMacenski/spatio_temporal_voxel_layer-release.git + version: 1.4.5 +speech_recognition_msgs: + tag: release/noetic/speech_recognition_msgs/4.3.2-1 + url: https://github.com/tork-a/jsk_common_msgs-release.git + version: 4.3.2 +speed_scaling_interface: + tag: release/noetic/speed_scaling_interface/0.1.0-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_scaled_controllers-release.git + version: 0.1.0 +speed_scaling_state_controller: + tag: release/noetic/speed_scaling_state_controller/0.1.0-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_scaled_controllers-release.git + version: 0.1.0 +spinnaker_camera_driver: + tag: release/noetic/spinnaker_camera_driver/0.2.5-1 + url: https://github.com/ros-drivers-gbp/flir_camera_driver-release.git + version: 0.2.5 +sr_hand_detector: + tag: release/noetic/sr_hand_detector/0.0.9-1 + url: https://github.com/shadow-robot/sr_hand_detector-release.git + version: 0.0.9 +srdfdom: + tag: release/noetic/srdfdom/0.6.4-1 + url: https://github.com/ros-gbp/srdfdom-release.git + version: 0.6.4 +stag_ros: + tag: release/noetic/stag_ros/0.3.9-3 + url: https://github.com/usrl-uofsc/stag_ros-release.git + version: 0.3.9 +stage: + tag: release/noetic/stage/4.3.0-1 + url: https://github.com/ros-gbp/stage-release.git + version: 4.3.0 +stage_ros: + tag: release/noetic/stage_ros/1.8.0-1 + url: https://github.com/ros-gbp/stage_ros-release.git + version: 1.8.0 +static_transform_mux: + tag: release/noetic/static_transform_mux/1.1.2-1 + url: https://github.com/peci1/static_transform_mux-release.git + version: 1.1.2 +statistics_msgs: + tag: release/noetic/statistics_msgs/0.15.1-1 + url: https://github.com/ros-drivers-gbp/pointgrey_camera_driver-release.git + version: 0.15.1 +std_msgs: + tag: release/noetic/std_msgs/0.5.14-1 + url: https://github.com/ros-gbp/std_msgs-release.git + version: 0.5.14 +std_srvs: + tag: release/noetic/std_srvs/1.11.4-1 + url: https://github.com/ros-gbp/ros_comm_msgs-release.git + version: 1.11.4 +steering_functions: + tag: release/noetic/steering_functions/0.1.1-1 + url: https://github.com/nobleo/steering_functions-release.git + version: 0.1.1 +stereo_image_proc: + tag: release/noetic/stereo_image_proc/1.17.0-1 + url: https://github.com/ros-gbp/image_pipeline-release.git + version: 1.17.0 +stereo_msgs: + tag: release/noetic/stereo_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +switchbot_ros: + tag: release/noetic/switchbot_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +swri_cli_tools: + tag: release/noetic/swri_cli_tools/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_console: + tag: release/noetic/swri_console/1.1.1-1 + url: https://github.com/swri-robotics-gbp/swri_console-release.git + version: 1.1.1 +swri_console_util: + tag: release/noetic/swri_console_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_dbw_interface: + tag: release/noetic/swri_dbw_interface/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_geometry_util: + tag: release/noetic/swri_geometry_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_image_util: + tag: release/noetic/swri_image_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_math_util: + tag: release/noetic/swri_math_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_nodelet: + tag: release/noetic/swri_nodelet/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_opencv_util: + tag: release/noetic/swri_opencv_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_prefix_tools: + tag: release/noetic/swri_prefix_tools/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_profiler: + tag: release/noetic/swri_profiler/0.2.2-1 + url: https://github.com/swri-robotics-gbp/swri_profiler-release.git + version: 0.2.2 +swri_profiler_msgs: + tag: release/noetic/swri_profiler_msgs/0.2.2-1 + url: https://github.com/swri-robotics-gbp/swri_profiler-release.git + version: 0.2.2 +swri_profiler_tools: + tag: release/noetic/swri_profiler_tools/0.2.2-1 + url: https://github.com/swri-robotics-gbp/swri_profiler-release.git + version: 0.2.2 +swri_roscpp: + tag: release/noetic/swri_roscpp/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_rospy: + tag: release/noetic/swri_rospy/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_route_util: + tag: release/noetic/swri_route_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_serial_util: + tag: release/noetic/swri_serial_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_string_util: + tag: release/noetic/swri_string_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_system_util: + tag: release/noetic/swri_system_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_transform_util: + tag: release/noetic/swri_transform_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +swri_yaml_util: + tag: release/noetic/swri_yaml_util/2.15.4-1 + url: https://github.com/swri-robotics-gbp/marti_common-release.git + version: 2.15.4 +system_fingerprint: + tag: release/noetic/system_fingerprint/0.6.2-1 + url: https://github.com/MetroRobots/ros_system_fingerprint-release.git + version: 0.6.2 +tablet_socket_msgs: + tag: release/noetic/tablet_socket_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +task_compiler: + tag: release/noetic/task_compiler/0.1.14-1 + url: https://github.com/tork-a/jsk_planning-release.git + version: 0.1.14 +taskflow: + tag: release/noetic/taskflow/3.5.0-1 + url: https://github.com/ros-industrial-release/taskflow-release.git + version: 3.5.0 +teb_local_planner: + tag: release/noetic/teb_local_planner/0.9.1-1 + url: https://github.com/rst-tu-dortmund/teb_local_planner-release.git + version: 0.9.1 +teleop_legged_robots: + tag: release/noetic/teleop_legged_robots/1.1.2-1 + url: https://github.com/SoftServeSAG/teleop_legged_robots-release.git + version: 1.1.2 +teleop_tools: + tag: release/noetic/teleop_tools/0.5.0-1 + url: https://github.com/ros-gbp/teleop_tools-release.git + version: 0.5.0 +teleop_tools_msgs: + tag: release/noetic/teleop_tools_msgs/0.5.0-1 + url: https://github.com/ros-gbp/teleop_tools-release.git + version: 0.5.0 +teleop_twist_joy: + tag: release/noetic/teleop_twist_joy/0.1.3-1 + url: https://github.com/ros-gbp/teleop_twist_joy-release.git + version: 0.1.3 +teleop_twist_keyboard: + tag: release/noetic/teleop_twist_keyboard/1.0.0-1 + url: https://github.com/ros-gbp/teleop_twist_keyboard-release.git + version: 1.0.0 +tello_driver: + tag: release/noetic/tello_driver/1.4.2-1 + url: https://github.com/JdeRobot/drones-release.git + version: 1.4.2 +tesseract_collision: + tag: release/noetic/tesseract_collision/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_common: + tag: release/noetic/tesseract_common/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_environment: + tag: release/noetic/tesseract_environment/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_geometry: + tag: release/noetic/tesseract_geometry/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_kinematics: + tag: release/noetic/tesseract_kinematics/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_scene_graph: + tag: release/noetic/tesseract_scene_graph/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_srdf: + tag: release/noetic/tesseract_srdf/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_state_solver: + tag: release/noetic/tesseract_state_solver/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_support: + tag: release/noetic/tesseract_support/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_urdf: + tag: release/noetic/tesseract_urdf/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +tesseract_visualization: + tag: release/noetic/tesseract_visualization/0.18.1-1 + url: https://github.com/ros-industrial-release/tesseract-release.git + version: 0.18.1 +test_diagnostic_aggregator: + tag: release/noetic/test_diagnostic_aggregator/1.12.1-1 + url: https://github.com/ros-gbp/diagnostics-release.git + version: 1.12.1 +test_grpc: + tag: release/noetic/test_grpc/0.0.17-1 + url: https://github.com/CogRobRelease/catkin_grpc-release.git + version: 0.0.17 +test_mavros: + tag: release/noetic/test_mavros/1.20.1-1 + url: https://github.com/mavlink/mavros-release.git + version: 1.20.1 +test_osm: + tag: release/noetic/test_osm/0.3.0-1 + url: https://github.com/ros-geographic-info/open_street_map-release.git + version: 0.3.0 +tf: + tag: release/noetic/tf/1.13.4-1 + url: https://github.com/ros-gbp/geometry-release.git + version: 1.13.4 +tf2: + tag: release/noetic/tf2/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_2d: + tag: release/noetic/tf2_2d/0.6.4-1 + url: https://github.com/locusrobotics/tf2_2d-release.git + version: 0.6.4 +tf2_bullet: + tag: release/noetic/tf2_bullet/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_client: + tag: release/noetic/tf2_client/1.0.0-2 + url: https://gitlab.fel.cvut.cz/cras/ros-release/tf2_client.git + version: 1.0.0 +tf2_eigen: + tag: release/noetic/tf2_eigen/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_geometry_msgs: + tag: release/noetic/tf2_geometry_msgs/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_kdl: + tag: release/noetic/tf2_kdl/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_msgs: + tag: release/noetic/tf2_msgs/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_py: + tag: release/noetic/tf2_py/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_ros: + tag: release/noetic/tf2_ros/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_sensor_msgs: + tag: release/noetic/tf2_sensor_msgs/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_server: + tag: release/noetic/tf2_server/1.1.3-1 + url: https://github.com/peci1/tf2_server-release.git + version: 1.1.3 +tf2_tools: + tag: release/noetic/tf2_tools/0.7.10-1 + url: https://github.com/ros-gbp/geometry2-release.git + version: 0.7.10 +tf2_web_republisher: + tag: release/noetic/tf2_web_republisher/0.3.2-3 + url: https://github.com/RobotWebTools-release/tf2_web_republisher-release.git + version: 0.3.2 +tf_conversions: + tag: release/noetic/tf_conversions/1.13.4-1 + url: https://github.com/ros-gbp/geometry-release.git + version: 1.13.4 +tf_remapper_cpp: + tag: release/noetic/tf_remapper_cpp/1.1.1-1 + url: https://github.com/peci1/tf_remapper_cpp-release.git + version: 1.1.1 +theora_image_transport: + tag: release/noetic/theora_image_transport/1.15.0-1 + url: https://github.com/ros2-gbp/image_transport_plugins-release.git + version: 1.15.0 +thunder_line_follower_pmr3100: + tag: release/noetic/thunder_line_follower_pmr3100/0.1.1-1 + url: https://github.com/ThundeRatz/thunder_line_follower_pmr3100-release.git + version: 0.1.1 +tile_map: + tag: release/noetic/tile_map/1.4.3-1 + url: https://github.com/swri-robotics-gbp/mapviz-release.git + version: 1.4.3 +timed_roslaunch: + tag: release/noetic/timed_roslaunch/0.2.0-1 + url: https://github.com/Tiryoh/timed_roslaunch-release.git + version: 0.2.0 +timestamp_tools: + tag: release/noetic/timestamp_tools/1.6.9-1 + url: https://github.com/ros-gbp/driver_common-release.git + version: 1.6.9 +tof_radar_controller: + tag: release/noetic/tof_radar_controller/0.1.10-1 + url: https://github.com/rm-controls/rm_controllers-release.git + version: 0.1.10 +topic_tools: + tag: release/noetic/topic_tools/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +trac_ik: + tag: release/noetic/trac_ik/1.6.7-1 + url: https://github.com/traclabs/trac_ik-release.git + version: 1.6.7 +trac_ik_examples: + tag: release/noetic/trac_ik_examples/1.6.7-1 + url: https://github.com/traclabs/trac_ik-release.git + version: 1.6.7 +trac_ik_kinematics_plugin: + tag: release/noetic/trac_ik_kinematics_plugin/1.6.7-1 + url: https://github.com/traclabs/trac_ik-release.git + version: 1.6.7 +trac_ik_lib: + tag: release/noetic/trac_ik_lib/1.6.7-1 + url: https://github.com/traclabs/trac_ik-release.git + version: 1.6.7 +trac_ik_python: + tag: release/noetic/trac_ik_python/1.6.7-1 + url: https://github.com/traclabs/trac_ik-release.git + version: 1.6.7 +track_odometry: + tag: release/noetic/track_odometry/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +trajectory_msgs: + tag: release/noetic/trajectory_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +trajectory_tracker: + tag: release/noetic/trajectory_tracker/0.18.0-1 + url: https://github.com/at-wat/neonavigation-release.git + version: 0.18.0 +trajectory_tracker_msgs: + tag: release/noetic/trajectory_tracker_msgs/0.14.0-1 + url: https://github.com/at-wat/neonavigation_msgs-release.git + version: 0.14.0 +trajectory_tracker_rviz_plugins: + tag: release/noetic/trajectory_tracker_rviz_plugins/0.17.1-1 + url: https://github.com/at-wat/neonavigation_rviz_plugins-release.git + version: 0.17.1 +transmission_interface: + tag: release/noetic/transmission_interface/0.20.0-1 + url: https://github.com/ros-gbp/ros_control-release.git + version: 0.20.0 +tsid: + tag: release/noetic/tsid/1.6.2-2 + url: https://github.com/stack-of-tasks/tsid-ros-release.git + version: 1.6.2 +turtle_actionlib: + tag: release/noetic/turtle_actionlib/0.2.0-1 + url: https://github.com/ros-gbp/common_tutorials-release.git + version: 0.2.0 +turtle_tf: + tag: release/noetic/turtle_tf/0.2.4-1 + url: https://github.com/ros-gbp/geometry_tutorials-release.git + version: 0.2.4 +turtle_tf2: + tag: release/noetic/turtle_tf2/0.2.4-1 + url: https://github.com/ros-gbp/geometry_tutorials-release.git + version: 0.2.4 +turtlebot3: + tag: release/noetic/turtlebot3/1.2.5-1 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3-release.git + version: 1.2.5 +turtlebot3_autorace_2020: + tag: release/noetic/turtlebot3_autorace_2020/1.1.1-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_autorace_2020_release.git + version: 1.1.1 +turtlebot3_autorace_camera: + tag: release/noetic/turtlebot3_autorace_camera/1.1.1-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_autorace_2020_release.git + version: 1.1.1 +turtlebot3_autorace_core: + tag: release/noetic/turtlebot3_autorace_core/1.1.1-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_autorace_2020_release.git + version: 1.1.1 +turtlebot3_autorace_detect: + tag: release/noetic/turtlebot3_autorace_detect/1.1.1-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_autorace_2020_release.git + version: 1.1.1 +turtlebot3_autorace_driving: + tag: release/noetic/turtlebot3_autorace_driving/1.1.1-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_autorace_2020_release.git + version: 1.1.1 +turtlebot3_autorace_msgs: + tag: release/noetic/turtlebot3_autorace_msgs/1.1.1-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_autorace_2020_release.git + version: 1.1.1 +turtlebot3_bringup: + tag: release/noetic/turtlebot3_bringup/1.2.5-1 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3-release.git + version: 1.2.5 +turtlebot3_description: + tag: release/noetic/turtlebot3_description/1.2.5-1 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3-release.git + version: 1.2.5 +turtlebot3_example: + tag: release/noetic/turtlebot3_example/1.2.5-1 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3-release.git + version: 1.2.5 +turtlebot3_fake: + tag: release/noetic/turtlebot3_fake/1.3.2-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_simulations-release.git + version: 1.3.2 +turtlebot3_gazebo: + tag: release/noetic/turtlebot3_gazebo/1.3.2-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_simulations-release.git + version: 1.3.2 +turtlebot3_msgs: + tag: release/noetic/turtlebot3_msgs/1.0.1-1 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_msgs-release.git + version: 1.0.1 +turtlebot3_navigation: + tag: release/noetic/turtlebot3_navigation/1.2.5-1 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3-release.git + version: 1.2.5 +turtlebot3_simulations: + tag: release/noetic/turtlebot3_simulations/1.3.2-2 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3_simulations-release.git + version: 1.3.2 +turtlebot3_slam: + tag: release/noetic/turtlebot3_slam/1.2.5-1 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3-release.git + version: 1.2.5 +turtlebot3_teleop: + tag: release/noetic/turtlebot3_teleop/1.2.5-1 + url: https://github.com/ROBOTIS-GIT-release/turtlebot3-release.git + version: 1.2.5 +turtlesim: + tag: release/noetic/turtlesim/0.10.3-1 + url: https://github.com/ros-gbp/ros_tutorials-release.git + version: 0.10.3 +twist_controller: + tag: release/noetic/twist_controller/0.1.7-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_controllers_cartesian-release.git + version: 0.1.7 +twist_mux: + tag: release/noetic/twist_mux/3.1.3-1 + url: https://github.com/ros-gbp/twist_mux-release.git + version: 3.1.3 +twist_mux_msgs: + tag: release/noetic/twist_mux_msgs/2.1.0-1 + url: https://github.com/ros-gbp/twist_mux_msgs-release.git + version: 2.1.0 +twist_recovery: + tag: release/noetic/twist_recovery/0.4.1-1 + url: https://github.com/ros-gbp/navigation_experimental-release.git + version: 0.4.1 +ubiquity_motor: + tag: release/noetic/ubiquity_motor/0.14.0-1 + url: https://github.com/UbiquityRobotics-release/ubiquity_motor-release.git + version: 0.14.0 +ublox: + tag: release/noetic/ublox/1.5.0-1 + url: https://github.com/KumarRobotics/ublox-release.git + version: 1.5.0 +ublox_gps: + tag: release/noetic/ublox_gps/1.5.0-1 + url: https://github.com/KumarRobotics/ublox-release.git + version: 1.5.0 +ublox_msgs: + tag: release/noetic/ublox_msgs/1.5.0-1 + url: https://github.com/KumarRobotics/ublox-release.git + version: 1.5.0 +ublox_serialization: + tag: release/noetic/ublox_serialization/1.5.0-1 + url: https://github.com/KumarRobotics/ublox-release.git + version: 1.5.0 +ubnt_airos_tools: + tag: release/noetic/ubnt_airos_tools/1.1.0-1 + url: https://github.com/peci1/ubnt_airos_tools-release.git + version: 1.1.0 +udp_com: + tag: release/noetic/udp_com/1.1.2-1 + url: https://github.com/flynneva/udp_com-release.git + version: 1.1.2 +udp_msgs: + tag: release/noetic/udp_msgs/0.0.5-1 + url: https://github.com/ros2-gbp/udp_msgs-release.git + version: 0.0.5 +um6: + tag: release/noetic/um6/1.1.3-4 + url: https://github.com/ros-drivers-gbp/um6-release.git + version: 1.1.3 +um7: + tag: release/noetic/um7/0.0.7-1 + url: https://github.com/ros-drivers-gbp/um7-release.git + version: 0.0.7 +unique_id: + tag: release/noetic/unique_id/1.0.6-1 + url: https://github.com/ros-geographic-info/unique_identifier-release.git + version: 1.0.6 +unique_identifier: + tag: release/noetic/unique_identifier/1.0.6-1 + url: https://github.com/ros-geographic-info/unique_identifier-release.git + version: 1.0.6 +universal_robots: + tag: release/noetic/universal_robots/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur10_moveit_config: + tag: release/noetic/ur10_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur10e_moveit_config: + tag: release/noetic/ur10e_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur12e_moveit_config: + tag: release/noetic/ur12e_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur15_moveit_config: + tag: release/noetic/ur15_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur16e_moveit_config: + tag: release/noetic/ur16e_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur20_moveit_config: + tag: release/noetic/ur20_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur30_moveit_config: + tag: release/noetic/ur30_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur3_moveit_config: + tag: release/noetic/ur3_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur3e_moveit_config: + tag: release/noetic/ur3e_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur5_moveit_config: + tag: release/noetic/ur5_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur5e_moveit_config: + tag: release/noetic/ur5e_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur7e_moveit_config: + tag: release/noetic/ur7e_moveit_config/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur_calibration: + tag: release/noetic/ur_calibration/2.4.1-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_Driver-release.git + version: 2.4.1 +ur_client_library: + tag: release/noetic/ur_client_library/2.0.0-1 + url: https://github.com/UniversalRobots/Universal_Robots_Client_Library-release.git + version: 2.0.0 +ur_dashboard_msgs: + tag: release/noetic/ur_dashboard_msgs/2.4.1-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_Driver-release.git + version: 2.4.1 +ur_description: + tag: release/noetic/ur_description/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur_gazebo: + tag: release/noetic/ur_gazebo/1.5.0-1 + url: https://github.com/ros-industrial-release/universal_robot-release.git + version: 1.5.0 +ur_msgs: + tag: release/noetic/ur_msgs/1.5.0-1 + url: https://github.com/ros-industrial-release/ur_msgs-release.git + version: 1.5.0 +ur_robot_driver: + tag: release/noetic/ur_robot_driver/2.4.1-1 + url: https://github.com/UniversalRobots/Universal_Robots_ROS_Driver-release.git + version: 2.4.1 +urdf: + tag: release/noetic/urdf/1.13.4-1 + url: https://github.com/ros-gbp/urdf-release.git + version: 1.13.4 +urdf_geometry_parser: + tag: release/noetic/urdf_geometry_parser/0.1.0-1 + url: https://github.com/ros-gbp/urdf_geometry_parser-release.git + version: 0.1.0 +urdf_parser_plugin: + tag: release/noetic/urdf_parser_plugin/1.13.4-1 + url: https://github.com/ros-gbp/urdf-release.git + version: 1.13.4 +urdf_sim_tutorial: + tag: release/noetic/urdf_sim_tutorial/0.5.1-1 + url: https://github.com/ros-gbp/urdf_sim_tutorial-release.git + version: 0.5.1 +urdf_tutorial: + tag: release/noetic/urdf_tutorial/0.5.0-2 + url: https://github.com/ros-gbp/urdf_tutorial-release.git + version: 0.5.0 +urdfdom_py: + tag: release/noetic/urdfdom_py/0.4.6-1 + url: https://github.com/ros-gbp/urdfdom_py-release.git + version: 0.4.6 +urg_c: + tag: release/noetic/urg_c/1.0.405-1 + url: https://github.com/ros-gbp/urg_c-release.git + version: 1.0.405 +urg_node: + tag: release/noetic/urg_node/0.1.18-1 + url: https://github.com/ros-gbp/urg_node-release.git + version: 0.1.18 +urg_stamped: + tag: release/noetic/urg_stamped/0.4.0-1 + url: https://github.com/seqsense/urg_stamped-release.git + version: 0.4.0 +usb_cam: + tag: release/noetic/usb_cam/0.3.7-1 + url: https://github.com/ros-gbp/usb_cam-release.git + version: 0.3.7 +usb_cam_controllers: + tag: release/noetic/usb_cam_controllers/0.2.1-1 + url: https://github.com/yoshito-n-students/usb_cam_hardware-release.git + version: 0.2.1 +usb_cam_hardware: + tag: release/noetic/usb_cam_hardware/0.2.1-1 + url: https://github.com/yoshito-n-students/usb_cam_hardware-release.git + version: 0.2.1 +usb_cam_hardware_interface: + tag: release/noetic/usb_cam_hardware_interface/0.2.1-1 + url: https://github.com/yoshito-n-students/usb_cam_hardware-release.git + version: 0.2.1 +uuid_msgs: + tag: release/noetic/uuid_msgs/1.0.6-1 + url: https://github.com/ros-geographic-info/unique_identifier-release.git + version: 1.0.6 +variant: + tag: release/noetic/variant/0.1.6-1 + url: https://github.com/anybotics/variant-release.git + version: 0.1.6 +variant_msgs: + tag: release/noetic/variant_msgs/0.1.6-1 + url: https://github.com/anybotics/variant-release.git + version: 0.1.6 +variant_topic_tools: + tag: release/noetic/variant_topic_tools/0.1.6-1 + url: https://github.com/anybotics/variant-release.git + version: 0.1.6 +vector_map_msgs: + tag: release/noetic/vector_map_msgs/1.14.0-1 + url: https://github.com/autoware-ai/messages-release.git + version: 1.14.0 +velocity_controllers: + tag: release/noetic/velocity_controllers/0.22.0-1 + url: https://github.com/ros-gbp/ros_controllers-release.git + version: 0.22.0 +velodyne: + tag: release/noetic/velodyne/1.7.0-1 + url: https://github.com/ros-drivers-gbp/velodyne-release.git + version: 1.7.0 +velodyne_description: + tag: release/noetic/velodyne_description/1.0.13-1 + url: https://github.com/DataspeedInc-release/velodyne_simulator-release.git + version: 1.0.13 +velodyne_driver: + tag: release/noetic/velodyne_driver/1.7.0-1 + url: https://github.com/ros-drivers-gbp/velodyne-release.git + version: 1.7.0 +velodyne_gazebo_plugins: + tag: release/noetic/velodyne_gazebo_plugins/1.0.13-1 + url: https://github.com/DataspeedInc-release/velodyne_simulator-release.git + version: 1.0.13 +velodyne_laserscan: + tag: release/noetic/velodyne_laserscan/1.7.0-1 + url: https://github.com/ros-drivers-gbp/velodyne-release.git + version: 1.7.0 +velodyne_msgs: + tag: release/noetic/velodyne_msgs/1.7.0-1 + url: https://github.com/ros-drivers-gbp/velodyne-release.git + version: 1.7.0 +velodyne_pcl: + tag: release/noetic/velodyne_pcl/1.7.0-1 + url: https://github.com/ros-drivers-gbp/velodyne-release.git + version: 1.7.0 +velodyne_pointcloud: + tag: release/noetic/velodyne_pointcloud/1.7.0-1 + url: https://github.com/ros-drivers-gbp/velodyne-release.git + version: 1.7.0 +velodyne_simulator: + tag: release/noetic/velodyne_simulator/1.0.13-1 + url: https://github.com/DataspeedInc-release/velodyne_simulator-release.git + version: 1.0.13 +video_stream_opencv: + tag: release/noetic/video_stream_opencv/1.1.6-1 + url: https://github.com/ros-drivers/video_stream_opencv-release.git + version: 1.1.6 +view_controller_msgs: + tag: release/noetic/view_controller_msgs/0.2.0-1 + url: https://github.com/ros-gbp/view_controller_msgs-release.git + version: 0.2.0 +virtual_force_publisher: + tag: release/noetic/virtual_force_publisher/2.2.15-4 + url: https://github.com/tork-a/jsk_common-release.git + version: 2.2.15 +vision_msgs: + tag: release/noetic/vision_msgs/0.0.2-1 + url: https://github.com/Kukanani/vision_msgs-release.git + version: 0.0.2 +vision_opencv: + tag: release/noetic/vision_opencv/1.16.2-1 + url: https://github.com/ros-gbp/vision_opencv-release.git + version: 1.16.2 +vision_visp: + tag: release/noetic/vision_visp/0.13.1-1 + url: https://github.com/lagadic/vision_visp-release.git + version: 0.13.1 +visp: + tag: release/noetic/visp/3.5.0-3 + url: https://github.com/lagadic/visp-release.git + version: 3.5.0 +visp_auto_tracker: + tag: release/noetic/visp_auto_tracker/0.13.1-1 + url: https://github.com/lagadic/vision_visp-release.git + version: 0.13.1 +visp_bridge: + tag: release/noetic/visp_bridge/0.13.1-1 + url: https://github.com/lagadic/vision_visp-release.git + version: 0.13.1 +visp_camera_calibration: + tag: release/noetic/visp_camera_calibration/0.13.1-1 + url: https://github.com/lagadic/vision_visp-release.git + version: 0.13.1 +visp_hand2eye_calibration: + tag: release/noetic/visp_hand2eye_calibration/0.13.1-1 + url: https://github.com/lagadic/vision_visp-release.git + version: 0.13.1 +visp_tracker: + tag: release/noetic/visp_tracker/0.13.1-1 + url: https://github.com/lagadic/vision_visp-release.git + version: 0.13.1 +visualization_marker_tutorials: + tag: release/noetic/visualization_marker_tutorials/0.11.2-1 + url: https://github.com/ros-gbp/visualization_tutorials-release.git + version: 0.11.2 +visualization_msgs: + tag: release/noetic/visualization_msgs/1.13.2-1 + url: https://github.com/ros-gbp/common_msgs-release.git + version: 1.13.2 +visualization_rwt: + tag: release/noetic/visualization_rwt/0.1.3-1 + url: https://github.com/tork-a/visualization_rwt-release.git + version: 0.1.3 +visualization_tutorials: + tag: release/noetic/visualization_tutorials/0.11.2-1 + url: https://github.com/ros-gbp/visualization_tutorials-release.git + version: 0.11.2 +viz: + tag: release/noetic/viz/1.5.0-1 + url: https://github.com/ros-gbp/metapackages-release.git + version: 1.5.0 +vl53l1x: + tag: release/noetic/vl53l1x/1.0.0-1 + url: https://github.com/okalachev/vl53l1x_ros-release.git + version: 1.0.0 +voicevox: + tag: release/noetic/voicevox/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +volta_base: + tag: release/noetic/volta_base/1.2.0-1 + url: https://github.com/botsync-gbp/volta-release.git + version: 1.2.0 +volta_control: + tag: release/noetic/volta_control/1.2.0-1 + url: https://github.com/botsync-gbp/volta-release.git + version: 1.2.0 +volta_description: + tag: release/noetic/volta_description/1.2.0-1 + url: https://github.com/botsync-gbp/volta-release.git + version: 1.2.0 +volta_localization: + tag: release/noetic/volta_localization/1.2.0-1 + url: https://github.com/botsync-gbp/volta-release.git + version: 1.2.0 +volta_msgs: + tag: release/noetic/volta_msgs/1.2.0-1 + url: https://github.com/botsync-gbp/volta-release.git + version: 1.2.0 +volta_navigation: + tag: release/noetic/volta_navigation/1.2.0-1 + url: https://github.com/botsync-gbp/volta-release.git + version: 1.2.0 +volta_rules: + tag: release/noetic/volta_rules/1.2.0-1 + url: https://github.com/botsync-gbp/volta-release.git + version: 1.2.0 +volta_teleoperator: + tag: release/noetic/volta_teleoperator/1.2.0-1 + url: https://github.com/botsync-gbp/volta-release.git + version: 1.2.0 +voxel_grid: + tag: release/noetic/voxel_grid/1.17.3-1 + url: https://github.com/ros-gbp/navigation-release.git + version: 1.17.3 +vrpn: + tag: release/noetic/vrpn/7.34.0-2 + url: https://github.com/ros-drivers-gbp/vrpn-release.git + version: 7.34.0 +vrpn_client_ros: + tag: release/noetic/vrpn_client_ros/0.2.2-1 + url: https://github.com/ros-drivers-gbp/vrpn_client_ros-release.git + version: 0.2.2 +warehouse_ros: + tag: release/noetic/warehouse_ros/0.9.5-1 + url: https://github.com/ros-gbp/warehouse_ros-release.git + version: 0.9.5 +warehouse_ros_mongo: + tag: release/noetic/warehouse_ros_mongo/0.10.0-1 + url: https://github.com/ros-gbp/warehouse_ros_mongo-release.git + version: 0.10.0 +warehouse_ros_sqlite: + tag: release/noetic/warehouse_ros_sqlite/0.9.1-1 + url: https://github.com/ros-gbp/warehouse_ros_sqlite-release.git + version: 0.9.1 +warthog_control: + tag: release/noetic/warthog_control/0.1.9-1 + url: https://github.com/clearpath-gbp/warthog-release.git + version: 0.1.9 +warthog_description: + tag: release/noetic/warthog_description/0.1.9-1 + url: https://github.com/clearpath-gbp/warthog-release.git + version: 0.1.9 +warthog_desktop: + tag: release/noetic/warthog_desktop/0.1.1-1 + url: https://github.com/clearpath-gbp/warthog_desktop-release.git + version: 0.1.1 +warthog_gazebo: + tag: release/noetic/warthog_gazebo/0.2.2-1 + url: https://github.com/clearpath-gbp/warthog_simulator-release.git + version: 0.2.2 +warthog_msgs: + tag: release/noetic/warthog_msgs/0.1.9-1 + url: https://github.com/clearpath-gbp/warthog-release.git + version: 0.1.9 +warthog_simulator: + tag: release/noetic/warthog_simulator/0.2.2-1 + url: https://github.com/clearpath-gbp/warthog_simulator-release.git + version: 0.2.2 +warthog_viz: + tag: release/noetic/warthog_viz/0.1.1-1 + url: https://github.com/clearpath-gbp/warthog_desktop-release.git + version: 0.1.1 +web_video_server: + tag: release/noetic/web_video_server/0.2.2-1 + url: https://github.com/RobotWebTools-release/web_video_server-release.git + version: 0.2.2 +webkit_dependency: + tag: release/noetic/webkit_dependency/1.1.3-1 + url: https://github.com/ros-gbp/webkit_dependency-release.git + version: 1.1.3 +webots_ros: + tag: release/noetic/webots_ros/2023.1.0-1 + url: https://github.com/cyberbotics/webots_ros-release.git + version: 2023.1.0 +webrtcvad_ros: + tag: release/noetic/webrtcvad_ros/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +wfov_camera_msgs: + tag: release/noetic/wfov_camera_msgs/0.15.1-1 + url: https://github.com/ros-drivers-gbp/pointgrey_camera_driver-release.git + version: 0.15.1 +wge100_camera: + tag: release/noetic/wge100_camera/1.8.5-1 + url: https://github.com/ros-drivers-gbp/wge100_driver-release.git + version: 1.8.5 +wge100_camera_firmware: + tag: release/noetic/wge100_camera_firmware/1.8.5-1 + url: https://github.com/ros-drivers-gbp/wge100_driver-release.git + version: 1.8.5 +wge100_driver: + tag: release/noetic/wge100_driver/1.8.5-1 + url: https://github.com/ros-drivers-gbp/wge100_driver-release.git + version: 1.8.5 +wifi_ddwrt: + tag: release/noetic/wifi_ddwrt/0.2.2-1 + url: https://github.com/ros-gbp/wifi_ddwrt-release.git + version: 0.2.2 +willow_maps: + tag: release/noetic/willow_maps/1.0.3-1 + url: https://github.com/ros-gbp/willow_maps-release.git + version: 1.0.3 +wireless_msgs: + tag: release/noetic/wireless_msgs/0.1.1-2 + url: https://github.com/clearpath-gbp/wireless-release.git + version: 0.1.1 +wireless_watcher: + tag: release/noetic/wireless_watcher/0.1.1-2 + url: https://github.com/clearpath-gbp/wireless-release.git + version: 0.1.1 +witmotion_ros: + tag: release/noetic/witmotion_ros/1.3.1-1 + url: https://github.com/twdragon/witmotion_ros-release.git + version: 1.3.1 +wrapyfi_ros_interfaces: + tag: release/noetic/wrapyfi_ros_interfaces/0.4.30-1 + url: https://github.com/modular-ml/wrapyfi_ros_interfaces-release.git + version: 0.4.30 +ws281x: + tag: release/noetic/ws281x/0.0.11-1 + url: https://github.com/CopterExpress/ros_led-release.git + version: 0.0.11 +wu_ros_tools: + tag: release/noetic/wu_ros_tools/0.3.1-1 + url: https://github.com/wu-robotics/wu_ros_tools.git + version: 0.3.1 +xacro: + tag: release/noetic/xacro/1.14.20-1 + url: https://github.com/ros-gbp/xacro-release.git + version: 1.14.20 +xmlrpcpp: + tag: release/noetic/xmlrpcpp/1.17.4-1 + url: https://github.com/ros-gbp/ros_comm-release.git + version: 1.17.4 +xpp: + tag: release/noetic/xpp/1.0.10-1 + url: https://github.com/leggedrobotics/xpp-release.git + version: 1.0.10 +xpp_examples: + tag: release/noetic/xpp_examples/1.0.10-1 + url: https://github.com/leggedrobotics/xpp-release.git + version: 1.0.10 +xpp_hyq: + tag: release/noetic/xpp_hyq/1.0.10-1 + url: https://github.com/leggedrobotics/xpp-release.git + version: 1.0.10 +xpp_msgs: + tag: release/noetic/xpp_msgs/1.0.10-1 + url: https://github.com/leggedrobotics/xpp-release.git + version: 1.0.10 +xpp_quadrotor: + tag: release/noetic/xpp_quadrotor/1.0.10-1 + url: https://github.com/leggedrobotics/xpp-release.git + version: 1.0.10 +xpp_states: + tag: release/noetic/xpp_states/1.0.10-1 + url: https://github.com/leggedrobotics/xpp-release.git + version: 1.0.10 +xpp_vis: + tag: release/noetic/xpp_vis/1.0.10-1 + url: https://github.com/leggedrobotics/xpp-release.git + version: 1.0.10 +xsens_mti_driver: + tag: release/noetic/xsens_mti_driver/0.2021.4-1 + url: https://github.com/nobleo/xsens_mti_driver-release.git + version: 0.2021.4 +xv_11_laser_driver: + tag: release/noetic/xv_11_laser_driver/0.3.0-1 + url: https://github.com/rohbotics/xv_11_laser_driver-release.git + version: 0.3.0 +ypspur: + tag: release/noetic/ypspur/1.22.5-1 + url: https://github.com/openspur/yp-spur-release.git + version: 1.22.5 +ypspur_ros: + tag: release/noetic/ypspur_ros/0.6.0-1 + url: https://github.com/openspur/ypspur_ros-release.git + version: 0.6.0 +zbar_ros: + tag: release/noetic/zbar_ros/0.3.0-1 + url: https://github.com/ros-drivers-gbp/zbar_ros-release.git + version: 0.3.0 +zdepth: + tag: release/noetic/zdepth/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 +zdepth_image_transport: + tag: release/noetic/zdepth_image_transport/2.1.31-4 + url: https://github.com/tork-a/jsk_3rdparty-release.git + version: 2.1.31 diff --git a/distros/noetic/tests/ros-noetic-desktop-full.yaml b/distros/noetic/tests/ros-noetic-desktop-full.yaml new file mode 100644 index 000000000..6167c737a --- /dev/null +++ b/distros/noetic/tests/ros-noetic-desktop-full.yaml @@ -0,0 +1,4 @@ +tests: + - package_contents: + files: + - ${{ "Library/" if win }}share/desktop_full/package.xml diff --git a/distros/noetic/tests/ros-noetic-desktop.yaml b/distros/noetic/tests/ros-noetic-desktop.yaml new file mode 100644 index 000000000..c8d2da516 --- /dev/null +++ b/distros/noetic/tests/ros-noetic-desktop.yaml @@ -0,0 +1,4 @@ +tests: + - package_contents: + files: + - ${{ "Library/" if win }}share/desktop/package.xml diff --git a/distros/noetic/vinca.yaml b/distros/noetic/vinca.yaml new file mode 100644 index 000000000..c227f64b3 --- /dev/null +++ b/distros/noetic/vinca.yaml @@ -0,0 +1,365 @@ +# ROS 1: noetic doesn't extend shared/vinca.yaml (its package selection, mutex and +# per-package settings are ROS 2's); it shares the rosdep mappings (shared/robostack.yaml, +# with noetic's own on top in robostack.yaml). +ros_distro: noetic +patch_dir: patch +rosdistro_snapshot: rosdistro_snapshot.yaml +rosdistro_additional_recipes: rosdistro_additional_recipes.yaml + +# mapping for package keys +conda_index: + - ../../shared/robostack.yaml + - robostack.yaml + - packages-ignore.yaml + +build_number: 24 + +mutex_package: + name: "ros-distro-mutex" + version: "0.7.0" + upper_bound: "x.x" + run_constraints: + - libboost 1.88.* + - libboost-devel 1.88.* + - pcl 1.15.1.* + - gazebo 11.* + - libprotobuf 6.33.5.* + - libxml2 2.14.* + - ogre 1.10.12.* + - libopencv * qt6* + - krb5 1.21.* + + +packages_select_by_deps: + # Core ROS packages + - catkin + - actionlib + + # Desktop and perception metapackages + - desktop + - desktop-full + - perception-pcl + + # ROS Control + - controller-manager + - joint-state-controller + - diff-drive-controller + - effort-controllers + - velocity-controllers + + # MoveIt + - moveit + - moveit-visual-tools + + # Navigation + - amcl + - map-server + - move-base + - gmapping + - teb-local-planner + - fake-localization + + # TF2 packages + - geometry2 + - tf2 + - tf2-bullet + - tf2-eigen + - tf2-geometry-msgs + - tf2-kdl + - tf2-msgs + - tf2-py + - tf2-ros + - tf2-sensor-msgs + - tf2-tools + - tf2-web-republisher + + # Perception + - pcl-ros + - pcl-conversions + - octomap-ros + + # Point cloud packages + # Vision and image transport + - rgbd-launch + + # Visualization + - rviz + - rviz-visual-tools + + # RQT packages + - rqt-gui + - rqt-controller-manager + + # Robot localization and odometry + - robot-localization + + # Sensors and drivers + - imu-tools + - imu-filter-madgwick + + # Velodyne + - velodyne-simulator + + # RealSense + - realsense2-description + + # Gazebo + - gazebo-dev + - gazebo-ros + - gazebo-plugins + - gazebo-ros-control + - hector-gazebo-plugins + + # Webots + # ROS-IGN (Ignition Gazebo) + # Teleop and input + - joy + - teleop-twist-joy + - teleop-twist-keyboard + - twist-mux + - interactive-marker-twist-server + + # Robot platforms + - turtlebot3 + - turtlebot3-fake + + # Messages and common interfaces + - ackermann-msgs + - geometry-msgs + - nmea-msgs + - radar-msgs + + # Communication + - rosbridge-suite + - rosserial + - rosserial-arduino + - rosserial-client + - rosserial-python + - rosserial-server + - rosserial-msgs + - rosserial-windows + + # GPS and navigation + - gps-common + - nmea-navsat-driver + + # MAVROS + # November 2025: Fails due to incompatibility with boost 1.88; should be easy to fix + # - mavros + # - mavros-extras + # - libmavconn + # - mavros-msgs + # - mavlink + + # CAN bus + # Hector + - hector-map-tools + - hector-nav-msgs + - hector-trajectory-server + + # Audio + # Utilities + - kdl-parser-py + - ros-numpy + + - genmypy + - fcl + + # Camera descriptions + - pointgrey-camera-description + + # Combined robot hardware + # Plotting and visualization + - plotjuggler + - plotjuggler-ros + + # Additional tools + - lms1xx + - mrt_cmake_modules + + # Robot body filter and sensor filters + + - if: linux + then: + # CRAS (CTU Robot Autonomy Stack) packages - maintainer peci1 + - cras-cpp-common + - cras-py-common + - cras-docs-common + - cras-topic-tools + - cras-relative-positional-controller + - cras-msgs + - magnetometer-compass + - electronic-io + - rosmsg-cpp + - snmp-ros + - static-transform-mux + - rosbash-params + - dynamic-robot-state-publisher + - tf-static-publisher + - movie-publisher + - socketcan-interface + - socketcan-bridge + - rosmon + - rosmon-core + - dataspeed-can-usb + - dataspeed-ulc-can + - dbw-mkz-can + # - openni2-camera + - openni2-launch + - usb-cam + + - if: not win + then: + - rtabmap + - rtabmap-ros + - apriltag + - apriltag-ros + - rospack + - perception + - simulators + - navigation + - ros-control + - ros-controllers + - joint-trajectory-controller + - imu-sensor-controller + - ackermann-steering-controller + - force-torque-sensor-controller + - gripper-action-controller + - moveit-servo + - moveit-ros-move-group + - moveit-ros-manipulation + - moveit-ros-planning-interface + - moveit-ros-visualization + - panda-moveit-config + - slam-gmapping + - openslam-gmapping + - slam-toolbox + - global-planner + - tf2-client + - tf2-server + - tf-remapper-cpp + - tf-static-publisher + - octomap-mapping + - octomap-server + - geometric-shapes + - depthimage-to-laserscan + - laser-proc + - point-cloud-transport + - point-cloud-transport-plugins + - draco-point-cloud-transport + - point-cloud-color + - image-transport-codecs + - find-object-2d + - convex-decomposition + - aruco-ros + - jsk-visualization + - rqt-gui-cpp + - rqt-gui-py + - rqt-ez-publisher + - rqt-rosmon + - python-qt-binding + - qt-gui + - qt-gui-cpp + - microstrain-inertial-driver + - microstrain-inertial-msgs + - sick-tim + - urg-node + - urg-c + - velodyne + - velodyne-msgs + - velodyne-pcl + - velodyne-description + - velodyne-gazebo-plugins + - librealsense2 + - realsense2-camera + - webots-ros + - ros-ign + - ros-ign-bridge + - ros-ign-gazebo + - ros-ign-gazebo-demos + - ros-ign-image + - pr2-teleop + - turtlebot3-simulations + - turtlebot3-teleop + - husky-simulator + - husky-desktop + - husky-navigation + - audio-common-msgs + - ur-msgs + - franka-msgs + - four-wheel-steering-msgs + - compass-msgs + - electronic-io-msgs + - cras-msgs + - rosmon-msgs + - geodesy + - lanelet2 + - can-msgs + - lusb + - dataspeed-can-msg-filters + - dataspeed-can-tools + - dataspeed-ulc-msgs + - dbw-fca-description + - dbw-fca-msgs + - dbw-mkz-description + - dbw-mkz-msgs + - dbw-polaris-description + - dbw-polaris-msgs + - sound-play + - dynamixel-sdk + - pid + - rospy-message-converter + - rosdoc-lite + - rosfmt + - roslint + - roslisp + - cv-camera + - ecl-command-line + - ecl-containers + - ecl-converters + - ecl-core + - ecl-core-apps + - ecl-devices + - ecl-eigen + - ecl-formatters + - ecl-geometry + - ecl-ipc + - ecl-linear-algebra + - ecl-math + - ecl-sigslots + - ecl-statistics + - ecl-streams + - ecl-threads + - sophus + - urdf-geometry-parser + - combined-robot-hw + - handeye + - criutils + - baldor + - catch-ros + - swri-console + - p2os-driver + - robot-body-filter + - sensor-filters + - ros-babel-fish + - ros-babel-fish-test-msgs + +packages_exclude: + - libpointmatcher + - openni2-camera + - if: not linux + then: + - pendulum_control + - rttest + - tlsf + - tlsf_cpp + - euslisp + - jskeus + - roseus + - usb-cam + - openni2-launch + - if: win + then: + - stage + - stage-ros + diff --git a/tools/maintenance.py b/tools/maintenance.py index 7e737d5ba..53ec37f12 100644 --- a/tools/maintenance.py +++ b/tools/maintenance.py @@ -1388,11 +1388,11 @@ def mutex_problems(vinca: dict) -> list[str]: return [] -PATCH_NAME = re.compile(r"^ros2-(?P[a-z0-9-]+)(\.(osx|linux|win|unix|emscripten))?\.patch$") +PATCH_NAME = re.compile(r"^(?Pros2-|ros-[a-z]+-)(?P[a-z0-9-]+)(\.(osx|linux|win|unix|emscripten))?\.patch$") def unmatched_patches(patches: list[str], packages: set[str]) -> list[str]: - """Patches named after none of `packages`: vinca only applies ros2-[.].patch, + """Patches named after none of `packages`: vinca only applies [.].patch, so a misnamed patch (or one for a package that left the distribution) silently does nothing.""" names = {p.replace("_", "-") for p in packages} return [p for p in patches if (m := PATCH_NAME.match(p)) and m["package"] not in names] @@ -1471,10 +1471,12 @@ def check() -> Result: problems += [f"{distro}: {p}" for p in mutex_problems(vinca)] patches = sorted(p.name for p in (d / "patch").glob("*.patch")) for patch in patches: - if not PATCH_NAME.match(patch): - problems.append(f"{distro}: patch {patch} should be named ros2-[.].patch") + if not (m := PATCH_NAME.match(patch)) or m["prefix"] != rs.package_prefix(distro): + problems.append(f"{distro}: patch {patch} should be named " + f"{rs.package_prefix(distro)}[.].patch") packages = _available(distro) - all_packages |= packages + if distro not in rs.ROS1_DISTROS: # shared/ is ROS 2's + all_packages |= packages for patch in unmatched_patches(patches, packages): problems.append(f"{distro}: patch {patch} matches no package of the distribution, so it is never applied") for where, name in unknown_package_entries(d, packages): diff --git a/tools/robostack.py b/tools/robostack.py index c1555bf0a..eb8b8d9a3 100644 --- a/tools/robostack.py +++ b/tools/robostack.py @@ -317,6 +317,16 @@ def load_yaml(path: Path) -> dict: LIST_KEYS = ("packages_select_by_deps", "packages_exclude", "packages_skip") +# ROS 1 distributions: own package selection (their vinca.yaml doesn't extend +# shared/vinca.yaml) and the package names ros-- (ROS 2: ros2-) +ROS1_DISTROS = ("noetic",) + + +def package_prefix(distro: str) -> str: + """The prefix of the distribution's conda package names (and patch names).""" + return f"ros-{distro}-" if distro in ROS1_DISTROS else "ros2-" + + def work_dir(distro: str) -> Path: return DISTROS / distro / "work"