def process_local(self): log.ODM_INFO("=============================") log.ODM_INFO("Local Toolchain %s" % self) log.ODM_INFO("=============================") submodel_name = os.path.basename(self.project_path) submodels_path = os.path.abspath(self.path("..")) project_name = os.path.basename(os.path.abspath(os.path.join(submodels_path, ".."))) argv = get_submodel_argv(project_name, submodels_path, submodel_name) # Re-run the ODM toolchain on the submodel system.run(" ".join(map(quote, argv)), env_vars=os.environ.copy())
def process_local(self): completed_file = self.path("toolchain_completed.txt") submodel_name = os.path.basename(self.project_path) if not os.path.exists(completed_file) or self.params['rerun']: log.ODM_INFO("=============================") log.ODM_INFO("Local Toolchain %s" % self) log.ODM_INFO("=============================") submodels_path = os.path.abspath(self.path("..")) argv = get_submodel_argv(config.config(), submodels_path, submodel_name) # Re-run the ODM toolchain on the submodel system.run(" ".join(map(quote, argv)), env_vars=os.environ.copy()) # This will only get executed if the command above succeeds self.touch(completed_file) else: log.ODM_INFO("Already processed toolchain for %s" % submodel_name)