build: fix ysyx tracker
The git tracker for npc is not working since I refactor build system at commit f02d5eb2
.
This commit is contained in:
parent
e99236f711
commit
4c07b66093
1 changed files with 5 additions and 11 deletions
|
@ -13,7 +13,7 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
|||
option(BUILD_USE_BLOOP "Whether to use bloop to speed up elaborate" ON)
|
||||
option(BUILD_SIM_TARGET "Whether to build verilator simulation binary" ON)
|
||||
cmake_dependent_option(BUILD_SIM_NVBOARD_TARGET "Whether to build nvboard target" OFF "BUILD_SIM_TARGET" OFF)
|
||||
option(ENABLE_YSYX_GIT_TRACKER "Ysyx tracker support" OFF)
|
||||
option(ENABLE_YSYX_GIT_TRACKER "Ysyx tracker support" ON)
|
||||
set(TOPMODULE "Flow" CACHE STRING "Topmodule name in chisel")
|
||||
set(DIFFTEST_LIB "" CACHE STRING "Dynamic library file used as difftest reference")
|
||||
|
||||
|
@ -69,15 +69,9 @@ add_subdirectory(csrc)
|
|||
|
||||
# -- Add build tracking
|
||||
if(ENABLE_YSYX_GIT_TRACKER)
|
||||
add_custom_command(
|
||||
TARGET V${TOPMODULE}_nvboard PRE_BUILD
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/../git_commit.sh "build_${CMAKE_PROJECT_NAME}_V${TOPMODULE}_nvboard"
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/..
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
TARGET V${TOPMODULE} PRE_BUILD
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/../git_commit.sh "build_${CMAKE_PROJECT_NAME}_V${TOPMODULE}"
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/..
|
||||
add_custom_target(
|
||||
ysyx_git_tracer ALL
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/../git_commit.sh "build_${CMAKE_PROJECT_NAME}_V${TOPMODULE}"
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/..
|
||||
)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue