@@ -366,6 +366,11 @@ def is_toolchain_usable(**kwargs):
with open(os.path.join(outputdir, ".config")) as configf:
configlines = configf.readlines()
+ # Check that the toolchain configuration is still present
+ for toolchainline in kwargs['config']:
+ if toolchainline not in configlines:
+ return False
+
# The latest Linaro toolchains on x86-64 hosts requires glibc
# 2.14+ on the host.
if platform.machine() == 'x86_64':
@@ -564,7 +569,7 @@ def gen_config(**kwargs):
log_write(log, "ERROR: cannot oldconfig")
return -1
- if not is_toolchain_usable(**kwargs):
+ if not is_toolchain_usable(config=config["contents"], **kwargs):
return -1
# Now, generate the random selection of packages, and fixup
Some lines from the toolchain config may be removed due to dependency issues. Currently this is covered by explicit conditions in the autobuild-run script, e.g. checking that libc is not glibc before enabling BR2_STATIC_LIBS. However, that binds this script pretty tightly to the logic in Buildroot itself. So instead, just check that the toolchain configuration is still valid after running 'olddefconfig', and discard the configuration if it isn't. This is similar to how it's done in the test-pkg script. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> --- v2: don't report the missing lines in the log file (Thomas) --- scripts/autobuild-run | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)