AndroidKernel: Use host machine tools
Use the host directory of tools for kernel cross
compilation to ensure build results are reproducible
across different machines.
Change-Id: I804745bb1962c46e944ba43e77e8876435c9059e
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
diff --git a/Makefile b/Makefile
index 8e7cef4..6ef35aa 100644
--- a/Makefile
+++ b/Makefile
@@ -366,7 +366,7 @@
# Use the wrapper for the compiler. This wrapper scans for new
# warnings and causes the build to stop upon encountering them
-CC = $(srctree)/scripts/gcc-wrapper.py $(REAL_CC)
+CC = $(PYTHON) $(srctree)/scripts/gcc-wrapper.py $(REAL_CC)
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
-Wbitwise -Wno-return-void $(CF)