Skip to content

Commit

Permalink
add cmake definition for linux builds (Xilinx#8042)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackwa authored Apr 1, 2024
1 parent b6d0d00 commit 72f7994
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ target_compile_definitions(aie2_profile_config PRIVATE
__PS_ENABLE_AIE__
XCLHAL_MAJOR_VER=1
XCLHAL_MINOR_VER=0
FAL_LINUX="on"
)

target_link_libraries(aie2_profile_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ target_compile_definitions(aie2_trace_config PRIVATE
__PS_ENABLE_AIE__
XCLHAL_MAJOR_VER=1
XCLHAL_MINOR_VER=0
FAL_LINUX="on"
)

target_link_libraries(aie2_trace_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ target_compile_definitions(aie_profile_config PRIVATE
__PS_ENABLE_AIE__
XCLHAL_MAJOR_VER=1
XCLHAL_MINOR_VER=0
FAL_LINUX="on"
)

target_link_libraries(aie_profile_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ target_compile_definitions(aie_trace_config PRIVATE
__PS_ENABLE_AIE__
XCLHAL_MAJOR_VER=1
XCLHAL_MINOR_VER=0
FAL_LINUX="on"
)

target_link_libraries(aie_trace_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ target_compile_definitions(aie_trace_gmio PRIVATE
__PS_ENABLE_AIE__
XCLHAL_MAJOR_VER=1
XCLHAL_MINOR_VER=0
FAL_LINUX="on"
)

target_link_libraries(aie_trace_gmio
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ elseif (${XRT_NATIVE_BUILD} STREQUAL "yes")
)

elseif (DEFINED XRT_AIE_BUILD AND ${XRT_NATIVE_BUILD} STREQUAL "no")
add_library(xdp_aie_profile_plugin MODULE ${AIE_PROFILE_PLUGIN_FILES} ${AIE_PROFILE_UTIL_FILES})

add_library(xdp_aie_profile_plugin MODULE ${AIE_PROFILE_PLUGIN_FILES} ${AIE_PROFILE_UTIL_FILES})
add_dependencies(xdp_aie_profile_plugin xdp_core xrt_coreutil)
target_link_libraries(xdp_aie_profile_plugin PRIVATE xdp_core xrt_coreutil xaiengine)
target_compile_definitions(xdp_aie_profile_plugin PRIVATE FAL_LINUX="on")
set_target_properties(xdp_aie_profile_plugin PROPERTIES VERSION ${XRT_VERSION_STRING} SOVERSION ${XRT_SOVERSION})

install (TARGETS xdp_aie_profile_plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ file(GLOB AIE_STATUS_PLUGIN_FILES
add_library(xdp_aie_status_plugin MODULE ${AIE_STATUS_PLUGIN_FILES})
add_dependencies(xdp_aie_status_plugin xdp_core)
target_link_libraries(xdp_aie_status_plugin PRIVATE xdp_core xaiengine)
target_compile_definitions(xdp_aie_status_plugin PRIVATE FAL_LINUX="on")

set_target_properties(xdp_aie_status_plugin PROPERTIES VERSION ${XRT_VERSION_STRING} SOVERSION ${XRT_SOVERSION})

Expand Down
2 changes: 2 additions & 0 deletions src/runtime_src/xdp/profile/plugin/aie_trace/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ elseif (DEFINED XRT_AIE_BUILD AND ${XRT_NATIVE_BUILD} STREQUAL "no")

add_dependencies(xdp_aie_trace_plugin xdp_core xrt_coreutil)
target_link_libraries(xdp_aie_trace_plugin PRIVATE xdp_core xrt_coreutil xaiengine)
target_compile_definitions(xdp_aie_trace_plugin PRIVATE FAL_LINUX="on")

set_target_properties(xdp_aie_trace_plugin PROPERTIES VERSION ${XRT_VERSION_STRING} SOVERSION ${XRT_SOVERSION})

install (TARGETS xdp_aie_trace_plugin
Expand Down

0 comments on commit 72f7994

Please sign in to comment.