Logo Search packages:      
Sourcecode: xdeb version File versions  Download package

def config::TargetConfig::_ProcessTargetConfigs (   self,
  config 
) [private]
Extracts config settings for the given arch and variant.

Finds the configuration section "target-$arch-$variant", resolves
the parent references, and populates self._value_dict with the final
value.

Args:
  config: A ConfigParser object with a "target-$arch-$variant" section.

Definition at line 161 of file config.py.

                                           :
        """Extracts config settings for the given arch and variant.

        Finds the configuration section "target-$arch-$variant", resolves
        the parent references, and populates self._value_dict with the final
        value.

        Args:
          config: A ConfigParser object with a "target-$arch-$variant" section.
        """
        # Find the parents.
        parent_chain = []
        current_frame = _TARGET_SECTION_FORMAT % (self.architecture,
                                                  self.variant)
        while current_frame:
            parent_chain.append(current_frame)
            current_frame = config.get(current_frame, _PARENT_OPTION)
        parent_chain.reverse()

        # Merge all the configs into one dictionary.
        for section in parent_chain:
            for option in config.options(section):
                raw_value = config.get(section, option)
                if raw_value:
                    if option in self._value_dict:
                        # Merged option.
                        values = raw_value.split()
                        self.MergeConfig(self._value_dict, option, values)
                    else:
                        # Simple option. No merging required.
                        self._value_dict[option] = raw_value


Generated by  Doxygen 1.6.0   Back to index