Skip to content

Instantly share code, notes, and snippets.

@aaronautt
Created July 8, 2020 17:23
Show Gist options
  • Save aaronautt/32cf405e5f8166d8fa51eae6c20da74b to your computer and use it in GitHub Desktop.
Save aaronautt/32cf405e5f8166d8fa51eae6c20da74b to your computer and use it in GitHub Desktop.
Vitis 2020.1 project recreation, pass in absolute path to xsa and source code you wish to import
if { $argc != 2 } {
puts "please input path to an xsa and a path to the source code"
exit
}
setws ./workspace
cd ./workspace
app create -name app_name -hw [lindex $argv 0] -os standalone -proc ps7_cortexa9_0 -template {Hello World}
importsources -name app_name -path [lindex $argv 1] -soft-link
file delete -force ./app_name/src/helloworld.c
app config -name app_name -add include-path ../../app_name/src
app build -name app_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment