aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Deprez <olivier.deprez@arm.com>2020-07-08 14:54:51 +0200
committerAndrew Walbran <qwandor@google.com>2020-07-17 09:32:34 +0000
commit3908b29cdc1c9e4a5b337d71dbea16f706b76f31 (patch)
treefbc00063d6a1b66ee39bc74179b5438e044ad717
parent9dc276fbc3772f75fd9cdb59f79a5bc1a3bc3795 (diff)
downloadhafnium-3908b29cdc1c9e4a5b337d71dbea16f706b76f31.tar.gz
Unset CHECKPATCH when build script invokes linux driver checkpatch.
The kokoro build script has a step to invoke make checkpatch for the linux driver. If the CHECKPATCH variable is already set when invoking the script (non-hermetic builds) then checkpatch for the linux driver uses the variable already set in the environment which leads to issues if the checkpatch script does not match the same as the linux directory. In driver/linux/Makefile the CHECKPATCH variable is only set to a default path if it's not already set from the caller script environment. This fix unsets the CHECKPATCH variable from kokoro/build.sh specifically when invoking linux driver checkpatch. Change-Id: I428f5955e6c23fb137e1cc16d5cb235f6cda8811 Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
-rwxr-xr-xkokoro/build.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/kokoro/build.sh b/kokoro/build.sh
index 2e27842..347f361 100755
--- a/kokoro/build.sh
+++ b/kokoro/build.sh
@@ -141,6 +141,7 @@ fi
# Step 7: make sure the Linux driver maintains style. It's already built as part
# of the tests.
(
+unset CHECKPATCH &&
export ARCH=arm64 &&
export CROSS_COMPILE=aarch64-linux-gnu- &&
cd driver/linux &&