@@ -17,7 +17,11 @@ set ::env(OPENLANE_ROOT) [file dirname [file normalize [info script]]]
1717if { ! [info exists ::env(OPENROAD_BIN) ] } {
1818 set ::env(OPENROAD_BIN) openroad
1919}
20- lappend ::auto_path " $::env(OPENLANE_ROOT) /scripts/"
20+ if { [info exists ::env(TCL8_5_TM_PATH)] } {
21+ set ::env(TCL8_5_TM_PATH) " $::env(OPENLANE_ROOT) /scripts:$::env(TCL8_5_TM_PATH) "
22+ } else {
23+ set ::env(TCL8_5_TM_PATH) " $::env(OPENLANE_ROOT) /scripts"
24+ }
2125package require openlane; # provides the utils as well
2226
2327proc run_placement_step {args} {
@@ -371,25 +375,25 @@ set flags {-interactive -it -drc -lvs -synth_explore -run_hooks}
371375
372376parse_key_args " flow.tcl" argv arg_values $options flags_map $flags -no_consume
373377
374- if {[catch {exec cat /git_version} ::env(OPENLANE_VERSION )]} {
375- if {[catch {exec git --git-dir $::env(OPENLANE_ROOT) /.git rev-parse HEAD} ::env(OPENLANE_VERSION )]} {
376- set ::env(OPENLANE_VERSION ) " "
378+ if {[catch {exec cat /git_version} ::env(OPENLANE_COMMIT )]} {
379+ if {[catch {exec git --git-dir $::env(OPENLANE_ROOT) /.git rev-parse HEAD} ::env(OPENLANE_COMMIT )]} {
380+ set ::env(OPENLANE_COMMIT ) " "
377381 }
378382}
379383
380384if { [file isdirectory $::env(OPENLANE_ROOT) /.git] } {
381385 if {![catch {exec git --git-dir $::env(OPENLANE_ROOT) /.git rev-parse HEAD} ::env(OPENLANE_MOUNTED_SCRIPTS_VERSION)]} {
382- if { $::env(OPENLANE_VERSION ) == $::env(OPENLANE_MOUNTED_SCRIPTS_VERSION) } {
386+ if { $::env(OPENLANE_COMMIT ) == $::env(OPENLANE_MOUNTED_SCRIPTS_VERSION) } {
383387 unset ::env(OPENLANE_MOUNTED_SCRIPTS_VERSION)
384388 }
385389 }
386390}
387391
388- puts " OpenLane $::env(OPENLANE_VERSION ) "
392+ puts " OpenLane v [ package version openlane ] ( $::env(OPENLANE_COMMIT) )"
389393if { [info exists ::env(OPENLANE_MOUNTED_SCRIPTS_VERSION)] } {
390394 puts " (with mounted scripts from $::env(OPENLANE_MOUNTED_SCRIPTS_VERSION) )"
391395}
392- puts " All rights reserved. (c) 2020-2023 Efabless Corporation and contributors."
396+ puts " All rights reserved. (c) 2020-2024 Efabless Corporation and contributors."
393397puts " Available under the Apache License, version 2.0. See the LICENSE file for more details."
394398puts " "
395399
0 commit comments