-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make build script compatible with vivado/vitis 2022.1
(should also work for all version 2020.1 and above)
- Loading branch information
1 parent
a1c2ce7
commit f77f964
Showing
2 changed files
with
15 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
hsi open_hw_design build/system_top.hdf | ||
hsi open_hw_design build/system_top.xsa | ||
set cpu_name [lindex [hsi get_cells -filter {IP_TYPE==PROCESSOR}] 0] | ||
|
||
sdk setws ./build/sdk | ||
sdk createhw -name hw_0 -hwspec build/system_top.hdf | ||
|
||
# Workaround for broken write_sysdev in vivado 2018.2 | ||
catch { | ||
set copyfiles [glob ./build/ps7_init*] | ||
if {[llength $copyfiles]} { | ||
file copy {*}$copyfiles ./build/sdk/hw_0/ | ||
} | ||
} | ||
sdk createapp -name fsbl -hwproject hw_0 -proc $cpu_name -os standalone -lang C -app {Zynq FSBL} | ||
configapp -app fsbl build-config release | ||
sdk projects -build -type all | ||
#xsdk -batch -source create_fsbl_project.tcl | ||
setws ./build/sdk | ||
app create -name fsbl -hw build/system_top.xsa -proc $cpu_name -os standalone -lang C -template {Zynq FSBL} | ||
app config -name fsbl -set build-config release | ||
app build -name fsbl |