b["usign_comment"] = section.get("usign_comment", usign_comment)
b["config_seed"] = section.get("config_seed")
+ b["build_targets"] = section.get("build_targets")
b["kmod_archive"] = section.getboolean("kmod_archive", False)
def populateTargets():
+ def buildTargetsConfigured(branch):
+ builders = branches[branch].get("build_targets")
+ return builders and set(filter(None, [t.strip() for t in builders.split("\n")]))
+
for branch in branchNames:
- populateTargetsForBranch(branch)
+ targets[branch] = buildTargetsConfigured(branch)
+ if not targets[branch]:
+ populateTargetsForBranch(branch)
def populateTargetsForBranch(branch):