summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2018-06-27 03:44:54 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-06-30 16:02:43 -0400
commit62011defef4ebaf5caa90c397b257d297830f58e (patch)
tree690d2a2a8d254bda775c5a01494be0a0a586b3ad /src
parente8672788597112e53d8384c5b09f570c018e1db3 (diff)
downloadtalos-hostboot-62011defef4ebaf5caa90c397b257d297830f58e.tar.gz
talos-hostboot-62011defef4ebaf5caa90c397b257d297830f58e.zip
Update the no sync attributes xml.
Update the no sync attribute xml with a new tag indicating whether the compile time check for usage on fsp should be skipped. Change-Id: I9532485b41b89a437914aade312d598a5e4a52b1 CMVC-Prereq: 1060012 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61454 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/xmltohb.pl16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl
index 78b28e227..36c17809f 100755
--- a/src/usr/targeting/common/xmltohb/xmltohb.pl
+++ b/src/usr/targeting/common/xmltohb/xmltohb.pl
@@ -204,11 +204,19 @@ if ($cfgFapiAttributesXmlFile ne "")
}
my @nonSyncAttributes = {};
+my @fspAccesCheck = {};
if ($nonSyncAttribFile ne "")
{
- my $nsa = $xml->XMLin($nonSyncAttribFile,
- KeyAttr => 'id', ForceArray=>1);
- @nonSyncAttributes = values %$nsa;
+ my $nsa = $xml->XMLin($nonSyncAttribFile, ForceArray=>['attribute']);
+ foreach my $attr (@{$nsa->{attribute}})
+ {
+ my $attrName = $attr->{id};
+ if (!defined($attr->{fspaccess_nosync}))
+ {
+ push(@fspAccesCheck, $attrName);
+ }
+ push(@nonSyncAttributes, $attrName);
+ }
}
# save attributes defined as Target_t type
@@ -2501,7 +2509,7 @@ sub writeTraitFileTraits {
$traits .= " notFspMutex,";
}
- if (!($attribute->{id} ~~ @nonSyncAttributes))
+ if (!($attribute->{id} ~~ @fspAccesCheck))
{
$traits .= " fspAccessible,";
}
OpenPOWER on IntegriCloud