scripts/kernel-functions: Make it possible to build older kernels with gcc 10

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9027 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-06-21 16:07:16 +00:00
parent f7b704ee99
commit 8174bad3da
2 changed files with 109 additions and 31 deletions
+1 -11
View File
@@ -677,17 +677,7 @@ do
generate_kernel_patch "$k" "${generate_kernel_patch_options}" || continue
(
cd "${outputdir}" &&
download_and_extract_kernel_tree "$k" &&
k="${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
download_and_extract_kernel_tree "$k"
) ||
continue
k="${k/^*}"