| 1 | hdf_destination=$1 |
| 2 | build_destination=$2 |
| 3 | |
| 4 | missing_arguments() |
| 5 | { |
| 6 | echo "Insuficient arguments from the command line. Enter the arguments" |
| 7 | |
| 8 | echo "Enter the project build folder" |
| 9 | echo "example => /home/user/workspace/my_proj" |
| 10 | read -p " : " build_destination |
| 11 | |
| 12 | echo Enter the system_top.hdf location |
| 13 | echo "example => /home/user/workspace/my_proj_hdf/system_top.hdf" |
| 14 | read -p " : " hdf_destination |
| 15 | } |
| 16 | |
| 17 | got_arguments() |
| 18 | { |
| 19 | if [ "$build_destination" = "" ] |
| 20 | then |
| 21 | build_destination="./" |
| 22 | fi |
| 23 | echo "$build_destination" |
| 24 | echo "$hdf_destination" |
| 25 | } |
| 26 | |
| 27 | if [ "$hdf_destination" = "" ] |
| 28 | then |
| 29 | missing_arguments |
| 30 | else |
| 31 | got_arguments |
| 32 | fi |
| 33 | |
| 34 | xsct ../build_scripts/xilinx/create_sdk_project.tcl "$hdf_destination" "$build_destination" |
| 35 | |
| 36 | echo "Done!" |