aboutsummaryrefslogtreecommitdiff
path: root/utils/br-reproduce-build
diff options
context:
space:
mode:
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)
tree427dca15250f9732562072691a39bae1757d361b /utils/br-reproduce-build
parent768b063905b0896fba48032593814ada738235a1 (diff)
downloadbuildroot-test-1959fb62be4e0f967c47d5afdef8966723e7fd4e.tar.gz
buildroot-test-1959fb62be4e0f967c47d5afdef8966723e7fd4e.tar.bz2
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>
Diffstat (limited to 'utils/br-reproduce-build')
-rwxr-xr-xutils/br-reproduce-build1
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