rk312x: overwrite adc channel
[firefly-linux-kernel-4.4.55.git] / Makefile
index 90acf2f5a5730d00d2a351a5e0cf49d300b060a6..ba7c9ef70cc8011caf39eb3b55f36d83a7311cc6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -346,6 +346,12 @@ DEPMOD             = /sbin/depmod
 PERL           = perl
 CHECK          = sparse
 
+# Use the wrapper for the compiler. This wrapper scans for new
+# warnings and causes the build to stop upon encountering them.
+ifneq ($(wildcard $(srctree)/scripts/gcc-wrapper.py),)
+CC             = $(srctree)/scripts/gcc-wrapper.py $(CROSS_COMPILE)gcc
+endif
+
 CHECKFLAGS     := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
                  -Wbitwise -Wno-return-void $(CF)
 CFLAGS_MODULE   =