tcl/board: drop 'tcl' prefix in 'find' command
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 26 Oct 2020 16:54:55 +0000 (17:54 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 30 Oct 2020 22:03:10 +0000 (22:03 +0000)
When OpenOCD is installed to the host the 'tcl' folder gets
usually installed in /usr/share/openocd/, thus having 'tcl' as
prefix of the target's file causes 'find' to fail.

Remove the 'tcl' folder prefix.

Change-Id: I3dc484c8de6af8f5aae4dd1b230522ee47ae2ba6
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5887
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
tcl/board/tocoding_poplar.cfg
tcl/board/tx25_stk5.cfg

index d0951ce646f3c61df988c035d373ea8062b8f7e2..6d2e6354e52aab6eba6b0619c30bf6626dcd0afb 100644 (file)
@@ -10,7 +10,7 @@ adapter speed 10000
 # SRST-only reset configuration
 reset_config srst_only srst_push_pull
 
-source [find tcl/target/hi3798.cfg]
+source [find target/hi3798.cfg]
 
 # make sure the default target is the boot core
 targets ${_TARGETNAME}0
index 846bf58f5c1ec88a0c8e3496d3de8aa68d76f5de..9d77afdf33c3876cd5d47ab5d85bf2264e131247 100644 (file)
@@ -4,7 +4,7 @@
 # -------------------------------------------------------------------------
 
 
-source [find tcl/target/imx25.cfg]
+source [find target/imx25.cfg]
 
        #-------------------------------------------------------------------------
        # Declare Nand