tcl/target: add SPDX tag
[fw/openocd] / tcl / target / test_reset_syntax_error.cfg
index e573c1c0a46dc9b9c41b6eb0e815a0625b937ffe..7ef5914aa344f51c019c1d461dd3657ec8d6d6f2 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Test script to check that syntax error in reset
 # script is reported properly.
 
@@ -5,13 +7,13 @@
 
 #jtag scan chain
 set _CHIPNAME syntaxtest
-jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf
 
 #target configuration
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME
 
-$_TARGETNAME configure -event reset-init { 
+$_TARGETNAME configure -event reset-init {
 
        syntax error
 }