Use the selected compiler to make oldconfig. If the compiler is not set at "make oldoconfig" time, the on host native one is used which can mangle config options.
Signed-off-by: Tudor Ambarus tudor.ambarus@linaro.org --- syzkaller-start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syzkaller-start b/syzkaller-start index e23a8f0..dace6c3 100644 --- a/syzkaller-start +++ b/syzkaller-start @@ -285,7 +285,7 @@ print_blue "\nCopying the .config to the build directory: ${BUILDDIR}" cp ${dotconfig} ${BUILDDIR}/.config
print_blue "\nBuilding the kernel\n" -oldconfig="ccache make KBUILD_OUTPUT=${BUILDDIR} oldconfig" +oldconfig="ccache make KBUILD_OUTPUT=${BUILDDIR} CC=${COMPILER} oldconfig" echo "${oldconfig}" yes "" | ${oldconfig}