Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"bf_" name change for P4CP #405

Merged
merged 3 commits into from
Feb 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions cmake/FindEs2kDriver.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
# Define SDE_INCLUDE_DIR
#-----------------------------------------------------------------------
find_path(SDE_INCLUDE_DIR
NAMES "bf_switchd/bf_switchd.h"
NAMES "ipu_p4d/ipu_p4d.h"
PATHS ${SDE_INSTALL_DIR}/include
)
if(NOT SDE_INCLUDE_DIR)
message(STATUS "bf_switchd.h not found")
message(STATUS "ipu_p4d.h not found")
message("---------------------------------------------")
message("Your SDE_INSTALL_DIR appears to be incorrect.")
message("Its current value is '${SDE_INSTALL_DIR}'.")
Expand All @@ -36,11 +36,11 @@ endif()
#-----------------------------------------------------------------------
# Find libraries
#-----------------------------------------------------------------------
find_library(LIBBF_SWITCHD bf_switchd_lib)
if(NOT LIBBF_SWITCHD)
message(FATAL_ERROR "sde::bf_switchd_lib library not found")
find_library(LIBIPU_P4D ipu_p4d_lib)
if(NOT LIBIPU_P4D)
message(FATAL_ERROR "sde::ipu_p4d_lib library not found")
endif()
mark_as_advanced(LIBBF_SWITCHD)
mark_as_advanced(LIBIPU_P4D)

find_library(LIBDRIVER driver)
if(NOT LIBDRIVER)
Expand Down Expand Up @@ -88,9 +88,9 @@ endif()
#-----------------------------------------------------------------------
# Define library targets
#-----------------------------------------------------------------------
add_library(sde::bf_switchd UNKNOWN IMPORTED)
set_target_properties(sde::bf_switchd PROPERTIES
IMPORTED_LOCATION ${LIBBF_SWITCHD}
add_library(sde::ipu_p4d UNKNOWN IMPORTED)
set_target_properties(sde::ipu_p4d PROPERTIES
IMPORTED_LOCATION ${LIBIPU_P4D}
INTERFACE_INCLUDE_DIRECTORIES ${SDE_INCLUDE_DIR}
IMPORTED_LINK_INTERFACE_LANGUAGES C)

Expand Down Expand Up @@ -154,7 +154,7 @@ _define_es2k_library_dirs(SDE_LIBRARY_DIRS)
#-----------------------------------------------------------------------
function(add_es2k_target_libraries TGT)
target_link_libraries(${TGT} PUBLIC
sde::bf_switchd
sde::ipu_p4d
sde::driver
sde::target_sys
sde::target_utils
Expand Down
Loading