Skip to content

Commit

Permalink
sw_services: xilplmi: remove 2nd file open call in tcl
Browse files Browse the repository at this point in the history
Remove the second xparameters.h file open call for the newly added
param.

Signed-off-by: Nandanikhil Gajulapally <[email protected]>
Acked-by: Harsha <[email protected]>
  • Loading branch information
Nandanikhil Gajulapally authored and Siva Addepalli committed Oct 28, 2024
1 parent a43a738 commit fb4eabe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/sw_services/xilplmi/data/xilplmi.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,10 @@ proc xgen_opts_file {libhandle} {
set value [common::get_property CONFIG.plm_get_opt_data_en $libhandle]
if {$proc_type == "psv_pmc"} {
if {$value == true} {
set file_handle [hsi::utils::open_include_file "xparameters.h"]
puts $file_handle "\n/* Enables the feature to get optional data for Versal */"
puts $file_handle "#define PLM_GET_OPT_DATA_EN"
}
} else {
set file_handle [hsi::utils::open_include_file "xparameters.h"]
puts $file_handle "\n/* Enables the feature to get optional data for Versal */"
puts $file_handle "#define PLM_GET_OPT_DATA_EN"
}
Expand Down

0 comments on commit fb4eabe

Please sign in to comment.