diff options
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-27 10:07:51 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-27 10:07:51 +0100
commit1959fb62be4e0f967c47d5afdef8966723e7fd4e (patch)
parent768b063905b0896fba48032593814ada738235a1 (diff)
br-reproduce-build: do olddefconfig before starting the build
Since the host configuration can be different between the autobuilder slave and the machine where we try to reproduce the build failure, the set of available options might be different. Due to this, a .config that is "valid" for a given machin may have missing options for another machine. A good example is the BR2_GOOGLE_BREAKPAD_ENABLE option. Since it depends on BR2_HOST_GCC_AT_LEAST_4_8, this option will *not* be present in a .config file generated on a machine that has a host gcc older than 4.8. However, when running br-reproduce-build on a machine with a gcc newer than 4.8, the option is available, but has no value defined in the .config. To cope with this, we simply run an "olddefconfig". This means we aren't rebuilding *exactly* the same configuration, but it's the best approximation we can do. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/br-reproduce-build b/utils/br-reproduce-build
index 9fcaa10..592edc2 100755
--- a/utils/br-reproduce-build
+++ b/utils/br-reproduce-build
@@ -78,4 +78,5 @@ fi
mkdir ../output
cp "${BUILD_DIR}/config" ../output/.config
+make olddefconfig O=../output/
make 2>&1 O=../output | tee logfile