From 9f662f2c7c2beaa16be5c739ee74a4a561e80839 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 20 Dec 2016 08:24:38 +0100 Subject: [PATCH] scripts/run-regression-tests: Provide if needed --- scripts/run-regression-tests | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/run-regression-tests b/scripts/run-regression-tests index 79648564b..5fbd9b2bf 100755 --- a/scripts/run-regression-tests +++ b/scripts/run-regression-tests @@ -629,7 +629,20 @@ do download_kernel $k || continue generate_kernel_patch $k "${generate_kernel_patch_options}" || continue - ( cd "${outputdir}" && extract_kernel_tree $k ) || continue + ( + cd "${outputdir}" && + extract_kernel_tree $k && + cd linux-$k/include/linux && + if [ ! -e compiler-gcc6.h ]; then + for f in compiler-gcc5.h compiler-gcc4.h; do + if [ -e "$f" ]; then + cp "$f" compiler-gcc6.h + break + fi + done + fi + ) || + continue if [ "${run_checkpatch}" = "true" ]; then run_checkpatch $k fi