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