Skip to content

Commit 3f5c14d

Browse files
lacombarMauro Carvalho Chehab
authored andcommitted
[media] drivers/media: do not use EXTRA_CFLAGS
Usage of these flags has been deprecated for nearly 4 years by: commit f77bf01 Author: Sam Ravnborg <sam@neptun.(none)> Date: Mon Oct 15 22:25:06 2007 +0200 kbuild: introduce ccflags-y, asflags-y and ldflags-y Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command line use. By default, gmake(1) do not override command line setting, so this is likely to result in build failure or unexpected behavior. Replace their usage by Kbuild's `{as,cc,ld}flags-y'. Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Mauro Carvalho Chehab <mchehab@infradead.org> Cc: linux-media@vger.kernel.org Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 63f409a commit 3f5c14d

36 files changed

Lines changed: 92 additions & 94 deletions

File tree

‎drivers/media/common/tuners/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ obj-$(CONFIG_MEDIA_TUNER_MAX2165) += max2165.o
2828
obj-$(CONFIG_MEDIA_TUNER_TDA18218) += tda18218.o
2929
obj-$(CONFIG_MEDIA_TUNER_TDA18212) += tda18212.o
3030

31-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
32-
EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
31+
ccflags-y += -Idrivers/media/dvb/dvb-core
32+
ccflags-y += -Idrivers/media/dvb/frontends

‎drivers/media/dvb/b2c2/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ obj-$(CONFIG_DVB_B2C2_FLEXCOP_PCI) += b2c2-flexcop-pci.o
1212
b2c2-flexcop-usb-objs = flexcop-usb.o
1313
obj-$(CONFIG_DVB_B2C2_FLEXCOP_USB) += b2c2-flexcop-usb.o
1414

15-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
16-
EXTRA_CFLAGS += -Idrivers/media/common/tuners/
15+
ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
16+
ccflags-y += -Idrivers/media/common/tuners/

‎drivers/media/dvb/bt8xx/Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
obj-$(CONFIG_DVB_BT8XX) += bt878.o dvb-bt8xx.o dst.o dst_ca.o
22

3-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
4-
EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
5-
EXTRA_CFLAGS += -Idrivers/media/video/bt8xx
6-
EXTRA_CFLAGS += -Idrivers/media/common/tuners
3+
ccflags-y += -Idrivers/media/dvb/dvb-core
4+
ccflags-y += -Idrivers/media/dvb/frontends
5+
ccflags-y += -Idrivers/media/video/bt8xx
6+
ccflags-y += -Idrivers/media/common/tuners

‎drivers/media/dvb/ddbridge/Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ ddbridge-objs := ddbridge-core.o
66

77
obj-$(CONFIG_DVB_DDBRIDGE) += ddbridge.o
88

9-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
10-
EXTRA_CFLAGS += -Idrivers/media/dvb/frontends/
11-
EXTRA_CFLAGS += -Idrivers/media/common/tuners/
9+
ccflags-y += -Idrivers/media/dvb/dvb-core/
10+
ccflags-y += -Idrivers/media/dvb/frontends/
11+
ccflags-y += -Idrivers/media/common/tuners/
1212

1313
# For the staging CI driver cxd2099
14-
EXTRA_CFLAGS += -Idrivers/staging/cxd2099/
14+
ccflags-y += -Idrivers/staging/cxd2099/

‎drivers/media/dvb/dm1105/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
obj-$(CONFIG_DVB_DM1105) += dm1105.o
22

3-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
3+
ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends

‎drivers/media/dvb/dvb-usb/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ obj-$(CONFIG_DVB_USB_TECHNISAT_USB2) += dvb-usb-technisat-usb2.o
9797
dvb-usb-it913x-objs := it913x.o
9898
obj-$(CONFIG_DVB_USB_IT913X) += dvb-usb-it913x.o
9999

100-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
100+
ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
101101
# due to tuner-xc3028
102-
EXTRA_CFLAGS += -Idrivers/media/common/tuners
102+
ccflags-y += -Idrivers/media/common/tuners
103103

‎drivers/media/dvb/frontends/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Makefile for the kernel DVB frontend device drivers.
33
#
44

5-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
6-
EXTRA_CFLAGS += -Idrivers/media/common/tuners/
5+
ccflags-y += -Idrivers/media/dvb/dvb-core/
6+
ccflags-y += -Idrivers/media/common/tuners/
77

88
stb0899-objs = stb0899_drv.o stb0899_algo.o
99
stv0900-objs = stv0900_core.o stv0900_sw.o

‎drivers/media/dvb/mantis/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ obj-$(CONFIG_MANTIS_CORE) += mantis_core.o
2525
obj-$(CONFIG_DVB_MANTIS) += mantis.o
2626
obj-$(CONFIG_DVB_HOPPER) += hopper.o
2727

28-
EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
28+
ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/

‎drivers/media/dvb/ngene/Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ ngene-objs := ngene-core.o ngene-i2c.o ngene-cards.o ngene-dvb.o
66

77
obj-$(CONFIG_DVB_NGENE) += ngene.o
88

9-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
10-
EXTRA_CFLAGS += -Idrivers/media/dvb/frontends/
11-
EXTRA_CFLAGS += -Idrivers/media/common/tuners/
9+
ccflags-y += -Idrivers/media/dvb/dvb-core/
10+
ccflags-y += -Idrivers/media/dvb/frontends/
11+
ccflags-y += -Idrivers/media/common/tuners/
1212

1313
# For the staging CI driver cxd2099
14-
EXTRA_CFLAGS += -Idrivers/staging/cxd2099/
14+
ccflags-y += -Idrivers/staging/cxd2099/

‎drivers/media/dvb/pluto2/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
obj-$(CONFIG_DVB_PLUTO2) += pluto2.o
22

3-
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
3+
ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/

0 commit comments

Comments
 (0)