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

[BUILD] enhance build script for optional vta dep #6497

Merged
merged 1 commit into from Sep 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions cmake/modules/VTA.cmake
Expand Up @@ -25,11 +25,14 @@ else()
set(VTA_HW_PATH $ENV{VTA_HW_PATH})
endif()

message(STATUS "VTA build with VTA_HW_PATH=" ${VTA_HW_PATH})

if(MSVC)
message(STATUS "VTA build is skipped in Windows..")
elseif(NOT EXISTS ${VTA_HW_PATH})
if (USE_VTA_TSIM OR USE_VTA_FSIM OR USE_UFPGA)
message(FATAL_ERROR "VTA path " ${VTA_HW_PATH} " does not exist")
endif()
elseif(PYTHON)
message(STATUS "VTA build with VTA_HW_PATH=" ${VTA_HW_PATH})
set(VTA_CONFIG ${PYTHON} ${VTA_HW_PATH}/config/vta_config.py)

if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/vta_config.json)
Expand Down