Skip to content

Commit

Permalink
Create current list of persistent read/write attributes each build
Browse files Browse the repository at this point in the history
Modified xmltohb.pl to output a list of persistent read/write
attributes to a file named rwAttrList.csv in obj/genfiles.

Change-Id: I7f17a709891f9742c9e4943174c0fd7a023ed940
RTC:163084
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41536
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
  • Loading branch information
popfuture authored and dcrowell77 committed Jun 24, 2017
1 parent 099d196 commit c344368
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/usr/targeting/common/xmltohb/xmltohb.pl
Expand Up @@ -249,6 +249,33 @@
handleTgtPtrAttributesHb(\$attributes, \%Target_t);
}

# Output R/W attributes
my $rwAttrOutputDir = "";
if (!($cfgSrcOutputDir =~ "none"))
{
$rwAttrOutputDir = $cfgSrcOutputDir;
}
open(my $rwAttrFile, ">$rwAttrOutputDir"."PersistRwAttrList.csv")
or croak("R/W data file 'PersistRwAttrList.csv' could not be opened.");

print $rwAttrFile "# PersistRwAttrList.csv\n"
. "# This file is generated by perl script xmltohb.pl\n"
. "# It lists all non-volatile read/write attributes that persist in PNOR\n"
. "# and can be manipulated at will.\n";

foreach my $attrs (@{$attributes->{attribute}})
{
if (exists $attrs->{readable} &&
exists $attrs->{writeable} &&
exists $attrs->{persistency} &&
$attrs->{persistency} eq "non-volatile")
{
print $rwAttrFile "$attrs->{id}\n";
}

}
close $rwAttrFile;

# Open the output files and write them
if( !($cfgSrcOutputDir =~ "none") )
{
Expand Down

0 comments on commit c344368

Please sign in to comment.