-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NA Test: add NA_OFI_TESTING_USE_CXI option for cxi auth key testing
This requires the presence of libcxi on the system Use cxil_alloc_svc()/cxil_destroy_svc() to allocate VNIs
- Loading branch information
Showing
5 changed files
with
194 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# - Try to find CXI | ||
# Once done this will define | ||
# CXI_FOUND - System has CXI | ||
# CXI_INCLUDE_DIRS - The CXI include directories | ||
# CXI_LIBRARIES - The libraries needed to use CXI | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(PC_CXI libcxi) | ||
|
||
find_path(CXI_INCLUDE_DIR libcxi/libcxi.h | ||
HINTS ${PC_CXI_INCLUDEDIR} ${PC_CXI_INCLUDE_DIRS}) | ||
|
||
find_library(CXI_LIBRARY NAMES cxi | ||
HINTS ${PC_CXI_LIBDIR} ${PC_CXI_LIBRARY_DIRS}) | ||
|
||
set(CXI_INCLUDE_DIRS ${CXI_INCLUDE_DIR}) | ||
set(CXI_LIBRARIES ${CXI_LIBRARY}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
# handle the QUIETLY and REQUIRED arguments and set CXI_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
find_package_handle_standard_args(CXI DEFAULT_MSG | ||
CXI_INCLUDE_DIR CXI_LIBRARY) | ||
|
||
mark_as_advanced(CXI_INCLUDE_DIR CXI_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters