{ "version": "2.0.0", "options": { "env": { "xilinx_path": "/home/excessive/Xilinx", "xilinx_version": "2023.1", "petalinux_path": "/home/excessive/PetaLinux" } }, "tasks": [ { "label": "create subst path vivado", "type": "shell", "windows": { "command": "if not exist S: subst S: ${workspaceFolder}/controller-firmware"}, "linux": { "command": "echo ''"}, "problemMatcher": [] }, { "label": "create subst path vitis", "type": "shell", "windows": { "command": "if not exist T: subst T: ${workspaceFolder}/controller-software"}, "linux": { "command": "echo ''"}, "problemMatcher": [] }, { "label": "setup python venv", "type": "shell", "command": "if not exist venv python -m venv venv", "options": { "cwd": "${workspaceFolder}/controller-firmware/python/" }, "problemMatcher": [] }, { "label": "install python packages", "type": "shell", "command": "venv\\Scripts\\activate.bat && pip install -r requirements.txt", "options": { "cwd": "${workspaceFolder}/controller-firmware/python/" }, "dependsOn": ["setup python venv"], "problemMatcher": [] }, { "label": "create vivado project", "type": "shell", "windows": { "command": "${env:xilinx_path}/vivado/${env:xilinx_version}/settings64.bat && if not exist S:vivado/controller_firmware vivado -mode batch -source ${workspaceFolder}/controller-firmware/vivado/create_project.tcl -tclargs S:Vivado"}, "linux": { "command": "source ${xilinx_path}/Vivado/${xilinx_version}/settings64.sh && if [ ! -d ${workspaceFolder}/controller-firmware/Vivado/controller-firmware ]; then vivado -mode batch -source ${workspaceFolder}/controller-firmware/Vivado/create_project.tcl -tclargs ${workspaceFolder}/controller-firmware/Vivado; fi"}, "problemMatcher": [], "dependsOn": ["create subst path vivado"], }, { "label": "save vivado project", "type": "shell", "command": "c:/xilinx/vivado/2023.1/settings64.bat && vivado -mode batch -source ${workspaceFolder}/controller-firmware/vivado/save_project.tcl", // TODO: make this vivado path easier to change "problemMatcher": [], "dependsOn": ["create subst path"] }, { "label": "setup project", "dependsOn": ["create vivado project", "install python packages"], "problemMatcher": [] } //TODO: add tasks for copying and installing petalinux files (.xsa file, etc.) ] }