return True
-def fixup_config(configfile):
+def fixup_config(sysinfo, configfile):
"""Finalize the configuration and reject any problematic combinations
This function returns 'True' when the configuration has been
generated).
"""
- sysinfo = SystemInfo()
with open(configfile) as configf:
configlines = configf.readlines()
packages.
"""
+ sysinfo = SystemInfo()
+
# Select a random toolchain configuration
configs = get_toolchain_configs(args.toolchains_csv, args.buildrootdir)
"KCONFIG_PROBABILITY=%d" % randint(1, 30),
"randpackageconfig"])
- if fixup_config(configfile):
+ if fixup_config(sysinfo, configfile):
break
subprocess.check_call(["make", "O=%s" % args.outputdir, "-C", args.buildrootdir,