From 5d75992d8849dac60f1a01e47073f2ca3191999f Mon Sep 17 00:00:00 2001 From: Hua Jiang Date: Thu, 30 Apr 2020 08:07:23 -0700 Subject: [PATCH] [VTA] Fix VTA compile issue (#5481) * [VTA] Fix Pynq driver build issue. Issue: When doing vta compile in xilinx FPGA, the pynqdriver.cc report can not find Solution: add related path. * Fix libvta load fail issue. issue: run vta on pynq board libvta.so load failed. solution: fixed VTA.make logic issue --- cmake/modules/VTA.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/modules/VTA.cmake b/cmake/modules/VTA.cmake index 4af39e0..31208bc 100644 --- a/cmake/modules/VTA.cmake +++ b/cmake/modules/VTA.cmake @@ -89,7 +89,7 @@ elseif(PYTHON) # VTA FPGA driver sources if(USE_VTA_FPGA) - file(GLOB FPGA_RUNTIME_SRCS ${VTA_HW_PATH}/src/*.cc) + file(GLOB FPGA_RUNTIME_SRCS vta/runtime/*.cc) # Rules for Zynq-class FPGAs with pynq OS support (see pynq.io) if(${VTA_TARGET} STREQUAL "pynq" OR ${VTA_TARGET} STREQUAL "ultra96") @@ -108,6 +108,7 @@ elseif(PYTHON) endforeach() if(${VTA_TARGET} STREQUAL "pynq" OR ${VTA_TARGET} STREQUAL "ultra96") + target_include_directories(vta PUBLIC ${VTA_HW_PATH}/include) target_link_libraries(vta ${__cma_lib}) elseif(${VTA_TARGET} STREQUAL "de10nano") # DE10-Nano rules #target_compile_definitions(vta PUBLIC VTA_MAX_XFER=2097152) # (1<<21) -- 2.7.4