diff --git a/src/make.tcl b/src/make.tcl index a8b9812d..56f2608a 100644 --- a/src/make.tcl +++ b/src/make.tcl @@ -2765,11 +2765,12 @@ if {$sdxpath eq ""} { set testpath $rtfolder/$rtname if {[file exists $testpath]} { if {[file type $testpath] eq "directory"} { - set tclkitpath $rtfolder/[punkboot::lib::runtime_buildcopyname $testpath] + set alt_tclkitpath $rtfolder/[punkboot::lib::runtime_buildcopyname $testpath] } else { - set tclkitpath $testpath + set alt_tclkitpath $testpath } - if {$tclkitpath ne "" && [file exists $tclkitpath]} { + if {[file exists $alt_tclkitpath]} { + set sdxpath [list {*}$alt_tclkitpath $binfolder/sdx.kit] break } }