summaryrefslogtreecommitdiff
path: root/tcwg_kernel-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg_kernel-build.sh')
-rwxr-xr-xtcwg_kernel-build.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tcwg_kernel-build.sh b/tcwg_kernel-build.sh
index f6d5aea7..14c24489 100755
--- a/tcwg_kernel-build.sh
+++ b/tcwg_kernel-build.sh
@@ -3,7 +3,9 @@
set -euf -o pipefail
scripts=$(dirname $0)
+# shellcheck source=jenkins-helpers.sh
. $scripts/jenkins-helpers.sh
+# shellcheck source=round-robin.sh
. $scripts/round-robin.sh
convert_args_to_variables "$@"
@@ -137,8 +139,8 @@ build_linux_1 ()
# Otherwise the compiler is new in every build and we would
# only clobber ccache volume.
local ccache=""
- if [ x"${rr[mode]}" != x"jenkins-full" \
- -a x"$(print_single_updated_component)" = x"linux" ]; then
+ if [ x"${rr[mode]}" != x"jenkins-full" ] && \
+ [ x"$(print_single_updated_component)" = x"linux" ]; then
ccache="ccache"
fi
cat > "$(pwd)"/bin/${rr[target]}-cc <<EOF