Skip to content

Commit 209f3b7

Browse files
committed
updating BuildInfoPkg.vhd generation to match slaclab/surf/vsg-linter.yml
1 parent 5073704 commit 209f3b7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

shared/proc.tcl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ proc GetGitHash { } {
232232
while { [string bytelength $gitHash] != 40 } {
233233
set gitHash "0${gitHash}"
234234
}
235-
return ${gitHash}
235+
return [string toupper $gitHash]
236236
}
237237

238238
## Generate the Firmware Version string
@@ -277,11 +277,16 @@ proc GenBuildString { pkgDir } {
277277
set out [open ${pkgDir}/BuildInfoPkg.vhd w]
278278
puts ${out} "library ieee;"
279279
puts ${out} "use ieee.std_logic_1164.all;"
280+
puts ${out} ""
280281
puts ${out} "library surf;"
281282
puts ${out} "use surf.StdRtlPkg.all;"
283+
puts ${out} ""
282284
puts ${out} "package BuildInfoPkg is"
283-
puts ${out} "constant BUILD_INFO_C : BuildInfoType :=x\"${gitHash}${fwVersion}${buildString}\";"
285+
puts ${out} ""
286+
puts ${out} " constant BUILD_INFO_C : BuildInfoType := x\"${gitHash}${fwVersion}${buildString}\";"
287+
puts ${out} ""
284288
puts ${out} "end BuildInfoPkg;"
289+
puts ${out} ""
285290
close ${out}
286291
loadSource -lib ruckus -path ${pkgDir}/BuildInfoPkg.vhd
287292
}

0 commit comments

Comments
 (0)