Skip to content

Commit

Permalink
[Hexagon] Update instructions to compile hexagon runtime (#14948)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
abhikran-quic authored May 31, 2023
1 parent ea57778 commit 4eb1a4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/HexagonSDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/hexagon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down

0 comments on commit 4eb1a4f

Please sign in to comment.