Skip to contentSkip to conversation

Fix in-tree usage of EXTRA_{A,C,CPP,LD}FLAGS

PATCH Applied Arnaud Lacombe 9 participants 39 messages Aug 15, 2011 – Aug 31, 2011

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

cover Fix in-tree usage of EXTRA_{A,C,CPP,LD}FLAGS

Hi folks,

The attached serie fix in-tree usage of EXTRA_{A,C,CPP,LD}FLAGS. Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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.

Their usage is replaced by Kbuild's `{as,cc,cpp,ld}flags-y'.

This serie has been build-tested on x86-64 `allyesconfig' where it fixes the complete brokenness of the media tree, plus various other failure, espectially in the SCSI tree when EXTRA_CFLAGS is defined on the command-line.

I did not build test other architectures.

- Arnaud

Cc Sam Ravnborg <[email protected]>

Arnaud Lacombe (11):
arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
arch/mips: do not use EXTRA_CFLAGS
arch/unicore32: do not use EXTRA_AFLAGS or EXTRA_CFLAGS arch/x86: do not use EXTRA_CFLAGS
drivers/media: do not use EXTRA_CFLAGS drivers/net/bna: do not use EXTRA_CFLAGS
drivers/pps: do not use EXTRA_CFLAGS
drivers/scsi: do not use EXTRA_CFLAGS drivers/staging: do not use EXTRA_CFLAGS scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS
replacement
script/checkpatch.pl: warn about deprecated use of

    EXTRA_{A,C,CPP,LD}FLAGS
 arch/m68k/fpsp040/Makefile                 |    2 +-
 arch/m68k/ifpsp060/Makefile                |    2 +-
 arch/m68k/platform/54xx/Makefile           |    4 ++--
 arch/mips/netlogic/xlr/Makefile            |    2 +-
 arch/unicore32/boot/compressed/Makefile    |    4 ++--
 arch/x86/math-emu/Makefile                 |    4 ++--
 arch/x86/pci/Makefile                      |    4 +---
 drivers/media/common/tuners/Makefile       |    4 ++--
 drivers/media/dvb/b2c2/Makefile            |    4 ++--
 drivers/media/dvb/bt8xx/Makefile           |    8 ++++----
 drivers/media/dvb/ddbridge/Makefile        |    8 ++++----
 drivers/media/dvb/dm1105/Makefile          |    2 +-
 drivers/media/dvb/dvb-usb/Makefile         |    4 ++--
 drivers/media/dvb/frontends/Makefile       |    4 ++--
 drivers/media/dvb/mantis/Makefile          |    2 +-
 drivers/media/dvb/ngene/Makefile           |    8 ++++----
 drivers/media/dvb/pluto2/Makefile          |    2 +-
 drivers/media/dvb/pt1/Makefile             |    2 +-
 drivers/media/dvb/siano/Makefile           |    4 ++--
 drivers/media/dvb/ttpci/Makefile           |    4 ++--
 drivers/media/dvb/ttusb-budget/Makefile    |    2 +-
 drivers/media/dvb/ttusb-dec/Makefile       |    2 +-
 drivers/media/radio/Makefile               |    2 +-
 drivers/media/video/Makefile               |    6 +++---
 drivers/media/video/au0828/Makefile        |    8 ++++----
 drivers/media/video/bt8xx/Makefile         |    6 +++---
 drivers/media/video/cx18/Makefile          |    6 +++---
 drivers/media/video/cx231xx/Makefile       |   10 +++++-----
 drivers/media/video/cx23885/Makefile       |   10 +++++-----
 drivers/media/video/cx25840/Makefile       |    2 +-
 drivers/media/video/cx88/Makefile          |    8 ++++----
 drivers/media/video/em28xx/Makefile        |    8 ++++----
 drivers/media/video/gspca/gl860/Makefile   |    2 +-
 drivers/media/video/gspca/m5602/Makefile   |    2 +-
 drivers/media/video/gspca/stv06xx/Makefile |    2 +-
 drivers/media/video/hdpvr/Makefile         |    4 ++--
 drivers/media/video/ivtv/Makefile          |    8 ++++----
 drivers/media/video/omap3isp/Makefile      |    4 +---
 drivers/media/video/pvrusb2/Makefile       |    8 ++++----
 drivers/media/video/saa7134/Makefile       |    8 ++++----
 drivers/media/video/saa7164/Makefile       |   10 +++++-----
 drivers/media/video/tlg2300/Makefile       |    8 ++++----
 drivers/media/video/usbvision/Makefile     |    4 ++--
 drivers/net/bna/Makefile                   |    2 +-
 drivers/pps/generators/Makefile            |    4 +---
 drivers/scsi/cxgbi/cxgb3i/Kbuild           |    2 +-
 drivers/scsi/cxgbi/cxgb4i/Kbuild           |    2 +-
 drivers/staging/cxd2099/Makefile           |    6 +++---
 drivers/staging/go7007/Makefile            |    8 ++------
 drivers/staging/rtl8187se/Makefile         |    6 +++---
 drivers/staging/rts_pstor/Makefile         |    2 +-
 scripts/Makefile.build                     |    2 +-
 scripts/checkpatch.pl                      |   14 ++++++++++++++
 53 files changed, 130 insertions(+), 126 deletions(-)
Signature · 1 line
1.7.6.153.g78432
#1 lore raw

PATCH 1/11 arch/m68k: do not use EXTRA_{A,C,LD}FLAGS

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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'.

---
 arch/m68k/fpsp040/Makefile       |    2 +-
 arch/m68k/ifpsp060/Makefile      |    2 +-
 arch/m68k/platform/54xx/Makefile |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
arch/m68k/fpsp040/Makefile +1 -1
index 9506d88..628a351 100644
@@ -10,6 +10,6 @@ obj-y    := bindec.o binstr.o decbin.o do_func.o gen_except.o get_op.o \
 	    x_bsun.o x_fline.o x_operr.o x_ovfl.o x_snan.o x_store.o \
 	    x_unfl.o x_unimp.o x_unsupp.o bugfix.o skeleton.o
 
-EXTRA_LDFLAGS := -x
+ldflags-y := -x
 
 $(OS_OBJS): fpsp.h
arch/m68k/ifpsp060/Makefile +1 -1
index 43b4350..5ba2d1e 100644
@@ -6,4 +6,4 @@
 
 obj-y := fskeleton.o iskeleton.o os.o
 
-EXTRA_LDFLAGS := -x
+ldflags-y := -x
arch/m68k/platform/54xx/Makefile +2 -2
index 6cfd090..967b51d 100644
@@ -8,8 +8,8 @@
 # on the console port whenever a DBG interrupt occurs. You have to
 # set up you HW breakpoints to trigger a DBG interrupt:
 #
-# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
-# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
 #
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
Signature · 1 line
1.7.6.153.g78432
#2 lore raw

PATCH 1/11 arch/m68k: do not use EXTRA_{A,C,LD}FLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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'.

---
 arch/m68k/fpsp040/Makefile       |    2 +-
 arch/m68k/ifpsp060/Makefile      |    2 +-
 arch/m68k/platform/54xx/Makefile |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
arch/m68k/fpsp040/Makefile +1 -1
index 9506d88..628a351 100644
@@ -10,6 +10,6 @@ obj-y    := bindec.o binstr.o decbin.o do_func.o gen_except.o get_op.o \
 	    x_bsun.o x_fline.o x_operr.o x_ovfl.o x_snan.o x_store.o \
 	    x_unfl.o x_unimp.o x_unsupp.o bugfix.o skeleton.o
 
-EXTRA_LDFLAGS := -x
+ldflags-y := -x
 
 $(OS_OBJS): fpsp.h
arch/m68k/ifpsp060/Makefile +1 -1
index 43b4350..5ba2d1e 100644
@@ -6,4 +6,4 @@
 
 obj-y := fskeleton.o iskeleton.o os.o
 
-EXTRA_LDFLAGS := -x
+ldflags-y := -x
arch/m68k/platform/54xx/Makefile +2 -2
index 6cfd090..967b51d 100644
@@ -8,8 +8,8 @@
 # on the console port whenever a DBG interrupt occurs. You have to
 # set up you HW breakpoints to trigger a DBG interrupt:
 #
-# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
-# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
 #
 
 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1
Signature · 1 line
1.7.6.153.g78432
#3 lore raw

Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS

Hi,

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   Author: Sam Ravnborg <sam@neptun.(none)>
   Date:   Mon Oct 15 22:25:06 2007 +0200

       kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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'.

- Arnaud

Quoted 47 lines

---
 arch/m68k/fpsp040/Makefile       |    2 +-
 arch/m68k/ifpsp060/Makefile      |    2 +-
 arch/m68k/platform/54xx/Makefile |    4 ++--

 3 files changed, 4 insertions(+), 4 deletions(-)
arch/m68k/fpsp040/Makefile +0 -0
index 9506d88..628a351 100644
@@ -10,6 +10,6 @@ obj-y    := bindec.o binstr.o decbin.o do_func.o gen_except.o get_op.o \
            x_bsun.o x_fline.o x_operr.o x_ovfl.o x_snan.o x_store.o \

           x_unfl.o x_unimp.o x_unsupp.o bugfix.o skeleton.o

arch/m68k/fpsp040/Makefile +1 -1
-EXTRA_LDFLAGS := -x
+ldflags-y := -x

 $(OS_OBJS): fpsp.h

arch/m68k/ifpsp060/Makefile +0 -0
index 43b4350..5ba2d1e 100644
@@ -6,4 +6,4 @@
 

 obj-y := fskeleton.o iskeleton.o os.o

arch/m68k/ifpsp060/Makefile +1 -1
-EXTRA_LDFLAGS := -x
+ldflags-y := -x
arch/m68k/platform/54xx/Makefile +2 -2
index 6cfd090..967b51d 100644
@@ -8,8 +8,8 @@
  # on the console port whenever a DBG interrupt occurs. You have to
  # set up you HW breakpoints to trigger a DBG interrupt:
  #
-# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
-# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
  #
 

 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 --
1.7.6.153.g78432

#4 lore raw

Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS

In reply to Arnaud Lacombe

Hi,

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   Author: Sam Ravnborg <sam@neptun.(none)>
   Date:   Mon Oct 15 22:25:06 2007 +0200

       kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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'.

- Arnaud

Quoted 47 lines

---
 arch/m68k/fpsp040/Makefile       |    2 +-
 arch/m68k/ifpsp060/Makefile      |    2 +-
 arch/m68k/platform/54xx/Makefile |    4 ++--

 3 files changed, 4 insertions(+), 4 deletions(-)
arch/m68k/fpsp040/Makefile +0 -0
index 9506d88..628a351 100644
@@ -10,6 +10,6 @@ obj-y    := bindec.o binstr.o decbin.o do_func.o gen_except.o get_op.o \
            x_bsun.o x_fline.o x_operr.o x_ovfl.o x_snan.o x_store.o \

           x_unfl.o x_unimp.o x_unsupp.o bugfix.o skeleton.o

arch/m68k/fpsp040/Makefile +1 -1
-EXTRA_LDFLAGS := -x
+ldflags-y := -x

 $(OS_OBJS): fpsp.h

arch/m68k/ifpsp060/Makefile +0 -0
index 43b4350..5ba2d1e 100644
@@ -6,4 +6,4 @@
 

 obj-y := fskeleton.o iskeleton.o os.o

arch/m68k/ifpsp060/Makefile +1 -1
-EXTRA_LDFLAGS := -x
+ldflags-y := -x
arch/m68k/platform/54xx/Makefile +2 -2
index 6cfd090..967b51d 100644
@@ -8,8 +8,8 @@
  # on the console port whenever a DBG interrupt occurs. You have to
  # set up you HW breakpoints to trigger a DBG interrupt:
  #
-# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
-# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
  #
 

 asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 --
1.7.6.153.g78432

#5 lore raw

Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS

In reply to Arnaud Lacombe

arch/m68k/platform/54xx/Makefile line 12

Quoted 4 lines · Arnaud Lacombe
arch/m68k/platform/54xx/Makefile +2 -2
-# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
-# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT

asflags-y?

Finn

#6 lore raw

Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS

Hi,

Quoted 10 lines · Finn Thain

arch/m68k/platform/54xx/Makefile line 12

Quoted 4 lines · Arnaud Lacombe
arch/m68k/platform/54xx/Makefile +2 -2
-# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
-# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT

asflags-y?

yes, indeed. I'll resend later on.

- Arnaud

Quoted 2 lines

Finn

#7 lore raw

Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS

In reply to Finn Thain

Hi,

Quoted 10 lines · Finn Thain

arch/m68k/platform/54xx/Makefile line 12

Quoted 4 lines · Arnaud Lacombe
arch/m68k/platform/54xx/Makefile +2 -2
-# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT
-# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT
+# ccflags-y += -DTRAP_DBG_INTERRUPT

asflags-y?

yes, indeed. I'll resend later on.

- Arnaud

Quoted 2 lines

Finn

#8 lore raw

PATCH 2/11 arch/mips: do not use EXTRA_CFLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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'.

---
 arch/mips/netlogic/xlr/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/netlogic/xlr/Makefile +1 -1
index 9bd3f73..2dca585 100644
@@ -2,4 +2,4 @@ obj-y				+= setup.o platform.o irq.o setup.o time.o
 obj-$(CONFIG_SMP)		+= smp.o smpboot.o
 obj-$(CONFIG_EARLY_PRINTK)	+= xlr_console.o
 
-EXTRA_CFLAGS			+= -Werror
+ccflags-y			+= -Werror
Signature · 1 line
1.7.6.153.g78432
#9 lore raw

Re: [PATCH 02/11] arch/mips: do not use EXTRA_CFLAGS

Hello.

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
Author: Sam Ravnborg<sam@neptun.(none)>
Date: Mon Oct 15 22:25:06 2007 +0200

kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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'.

You didn't sign off.

WBR, Sergei

Applied
#10 lore raw

Re: [PATCH 02/11] arch/mips: do not use EXTRA_CFLAGS

Quoted 1 line · Sergei Shtylyov

You didn't sign off.

True - but I won't make a big fuzz about that for a one-line. I'm sure Arnaud will vow to do right the next time :-)

Applied. Thanks, Arnaud!

Ralf

#11 lore raw

Re: [PATCH 02/11] arch/mips: do not use EXTRA_CFLAGS

Hi,

Quoted 7 lines · Ralf Baechle
Quoted 1 line · Sergei Shtylyov

   You didn't sign off.

True - but I won't make a big fuzz about that for a one-line.  I'm sure Arnaud will vow to do right the next time :-)

You are welcome to slap me. If it's not too late:

- Arnaud

Quoted 4 lines

Applied.  Thanks, Arnaud!

 Ralf

#12 lore raw

Re: [PATCH 02/11] arch/mips: do not use EXTRA_CFLAGS

Quoted 5 lines · Arnaud Lacombe

Hi,

Quoted 2 lines · Ralf Baechle

On Mon, Aug 15, 2011 at 01:45:04PM +0400, Sergei Shtylyov wrote:

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

   You didn't sign off.

True - but I won't make a big fuzz about that for a one-line.  I'm sure Arnaud will vow to do right the next time :-)

You are welcome to slap me. If it's not too late:

Thanks for fixing this up. Looks like an acked-by is not needed :)

JC (Netlogic XLR/XLS maintainer)

#13 lore raw

Re: [PATCH 02/11] arch/mips: do not use EXTRA_CFLAGS

Quoted 8 lines · Jayachandran C.
Quoted 7 lines · Arnaud Lacombe

Hi,

Quoted 4 lines · Ralf Baechle
Quoted 1 line · Sergei Shtylyov

   You didn't sign off.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

True - but I won't make a big fuzz about that for a one-line.  I'm sure Arnaud will vow to do right the next time :-)

You are welcome to slap me. If it's not too late:

Thanks for fixing this up. Looks like an acked-by is not needed :)

No - but generally an Acked-by: a maintainer or Reviewed-by: or Tested-by:
somebody else is always welcome. The more eyeballs, the better :-)

Ralf

#14 lore raw

PATCH 3/11 arch/unicore32: do not use EXTRA_AFLAGS or EXTRA_CFLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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 <[email protected]>
Cc Guan Xuetao <[email protected]>
---
 arch/unicore32/boot/compressed/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/unicore32/boot/compressed/Makefile +2 -2
index b0954a2..950a9af 100644
@@ -10,8 +10,8 @@
 # Copyright (C) 2001~2010 GUAN Xue-tao
 #
 
-EXTRA_CFLAGS	:= -fpic -fno-builtin
-EXTRA_AFLAGS	:= -Wa,-march=all
+ccflags-y	:= -fpic -fno-builtin
+asflags-y	:= -Wa,-march=all
 
 OBJS		:= misc.o
 
Signature · 1 line
1.7.6.153.g78432
#15 lore raw

Re: [PATCH 03/11] arch/unicore32: do not use EXTRA_AFLAGS or EXTRA_CFLAGS

Hi,

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   Author: Sam Ravnborg <sam@neptun.(none)>
   Date:   Mon Oct 15 22:25:06 2007 +0200

       kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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 <[email protected]>
Cc Guan Xuetao <[email protected]>

- Arnaud

Quoted 23 lines

---
 arch/unicore32/boot/compressed/Makefile |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
arch/unicore32/boot/compressed/Makefile +2 -2
index b0954a2..950a9af 100644
@@ -10,8 +10,8 @@
  # Copyright (C) 2001~2010 GUAN Xue-tao
  #
 
-EXTRA_CFLAGS   := -fpic -fno-builtin
-EXTRA_AFLAGS   := -Wa,-march=all
+ccflags-y      := -fpic -fno-builtin
+asflags-y      := -Wa,-march=all
 

 OBJS           := misc.o

--
1.7.6.153.g78432

Acked-by
#16 lore raw

Re: [PATCH 03/11] arch/unicore32: do not use EXTRA_AFLAGS or EXTRA_CFLAGS

It looks good for me.

Do I need to push the patch into unicore32 repo?

Thanks & Regards

Guan Xuetao

Quoted 45 lines · Arnaud Lacombe

Hi,

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
Author: Sam Ravnborg <sam@neptun.(none)>
Date: Mon Oct 15 22:25:06 2007 +0200

kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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 <[email protected]>
Cc Guan Xuetao <[email protected]>

- Arnaud

Quoted 23 lines
---
 arch/unicore32/boot/compressed/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/unicore32/boot/compressed/Makefile +2 -3
index b0954a2..950a9af 100644
@@ -10,8 +10,8 @@
 # Copyright (C) 2001~2010 GUAN Xue-tao
 #
 
-EXTRA_CFLAGS   := -fpic -fno-builtin
-EXTRA_AFLAGS   := -Wa,-march=all
+ccflags-y      := -fpic -fno-builtin
+asflags-y      := -Wa,-march=all
 
 OBJS           := misc.o
 
--

1.7.6.153.g78432

#17 lore raw

Re: [PATCH 03/11] arch/unicore32: do not use EXTRA_AFLAGS or EXTRA_CFLAGS

Hi,

Quoted 6 lines · Guan Xuetao

It looks good for me.

Do I need to push the patch into unicore32 repo?

All patches in the series are fully independent from one another, so yes, you can just pick it in the unicore32 tree.

Thanks,
- Arnaud

Quoted 54 lines

Thanks & Regards

Guan Xuetao

Quoted 45 lines · Arnaud Lacombe

Hi,

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   Author: Sam Ravnborg <sam@neptun.(none)>
   Date:   Mon Oct 15 22:25:06 2007 +0200

       kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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 <[email protected]>
Cc Guan Xuetao <[email protected]>

 - Arnaud

Quoted 23 lines

---
 arch/unicore32/boot/compressed/Makefile |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
arch/unicore32/boot/compressed/Makefile +2 -2
index b0954a2..950a9af 100644
@@ -10,8 +10,8 @@
  # Copyright (C) 2001~2010 GUAN Xue-tao
  #
 
-EXTRA_CFLAGS   := -fpic -fno-builtin
-EXTRA_AFLAGS   := -Wa,-march=all
+ccflags-y      := -fpic -fno-builtin
+asflags-y      := -Wa,-march=all
 

 OBJS           := misc.o

--
1.7.6.153.g78432

#18 lore raw

Re: [PATCH 03/11] arch/unicore32: do not use EXTRA_AFLAGS or EXTRA_CFLAGS

Quoted 7 lines · Arnaud Lacombe

Hi,

Quoted 4 lines · Guan Xuetao

It looks good for me.

Quoted 7 lines
Quoted 2 lines

Do I need to push the patch into unicore32 repo?

All patches in the series are fully independent from one another, so yes, you can just pick it in the unicore32 tree.

Thanks,
- Arnaud

I see, thanks for your explanation.

Guan Xuetao

#19 lore raw

PATCH 4/11 arch/x86: do not use EXTRA_CFLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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'.

---
 arch/x86/math-emu/Makefile |    4 ++--
 arch/x86/pci/Makefile      |    4 +---
 2 files changed, 3 insertions(+), 5 deletions(-)
arch/x86/math-emu/Makefile +2 -2
index 9b0c63b..60db1b8 100644
@@ -5,8 +5,8 @@
 #DEBUG	= -DDEBUGGING
 DEBUG	=
 PARANOID = -DPARANOID
-EXTRA_CFLAGS	:= $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
-EXTRA_AFLAGS	:= $(PARANOID)
+ccflags-y	:= $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
+asflags-y	:= $(PARANOID)
 
 # From 'C' language sources:
 C_OBJS =fpu_entry.o errors.o \
arch/x86/pci/Makefile +1 -3
index 6b8759f..aef971f 100644
@@ -22,6 +22,4 @@ obj-y				+= amd_bus.o bus_numa.o
 
 obj-$(CONFIG_PCI_CNB20LE_QUIRK)	+= broadcom_bus.o
 
-ifeq ($(CONFIG_PCI_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_PCI_DEBUG) += -DDEBUG
Signature · 1 line
1.7.6.153.g78432
#20 lore raw

Re: [PATCH 04/11] arch/x86: do not use EXTRA_CFLAGS

Hi,

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   Author: Sam Ravnborg <sam@neptun.(none)>
   Date:   Mon Oct 15 22:25:06 2007 +0200

       kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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'.

- Arnaud

Quoted 36 lines

---
 arch/x86/math-emu/Makefile |    4 ++--
 arch/x86/pci/Makefile      |    4 +---

 2 files changed, 3 insertions(+), 5 deletions(-)
arch/x86/math-emu/Makefile +0 -0
index 9b0c63b..60db1b8 100644
@@ -5,8 +5,8 @@
  #DEBUG = -DDEBUGGING

 DEBUG  =
 PARANOID = -DPARANOID

arch/x86/math-emu/Makefile +2 -2
-EXTRA_CFLAGS   := $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
-EXTRA_AFLAGS   := $(PARANOID)
+ccflags-y      := $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
+asflags-y      := $(PARANOID)

 # From 'C' language sources:
 C_OBJS =fpu_entry.o errors.o \

arch/x86/pci/Makefile +0 -0
index 6b8759f..aef971f 100644
@@ -22,6 +22,4 @@ obj-y                         += amd_bus.o bus_numa.o
 

 obj-$(CONFIG_PCI_CNB20LE_QUIRK)        += broadcom_bus.o

arch/x86/pci/Makefile +1 -4
-ifeq ($(CONFIG_PCI_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_PCI_DEBUG) += -DDEBUG
--

1.7.6.153.g78432

#21 lore raw

PATCH 5/11 drivers/media: do not use EXTRA_CFLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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 <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/common/tuners/Makefile       |    4 ++--
 drivers/media/dvb/b2c2/Makefile            |    4 ++--
 drivers/media/dvb/bt8xx/Makefile           |    8 ++++----
 drivers/media/dvb/ddbridge/Makefile        |    8 ++++----
 drivers/media/dvb/dm1105/Makefile          |    2 +-
 drivers/media/dvb/dvb-usb/Makefile         |    4 ++--
 drivers/media/dvb/frontends/Makefile       |    4 ++--
 drivers/media/dvb/mantis/Makefile          |    2 +-
 drivers/media/dvb/ngene/Makefile           |    8 ++++----
 drivers/media/dvb/pluto2/Makefile          |    2 +-
 drivers/media/dvb/pt1/Makefile             |    2 +-
 drivers/media/dvb/siano/Makefile           |    4 ++--
 drivers/media/dvb/ttpci/Makefile           |    4 ++--
 drivers/media/dvb/ttusb-budget/Makefile    |    2 +-
 drivers/media/dvb/ttusb-dec/Makefile       |    2 +-
 drivers/media/radio/Makefile               |    2 +-
 drivers/media/video/Makefile               |    6 +++---
 drivers/media/video/au0828/Makefile        |    8 ++++----
 drivers/media/video/bt8xx/Makefile         |    6 +++---
 drivers/media/video/cx18/Makefile          |    6 +++---
 drivers/media/video/cx231xx/Makefile       |   10 +++++-----
 drivers/media/video/cx23885/Makefile       |   10 +++++-----
 drivers/media/video/cx25840/Makefile       |    2 +-
 drivers/media/video/cx88/Makefile          |    8 ++++----
 drivers/media/video/em28xx/Makefile        |    8 ++++----
 drivers/media/video/gspca/gl860/Makefile   |    2 +-
 drivers/media/video/gspca/m5602/Makefile   |    2 +-
 drivers/media/video/gspca/stv06xx/Makefile |    2 +-
 drivers/media/video/hdpvr/Makefile         |    4 ++--
 drivers/media/video/ivtv/Makefile          |    8 ++++----
 drivers/media/video/omap3isp/Makefile      |    4 +---
 drivers/media/video/pvrusb2/Makefile       |    8 ++++----
 drivers/media/video/saa7134/Makefile       |    8 ++++----
 drivers/media/video/saa7164/Makefile       |   10 +++++-----
 drivers/media/video/tlg2300/Makefile       |    8 ++++----
 drivers/media/video/usbvision/Makefile     |    4 ++--
 36 files changed, 92 insertions(+), 94 deletions(-)
drivers/media/common/tuners/Makefile +2 -2
index 20d24fc..196c12a 100644
@@ -28,5 +28,5 @@ obj-$(CONFIG_MEDIA_TUNER_MAX2165) += max2165.o
 obj-$(CONFIG_MEDIA_TUNER_TDA18218) += tda18218.o
 obj-$(CONFIG_MEDIA_TUNER_TDA18212) += tda18212.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
drivers/media/dvb/b2c2/Makefile +2 -2
index b97cf72..3d04a8d 100644
@@ -12,5 +12,5 @@ obj-$(CONFIG_DVB_B2C2_FLEXCOP_PCI) += b2c2-flexcop-pci.o
 b2c2-flexcop-usb-objs = flexcop-usb.o
 obj-$(CONFIG_DVB_B2C2_FLEXCOP_USB) += b2c2-flexcop-usb.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners/
drivers/media/dvb/bt8xx/Makefile +4 -4
index d98f1d4..0713b3a 100644
@@ -1,6 +1,6 @@
 obj-$(CONFIG_DVB_BT8XX) += bt878.o dvb-bt8xx.o dst.o dst_ca.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
-EXTRA_CFLAGS += -Idrivers/media/video/bt8xx
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/video/bt8xx
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/dvb/ddbridge/Makefile +4 -4
index de4fe19..cf7214e 100644
@@ -6,9 +6,9 @@ ddbridge-objs := ddbridge-core.o
 
 obj-$(CONFIG_DVB_DDBRIDGE) += ddbridge.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners/
 
 # For the staging CI driver cxd2099
-EXTRA_CFLAGS += -Idrivers/staging/cxd2099/
+ccflags-y += -Idrivers/staging/cxd2099/
drivers/media/dvb/dm1105/Makefile +1 -1
index 8ac28b0..95a008b 100644
@@ -1,3 +1,3 @@
 obj-$(CONFIG_DVB_DM1105) += dm1105.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
drivers/media/dvb/dvb-usb/Makefile +2 -2
index 4bac13d..327613f 100644
@@ -94,7 +94,7 @@ obj-$(CONFIG_DVB_USB_LME2510) += dvb-usb-lmedm04.o
 dvb-usb-technisat-usb2-objs = technisat-usb2.o
 obj-$(CONFIG_DVB_USB_TECHNISAT_USB2) += dvb-usb-technisat-usb2.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
 # due to tuner-xc3028
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/common/tuners
 
drivers/media/dvb/frontends/Makefile +2 -2
index 6a6ba05..ed91c01 100644
@@ -2,8 +2,8 @@
 # Makefile for the kernel DVB frontend device drivers.
 #
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/common/tuners/
 
 stb0899-objs = stb0899_drv.o stb0899_algo.o
 stv0900-objs = stv0900_core.o stv0900_sw.o
drivers/media/dvb/mantis/Makefile +1 -1
index 98dc5cd..ec8116d 100644
@@ -25,4 +25,4 @@ obj-$(CONFIG_MANTIS_CORE)	+= mantis_core.o
 obj-$(CONFIG_DVB_MANTIS)	+= mantis.o
 obj-$(CONFIG_DVB_HOPPER)	+= hopper.o
 
-EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
drivers/media/dvb/ngene/Makefile +4 -4
index 2bc9687..8987361 100644
@@ -6,9 +6,9 @@ ngene-objs := ngene-core.o ngene-i2c.o ngene-cards.o ngene-dvb.o
 
 obj-$(CONFIG_DVB_NGENE) += ngene.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners/
 
 # For the staging CI driver cxd2099
-EXTRA_CFLAGS += -Idrivers/staging/cxd2099/
+ccflags-y += -Idrivers/staging/cxd2099/
drivers/media/dvb/pluto2/Makefile +1 -1
index 7ac1287..7008223 100644
@@ -1,3 +1,3 @@
 obj-$(CONFIG_DVB_PLUTO2) += pluto2.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
drivers/media/dvb/pt1/Makefile +1 -1
index a66da17..d80d8e8 100644
@@ -2,4 +2,4 @@ earth-pt1-objs := pt1.o va1j5jf8007s.o va1j5jf8007t.o
 
 obj-$(CONFIG_DVB_PT1) += earth-pt1.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-core -Idrivers/media/dvb/frontends
drivers/media/dvb/siano/Makefile +2 -2
index c54140b..f233b57 100644
@@ -5,7 +5,7 @@ obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o
 obj-$(CONFIG_SMS_USB_DRV) += smsusb.o
 obj-$(CONFIG_SMS_SDIO_DRV) += smssdio.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/dvb-core
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
 
drivers/media/dvb/ttpci/Makefile +2 -2
index 8a4d5bb..f6e8693 100644
@@ -17,5 +17,5 @@ obj-$(CONFIG_DVB_BUDGET_CI) += budget-ci.o
 obj-$(CONFIG_DVB_BUDGET_PATCH) += budget-patch.o
 obj-$(CONFIG_DVB_AV7110) += dvb-ttpci.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/dvb/ttusb-budget/Makefile +1 -1
index fbe2b95..8d6c4ac 100644
@@ -1,3 +1,3 @@
 obj-$(CONFIG_DVB_TTUSB_BUDGET) += dvb-ttusb-budget.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
drivers/media/dvb/ttusb-dec/Makefile +1 -1
index 2d70a82..ed28b53 100644
@@ -1,3 +1,3 @@
 obj-$(CONFIG_DVB_TTUSB_DEC) += ttusb_dec.o ttusbdecfe.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
drivers/media/radio/Makefile +1 -1
index f484a6e..390daf9 100644
@@ -27,4 +27,4 @@ obj-$(CONFIG_RADIO_TIMBERDALE) += radio-timb.o
 obj-$(CONFIG_RADIO_WL1273) += radio-wl1273.o
 obj-$(CONFIG_RADIO_WL128X) += wl128x/
 
-EXTRA_CFLAGS += -Isound
+ccflags-y += -Isound
drivers/media/video/Makefile +3 -3
index 2723900..c06f515 100644
@@ -190,6 +190,6 @@ obj-y	+= davinci/
 
 obj-$(CONFIG_ARCH_OMAP)	+= omap/
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/video/au0828/Makefile +4 -4
index 5c7f2f7..bd22223 100644
@@ -2,8 +2,8 @@ au0828-objs	:= au0828-core.o au0828-i2c.o au0828-cards.o au0828-dvb.o au0828-vid
 
 obj-$(CONFIG_VIDEO_AU0828) += au0828.o
 
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/video/bt8xx/Makefile +3 -3
index e415f6f..3f9a2b2 100644
@@ -8,6 +8,6 @@ bttv-objs      :=      bttv-driver.o bttv-cards.o bttv-if.o \
 
 obj-$(CONFIG_VIDEO_BT848) += bttv.o
 
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
drivers/media/video/cx18/Makefile +3 -3
index 2fadd9d..a86bab5 100644
@@ -8,6 +8,6 @@ cx18-alsa-objs := cx18-alsa-main.o cx18-alsa-pcm.o
 obj-$(CONFIG_VIDEO_CX18) += cx18.o
 obj-$(CONFIG_VIDEO_CX18_ALSA) += cx18-alsa.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/video/cx231xx/Makefile +5 -5
index 2c24843..b334897 100644
@@ -8,9 +8,9 @@ obj-$(CONFIG_VIDEO_CX231XX) += cx231xx.o
 obj-$(CONFIG_VIDEO_CX231XX_ALSA) += cx231xx-alsa.o
 obj-$(CONFIG_VIDEO_CX231XX_DVB) += cx231xx-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
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-usb
+ccflags-y += -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-usb
 
drivers/media/video/cx23885/Makefile +5 -5
index 23293c7..185cc01 100644
@@ -7,9 +7,9 @@ cx23885-objs	:= cx23885-cards.o cx23885-video.o cx23885-vbi.o \
 obj-$(CONFIG_VIDEO_CX23885) += cx23885.o
 obj-$(CONFIG_MEDIA_ALTERA_CI) += altera-ci.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
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/video/cx25840/Makefile +1 -1
index 2ee96d3..dc40dde 100644
@@ -3,4 +3,4 @@ cx25840-objs    := cx25840-core.o cx25840-audio.o cx25840-firmware.o \
 
 obj-$(CONFIG_VIDEO_CX25840) += cx25840.o
 
-EXTRA_CFLAGS += -Idrivers/media/video
+ccflags-y += -Idrivers/media/video
drivers/media/video/cx88/Makefile +4 -4
index 5b7e267..c1a2785 100644
@@ -10,7 +10,7 @@ obj-$(CONFIG_VIDEO_CX88_BLACKBIRD) += cx88-blackbird.o
 obj-$(CONFIG_VIDEO_CX88_DVB) += cx88-dvb.o
 obj-$(CONFIG_VIDEO_CX88_VP3054) += cx88-vp3054-i2c.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
drivers/media/video/em28xx/Makefile +4 -4
index 38aaa00..2abdf76 100644
@@ -9,8 +9,8 @@ obj-$(CONFIG_VIDEO_EM28XX) += em28xx.o
 obj-$(CONFIG_VIDEO_EM28XX_ALSA) += em28xx-alsa.o
 obj-$(CONFIG_VIDEO_EM28XX_DVB) += em28xx-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
 
drivers/media/video/gspca/gl860/Makefile +1 -1
index 13c9403..f511ecc 100644
@@ -6,5 +6,5 @@ gspca_gl860-objs := gl860.o \
 		    gl860-ov9655.o \
 		    gl860-mi2020.o
 
-EXTRA_CFLAGS += -Idrivers/media/video/gspca
+ccflags-y += -Idrivers/media/video/gspca
 
drivers/media/video/gspca/m5602/Makefile +1 -1
index bf7a19a..7f52961 100644
@@ -8,4 +8,4 @@ gspca_m5602-objs := m5602_core.o \
 		    m5602_s5k83a.o \
 		    m5602_s5k4aa.o
 
-EXTRA_CFLAGS += -Idrivers/media/video/gspca
+ccflags-y += -Idrivers/media/video/gspca
drivers/media/video/gspca/stv06xx/Makefile +1 -1
index 2f3c3a6..5b318fa 100644
@@ -6,5 +6,5 @@ gspca_stv06xx-objs := stv06xx.o \
 		      stv06xx_pb0100.o \
 		      stv06xx_st6422.o
 
-EXTRA_CFLAGS += -Idrivers/media/video/gspca
+ccflags-y += -Idrivers/media/video/gspca
 
drivers/media/video/hdpvr/Makefile +2 -2
index 3baa9f6..52f057f 100644
@@ -2,6 +2,6 @@ hdpvr-objs	:= hdpvr-control.o hdpvr-core.o hdpvr-video.o hdpvr-i2c.o
 
 obj-$(CONFIG_VIDEO_HDPVR) += hdpvr.o
 
-EXTRA_CFLAGS += -Idrivers/media/video
+ccflags-y += -Idrivers/media/video
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/video/ivtv/Makefile +4 -4
index 26ce0d6..71ab76a 100644
@@ -7,8 +7,8 @@ ivtv-objs	:= ivtv-routing.o ivtv-cards.o ivtv-controls.o \
 obj-$(CONFIG_VIDEO_IVTV) += ivtv.o
 obj-$(CONFIG_VIDEO_FB_IVTV) += ivtvfb.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
 
drivers/media/video/omap3isp/Makefile +1 -3
index b1b34477..e8847e7 100644
@@ -1,8 +1,6 @@
 # Makefile for OMAP3 ISP driver
 
-ifdef CONFIG_VIDEO_OMAP3_DEBUG
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_VIDEO_OMAP3_DEBUG) += -DDEBUG
 
 omap3-isp-objs += \
 	isp.o ispqueue.o ispvideo.o \
drivers/media/video/pvrusb2/Makefile +4 -4
index de2fc14..c17f37d 100644
@@ -16,7 +16,7 @@ pvrusb2-objs	:= pvrusb2-i2c-core.o \
 
 obj-$(CONFIG_VIDEO_PVRUSB2) += pvrusb2.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
drivers/media/video/saa7134/Makefile +4 -4
index 8a5ff4d..a646ccf 100644
@@ -10,7 +10,7 @@ obj-$(CONFIG_VIDEO_SAA7134_ALSA) += saa7134-alsa.o
 
 obj-$(CONFIG_VIDEO_SAA7134_DVB) += saa7134-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
drivers/media/video/saa7164/Makefile +5 -5
index 6303a8e..ecd5811 100644
@@ -4,9 +4,9 @@ saa7164-objs	:= saa7164-cards.o saa7164-core.o saa7164-i2c.o saa7164-dvb.o \
 
 obj-$(CONFIG_VIDEO_SAA7164) += saa7164.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
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/video/tlg2300/Makefile +4 -4
index 81bb7fd..ea09b9a 100644
@@ -2,8 +2,8 @@ poseidon-objs := pd-video.o pd-alsa.o pd-dvb.o pd-radio.o pd-main.o
 
 obj-$(CONFIG_VIDEO_TLG2300) += poseidon.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
 
drivers/media/video/usbvision/Makefile +2 -2
index 3387187..aea1e3b 100644
@@ -2,5 +2,5 @@ usbvision-objs  := usbvision-core.o usbvision-video.o usbvision-i2c.o usbvision-
 
 obj-$(CONFIG_VIDEO_USBVISION) += usbvision.o
 
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
Signature · 1 line
1.7.6.153.g78432
#22 lore raw

Re: [PATCH 05/11] drivers/media: do not use EXTRA_CFLAGS

Hi,

Quoted 12 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   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.

Quoted 5 lines

Replace their usage by Kbuild's `{as,cc,ld}flags-y'.

Cc Sam Ravnborg <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>

- Arnaud

Quoted 535 lines

---
 drivers/media/common/tuners/Makefile       |    4 ++-- drivers/media/dvb/b2c2/Makefile            |    4 ++-- drivers/media/dvb/bt8xx/Makefile           |    8 ++++---- drivers/media/dvb/ddbridge/Makefile        |    8 ++++---- drivers/media/dvb/dm1105/Makefile          |    2 +- drivers/media/dvb/dvb-usb/Makefile         |    4 ++-- drivers/media/dvb/frontends/Makefile       |    4 ++--

 drivers/media/dvb/mantis/Makefile          |    2 +-
 drivers/media/dvb/ngene/Makefile           |    8 ++++----
 drivers/media/dvb/pluto2/Makefile          |    2 +-

 drivers/media/dvb/pt1/Makefile             |    2 +- drivers/media/dvb/siano/Makefile           |    4 ++-- drivers/media/dvb/ttpci/Makefile           |    4 ++-- drivers/media/dvb/ttusb-budget/Makefile    |    2 +- drivers/media/dvb/ttusb-dec/Makefile       |    2 +- drivers/media/radio/Makefile               |    2 +- drivers/media/video/Makefile               |    6 +++--- drivers/media/video/au0828/Makefile        |    8 ++++---- drivers/media/video/bt8xx/Makefile         |    6 +++--- drivers/media/video/cx18/Makefile          |    6 +++---

 drivers/media/video/cx231xx/Makefile       |   10 +++++-----
 drivers/media/video/cx23885/Makefile       |   10 +++++-----
 drivers/media/video/cx25840/Makefile       |    2 +-

 drivers/media/video/cx88/Makefile          |    8 ++++---- drivers/media/video/em28xx/Makefile        |    8 ++++---- drivers/media/video/gspca/gl860/Makefile   |    2 +- drivers/media/video/gspca/m5602/Makefile   |    2 +- drivers/media/video/gspca/stv06xx/Makefile |    2 +- drivers/media/video/hdpvr/Makefile         |    4 ++-- drivers/media/video/ivtv/Makefile          |    8 ++++----

 drivers/media/video/omap3isp/Makefile      |    4 +---
 drivers/media/video/pvrusb2/Makefile       |    8 ++++----
 drivers/media/video/saa7134/Makefile       |    8 ++++----
 drivers/media/video/saa7164/Makefile       |   10 +++++-----
 drivers/media/video/tlg2300/Makefile       |    8 ++++----
 drivers/media/video/usbvision/Makefile     |    4 ++--
 36 files changed, 92 insertions(+), 94 deletions(-)
drivers/media/common/tuners/Makefile +0 -0
index 20d24fc..196c12a 100644
@@ -28,5 +28,5 @@ obj-$(CONFIG_MEDIA_TUNER_MAX2165) += max2165.o

 obj-$(CONFIG_MEDIA_TUNER_TDA18218) += tda18218.o
 obj-$(CONFIG_MEDIA_TUNER_TDA18212) += tda18212.o

drivers/media/common/tuners/Makefile +2 -2
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
drivers/media/dvb/b2c2/Makefile +0 -0
index b97cf72..3d04a8d 100644
@@ -12,5 +12,5 @@ obj-$(CONFIG_DVB_B2C2_FLEXCOP_PCI) += b2c2-flexcop-pci.o

 b2c2-flexcop-usb-objs = flexcop-usb.o obj-$(CONFIG_DVB_B2C2_FLEXCOP_USB) += b2c2-flexcop-usb.o

drivers/media/dvb/b2c2/Makefile +2 -2
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners/
drivers/media/dvb/bt8xx/Makefile +0 -0
index d98f1d4..0713b3a 100644
@@ -1,6 +1,6 @@

 obj-$(CONFIG_DVB_BT8XX) += bt878.o dvb-bt8xx.o dst.o dst_ca.o

drivers/media/dvb/bt8xx/Makefile +4 -4
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
-EXTRA_CFLAGS += -Idrivers/media/video/bt8xx
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/video/bt8xx
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/dvb/ddbridge/Makefile +0 -0
index de4fe19..cf7214e 100644
@@ -6,9 +6,9 @@ ddbridge-objs := ddbridge-core.o
 

 obj-$(CONFIG_DVB_DDBRIDGE) += ddbridge.o

drivers/media/dvb/ddbridge/Makefile +3 -3
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners/

 # For the staging CI driver cxd2099

drivers/media/dvb/ddbridge/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/staging/cxd2099/
+ccflags-y += -Idrivers/staging/cxd2099/
drivers/media/dvb/dm1105/Makefile +0 -0
index 8ac28b0..95a008b 100644
@@ -1,3 +1,3 @@

 obj-$(CONFIG_DVB_DM1105) += dm1105.o

drivers/media/dvb/dm1105/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
drivers/media/dvb/dvb-usb/Makefile +0 -0
index 4bac13d..327613f 100644
@@ -94,7 +94,7 @@ obj-$(CONFIG_DVB_USB_LME2510) += dvb-usb-lmedm04.o

 dvb-usb-technisat-usb2-objs = technisat-usb2.o obj-$(CONFIG_DVB_USB_TECHNISAT_USB2) += dvb-usb-technisat-usb2.o

drivers/media/dvb/dvb-usb/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
 # due to tuner-xc3028
drivers/media/dvb/dvb-usb/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/dvb/frontends/Makefile +2 -2
index 6a6ba05..ed91c01 100644
@@ -2,8 +2,8 @@
  # Makefile for the kernel DVB frontend device drivers.
  #
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/common/tuners/
 

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

drivers/media/dvb/mantis/Makefile +0 -0
index 98dc5cd..ec8116d 100644
@@ -25,4 +25,4 @@ obj-$(CONFIG_MANTIS_CORE)     += mantis_core.o

 obj-$(CONFIG_DVB_MANTIS)       += mantis.o
 obj-$(CONFIG_DVB_HOPPER)       += hopper.o

drivers/media/dvb/mantis/Makefile +1 -1
-EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
drivers/media/dvb/ngene/Makefile +0 -0
index 2bc9687..8987361 100644
@@ -6,9 +6,9 @@ ngene-objs := ngene-core.o ngene-i2c.o ngene-cards.o ngene-dvb.o
 

 obj-$(CONFIG_DVB_NGENE) += ngene.o

drivers/media/dvb/ngene/Makefile +3 -3
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners/

 # For the staging CI driver cxd2099

drivers/media/dvb/ngene/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/staging/cxd2099/
+ccflags-y += -Idrivers/staging/cxd2099/
drivers/media/dvb/pluto2/Makefile +0 -0
index 7ac1287..7008223 100644
@@ -1,3 +1,3 @@

 obj-$(CONFIG_DVB_PLUTO2) += pluto2.o

drivers/media/dvb/pluto2/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
drivers/media/dvb/pt1/Makefile +0 -0
index a66da17..d80d8e8 100644
@@ -2,4 +2,4 @@ earth-pt1-objs := pt1.o va1j5jf8007s.o va1j5jf8007t.o
 

 obj-$(CONFIG_DVB_PT1) += earth-pt1.o

drivers/media/dvb/pt1/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-core -Idrivers/media/dvb/frontends
drivers/media/dvb/siano/Makefile +0 -0
index c54140b..f233b57 100644
@@ -5,7 +5,7 @@ obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o

 obj-$(CONFIG_SMS_USB_DRV) += smsusb.o
 obj-$(CONFIG_SMS_SDIO_DRV) += smssdio.o

drivers/media/dvb/siano/Makefile +2 -2
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/dvb-core
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/dvb/ttpci/Makefile +0 -0
index 8a4d5bb..f6e8693 100644
@@ -17,5 +17,5 @@ obj-$(CONFIG_DVB_BUDGET_CI) += budget-ci.o

 obj-$(CONFIG_DVB_BUDGET_PATCH) += budget-patch.o
 obj-$(CONFIG_DVB_AV7110) += dvb-ttpci.o

drivers/media/dvb/ttpci/Makefile +2 -2
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/dvb/ttusb-budget/Makefile +0 -0
index fbe2b95..8d6c4ac 100644
@@ -1,3 +1,3 @@

 obj-$(CONFIG_DVB_TTUSB_BUDGET) += dvb-ttusb-budget.o

drivers/media/dvb/ttusb-budget/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends
drivers/media/dvb/ttusb-dec/Makefile +0 -0
index 2d70a82..ed28b53 100644
@@ -1,3 +1,3 @@

 obj-$(CONFIG_DVB_TTUSB_DEC) += ttusb_dec.o ttusbdecfe.o

drivers/media/dvb/ttusb-dec/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
drivers/media/radio/Makefile +0 -0
index f484a6e..390daf9 100644
@@ -27,4 +27,4 @@ obj-$(CONFIG_RADIO_TIMBERDALE) += radio-timb.o

 obj-$(CONFIG_RADIO_WL1273) += radio-wl1273.o
 obj-$(CONFIG_RADIO_WL128X) += wl128x/

drivers/media/radio/Makefile +1 -1
-EXTRA_CFLAGS += -Isound
+ccflags-y += -Isound
drivers/media/video/Makefile +0 -0
index 2723900..c06f515 100644
@@ -190,6 +190,6 @@ obj-y       += davinci/
 

 obj-$(CONFIG_ARCH_OMAP)        += omap/

drivers/media/video/Makefile +3 -3
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/video/au0828/Makefile +0 -0
index 5c7f2f7..bd22223 100644
@@ -2,8 +2,8 @@ au0828-objs     := au0828-core.o au0828-i2c.o au0828-cards.o au0828-dvb.o au0828-vid
 

 obj-$(CONFIG_VIDEO_AU0828) += au0828.o

drivers/media/video/au0828/Makefile +4 -4
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/video/bt8xx/Makefile +0 -0
index e415f6f..3f9a2b2 100644
@@ -8,6 +8,6 @@ bttv-objs      :=      bttv-driver.o bttv-cards.o bttv-if.o \
 

 obj-$(CONFIG_VIDEO_BT848) += bttv.o

drivers/media/video/bt8xx/Makefile +3 -3
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
drivers/media/video/cx18/Makefile +0 -0
index 2fadd9d..a86bab5 100644
@@ -8,6 +8,6 @@ cx18-alsa-objs := cx18-alsa-main.o cx18-alsa-pcm.o

 obj-$(CONFIG_VIDEO_CX18) += cx18.o
 obj-$(CONFIG_VIDEO_CX18_ALSA) += cx18-alsa.o

drivers/media/video/cx18/Makefile +3 -3
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/common/tuners
drivers/media/video/cx231xx/Makefile +0 -0
index 2c24843..b334897 100644
@@ -8,9 +8,9 @@ obj-$(CONFIG_VIDEO_CX231XX) += cx231xx.o

 obj-$(CONFIG_VIDEO_CX231XX_ALSA) += cx231xx-alsa.o obj-$(CONFIG_VIDEO_CX231XX_DVB) += cx231xx-dvb.o

drivers/media/video/cx231xx/Makefile +5 -5
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-usb
+ccflags-y += -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/dvb/dvb-core
+ccflags-y += -Idrivers/media/dvb/frontends
+ccflags-y += -Idrivers/media/dvb/dvb-usb
drivers/media/video/cx23885/Makefile +0 -0
index 23293c7..185cc01 100644
@@ -7,9 +7,9 @@ cx23885-objs    := cx23885-cards.o cx23885-video.o cx23885-vbi.o \

 obj-$(CONFIG_VIDEO_CX23885) += cx23885.o
 obj-$(CONFIG_MEDIA_ALTERA_CI) += altera-ci.o

drivers/media/video/cx23885/Makefile +5 -5
-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
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/video/cx25840/Makefile +0 -0
index 2ee96d3..dc40dde 100644
@@ -3,4 +3,4 @@ cx25840-objs    := cx25840-core.o cx25840-audio.o cx25840-firmware.o \
 

 obj-$(CONFIG_VIDEO_CX25840) += cx25840.o

drivers/media/video/cx25840/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/video
+ccflags-y += -Idrivers/media/video
drivers/media/video/cx88/Makefile +0 -0
index 5b7e267..c1a2785 100644
@@ -10,7 +10,7 @@ obj-$(CONFIG_VIDEO_CX88_BLACKBIRD) += cx88-blackbird.o

 obj-$(CONFIG_VIDEO_CX88_DVB) += cx88-dvb.o obj-$(CONFIG_VIDEO_CX88_VP3054) += cx88-vp3054-i2c.o

drivers/media/video/cx88/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
drivers/media/video/em28xx/Makefile +0 -0
index 38aaa00..2abdf76 100644
@@ -9,8 +9,8 @@ obj-$(CONFIG_VIDEO_EM28XX) += em28xx.o

 obj-$(CONFIG_VIDEO_EM28XX_ALSA) += em28xx-alsa.o
 obj-$(CONFIG_VIDEO_EM28XX_DVB) += em28xx-dvb.o

drivers/media/video/em28xx/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
drivers/media/video/gspca/gl860/Makefile +0 -0
index 13c9403..f511ecc 100644
@@ -6,5 +6,5 @@ gspca_gl860-objs := gl860.o \
                    gl860-ov9655.o \

                   gl860-mi2020.o

drivers/media/video/gspca/gl860/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/video/gspca
+ccflags-y += -Idrivers/media/video/gspca
drivers/media/video/gspca/m5602/Makefile +0 -0
index bf7a19a..7f52961 100644
@@ -8,4 +8,4 @@ gspca_m5602-objs := m5602_core.o \
                    m5602_s5k83a.o \

                   m5602_s5k4aa.o

drivers/media/video/gspca/m5602/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/video/gspca
+ccflags-y += -Idrivers/media/video/gspca
drivers/media/video/gspca/stv06xx/Makefile +0 -0
index 2f3c3a6..5b318fa 100644
@@ -6,5 +6,5 @@ gspca_stv06xx-objs := stv06xx.o \
                      stv06xx_pb0100.o \

                     stv06xx_st6422.o

drivers/media/video/gspca/stv06xx/Makefile +1 -1
-EXTRA_CFLAGS += -Idrivers/media/video/gspca
+ccflags-y += -Idrivers/media/video/gspca
drivers/media/video/hdpvr/Makefile +0 -0
index 3baa9f6..52f057f 100644
@@ -2,6 +2,6 @@ hdpvr-objs      := hdpvr-control.o hdpvr-core.o hdpvr-video.o hdpvr-i2c.o
 

 obj-$(CONFIG_VIDEO_HDPVR) += hdpvr.o

drivers/media/video/hdpvr/Makefile +2 -2
-EXTRA_CFLAGS += -Idrivers/media/video
+ccflags-y += -Idrivers/media/video
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/video/ivtv/Makefile +0 -0
index 26ce0d6..71ab76a 100644
@@ -7,8 +7,8 @@ ivtv-objs       := ivtv-routing.o ivtv-cards.o ivtv-controls.o \

 obj-$(CONFIG_VIDEO_IVTV) += ivtv.o
 obj-$(CONFIG_VIDEO_FB_IVTV) += ivtvfb.o

drivers/media/video/ivtv/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
drivers/media/video/omap3isp/Makefile +1 -3
index b1b34477..e8847e7 100644
@@ -1,8 +1,6 @@
  # Makefile for OMAP3 ISP driver
 
-ifdef CONFIG_VIDEO_OMAP3_DEBUG
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_VIDEO_OMAP3_DEBUG) += -DDEBUG
 
  omap3-isp-objs += \
        isp.o ispqueue.o ispvideo.o \
drivers/media/video/pvrusb2/Makefile +0 -0
index de2fc14..c17f37d 100644
@@ -16,7 +16,7 @@ pvrusb2-objs  := pvrusb2-i2c-core.o \
 

 obj-$(CONFIG_VIDEO_PVRUSB2) += pvrusb2.o

drivers/media/video/pvrusb2/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
drivers/media/video/saa7134/Makefile +0 -0
index 8a5ff4d..a646ccf 100644
@@ -10,7 +10,7 @@ obj-$(CONFIG_VIDEO_SAA7134_ALSA) += saa7134-alsa.o
 

 obj-$(CONFIG_VIDEO_SAA7134_DVB) += saa7134-dvb.o

drivers/media/video/saa7134/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
drivers/media/video/saa7164/Makefile +0 -0
index 6303a8e..ecd5811 100644
@@ -4,9 +4,9 @@ saa7164-objs    := saa7164-cards.o saa7164-core.o saa7164-i2c.o saa7164-dvb.o \
 

 obj-$(CONFIG_VIDEO_SAA7164) += saa7164.o

drivers/media/video/saa7164/Makefile +5 -5
-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
 
-EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
+ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
drivers/media/video/tlg2300/Makefile +0 -0
index 81bb7fd..ea09b9a 100644
@@ -2,8 +2,8 @@ poseidon-objs := pd-video.o pd-alsa.o pd-dvb.o pd-radio.o pd-main.o
 

 obj-$(CONFIG_VIDEO_TLG2300) += poseidon.o

drivers/media/video/tlg2300/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
drivers/media/video/usbvision/Makefile +0 -0
index 3387187..aea1e3b 100644
@@ -2,5 +2,5 @@ usbvision-objs  := usbvision-core.o usbvision-video.o usbvision-i2c.o usbvision-
 

 obj-$(CONFIG_VIDEO_USBVISION) += usbvision.o

drivers/media/video/usbvision/Makefile +2 -3
-EXTRA_CFLAGS += -Idrivers/media/video
-EXTRA_CFLAGS += -Idrivers/media/common/tuners
+ccflags-y += -Idrivers/media/video
+ccflags-y += -Idrivers/media/common/tuners
--

1.7.6.153.g78432

Acked-by on v1 5/11
#23 lore raw

Re: [PATCH 05/11] drivers/media: do not use EXTRA_CFLAGS

In reply to Arnaud Lacombe

Hi Arnaud,

Quoted 13 lines · On Monday 15 August 2011 07:07:08 Arnaud Lacombe wrote:

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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.

Quoted 5 lines

Replace their usage by Kbuild's `{as,cc,ld}flags-y'.

Cc Sam Ravnborg <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>

For drivers/media/video/omap3isp/Makefile,

Signature · 3 lines
Regards,

Laurent Pinchart
#25 lore raw

PATCH 6/11 drivers/net/bna: do not use EXTRA_CFLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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 <[email protected]>
Cc Rasesh Mody <[email protected]>
---
 drivers/net/bna/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/bna/Makefile +1 -1
index a5d604d..babc25f 100644
@@ -8,4 +8,4 @@ obj-$(CONFIG_BNA) += bna.o
 bna-objs := bnad.o bnad_ethtool.o bna_ctrl.o bna_txrx.o
 bna-objs += bfa_ioc.o bfa_ioc_ct.o bfa_cee.o cna_fwimg.o
 
-EXTRA_CFLAGS := -Idrivers/net/bna
+ccflags-y := -Idrivers/net/bna
Signature · 1 line
1.7.6.153.g78432
#26 lore raw

Re: [PATCH 06/11] drivers/net/bna: do not use EXTRA_CFLAGS

Hi,

Quoted 12 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   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.

Quoted 5 lines

Replace their usage by Kbuild's `{as,cc,ld}flags-y'.

Cc Sam Ravnborg <[email protected]>
Cc Rasesh Mody <[email protected]>

- Arnaud

Quoted 18 lines

---
 drivers/net/bna/Makefile |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/bna/Makefile +0 -0
index a5d604d..babc25f 100644
@@ -8,4 +8,4 @@ obj-$(CONFIG_BNA) += bna.o

 bna-objs := bnad.o bnad_ethtool.o bna_ctrl.o bna_txrx.o bna-objs += bfa_ioc.o bfa_ioc_ct.o bfa_cee.o cna_fwimg.o

drivers/net/bna/Makefile +1 -2
-EXTRA_CFLAGS := -Idrivers/net/bna
+ccflags-y := -Idrivers/net/bna
--

1.7.6.153.g78432

#27 lore raw

PATCH 7/11 drivers/pps: do not use EXTRA_CFLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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 <[email protected]>
Cc Rodolfo Giometti <[email protected]>
---
 drivers/pps/generators/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/pps/generators/Makefile +1 -3
index 303304a..21e5e3b 100644
@@ -4,6 +4,4 @@
 
 obj-$(CONFIG_PPS_GENERATOR_PARPORT) += pps_gen_parport.o
 
-ifeq ($(CONFIG_PPS_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_PPS_DEBUG) += -DDEBUG
Signature · 1 line
1.7.6.153.g78432
#28 lore raw

Re: [PATCH 07/11] drivers/pps: do not use EXTRA_CFLAGS

Quoted 12 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   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.

Quoted 5 lines

Replace their usage by Kbuild's `{as,cc,ld}flags-y'.

Cc Sam Ravnborg <[email protected]>
Cc Rodolfo Giometti <[email protected]>

- Arnaud

Quoted 20 lines

---
 drivers/pps/generators/Makefile |    4 +---

 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/pps/generators/Makefile +0 -0
index 303304a..21e5e3b 100644
@@ -4,6 +4,4 @@
 

 obj-$(CONFIG_PPS_GENERATOR_PARPORT) += pps_gen_parport.o

drivers/pps/generators/Makefile +1 -4
-ifeq ($(CONFIG_PPS_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_PPS_DEBUG) += -DDEBUG
--

1.7.6.153.g78432

#29 lore raw

PATCH 8/11 drivers/scsi: do not use EXTRA_CFLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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'.

In the same time, do not needlessly reference $(srctree) in the -I argument.

Cc Sam Ravnborg <[email protected]>
Cc James Bottomley <[email protected]>
---
 drivers/scsi/cxgbi/cxgb3i/Kbuild |    2 +-
 drivers/scsi/cxgbi/cxgb4i/Kbuild |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/cxgbi/cxgb3i/Kbuild +1 -1
index 09dbf9e..b3197c9 100644
@@ -1,3 +1,3 @@
-EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb3
+ccflags-y += -Idrivers/net/cxgb3
 
 obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o
drivers/scsi/cxgbi/cxgb4i/Kbuild +1 -1
index b9f4af7..4873a25 100644
@@ -1,3 +1,3 @@
-EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb4
+ccflags-y += -Idrivers/net/cxgb4
 
 obj-$(CONFIG_SCSI_CXGB4_ISCSI) += cxgb4i.o
Signature · 1 line
1.7.6.153.g78432
#30 lore raw

Re: [PATCH 08/11] drivers/scsi: do not use EXTRA_CFLAGS

Hi,

Quoted 12 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   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.

Quoted 7 lines

Replace their usage by Kbuild's `{as,cc,ld}flags-y'.

In the same time, do not needlessly reference $(srctree) in the -I argument.

Cc Sam Ravnborg <[email protected]>
Cc James Bottomley <[email protected]>

- Arnaud

Quoted 27 lines

---
 drivers/scsi/cxgbi/cxgb3i/Kbuild |    2 +-
 drivers/scsi/cxgbi/cxgb4i/Kbuild |    2 +-

 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/cxgbi/cxgb3i/Kbuild +1 -1
index 09dbf9e..b3197c9 100644
@@ -1,3 +1,3 @@
-EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb3
+ccflags-y += -Idrivers/net/cxgb3
 

 obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o

drivers/scsi/cxgbi/cxgb4i/Kbuild +1 -1
index b9f4af7..4873a25 100644
@@ -1,3 +1,3 @@
-EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb4
+ccflags-y += -Idrivers/net/cxgb4
 

 obj-$(CONFIG_SCSI_CXGB4_ISCSI) += cxgb4i.o
--
1.7.6.153.g78432

#31 lore raw

PATCH 9/11 drivers/staging: do not use EXTRA_CFLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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 <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/cxd2099/Makefile   |    6 +++---
 drivers/staging/go7007/Makefile    |    8 ++------
 drivers/staging/rtl8187se/Makefile |    6 +++---
 drivers/staging/rts_pstor/Makefile |    2 +-
 4 files changed, 9 insertions(+), 13 deletions(-)
drivers/staging/cxd2099/Makefile +3 -3
index 72b1455..64cfc77 100644
@@ -1,5 +1,5 @@
 obj-$(CONFIG_DVB_CXD2099) += cxd2099.o
 
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners/
drivers/staging/go7007/Makefile +2 -6
index 60a9185..6ee837c 100644
@@ -20,15 +20,11 @@ go7007-y := go7007-v4l2.o go7007-driver.o go7007-i2c.o go7007-fw.o \
 s2250-y := s2250-board.o
 
 # Uncomment when the saa7134 patches get into upstream
-#ifneq ($(CONFIG_VIDEO_SAA7134),)
 #obj-$(CONFIG_VIDEO_SAA7134) += saa7134-go7007.o
-#EXTRA_CFLAGS += -Idrivers/media/video/saa7134 -DSAA7134_MPEG_GO7007=3
-#endif
+#ccflags-$(CONFIG_VIDEO_SAA7134:m=y) += -Idrivers/media/video/saa7134 -DSAA7134_MPEG_GO7007=3
 
 # S2250 needs cypress ezusb loader from dvb-usb
-ifneq ($(CONFIG_VIDEO_GO7007_USB_S2250_BOARD),)
-ccflags-y := -Idrivers/media/dvb/dvb-usb
-endif
+ccflags-$(CONFIG_VIDEO_GO7007_USB_S2250_BOARD:m=y) += -Idrivers/media/dvb/dvb-usb
 
 ccflags-y += -Idrivers/media/dvb/frontends
 ccflags-y += -Idrivers/media/dvb/dvb-core
drivers/staging/rtl8187se/Makefile +3 -3
index 11a9226..72db504 100644
@@ -1,7 +1,7 @@
 
-#EXTRA_CFLAGS += -DCONFIG_IEEE80211_NOWEP=y
-#EXTRA_CFLAGS += -std=gnu89
-#EXTRA_CFLAGS += -O2
+#ccflags-y += -DCONFIG_IEEE80211_NOWEP=y
+#ccflags-y += -std=gnu89
+#ccflags-y += -O2
 #CC            = gcc
 
 ccflags-y := -DSW_ANTE
drivers/staging/rts_pstor/Makefile +1 -1
index 61609ae..42533d3 100644
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS	:= -Idrivers/scsi
+ccflags := -Idrivers/scsi
 
 obj-$(CONFIG_RTS_PSTOR)	:= rts_pstor.o
 
Signature · 1 line
1.7.6.153.g78432
#32 lore raw

Re: [PATCH 09/11] drivers/staging: do not use EXTRA_CFLAGS

Hi,

Quoted 12 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   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.

Quoted 5 lines

Replace their usage by Kbuild's `{as,cc,ld}flags-y'.

Cc Sam Ravnborg <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

- Arnaud

Quoted 71 lines

---
 drivers/staging/cxd2099/Makefile   |    6 +++--- drivers/staging/go7007/Makefile    |    8 ++------ drivers/staging/rtl8187se/Makefile |    6 +++--- drivers/staging/rts_pstor/Makefile |    2 +-

 4 files changed, 9 insertions(+), 13 deletions(-)
drivers/staging/cxd2099/Makefile +0 -0
index 72b1455..64cfc77 100644
@@ -1,5 +1,5 @@

 obj-$(CONFIG_DVB_CXD2099) += cxd2099.o

drivers/staging/cxd2099/Makefile +3 -3
-EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/
-EXTRA_CFLAGS += -Idrivers/media/dvb/frontends/
-EXTRA_CFLAGS += -Idrivers/media/common/tuners/
+ccflags-y += -Idrivers/media/dvb/dvb-core/
+ccflags-y += -Idrivers/media/dvb/frontends/
+ccflags-y += -Idrivers/media/common/tuners/
drivers/staging/go7007/Makefile +0 -0
index 60a9185..6ee837c 100644
@@ -20,15 +20,11 @@ go7007-y := go7007-v4l2.o go7007-driver.o go7007-i2c.o go7007-fw.o \

 s2250-y := s2250-board.o

 # Uncomment when the saa7134 patches get into upstream -#ifneq ($(CONFIG_VIDEO_SAA7134),) #obj-$(CONFIG_VIDEO_SAA7134) += saa7134-go7007.o

drivers/staging/go7007/Makefile +1 -2
-#EXTRA_CFLAGS += -Idrivers/media/video/saa7134 -DSAA7134_MPEG_GO7007=3
-#endif
+#ccflags-$(CONFIG_VIDEO_SAA7134:m=y) += -Idrivers/media/video/saa7134 -DSAA7134_MPEG_GO7007=3

 # S2250 needs cypress ezusb loader from dvb-usb

drivers/staging/go7007/Makefile +1 -3
-ifneq ($(CONFIG_VIDEO_GO7007_USB_S2250_BOARD),)
-ccflags-y := -Idrivers/media/dvb/dvb-usb
-endif
+ccflags-$(CONFIG_VIDEO_GO7007_USB_S2250_BOARD:m=y) += -Idrivers/media/dvb/dvb-usb

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

drivers/staging/rtl8187se/Makefile +3 -3
index 11a9226..72db504 100644
@@ -1,7 +1,7 @@
 
-#EXTRA_CFLAGS += -DCONFIG_IEEE80211_NOWEP=y
-#EXTRA_CFLAGS += -std=gnu89
-#EXTRA_CFLAGS += -O2
+#ccflags-y += -DCONFIG_IEEE80211_NOWEP=y
+#ccflags-y += -std=gnu89
+#ccflags-y += -O2
  #CC            = gcc
 

 ccflags-y := -DSW_ANTE

drivers/staging/rts_pstor/Makefile +1 -1
index 61609ae..42533d3 100644
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS   := -Idrivers/scsi
+ccflags := -Idrivers/scsi
 

 obj-$(CONFIG_RTS_PSTOR)        := rts_pstor.o

--
1.7.6.153.g78432

#33 lore raw

PATCH 10/11 scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS replacement

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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.

Do not advertise for its usage.

---
 scripts/Makefile.build |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/Makefile.build +1 -1
index a0fd502..d2b366c 100644
@@ -46,7 +46,7 @@ include $(kbuild-file)
 # If the save-* variables changed error out
 ifeq ($(KBUILD_NOPEDANTIC),)
         ifneq ("$(save-cflags)","$(CFLAGS)")
-                $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use EXTRA_CFLAGS)
+                $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use ccflags-y)
         endif
 endif
 
Signature · 1 line
1.7.6.153.g78432
#34 lore raw

Re: [PATCH 10/11] scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS replacement

Hi Michal,

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   Author: Sam Ravnborg <sam@neptun.(none)>
   Date:   Mon Oct 15 22:25:06 2007 +0200

       kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 9 lines

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.

Do not advertise for its usage.

ping ?

- Arnaud

Quoted 21 lines

---
 scripts/Makefile.build |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/Makefile.build +1 -1
index a0fd502..d2b366c 100644
@@ -46,7 +46,7 @@ include $(kbuild-file)
  # If the save-* variables changed error out
  ifeq ($(KBUILD_NOPEDANTIC),)
         ifneq ("$(save-cflags)","$(CFLAGS)")
-                $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use EXTRA_CFLAGS)
+                $(error CFLAGS was changed in "$(kbuild-file)". Fix it to use ccflags-y)

        endif
 endif

--
1.7.6.153.g78432

#35 lore raw

Re: [PATCH 10/11] scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS replacement

In reply to Arnaud Lacombe
Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
Author: Sam Ravnborg <sam@neptun.(none)>
Date: Mon Oct 15 22:25:06 2007 +0200

kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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.

Do not advertise for its usage.

Thanks, I applied this to kbuild-2.6.git#kbuild with your signoff assumed.

Michal

#36 lore raw

PATCH 11/11 script/checkpatch.pl: warn about deprecated use of EXTRA_{A,C,CPP,LD}FLAGS

In reply to Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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.

Warn about their introduction in Makefile or Kbuild files.

Cc Sam Ravnborg <[email protected]>
Cc Andy Whitcroft <[email protected]>
---
 scripts/checkpatch.pl |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
scripts/checkpatch.pl +14 -0
index 9d761c9..955183a 100755
@@ -1661,6 +1661,20 @@ sub process {
 			#print "is_end<$is_end> length<$length>\n";
 		}
 
+		if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) &&
+		    ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
+			my $flag = $1;
+			my $replacement = {
+				'EXTRA_AFLAGS' =>   'asflags-y',
+				'EXTRA_CFLAGS' =>   'ccflags-y',
+				'EXTRA_CPPFLAGS' => 'cppflags-y',
+				'EXTRA_LDFLAGS' =>  'ldflags-y',
+			};
+
+			WARN("DEPRECATED_VARIABLE",
+			     "Use of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacement->{$flag});
+		}
+
 # check we are in a valid source file if not then ignore this hunk
 		next if ($realfile !~ /\.(h|c|s|S|pl|sh)$/);
 
Signature · 1 line
1.7.6.153.g78432
#37 lore raw

Re: [PATCH 11/11] script/checkpatch.pl: warn about deprecated use of EXTRA_{A,C,CPP,LD}FLAGS

Hi,

[of course, I forgot to sign them :(]

Quoted 8 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

   commit f77bf01425b11947eeb3b5b54685212c302741b8
   Author: Sam Ravnborg <sam@neptun.(none)>
   Date:   Mon Oct 15 22:25:06 2007 +0200

       kbuild: introduce ccflags-y, asflags-y and ldflags-y

Quoted 8 lines

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.

Warn about their introduction in Makefile or Kbuild files.

Cc Sam Ravnborg <[email protected]>
Cc Andy Whitcroft <[email protected]>

- Arnaud

Quoted 33 lines

---
 scripts/checkpatch.pl |   14 ++++++++++++++

 1 files changed, 14 insertions(+), 0 deletions(-)
scripts/checkpatch.pl +14 -1
index 9d761c9..955183a 100755
@@ -1661,6 +1661,20 @@ sub process {
                        #print "is_end<$is_end> length<$length>\n";
                }
 
+               if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) &&
+                   ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
+                       my $flag = $1;
+                       my $replacement = {
+                               'EXTRA_AFLAGS' =>   'asflags-y',
+                               'EXTRA_CFLAGS' =>   'ccflags-y',
+                               'EXTRA_CPPFLAGS' => 'cppflags-y',
+                               'EXTRA_LDFLAGS' =>  'ldflags-y',
+                       };
+
+                       WARN("DEPRECATED_VARIABLE",
+                            "Use of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacement->{$flag});
+               }
+
  # check we are in a valid source file if not then ignore this hunk
                next if ($realfile !~ /\.(h|c|s|S|pl|sh)$/);
 
--

1.7.6.153.g78432

#38 lore raw

Re: [PATCH 11/11] script/checkpatch.pl: warn about deprecated use of EXTRA_{A,C,CPP,LD}FLAGS

In reply to Arnaud Lacombe
Quoted 12 lines · Arnaud Lacombe

Usage of these flags has been deprecated for nearly 4 years by:

commit f77bf01425b11947eeb3b5b54685212c302741b8
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.

Quoted 7 lines

Warn about their introduction in Makefile or Kbuild files.

Cc Sam Ravnborg <[email protected]>
Cc Andy Whitcroft <[email protected]>
---
 scripts/checkpatch.pl |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

Applied to kbuild-2.6.git#misc with your signoff assumed.

Michal