diff options
Diffstat (limited to 'src/tools/scripts/ppeSetFixed.pl')
-rwxr-xr-x | src/tools/scripts/ppeSetFixed.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/scripts/ppeSetFixed.pl b/src/tools/scripts/ppeSetFixed.pl index a562469d..c769ac1f 100755 --- a/src/tools/scripts/ppeSetFixed.pl +++ b/src/tools/scripts/ppeSetFixed.pl @@ -6,7 +6,7 @@ # # OpenPOWER sbe Project # -# Contributors Listed Below - COPYRIGHT 2015,2016 +# Contributors Listed Below - COPYRIGHT 2015,2018 # [+] International Business Machines Corp. # # @@ -129,6 +129,11 @@ foreach my $entr (@{$entries->{entry}}) { foreach my $target (@targets) { + # Remove newlines and leading/trailing whitespace + $target =~ s/\n//; + $target =~ s/^\s+//; + $target =~ s/\s+$//; + if($target eq "TARGET_TYPE_SYSTEM") { push(@attrSystemIds, $entr); |