drivers/gpu/drm/tilcdc: Makefile, only -Werror when no -W* in EXTRA_CFLAGS
authorChen Gang <gang.chen@asianux.com>
Sun, 10 Mar 2013 05:04:13 +0000 (13:04 +0800)
committerDave Airlie <airlied@redhat.com>
Wed, 24 Apr 2013 04:34:40 +0000 (14:34 +1000)
  When make with EXTRA_CFLAGS=-W, it will report error.
  so give a check in Makefile.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tilcdc/Makefile

index deda656..7d2eefe 100644 (file)
@@ -1,4 +1,7 @@
-ccflags-y := -Iinclude/drm -Werror
+ccflags-y := -Iinclude/drm
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+       ccflags-y += -Werror
+endif
 
 tilcdc-y := \
        tilcdc_crtc.o \