Lines Matching refs:self
27 def __init__(self, platforms_config_file, source_root_dir, root_build_dir,
29 self._platforms_config_file = platforms_config_file
30 self._source_root_dir = source_root_dir
31 self._root_build_dir = root_build_dir
32 self._platforms_info = {}
33 self._all_parts = {}
34 self._all_stubs = {}
35 self._is_load = False
36 self._target_arch = target_arch
37 self._scalable_build = scalable_build
59 def _read_platforms_config(self):
60 if not os.path.exists(self._platforms_config_file):
62 self._platforms_config_file), "2012")
63 config_info = read_json_file(self._platforms_config_file)
66 self._platforms_config_file), "2012")
105 def _loading(self):
106 if self._is_load:
108 all_platforms_config = self._read_platforms_config()
109 _platforms_info = all_platforms_config.get(self._target_arch)
110 config_base_dir = os.path.dirname(self._platforms_config_file)
117 if self._scalable_build is False:
138 parts, stubs = self._load_platform_config(_platform_config_file)
142 self._platforms_info = _platforms_info
143 self._all_parts = all_parts
144 self._all_stubs = all_stubs
145 self._is_load = True
147 def get_all_parts(self):
148 self._loading()
150 for _platform, _parts in self._all_parts.items():
158 def get_all_stubs(self):
159 self._loading()
161 for _platform, _parts in self._all_stubs.items():
169 def platforms_toolchain(self):
170 self._loading()
173 for key, val in self._platforms_info.items():