+ def _editBertosProject(self):
+ directory = self.infos["PROJECT_PATH"]
+ sources_dir = self.infos["SOURCES_PATH"]
+ old_sources_dir = self.infos.get("OLD_SOURCES_PATH", None)
+ # Write the project file
+ self._writeProjectFile(directory + "/project.bertos")
+ # VERSION file
+ self._writeVersionFile(directory + "/VERSION")
+ # Destination source dir
+ self._createSourcesDir(sources_dir, directory + "/bertos", old_sources_dir)
+ # Destination makefile
+ self._writeMakefile(directory + "/Makefile")
+ # Destination project dir
+ prjdir = self._createProjectDir(directory)
+ # Destination hw files
+ hwdir = self._createHwFilesDir(prjdir)
+ # Copy all the hw files
+ self._writeHwFiles(sources_dir, hwdir)
+ # Destination configurations files
+ cfgdir = self._createCfgFilesDir(prjdir)
+ # Set properly the autoenabled parameters
+ self._setupAutoenabledParameters()
+ # Copy all the configuration files
+ self._writeCfgFiles(sources_dir, cfgdir)
+ # Destination wizard mk file
+ self._writeWizardMkFile(prjdir + "/" + os.path.basename(prjdir) + "_wiz.mk")
+ # Files for selected plugins
+ relevants_files = {}
+ for plugin in self.infos["OUTPUT"]:
+ module = loadPlugin(plugin)
+ relevants_files[plugin] = module.createProject(self)
+ self.infos["RELEVANT_FILES"] = relevants_files
+