return True
-def fixup_config(outputdir, sysinfo):
+def fixup_config(outputdir):
"""Finalize the configuration and reject any problematic combinations
This function returns 'True' when the configuration has been
generated).
"""
+ sysinfo = SystemInfo()
with open(os.path.join(outputdir, ".config")) as configf:
configlines = configf.readlines()
if ret != 0:
log_write(args.log, "ERROR: cannot generate random configuration")
return -1
- if fixup_config(outputdir, args.sysinfo):
+ if fixup_config(outputdir):
break
ret = subprocess.call(["make", "O=%s" % outputdir, "-C", srcdir,
# Arguments expected by gen_config for which we just set a default here
args.log = sys.stdout
- args.sysinfo = SystemInfo()
# Output directory is already created by autobuild-run so emulate it here
idir = "instance-%d" % args.instance