Skip to content

Commit

Permalink
Merge pull request f4pga#828 from antmicro/quiet-cmake
Browse files Browse the repository at this point in the history
devices.cmake: quiet script registration
  • Loading branch information
acomodi committed Jun 18, 2019
2 parents 82814a7 + 91b996a commit fa546b8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions common/cmake/devices.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,12 @@ function(DEFINE_DEVICE_TYPE)
# for each script generate next chain of deps
if (DEFINE_DEVICE_TYPE_SCRIPTS)
list(LENGTH ${DEFINE_DEVICE_TYPE_SCRIPTS} SCRIPT_LEN)
message(STATUS "script_len ${SCRIPT_LEN} ${DEFINE_DEVICE_TYPE_SCRIPTS}")
foreach(SCRIPT_IND RANGE ${SCRIPT_LEN})
list(GET DEFINE_DEVICE_TYPE_SCRIPT_OUTPUT_NAME ${SCRIPT_IND} OUTPUT_NAME)
list(GET DEFINE_DEVICE_TYPE_SCRIPTS ${SCRIPT_IND} SCRIPT)
separate_arguments(CMD_W_ARGS UNIX_COMMAND ${SCRIPT})
list(GET CMD_W_ARGS 0 CMD)
set(TEMP_TARGET arch.${OUTPUT_NAME}.xml)
message(STATUS "device_type adding script")
add_custom_command(
OUTPUT ${TEMP_TARGET}
COMMAND ${PYTHON3} ${CMD_W_ARGS} ${FINAL_OUTPUT} > ${TEMP_TARGET}
Expand Down

0 comments on commit fa546b8

Please sign in to comment.