drivers/gpu/drm/omapdrm: Makefile, only -Werror when no -W* in EXTRA_CFLAGS
Subsystems (3)
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.
Signed-off-by Chen Gang <[email protected]>
Signed-off-by Vladimir Kondratiev <[email protected]>
--- drivers/gpu/drm/omapdrm/Makefile | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/gpu/drm/omapdrm/Makefile +4 -1
@@ -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
Quoted 6 lines · Chen Gang
When make with EXTRA_CFLAGS=-W, it will report error. so give a check in
Makefile.Signed-off-by Chen Gang <[email protected]>Signed-off-by Vladimir Kondratiev <[email protected]>
Signed-off-by Rob Clark <[email protected]>
Quoted 22 lines
--- drivers/gpu/drm/omapdrm/Makefile | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)drivers/gpu/drm/omapdrm/Makefile +4
-2@@ -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