Skip to content

Commit

Permalink
Properly set AWS_FPGA_REPO_DIR for F1 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud User committed Nov 15, 2018
1 parent 512252e commit 47cfb49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/runtime_src/driver/xclng/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Set INTERNAL_TESTING variable by setting the shell environment
# variable "AWS_F1_TARGET" when invoking build.sh or cmake. If it
# is not defined, default to INTERNAL_TESTING = 1.
if( $ENV{AWS_FPGA_REPO_DIR} )
if(DEFINED ENV{AWS_FPGA_REPO_DIR} )
set(AWS_FPGA_REPO_DIR $ENV{AWS_FPGA_REPO_DIR})
set(INTERNAL_TESTING 0)
else()
set(INTERNAL_TESTING 1)
Expand Down
4 changes: 2 additions & 2 deletions src/runtime_src/driver/xclng/tools/awssak/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ if(${INTERNAL_TESTING})
rt
)
else()
include_directories(../../../../../../../sdk/userspace/include/) # path to fpga_mgmt.h
set(AWS_FPGA_MGMT_LIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../sdk/userspace/lib)
include_directories(${AWS_FPGA_REPO_DIR}/sdk/userspace/include/) # path to fpga_mgmt.h
set(AWS_FPGA_MGMT_LIB_DIR ${AWS_FPGA_REPO_DIR}/sdk/userspace/lib)

target_link_libraries(awssak
xrt_awsstatic
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_src/driver/xclng/xrt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if(${INTERNAL_TESTING})
rt
)
else()
set(AWS_FPGA_MGMT_LIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../sdk/userspace/lib)
set(AWS_FPGA_MGMT_LIB_DIR ${AWS_FPGA_REPO_DIR}/sdk/userspace/lib)
target_link_libraries(xrt_aws
pthread
rt
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_src/driver/xclng/xrt/user_aws/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if(${INTERNAL_TESTING})
add_definitions(-DINTERNAL_TESTING)
else()
include_directories(../../../../../../../sdk/userspace/include/)
include_directories(${AWS_FPGA_REPO_DIR}/sdk/userspace/include/)
endif()

include_directories(
Expand Down

0 comments on commit 47cfb49

Please sign in to comment.