Skip to contentSkip to conversation

drivers/gpu/drm/omapdrm: Makefile, only -Werror when no -W* in EXTRA_CFLAGS

PATCH In review Chen Gang 2 participants 2 messages Mar 10, 2013 – Mar 11, 2013

Subsystems (3)
lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 drivers/gpu/drm/omapdrm: Makefile, only -Werror when no -W* in EXTRA_CFLAGS

When make with EXTRA_CFLAGS=-W, it will report error. so give a check in Makefile.

---
 drivers/gpu/drm/omapdrm/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/gpu/drm/omapdrm/Makefile +4 -1
index d85e058..8beaf05 100644
@@ -3,7 +3,10 @@
 # Direct Rendering Infrastructure (DRI)
 #
 
-ccflags-y := -Iinclude/drm -Werror
+ccflags-y := -Iinclude/drm 
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+	ccflags-y += -Werror
+endif
 omapdrm-y := omap_drv.o \
 	omap_irq.o \
 	omap_debugfs.o \
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 6 lines · Chen Gang

When make with EXTRA_CFLAGS=-W, it will report error. so give a check in Makefile.

Quoted 22 lines
---
 drivers/gpu/drm/omapdrm/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/gpu/drm/omapdrm/Makefile +4 -2
index d85e058..8beaf05 100644
@@ -3,7 +3,10 @@
 # Direct Rendering Infrastructure (DRI)
 #
 
-ccflags-y := -Iinclude/drm -Werror
+ccflags-y := -Iinclude/drm
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+       ccflags-y += -Werror
+endif
 omapdrm-y := omap_drv.o \
        omap_irq.o \
        omap_debugfs.o \
--

1.7.7.6