Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit f18751f

Browse files
committed
ci: Don't apply asm goto hacks when using LLVM 9 and above
We want to test LLVM 8 in CI because it is the current release version and we want to clearly see if there is a kernel regression or LLVM regression. If LLVM 8 is fine but LLVM 9 causes errors, it's probably something on the LLVM side rather than kernel. The folder structure will now be: llvm-all / llvm-version -> kernel-all / ${REPO} -> arch-all / ${ARCH} Hopefully we never have to use the all folders :) I have hesistantly added symlinks to llvm-6 and llvm-7 on the off chance that others want to test older versions (for example, Ubuntu Bionic, the latest LTS, has clang-6 in its repos), even though they really should be using a newer version. Presubmit: https://travis-ci.com/nathanchance/continuous-integration/builds/114532215 Closes: #167 Closes: #171 Signed-off-by: Nathan Chancellor <[email protected]>
1 parent 334e0b5 commit f18751f

File tree

6 files changed

+10
-334
lines changed

6 files changed

+10
-334
lines changed

driver.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,14 @@ build_linux() {
256256

257257
git show -s | cat
258258

259-
apply_patches "../patches/all"
260-
apply_patches "../patches/${REPO}/all"
261-
apply_patches "../patches/${REPO}/${ARCH}"
259+
llvm_all_folder="../patches/llvm-all"
260+
apply_patches "${llvm_all_folder}/kernel-all"
261+
apply_patches "${llvm_all_folder}/${REPO}/arch-all"
262+
apply_patches "${llvm_all_folder}/${REPO}/${ARCH}"
263+
llvm_version_folder="../patches/llvm-$(echo __clang_major__ | ${CC} -E -x c - | tail -n 1)"
264+
apply_patches "${llvm_version_folder}/kernel-all"
265+
apply_patches "${llvm_version_folder}/${REPO}/arch-all"
266+
apply_patches "${llvm_version_folder}/${REPO}/${ARCH}"
262267

263268
# Only clean up old artifacts if requested, the Linux build system
264269
# is good about figuring out what needs to be rebuilt

patches/4.19/x86_64/0001-DO-NOT-UPSTREAM-x86-Avoid-warnings-errors-due-to-lac.patch

Lines changed: 0 additions & 82 deletions
This file was deleted.

patches/linux-next/x86_64/x86-series.patch

Lines changed: 0 additions & 249 deletions
This file was deleted.

patches/llvm-6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
llvm-8

patches/llvm-7

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
llvm-8

0 commit comments

Comments
 (0)