Skip to contentSkip to conversation

Staging: cx25821: Makefile: cleaned up Makefile cflag lines

PATCH In review Tracey Dent 5 participants 35 messages Oct 2, 2010 – Oct 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/20 Staging: cx25821: Makefile: cleaned up Makefile cflag lines

Changed to use the proper ccflags-y option

---
 drivers/staging/cx25821/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/cx25821/Makefile +4 -4
index d0eb16e..6448364 100644
@@ -7,7 +7,7 @@ cx25821-objs   := cx25821-core.o cx25821-cards.o cx25821-i2c.o \
 obj-$(CONFIG_VIDEO_CX25821) += cx25821.o
 obj-$(CONFIG_VIDEO_CX25821_ALSA) += cx25821-alsa.o
 
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y := -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
Signature · 1 line
1.7.3.1.50.g1e633
#1 lore raw

PATCH v3 2/20 Staging: cxt1e1: Makefile: cleaned up Makefile cflag lines

Changed to use the proper ccflags-y option

---
 drivers/staging/cxt1e1/Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/cxt1e1/Makefile +3 -3
index 10020d7..a524a62 100644
@@ -1,8 +1,8 @@
 obj-$(CONFIG_CXT1E1)	+= cxt1e1.o
 
-EXTRA_CFLAGS += -DSBE_PMCC4_ENABLE
-EXTRA_CFLAGS += -DSBE_ISR_TASKLET
-EXTRA_CFLAGS += -DSBE_INCLUDE_SYMBOLS
+ccflags-y := -DSBE_PMCC4_ENABLE
+ccflags-y += -DSBE_ISR_TASKLET
+ccflags-y += -DSBE_INCLUDE_SYMBOLS
 
 cxt1e1-objs += 	\
   ossiRelease.o 	\
Signature · 1 line
1.7.3.1.50.g1e633
#2 lore raw

PATCH v3 3/20 Staging: dream: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/dream/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/dream/Makefile +1 -1
index fbea0ab..87de1a5 100644
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS=-Idrivers/staging/dream/include
+ccflags-y:=-Idrivers/staging/dream/include
 obj-$(CONFIG_MSM_ADSP)		+= qdsp5/
 obj-$(CONFIG_MSM_CAMERA)	+= camera/
 obj-$(CONFIG_INPUT_GPIO)	+= gpio_axis.o gpio_event.o gpio_input.o gpio_matrix.o gpio_output.o
Signature · 1 line
1.7.3.1.50.g1e633
#3 lore raw

PATCH v3 4/20 Staging: dream: camera: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/dream/camera/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/dream/camera/Makefile +1 -1
index db228d7..03711dc 100644
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS=-Idrivers/staging/dream/include
+ccflags-y:=-Idrivers/staging/dream/include
 obj-$(CONFIG_MT9T013) += mt9t013.o mt9t013_reg.o
 obj-$(CONFIG_MT9D112) += mt9d112.o mt9d112_reg.o
 obj-$(CONFIG_MT9P012) += mt9p012_fox.o mt9p012_reg.o
Signature · 1 line
1.7.3.1.50.g1e633
#4 lore raw

PATCH v3 5/20 Staging: dream: qdsp5: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/dream/qdsp5/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/dream/qdsp5/Makefile +1 -1
index beedaaf..44ae6b4 100644
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS=-Idrivers/staging/dream/include
+ccflags-y:=-Idrivers/staging/dream/include
 obj-y += adsp.o
 ifeq ($(CONFIG_MSM_AMSS_VERSION_6350),y)
 obj-y += adsp_info.o
Signature · 1 line
1.7.3.1.50.g1e633
#5 lore raw

PATCH v3 6/20 Stagng: easycap: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/easycap/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/easycap/Makefile +4 -4
index d93bd6b..680f370 100644
@@ -5,9 +5,9 @@ easycap-objs	:= easycap_main.o easycap_low.o easycap_sound.o
 easycap-objs	+= easycap_ioctl.o easycap_settings.o
 easycap-objs	+= easycap_testcard.o
 
-EXTRA_CFLAGS += -Wall
+ccflags-y := -Wall
 # Impose all or none of the following:
-EXTRA_CFLAGS += -DEASYCAP_IS_VIDEODEV_CLIENT
-EXTRA_CFLAGS += -DEASYCAP_NEEDS_V4L2_DEVICE_H
-EXTRA_CFLAGS += -DEASYCAP_NEEDS_V4L2_FOPS
+ccflags-y += -DEASYCAP_IS_VIDEODEV_CLIENT
+ccflags-y += -DEASYCAP_NEEDS_V4L2_DEVICE_H
+ccflags-y += -DEASYCAP_NEEDS_V4L2_FOPS
 
Signature · 1 line
1.7.3.1.50.g1e633
#6 lore raw

PATCH v3 7/20 Staging: rt2860: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rt2860/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rt2860/Makefile +4 -4
index 23ae07f..d816ddb 100644
@@ -1,10 +1,10 @@
 obj-$(CONFIG_RT2860)	+= rt2860sta.o
 
 # TODO: all of these should be removed
-EXTRA_CFLAGS += -DLINUX -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT
-EXTRA_CFLAGS += -DRTMP_MAC_PCI -DRTMP_PCI_SUPPORT -DRT2860
-EXTRA_CFLAGS += -DRTMP_RF_RW_SUPPORT -DRTMP_EFUSE_SUPPORT -DRT30xx -DRT3090
-EXTRA_CFLAGS += -DDBG
+ccflags-y := -DLINUX -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT
+ccflags-y += -DRTMP_MAC_PCI -DRTMP_PCI_SUPPORT -DRT2860
+ccflags-y += -DRTMP_RF_RW_SUPPORT -DRTMP_EFUSE_SUPPORT -DRT30xx -DRT3090
+ccflags-y += -DDBG
 
 rt2860sta-objs :=	\
 	common/crypt_md5.o	\
Signature · 1 line
1.7.3.1.50.g1e633
#7 lore raw

PATCH v3 8/20 Staging: rt2870: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rt2870/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rt2870/Makefile +4 -4
index 523e7e7..7b29493 100644
@@ -2,10 +2,10 @@
 obj-$(CONFIG_RT2870)	+= rt2870sta.o
 
 # TODO: all of these should be removed
-EXTRA_CFLAGS += -DLINUX -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT
-EXTRA_CFLAGS += -DRTMP_MAC_USB -DRTMP_USB_SUPPORT -DRT2870 -DRTMP_TIMER_TASK_SUPPORT
-EXTRA_CFLAGS += -DRTMP_RF_RW_SUPPORT -DRTMP_EFUSE_SUPPORT -DRT30xx -DRT3070
-EXTRA_CFLAGS += -DDBG
+ccflags-y := -DLINUX -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT
+ccflags-y += -DRTMP_MAC_USB -DRTMP_USB_SUPPORT -DRT2870 -DRTMP_TIMER_TASK_SUPPORT
+ccflags-y += -DRTMP_RF_RW_SUPPORT -DRTMP_EFUSE_SUPPORT -DRT30xx -DRT3070
+ccflags-y += -DDBG
 
 rt2870sta-objs :=		\
 	common/crypt_md5.o	\
Signature · 1 line
1.7.3.1.50.g1e633
#8 lore raw

PATCH v3 9/20 Staging: rtl8187se: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8187se/Makefile |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8187se/Makefile +7 -7
index e6adf91..adc3849 100644
@@ -4,17 +4,17 @@
 #EXTRA_CFLAGS += -O2
 #CC            = gcc
 
-EXTRA_CFLAGS += -DSW_ANTE
-EXTRA_CFLAGS += -DTX_TRACK
-EXTRA_CFLAGS += -DHIGH_POWER
-EXTRA_CFLAGS += -DSW_DIG
-EXTRA_CFLAGS += -DRATE_ADAPT
+ccflags-y := -DSW_ANTE
+ccflags-y += -DTX_TRACK
+ccflags-y += -DHIGH_POWER
+ccflags-y += -DSW_DIG
+ccflags-y += -DRATE_ADAPT
 
 #enable it for legacy power save, disable it for leisure  power save
-EXTRA_CFLAGS += -DENABLE_LPS
+ccflags-y += -DENABLE_LPS
 
 
-#EXTRA_CFLAGS += -mhard-float -DCONFIG_FORCE_HARD_FLOAT=y
+#ccflags-y := -mhard-float -DCONFIG_FORCE_HARD_FLOAT=y
 
 r8187se-objs :=			\
 		r8180_core.o		\
Signature · 1 line
1.7.3.1.50.g1e633
#9 lore raw

Re: [PATCH v3 09/20] Staging: rtl8187se: Makefile: cleaned up Makefile cflag lines

Quoted 24 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8187se/Makefile |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8187se/Makefile +4 -5
index e6adf91..adc3849 100644
@@ -4,17 +4,17 @@
 #EXTRA_CFLAGS += -O2
 #CC            = gcc
 
-EXTRA_CFLAGS += -DSW_ANTE
-EXTRA_CFLAGS += -DTX_TRACK
-EXTRA_CFLAGS += -DHIGH_POWER
-EXTRA_CFLAGS += -DSW_DIG
-EXTRA_CFLAGS += -DRATE_ADAPT
+ccflags-y := -DSW_ANTE
+ccflags-y += -DTX_TRACK
+ccflags-y += -DHIGH_POWER
+ccflags-y += -DSW_DIG

drivers/staging/rtl8187se/Makefile line 18

Quoted 10 lines
drivers/staging/rtl8187se/Makefile +3 -2
+ccflags-y += -DRATE_ADAPT
 
 #enable it for legacy power save, disable it for leisure  power save
-EXTRA_CFLAGS += -DENABLE_LPS
+ccflags-y += -DENABLE_LPS
 
 
-#EXTRA_CFLAGS += -mhard-float -DCONFIG_FORCE_HARD_FLOAT=y
+#ccflags-y := -mhard-float -DCONFIG_FORCE_HARD_FLOAT=y
 

so every time someone selects "my cpu does not have hard-float they will try it again, and to make sure that it will cause max confusion it sets CONFIG_FORCE_HARD_FLOAT to yes.

re,
wh

Quoted 2 lines
drivers/staging/rtl8187se/Makefile +0 -0
 r8187se-objs :=			\
 		r8180_core.o		\
#10 lore raw

PATCH v3 10/20 Staging: rtl8192e: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192e/Makefile |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8192e/Makefile +7 -7
index 41cb4d3..6e41067 100644
@@ -1,13 +1,13 @@
 NIC_SELECT = RTL8192E
 
-EXTRA_CFLAGS += -DRTL8192E
-EXTRA_CFLAGS += -std=gnu89
-EXTRA_CFLAGS += -O2
-EXTRA_CFLAGS += -DTHOMAS_TURBO
-EXTRA_CFLAGS += -DENABLE_DOT11D
+ccflags-y := -DRTL8192E
+ccflags-y += -std=gnu89
+ccflags-y += -O2
+ccflags-y += -DTHOMAS_TURBO
+ccflags-y += -DENABLE_DOT11D
 
-EXTRA_CFLAGS += -DENABLE_IPS
-EXTRA_CFLAGS += -DENABLE_LPS
+ccflags-y += -DENABLE_IPS
+ccflags-y += -DENABLE_LPS
 
 r8192e_pci-objs :=		\
 	r8192E_core.o		\
Signature · 1 line
1.7.3.1.50.g1e633
#11 lore raw

PATCH v3 11/20 Staging: rtl8192su: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192su/Makefile +5 -5
index 7133894..1120c04 100644
@@ -1,12 +1,12 @@
 NIC_SELECT = RTL8192SU
 
-EXTRA_CFLAGS += -std=gnu89
-EXTRA_CFLAGS += -O2
+ccflags-y := -std=gnu89
+ccflags-y += -O2
 
-EXTRA_CFLAGS += -DJACKSON_NEW_RX
-EXTRA_CFLAGS += -DTHOMAS_BEACON
+ccflags-y += -DJACKSON_NEW_RX
+ccflags-y += -DTHOMAS_BEACON
 
-#EXTRA_CFLAGS += -DMUTIPLE_BULK_OUT
+#ccflags-y += -DMUTIPLE_BULK_OUT
 
 r8192s_usb-objs :=		\
 	r8192U_wx.o		\
Signature · 1 line
1.7.3.1.50.g1e633
#12 lore raw

Re: [PATCH v3 11/20] Staging: rtl8192su: Makefile: cleaned up Makefile cflag lines

Quoted 12 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192su/Makefile +0 -0
index 7133894..1120c04 100644

drivers/staging/rtl8192su/Makefile line 5

Quoted 7 lines
drivers/staging/rtl8192su/Makefile +2 -2
@@ -1,12 +1,12 @@
 NIC_SELECT = RTL8192SU
 
-EXTRA_CFLAGS += -std=gnu89
-EXTRA_CFLAGS += -O2
+ccflags-y := -std=gnu89
+ccflags-y += -O2
 

I still do not think that -O2 belongs here.
it should simply be removed.

re,
wh

Quoted 10 lines
drivers/staging/rtl8192su/Makefile +3 -3
-EXTRA_CFLAGS += -DJACKSON_NEW_RX
-EXTRA_CFLAGS += -DTHOMAS_BEACON
+ccflags-y += -DJACKSON_NEW_RX
+ccflags-y += -DTHOMAS_BEACON
 
-#EXTRA_CFLAGS += -DMUTIPLE_BULK_OUT
+#ccflags-y += -DMUTIPLE_BULK_OUT
 
 r8192s_usb-objs :=		\
 	r8192U_wx.o		\
author
#13 lore raw

Re: [PATCH v3 11/20] Staging: rtl8192su: Makefile: cleaned up Makefile cflag lines

Quoted 18 lines · walter harms
Quoted 15 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192su/Makefile +0 -0
index 7133894..1120c04 100644
@@ -1,12 +1,12 @@
 NIC_SELECT = RTL8192SU
 
Quoted 9 lines

drivers/staging/rtl8192su/Makefile line 5

Quoted 5 lines
drivers/staging/rtl8192su/Makefile +2 -2
-EXTRA_CFLAGS += -std=gnu89
-EXTRA_CFLAGS += -O2
+ccflags-y := -std=gnu89
+ccflags-y += -O2
 

I still do not think that -O2 belongs here.
it should simply be removed.

True it should, but all i did was change the EXTRA_CFLAGS to ccflags-y.

Quoted 11 lines

re,
wh

Quoted 5 lines
drivers/staging/rtl8192su/Makefile +2 -2
-EXTRA_CFLAGS += -DJACKSON_NEW_RX
-EXTRA_CFLAGS += -DTHOMAS_BEACON
+ccflags-y += -DJACKSON_NEW_RX
+ccflags-y += -DTHOMAS_BEACON
 
Quoted 6 lines

drivers/staging/rtl8192su/Makefile line 12

Quoted 5 lines
drivers/staging/rtl8192su/Makefile +1 -1
-#EXTRA_CFLAGS += -DMUTIPLE_BULK_OUT
+#ccflags-y += -DMUTIPLE_BULK_OUT
 
 r8192s_usb-objs :=		\
 	r8192U_wx.o		\

TD

#14 lore raw

Re: [PATCH v3 11/20] Staging: rtl8192su: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent
Quoted 5 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/Makefile |   10 +++++-----

This file is no longer in linux-next.

thanks,

greg k-h

#15 lore raw

PATCH v3 12/20 Staging: rtl8192su: ieee80211: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/ieee80211/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192su/ieee80211/Makefile +5 -5
index a500bfa..5bee643 100644
@@ -1,10 +1,10 @@
 NIC_SELECT = RTL8192SU
 
-EXTRA_CFLAGS += -O2
-EXTRA_CFLAGS += -DRTL8192S_DISABLE_FW_DM=0
-EXTRA_CFLAGS += -DRTL8192SU
-#EXTRA_CFLAGS += -DJOHN_NOCPY
-EXTRA_CFLAGS += -DTHOMAS_TURBO
+ccflags-y := -O2
+ccflags-y += -DRTL8192S_DISABLE_FW_DM=0
+ccflags-y += -DRTL8192SU
+#ccflags-y += -DJOHN_NOCPY
+ccflags-y += -DTHOMAS_TURBO
 
 ieee80211-rsl-objs := ieee80211_rx.o \
 		      ieee80211_softmac.o \
Signature · 1 line
1.7.3.1.50.g1e633
#16 lore raw

Re: [PATCH v3 12/20] Staging: rtl8192su: ieee80211: Makefile: cleaned up Makefile cflag lines

Quoted 12 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/ieee80211/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192su/ieee80211/Makefile +0 -0
index a500bfa..5bee643 100644

drivers/staging/rtl8192su/ieee80211/Makefile line 3

Quoted 8 lines
drivers/staging/rtl8192su/ieee80211/Makefile +1 -5
@@ -1,10 +1,10 @@
 NIC_SELECT = RTL8192SU
 
-EXTRA_CFLAGS += -O2
-EXTRA_CFLAGS += -DRTL8192S_DISABLE_FW_DM=0
-EXTRA_CFLAGS += -DRTL8192SU
-#EXTRA_CFLAGS += -DJOHN_NOCPY
-EXTRA_CFLAGS += -DTHOMAS_TURBO
+ccflags-y := -O2

optimisation should be configured in the main file.

re,
wh

Quoted 7 lines
drivers/staging/rtl8192su/ieee80211/Makefile +4 -0
+ccflags-y += -DRTL8192S_DISABLE_FW_DM=0
+ccflags-y += -DRTL8192SU
+#ccflags-y += -DJOHN_NOCPY
+ccflags-y += -DTHOMAS_TURBO
 
 ieee80211-rsl-objs := ieee80211_rx.o \
 		      ieee80211_softmac.o \
#17 lore raw

Re: [PATCH v3 12/20] Staging: rtl8192su: ieee80211: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent
Quoted 5 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/ieee80211/Makefile |   10 +++++-----

This file is no longer in linux-next.

thanks,

greg k-h

author
#18 lore raw

Re: [PATCH v3 12/20] Staging: rtl8192su: ieee80211: Makefile: cleaned up Makefile cflag lines

Quoted 8 lines · Greg KH
Quoted 5 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/ieee80211/Makefile |   10 +++++-----

This file is no longer in linux-next.

I Didn't know that. I guess because I did the patches based on the current linus tree.
So you want me to resend it without this driver?

Quoted 5 lines

thanks,

greg k-h

Thanks,

Tracey D

author
#19 lore raw

Re: [PATCH v3 12/20] Staging: rtl8192su: ieee80211: Makefile: cleaned up Makefile cflag lines

Quoted 8 lines · T Dent
Quoted 7 lines · Greg KH
Quoted 5 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192su/ieee80211/Makefile |   10 +++++-----
Quoted 5 lines
Quoted 1 line

This file is no longer in linux-next.

I Didn't know that. I guess because I did the patches based on the current linus tree.
So you want me to resend it without this driver?

Never mind, I just seen the message you sent me. Got a lot of messages and must have skip over it , Sorry.

Quoted 10 lines
Quoted 5 lines

thanks,

greg k-h

Thanks,

Tracey D

Thanks,

Tracey D

#20 lore raw

Re: [PATCH v3 12/20] Staging: rtl8192su: ieee80211: Makefile: cleaned up Makefile cflag lines

In reply to T Dent
Quoted 4 lines · T Dent
Quoted 3 lines · Greg KH
Quoted 2 lines · Tracey Dent

Changed to use the proper ccflags-y option

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
---
 drivers/staging/rtl8192su/ieee80211/Makefile |   10 +++++-----

This file is no longer in linux-next.

I Didn't know that. I guess because I did the patches based on the current linus tree.

You should always send patches against the linux-next tree, as it contains the accumulated patches that will be sent to Linus next time around.

Quoted 1 line

So you want me to resend it without this driver?

Nope, I got your other ones.

thanks,

greg k-h

#21 lore raw

PATCH v3 13/20 Staging: rtl8192u: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192u/Makefile |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
drivers/staging/rtl8192u/Makefile +10 -10
index 738f4a8..cba4344 100644
@@ -1,16 +1,16 @@
 NIC_SELECT = RTL8192U
 
-EXTRA_CFLAGS += -std=gnu89
-EXTRA_CFLAGS += -O2
+ccflags-y := -std=gnu89
+ccflags-y += -O2
 
-EXTRA_CFLAGS += -DCONFIG_FORCE_HARD_FLOAT=y
-EXTRA_CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
-EXTRA_CFLAGS += -DTHOMAS_BEACON -DTHOMAS_TASKLET -DTHOMAS_SKB -DTHOMAS_TURBO
-#EXTRA_CFLAGS += -DUSB_TX_DRIVER_AGGREGATION_ENABLE
-#EXTRA_CFLAGS += -DUSB_RX_AGGREGATION_SUPPORT
-EXTRA_CFLAGS += -DUSE_ONE_PIPE
-EXTRA_CFLAGS += -DENABLE_DOT11D
-EXTRA_CFLAGS += -Idrivers/staging/rtl8192u/ieee80211
+ccflags-y += -DCONFIG_FORCE_HARD_FLOAT=y
+ccflags-y += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
+ccflags-y += -DTHOMAS_BEACON -DTHOMAS_TASKLET -DTHOMAS_SKB -DTHOMAS_TURBO
+#ccflags-y += -DUSB_TX_DRIVER_AGGREGATION_ENABLE
+#ccflags-y += -DUSB_RX_AGGREGATION_SUPPORT
+ccflags-y += -DUSE_ONE_PIPE
+ccflags-y += -DENABLE_DOT11D
+ccflags-y += -Idrivers/staging/rtl8192u/ieee80211
 
 r8192u_usb-objs := r8192U_core.o r8180_93cx6.o r8192U_wx.o		\
 		  r8190_rtl8256.o r819xU_phy.o r819xU_firmware.o	\
Signature · 1 line
1.7.3.1.50.g1e633
#22 lore raw

Re: [PATCH v3 13/20] Staging: rtl8192u: Makefile: cleaned up Makefile cflag lines

Quoted 12 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192u/Makefile |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
drivers/staging/rtl8192u/Makefile +0 -0
index 738f4a8..cba4344 100644

drivers/staging/rtl8192u/Makefile line 5

Quoted 7 lines
drivers/staging/rtl8192u/Makefile +2 -2
@@ -1,16 +1,16 @@
 NIC_SELECT = RTL8192U
 
-EXTRA_CFLAGS += -std=gnu89
-EXTRA_CFLAGS += -O2
+ccflags-y := -std=gnu89
+ccflags-y += -O2
 

no optimisation please,

drivers/staging/rtl8192u/Makefile line 6

Quoted 1 line
drivers/staging/rtl8192u/Makefile +0 -1
-EXTRA_CFLAGS += -DCONFIG_FORCE_HARD_FLOAT=y

these CONFIG_FORCE_HARD_FLOAT again, why do they call it config when they need it ?

re,
wh

Quoted 18 lines
drivers/staging/rtl8192u/Makefile +8 -7
-EXTRA_CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
-EXTRA_CFLAGS += -DTHOMAS_BEACON -DTHOMAS_TASKLET -DTHOMAS_SKB -DTHOMAS_TURBO
-#EXTRA_CFLAGS += -DUSB_TX_DRIVER_AGGREGATION_ENABLE
-#EXTRA_CFLAGS += -DUSB_RX_AGGREGATION_SUPPORT
-EXTRA_CFLAGS += -DUSE_ONE_PIPE
-EXTRA_CFLAGS += -DENABLE_DOT11D
-EXTRA_CFLAGS += -Idrivers/staging/rtl8192u/ieee80211
+ccflags-y += -DCONFIG_FORCE_HARD_FLOAT=y
+ccflags-y += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
+ccflags-y += -DTHOMAS_BEACON -DTHOMAS_TASKLET -DTHOMAS_SKB -DTHOMAS_TURBO
+#ccflags-y += -DUSB_TX_DRIVER_AGGREGATION_ENABLE
+#ccflags-y += -DUSB_RX_AGGREGATION_SUPPORT
+ccflags-y += -DUSE_ONE_PIPE
+ccflags-y += -DENABLE_DOT11D
+ccflags-y += -Idrivers/staging/rtl8192u/ieee80211
 
 r8192u_usb-objs := r8192U_core.o r8180_93cx6.o r8192U_wx.o		\
 		  r8190_rtl8256.o r819xU_phy.o r819xU_firmware.o	\
#23 lore raw

PATCH v3 14/20 Staging: rtl8192u: ieee80211: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192u/ieee80211/Makefile |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192u/ieee80211/Makefile +8 -8
index 71ca5d9..45704f8 100644
@@ -5,22 +5,22 @@ MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT)
 
 CC = gcc
 ifneq ($(shell uname -r|cut -d. -f1,2), 2.4)
-EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/wireless
-EXTRA_CFLAGS += -O2
-EXTRA_CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
+ccflags-y := -I$(TOPDIR)/drivers/net/wireless
+ccflags-y += -O2
+ccflags-y += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
 
 #it will fail to compile in suse linux enterprise 10 sp2. This flag is to solve this problem.
 ifeq ($(shell uname -r | cut -d. -f1,2,3,4), 2.6.16.60-0)
-EXTRA_CFLAGS += -DOPENSUSE_SLED
+ccflags-y := -DOPENSUSE_SLED
 endif
 
 ifeq ($(NIC_SELECT),RTL8192U)
-#EXTRA_CFLAGS += -DUSB_TX_DRIVER_AGGREGATION_ENABLE
-#EXTRA_CFLAGS += -DUSB_RX_AGGREGATION_SUPPORT
+#ccflags-y := -DUSB_TX_DRIVER_AGGREGATION_ENABLE
+#ccflags-y := -DUSB_RX_AGGREGATION_SUPPORT
 endif
-#EXTRA_CFLAGS += -DJOHN_NOCPY
+#ccflags-y := -DJOHN_NOCPY
 #flags to enable or disble 80211D feature
-EXTRA_CFLAGS += -DENABLE_DOT11D
+ccflags-y += -DENABLE_DOT11D
 ieee80211-rsl-objs := ieee80211_rx.o \
 		      ieee80211_softmac.o \
 		      ieee80211_tx.o \
Signature · 1 line
1.7.3.1.50.g1e633
#24 lore raw

Re: [PATCH v3 14/20] Staging: rtl8192u: ieee80211: Makefile: cleaned up Makefile cflag lines

Quoted 12 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/rtl8192u/ieee80211/Makefile |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192u/ieee80211/Makefile +0 -0
index 71ca5d9..45704f8 100644

drivers/staging/rtl8192u/ieee80211/Makefile MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT) · line 6

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/Makefile +0 -0
@@ -5,22 +5,22 @@ MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT)
 
 CC = gcc

does this mean we can compile with gcc only ? where are the icc users ?

drivers/staging/rtl8192u/ieee80211/Makefile MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT) · line 7

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/Makefile +0 -0
 ifneq ($(shell uname -r|cut -d. -f1,2), 2.4)

I can guess what the author intended but this will only check *on* what system i am compiling, not what linux version i try *to conpile*.
see: KERNEL_VERSION macro

drivers/staging/rtl8192u/ieee80211/Makefile MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT) · line 9

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/Makefile +0 -2
-EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/wireless
-EXTRA_CFLAGS += -O2

no optimisation, please

drivers/staging/rtl8192u/ieee80211/Makefile MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT) · line 15

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/Makefile +4 -2
-EXTRA_CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
+ccflags-y := -I$(TOPDIR)/drivers/net/wireless
+ccflags-y += -O2
+ccflags-y += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
 
 #it will fail to compile in suse linux enterprise 10 sp2. This flag is to solve this problem.
 ifeq ($(shell uname -r | cut -d. -f1,2,3,4), 2.6.16.60-0)
-EXTRA_CFLAGS += -DOPENSUSE_SLED
+ccflags-y := -DOPENSUSE_SLED
 endif

this should be something like .....

# if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,16)
#define OPENSUSE_SLED
#endif
Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/Makefile +1 -2
 ifeq ($(NIC_SELECT),RTL8192U)
-#EXTRA_CFLAGS += -DUSB_TX_DRIVER_AGGREGATION_ENABLE
-#EXTRA_CFLAGS += -DUSB_RX_AGGREGATION_SUPPORT
+#ccflags-y := -DUSB_TX_DRIVER_AGGREGATION_ENABLE

drivers/staging/rtl8192u/ieee80211/Makefile MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT) · line 26

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/Makefile +3 -2
+#ccflags-y := -DUSB_RX_AGGREGATION_SUPPORT
 endif
-#EXTRA_CFLAGS += -DJOHN_NOCPY
+#ccflags-y := -DJOHN_NOCPY
 #flags to enable or disble 80211D feature
-EXTRA_CFLAGS += -DENABLE_DOT11D
+ccflags-y += -DENABLE_DOT11D
 ieee80211-rsl-objs := ieee80211_rx.o \
 		      ieee80211_softmac.o \
 		      ieee80211_tx.o \

just my 2 cents,
wh

#25 lore raw

PATCH v3 15/20 Staging: tm6000: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/tm6000/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/tm6000/Makefile +4 -4
index 77e06bf..d8ccdaa 100644
@@ -9,7 +9,7 @@ obj-$(CONFIG_VIDEO_TM6000) += tm6000.o
 obj-$(CONFIG_VIDEO_TM6000_ALSA) += tm6000-alsa.o
 obj-$(CONFIG_VIDEO_TM6000_DVB) += tm6000-dvb.o
 
-EXTRA_CFLAGS = -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y := -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
Signature · 1 line
1.7.3.1.50.g1e633
#26 lore raw

PATCH v3 16/20 Staging: usbip: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/usbip/Makefile |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/usbip/Makefile +2 -3
index 6f2916b..10307f8 100644
@@ -7,6 +7,5 @@ vhci-hcd-objs := vhci_sysfs.o vhci_tx.o vhci_rx.o vhci_hcd.o
 obj-$(CONFIG_USB_IP_HOST) += usbip.o
 usbip-objs := stub_dev.o stub_main.o stub_rx.o stub_tx.o
 
-ifeq ($(CONFIG_USB_IP_DEBUG_ENABLE),y)
-	EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_IP_DEBUG_ENABLE) := -DDEBUG
+
Signature · 1 line
1.7.3.1.50.g1e633
#27 lore raw

PATCH v3 17/20 Staging: vt6655: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/vt6655/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6655/Makefile +2 -2
index 824c971..f7544a6 100644
@@ -1,6 +1,6 @@
 # TODO: all of these should be removed
-EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -D__NO_VERSION__
-EXTRA_CFLAGS += -DHOSTAP
+ccflags-y := -DLINUX -D__KERNEL__ -D__NO_VERSION__
+ccflags-y += -DHOSTAP
 
 vt6655_stage-y +=	device_main.o \
 	card.o \
Signature · 1 line
1.7.3.1.50.g1e633
#28 lore raw

PATCH v3 18/20 Staging: vt6656: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/vt6656/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6656/Makefile +2 -2
index 582a35197..41ed06b 100644
@@ -1,6 +1,6 @@
 # TODO: all of these should be removed
-EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DEXPORT_SYMTAB -D__NO_VERSION__
-EXTRA_CFLAGS += -DHOSTAP
+ccflags-y := -DLINUX -D__KERNEL__ -DEXPORT_SYMTAB -D__NO_VERSION__
+ccflags-y += -DHOSTAP
 
 vt6656_stage-y +=	main_usb.o \
 			card.o  \
Signature · 1 line
1.7.3.1.50.g1e633
#29 lore raw

Re: [PATCH v3 18/20] Staging: vt6656: Makefile: cleaned up Makefile cflag lines

Quoted 12 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/vt6656/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6656/Makefile +0 -0
index 582a35197..41ed06b 100644

drivers/staging/vt6656/Makefile line 6

Quoted 8 lines
drivers/staging/vt6656/Makefile +2 -2
@@ -1,6 +1,6 @@
 # TODO: all of these should be removed
-EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DEXPORT_SYMTAB -D__NO_VERSION__
-EXTRA_CFLAGS += -DHOSTAP
+ccflags-y := -DLINUX -D__KERNEL__ -DEXPORT_SYMTAB -D__NO_VERSION__
+ccflags-y += -DHOSTAP
 
 vt6656_stage-y +=	main_usb.o \
 			card.o  \

I am wondering what will happen when we remove -DLINUX will it think we are _DOS_ ? re,
wh

#30 lore raw

PATCH v3 19/20 Staging: wlags49_h2: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/wlags49_h2/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlags49_h2/Makefile +5 -5
index 25d0a8a..e604ebd 100644
@@ -12,8 +12,8 @@
 #  If you want to build AP support (untested), comment out -DSTA_ONLY
 
 INSTALLDIR := /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless
-EXTRA_CFLAGS += -I$(KERNELDIR)/include
-EXTRA_CFLAGS += -I$(src) \
+ccflags-y := -I$(KERNELDIR)/include
+ccflags-y += -I$(src) \
 		-DBUS_PCMCIA \
 		-DUSE_WPA \
 		-DUSE_WEXT \
@@ -25,16 +25,16 @@ EXTRA_CFLAGS += -I$(src) \
 #		-DUSE_UIL \
 #		-DUSE_PROFILE \
 
-ifeq ($(findstring HERMES25,$(EXTRA_CFLAGS)),)
+ifeq ($(findstring HERMES25,$(ccflags-y)),)
 WLNAME := wlags49_h2_cs
 $(WLNAME)-y := sta_h2.o
-ifeq ($(findstring STA_ONLY,$(EXTRA_CFLAGS)),)
+ifeq ($(findstring STA_ONLY,$(ccflags-y)),)
 $(WLNAME)-y += ap_h2.o
 endif
 else
 WLNAME=wlags49_h25_cs
 $(WLNAME)-y := sta_h25.o
-ifeq ($(findstring STA_ONLY,$(EXTRA_CFLAGS)),)
+ifeq ($(findstring STA_ONLY,$(ccflags-y)),)
 $(WLNAME)-y += ap_h25.o
 endif
 endif
Signature · 1 line
1.7.3.1.50.g1e633
#31 lore raw

PATCH v3 20/20 Staging: wlags49_h25: Makefile: cleaned up Makefile cflag lines

In reply to Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/wlags49_h25/Makefile |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/wlags49_h25/Makefile +5 -5
index d0b23d4..7d4b563 100644
@@ -12,8 +12,8 @@
 #  If you want to build AP support (untested), comment out -DSTA_ONLY
 
 INSTALLDIR := /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless
-EXTRA_CFLAGS += -I$(KERNELDIR)/include
-EXTRA_CFLAGS += -I$(src) \
+ccflags-y := -I$(KERNELDIR)/include
+ccflags-y += -I$(src) \
 		-DBUS_PCMCIA \
 		-DUSE_WPA \
 		-DUSE_WEXT \
@@ -25,16 +25,16 @@ EXTRA_CFLAGS += -I$(src) \
 #		-DUSE_UIL \
 #		-DUSE_PROFILE \
 
-ifeq ($(findstring HERMES25,$(EXTRA_CFLAGS)),)
+ifeq ($(findstring HERMES25,$(ccflags-y)),)
 WLNAME := wlags49_h2_cs
 $(WLNAME)-y := sta_h2.o
-ifeq ($(findstring STA_ONLY,$(EXTRA_CFLAGS)),)
+ifeq ($(findstring STA_ONLY,$(ccflags-y)),)
 $(WLNAME)-y += ap_h2.o
 endif
 else
 WLNAME=wlags49_h25_cs
 $(WLNAME)-y := sta_h25.o
-ifeq ($(findstring STA_ONLY,$(EXTRA_CFLAGS)),)
+ifeq ($(findstring STA_ONLY,$(ccflags-y)),)
 $(WLNAME)-y += ap_h25.o
 endif
 endif
Signature · 1 line
1.7.3.1.50.g1e633
#32 lore raw
In reply to Tracey Dent
Quoted 13 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/cx25821/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/cx25821/Makefile +0 -0
index d0eb16e..6448364 100644
@@ -7,7 +7,7 @@ cx25821-objs   := cx25821-core.o cx25821-cards.o cx25821-i2c.o \
 obj-$(CONFIG_VIDEO_CX25821) += cx25821.o

drivers/staging/cx25821/Makefile cx25821-objs := cx25821-core.o cx25821-cards.o cx25821-i2c.o \ · line 13

Quoted 10 lines
drivers/staging/cx25821/Makefile +4 -4
 obj-$(CONFIG_VIDEO_CX25821_ALSA) += cx25821-alsa.o
 
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y := -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends

they have invented vpath for this, did they ?
note: I am not familiar with the linux makefile.

re,
wh

#33 lore raw
Quoted 18 lines · walter harms
Quoted 15 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/cx25821/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/cx25821/Makefile +0 -0
index d0eb16e..6448364 100644
@@ -7,7 +7,7 @@ cx25821-objs   := cx25821-core.o cx25821-cards.o cx25821-i2c.o \
 obj-$(CONFIG_VIDEO_CX25821) += cx25821.o
 obj-$(CONFIG_VIDEO_CX25821_ALSA) += cx25821-alsa.o
 
Quoted 11 lines

drivers/staging/cx25821/Makefile cx25821-objs := cx25821-core.o cx25821-cards.o cx25821-i2c.o \ · line 13

Quoted 8 lines
drivers/staging/cx25821/Makefile +4 -4
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y := -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends

they have invented vpath for this, did they ?
note: I am not familiar with the linux makefile.

vpath is not the answer here.

Note that Tracy dent did the simple replacement of EXTRA_CFLAGS with ccflags-y. The Makefiles could in many cases benefit from general cleanups - which many of your futher comments is a good indicator of.

Sam

#34 lore raw
Quoted 30 lines · Sam Ravnborg
Quoted 18 lines · walter harms
Quoted 15 lines · Tracey Dent

Changed to use the proper ccflags-y option

---
 drivers/staging/cx25821/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/cx25821/Makefile +0 -0
index d0eb16e..6448364 100644
@@ -7,7 +7,7 @@ cx25821-objs   := cx25821-core.o cx25821-cards.o cx25821-i2c.o \
 obj-$(CONFIG_VIDEO_CX25821) += cx25821.o
 obj-$(CONFIG_VIDEO_CX25821_ALSA) += cx25821-alsa.o
 
Quoted 11 lines

drivers/staging/cx25821/Makefile cx25821-objs := cx25821-core.o cx25821-cards.o cx25821-i2c.o \ · line 13

Quoted 8 lines
drivers/staging/cx25821/Makefile +4 -4
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y := -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends

they have invented vpath for this, did they ?
note: I am not familiar with the linux makefile.

Quoted 5 lines

vpath is not the answer here.

Note that Tracy dent did the simple replacement of EXTRA_CFLAGS with ccflags-y. The Makefiles could in many cases benefit from general cleanups - which many of your futher comments is a good indicator of.

Hi Sam,

I happen to have sent out a RFC patch for media/ a little over a week ago. Mauro Chehab has not commented on it yet, but I am curious to hear your opinion.

http://marc.info/?l=linux-kernel&m8553496013767&w=2

Thanks,
mfm