Skip to content

Commit

Permalink
Added support to retrive V350 BMC FW image (AlveoGen5) during CMake c…
Browse files Browse the repository at this point in the history
…ompilation. (Xilinx#2879)
  • Loading branch information
rozumx authored Feb 24, 2020
1 parent 86dd707 commit 448ce8b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/runtime_src/ert/bmc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,17 @@ FILE(DOWNLOAD ${URL_MSP432_GEN4}/BMC-MSP432.txt ${CMAKE_CURRENT_BINARY_DIR}/${AL

list(APPEND ALVEO_FW_FILES ${CMAKE_CURRENT_BINARY_DIR}/${ALVEOGEN4}-${ALVEOGEN4_FILENAME})

# =============== ALVEO GEN5 =====================
# Get and rename the files from the repository
set (ALVEOGEN5 "AlveoGen5")
set (URL_MSP432_GEN5 "https://raw.gitenterprise.xilinx.com/XBB/BMC-firmware-binaries/V350/BMC-card-firmware")

# Download the file name, retrieve the file name, and download the FW image with the new file name
FILE(DOWNLOAD ${URL_MSP432_GEN5}/BMC-MSP432.txt.filename ${CMAKE_CURRENT_BINARY_DIR}/${ALVEOGEN5}-BMC-MSP432.txt.filename STATUS mystatus)
FILE(STRINGS ${CMAKE_CURRENT_BINARY_DIR}/${ALVEOGEN5}-BMC-MSP432.txt.filename ALVEOGEN5_FILENAME)
FILE(DOWNLOAD ${URL_MSP432_GEN5}/BMC-MSP432.txt ${CMAKE_CURRENT_BINARY_DIR}/${ALVEOGEN5}-${ALVEOGEN5_FILENAME} STATUS mystatus)

list(APPEND ALVEO_FW_FILES ${CMAKE_CURRENT_BINARY_DIR}/${ALVEOGEN5}-${ALVEOGEN5_FILENAME})

# ================= INSTALL FIRMWARE IMAGES =========================
install (FILES ${ALVEO_FW_FILES} DESTINATION ${ERT_INSTALL_PREFIX})

0 comments on commit 448ce8b

Please sign in to comment.