def __single_target(self, target: str, config: Config): for defconfig in self.env["configs"]: config_obj = config.parse(defconfig) if target == config_obj["defconfig"].replace("_defconfig", ""): # Generate the legal information first, as to ensure the tarball is in the images # directory before post-image.sh is called. if config_obj["legal_info"]: if not Buildroot.legal_info(config_obj): return False if not Buildroot.build(config_obj): return False if self.clean_after_build: config.clean(force=True) return True Logger.print_error("Could not find target: {}".format(target)) return False