From 032064088d5c10a82cec9764302e97e8baf9fa7b Mon Sep 17 00:00:00 2001 From: Abhikrant Sharma <63697863+abhikran-quic@users.noreply.github.com> Date: Wed, 31 May 2023 22:07:11 +0530 Subject: [PATCH] [Hexagon] Update instructions to compile hexagon runtime (#14948) * [Hexagon] Update instructions to compile hexagon runtime Also, added include path of dlfcn.h which is applicable from Hexagon SDK 5.3.0.0 * Add condition to enable dlfcn path from SDK 5.3.0.0 --- cmake/modules/HexagonSDK.cmake | 4 ++++ src/runtime/hexagon/README.md | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cmake/modules/HexagonSDK.cmake b/cmake/modules/HexagonSDK.cmake index e74898a6609f..9196396646c2 100644 --- a/cmake/modules/HexagonSDK.cmake +++ b/cmake/modules/HexagonSDK.cmake @@ -168,6 +168,10 @@ function(_get_hexagon_sdk_property_impl "${_hexagon_sdk_root}/rtos/qurt/${_hexarch_dir}/include/qurt" "${_hexagon_sdk_root}/ipc/fastrpc/rtld/ship/${_rtld_dir}" ) + _check_path_exists("${_hexagon_sdk_root}/ipc/fastrpc/rtld/ship/inc" _sdk_dlfcn) + if(_sdk_dlfcn) + list(APPEND _dirs "${_hexagon_sdk_root}/ipc/fastrpc/rtld/ship/inc") + endif() elseif(_property STREQUAL "QURT_LIB") set(_dirs "${_hexagon_sdk_root}/rtos/qurt/${_hexarch_dir}/lib/pic") elseif(_property STREQUAL "RPCMEM_ROOT") diff --git a/src/runtime/hexagon/README.md b/src/runtime/hexagon/README.md index 118c72791778..6e68a4003475 100644 --- a/src/runtime/hexagon/README.md +++ b/src/runtime/hexagon/README.md @@ -65,6 +65,8 @@ CMAKE_CXX_COMPILER=hexagon-clang++ USE_HEXAGON=ON USE_HEXAGON_ARCH=v65|v66|v68|v69|v73 USE_HEXAGON_SDK=/path/to/sdk +USE_RPC=OFF +USE_LIBBACKTRACE=OFF ``` As mentioned before, only build the `runtime` component (e.g. `make runtime`).