Skip to content

Commit

Permalink
Updated the packaging script to allow packaging future platforms. (#1627
Browse files Browse the repository at this point in the history
)

Work Done
---------
1) Added a new option to point to other XRT images
2) Updated the packaging flow to recongize the xilinx_u200_xdma_201820_2 and xilinx_u250_xdma_201820_2 platforms and if found to package the scheduler FW image from alternate XRT installations.
3) Removed an unneeded echo command
  • Loading branch information
rozumx authored and stsoe committed Jul 9, 2019
1 parent 660f734 commit fbfb324
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/runtime_src/tools/scripts/pkgdsa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ opt_dsadir=""
opt_pkgdir="/tmp/pkgdsa"
opt_sdx="/proj/xbuilds/2018.2_daily_latest/installs/lin64/SDx/2018.2"
opt_xrt=""
alt_fw_dir=""
opt_cl=0
opt_dev=0
license_dir=""
Expand All @@ -51,6 +52,7 @@ usage()
echo "[-pkgdir <path>] Full path to direcory used by rpm,dep,xbins (default: /tmp/pkgdsa)"
echo "[-dev] Build development package"
echo "[-license <path>] Include license file(s) from the <path> in the package"
echo "[-altfwdir] Alternate firmware directory"
echo "[-help] List this help"

exit 1
Expand Down Expand Up @@ -100,6 +102,11 @@ while [ $# -gt 0 ]; do
opt_sdx=$1
shift
;;
-altfwdir)
shift
alt_fw_dir=$1
shift
;;
*)
echo "$1 invalid argument."
usage
Expand Down Expand Up @@ -441,6 +448,15 @@ initDsaBinEnvAndVars()
if [ "${SchedulerFamily}" != "" ]; then
if [ "${SchedulerFamily}" == "ERT-Gen1" ]; then
fwScheduler="${XILINX_XRT}/share/fw/sched.bin"

if [ "${opt_dsa}" == "xilinx_u200_xdma_201830_2" ]; then
fwScheduler="${alt_fw_dir}/share/fw/sched.bin"
fi

if [ "${opt_dsa}" == "xilinx_u250_xdma_201830_2" ]; then
fwScheduler="${alt_fw_dir}/share/fw/sched.bin"
fi

else
echo "ERROR: Unknown scheduler firmware family: ${SchedulerFamily}"
exit 1
Expand All @@ -457,7 +473,6 @@ initDsaBinEnvAndVars()

# -- Use latest FW for these platforms
if [ "${opt_dsa}" == "xilinx_u200_xdma_201830_2" ]; then
echo "SPR1"
fwManagement="${XILINX_XRT}/share/fw/cmc.bin"
fi

Expand Down

0 comments on commit fbfb324

Please sign in to comment.