[scripts][do-*-xmd] create xmd.tcl file that takes argument

refactor do-zybo-xmd and do-uzed-xmd to use the single xmd tcl file

Change-Id: Ibf3f58127103ff563b617a0025a15815d2f28049
This commit is contained in:
Travis Geiselbrecht
2015-03-18 14:41:38 -07:00
parent 5cea44316c
commit eac56a0ec7
5 changed files with 26 additions and 22 deletions

View File

@@ -1,4 +1,6 @@
#!/bin/sh
make uzed-test -j &&
xmd -tcl scripts/uzed-xmd.tcl
PROJECT=uzed-test
make $PROJECT -j &&
xmd -tcl scripts/xmd.tcl $PROJECT

View File

@@ -1,4 +1,6 @@
#!/bin/sh
make zybo-test -j &&
xmd -tcl scripts/zybo-xmd.tcl
PROJECT=zybo-test
make $PROJECT -j &&
xmd -tcl scripts/xmd.tcl $PROJECT

View File

@@ -1,9 +0,0 @@
connect arm hw
rst
after 1000
stop
dow -data build-uzed-test/lk.bin 0
rwr pc 0
con

18
scripts/xmd.tcl Normal file
View File

@@ -0,0 +1,18 @@
#puts "argc = $argc"
#puts "argv = $argv"
#puts "arg 1 is [lindex $argv 0]"
if { $argc != 1 } {
puts "not enough arguments to xmd script"
exit
}
connect arm hw
rst
after 1000
stop
dow -data build-[lindex $argv 0]/lk.bin 0
rwr pc 0
con

View File

@@ -1,9 +0,0 @@
connect arm hw
rst
after 1000
stop
dow -data build-zybo-test/lk.bin 0
rwr pc 0
con