Use clang for building Linux and our kernel module.
Change-Id: I4ec49517765771b56d112dfa4c795e206cfa35c3
diff --git a/kokoro/ubuntu/build.sh b/kokoro/ubuntu/build.sh
index 9a6b3b4..a48e7d1 100755
--- a/kokoro/ubuntu/build.sh
+++ b/kokoro/ubuntu/build.sh
@@ -34,6 +34,8 @@
echo "Testing kokoro build locally..."
fi
+CLANG=${PWD}/prebuilts/linux-x64/clang/bin/clang
+
#
# Step 1: make sure it builds.
#
@@ -97,9 +99,8 @@
(
export ARCH=arm64 &&
export CROSS_COMPILE=aarch64-linux-gnu- &&
-make ${KOKORO_JOB_NAME+CC=${CROSS_COMPILE}gcc-4.8} \
- -C third_party/linux defconfig modules_prepare &&
+make CC=${CLANG} -C third_party/linux defconfig modules_prepare &&
cd driver/linux &&
-make ${KOKORO_JOB_NAME+CC=${CROSS_COMPILE}gcc-4.8} &&
+make CC=${CLANG} &&
make checkpatch
)