Fix in-tree usage of EXTRA_{A,C,CPP,LD}FLAGS
Subsystems (14)
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
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}FLAGSarch/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
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
@@ -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
@@ -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
@@ -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
PATCH 1/11 arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
In reply to Arnaud LacombeUsage 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
@@ -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
@@ -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
@@ -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
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 +0200kbuild: 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]>
- 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@@ -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.harch/m68k/ifpsp060/Makefile +0
-0@@ -6,4 +6,4 @@obj-y := fskeleton.o iskeleton.o os.o
arch/m68k/ifpsp060/Makefile +1
-1-EXTRA_LDFLAGS := -x +ldflags-y := -xarch/m68k/platform/54xx/Makefile +2
-2@@ -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
Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
In reply to Arnaud LacombeHi,
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 +0200kbuild: 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]>
- 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@@ -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.harch/m68k/ifpsp060/Makefile +0
-0@@ -6,4 +6,4 @@obj-y := fskeleton.o iskeleton.o os.o
arch/m68k/ifpsp060/Makefile +1
-1-EXTRA_LDFLAGS := -x +ldflags-y := -xarch/m68k/platform/54xx/Makefile +2
-2@@ -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
Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
In reply to Arnaud Lacombearch/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
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_INTERRUPTasflags-y?
yes, indeed. I'll resend later on.
- Arnaud
Quoted 2 lines
Finn
Re: [PATCH 01/11] arch/m68k: do not use EXTRA_{A,C,LD}FLAGS
In reply to Finn ThainHi,
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_INTERRUPTasflags-y?
yes, indeed. I'll resend later on.
- Arnaud
Quoted 2 lines
Finn
PATCH 2/11 arch/mips: do not use EXTRA_CFLAGS
In reply to Arnaud LacombeUsage 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
@@ -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
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 +0200kbuild: 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]>
You didn't sign off.
WBR, Sergei
Ralf Baechle
AppliedRe: [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
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
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:
Signed-off-by Arnaud Lacombe <[email protected]>
Thanks for fixing this up. Looks like an acked-by is not needed :)
JC (Netlogic XLR/XLS maintainer)
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:
Signed-off-by Arnaud Lacombe <[email protected]>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
PATCH 3/11 arch/unicore32: do not use EXTRA_AFLAGS or EXTRA_CFLAGS
In reply to Arnaud LacombeUsage 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/unicore32/boot/compressed/Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/unicore32/boot/compressed/Makefile +2 -2
@@ -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
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 +0200kbuild: 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@@ -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=allOBJS := misc.o
--
1.7.6.153.g78432
Guan Xuetao
Acked-byRe: [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 +0200kbuild: 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]>Signed-off-by Arnaud Lacombe <[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@@ -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
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.
Acked-by Guan Xuetao <[email protected]>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 +0200kbuild: 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]>Signed-off-by Arnaud Lacombe <[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@@ -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=allOBJS := misc.o
--
1.7.6.153.g78432
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.
Acked-by Guan Xuetao <[email protected]>
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
PATCH 4/11 arch/x86: do not use EXTRA_CFLAGS
In reply to Arnaud LacombeUsage 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
@@ -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
@@ -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
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 +0200kbuild: 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]>
- 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@@ -5,8 +5,8 @@ #DEBUG = -DDEBUGGINGDEBUG =
PARANOID = -DPARANOIDarch/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@@ -22,6 +22,4 @@ obj-y += amd_bus.o bus_numa.oobj-$(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
PATCH 5/11 drivers/media: do not use EXTRA_CFLAGS
In reply to Arnaud LacombeUsage 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'.
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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 +0200kbuild: 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'.
- 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@@ -28,5 +28,5 @@ obj-$(CONFIG_MEDIA_TUNER_MAX2165) += max2165.oobj-$(CONFIG_MEDIA_TUNER_TDA18218) += tda18218.o
obj-$(CONFIG_MEDIA_TUNER_TDA18212) += tda18212.odrivers/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/frontendsdrivers/media/dvb/b2c2/Makefile +0
-0@@ -12,5 +12,5 @@ obj-$(CONFIG_DVB_B2C2_FLEXCOP_PCI) += b2c2-flexcop-pci.ob2c2-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@@ -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/tunersdrivers/media/dvb/ddbridge/Makefile +0
-0@@ -6,9 +6,9 @@ ddbridge-objs := ddbridge-core.oobj-$(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@@ -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/frontendsdrivers/media/dvb/dvb-usb/Makefile +0
-0@@ -94,7 +94,7 @@ obj-$(CONFIG_DVB_USB_LME2510) += dvb-usb-lmedm04.odvb-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-xc3028drivers/media/dvb/dvb-usb/Makefile +1
-1-EXTRA_CFLAGS += -Idrivers/media/common/tuners +ccflags-y += -Idrivers/media/common/tunersdrivers/media/dvb/frontends/Makefile +2
-2@@ -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.odrivers/media/dvb/mantis/Makefile +0
-0@@ -25,4 +25,4 @@ obj-$(CONFIG_MANTIS_CORE) += mantis_core.oobj-$(CONFIG_DVB_MANTIS) += mantis.o
obj-$(CONFIG_DVB_HOPPER) += hopper.odrivers/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@@ -6,9 +6,9 @@ ngene-objs := ngene-core.o ngene-i2c.o ngene-cards.o ngene-dvb.oobj-$(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@@ -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@@ -2,4 +2,4 @@ earth-pt1-objs := pt1.o va1j5jf8007s.o va1j5jf8007t.oobj-$(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/frontendsdrivers/media/dvb/siano/Makefile +0
-0@@ -5,7 +5,7 @@ obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.oobj-$(CONFIG_SMS_USB_DRV) += smsusb.o
obj-$(CONFIG_SMS_SDIO_DRV) += smssdio.odrivers/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@@ -17,5 +17,5 @@ obj-$(CONFIG_DVB_BUDGET_CI) += budget-ci.oobj-$(CONFIG_DVB_BUDGET_PATCH) += budget-patch.o
obj-$(CONFIG_DVB_AV7110) += dvb-ttpci.odrivers/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/tunersdrivers/media/dvb/ttusb-budget/Makefile +0
-0@@ -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/frontendsdrivers/media/dvb/ttusb-dec/Makefile +0
-0@@ -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@@ -27,4 +27,4 @@ obj-$(CONFIG_RADIO_TIMBERDALE) += radio-timb.oobj-$(CONFIG_RADIO_WL1273) += radio-wl1273.o
obj-$(CONFIG_RADIO_WL128X) += wl128x/drivers/media/radio/Makefile +1
-1-EXTRA_CFLAGS += -Isound +ccflags-y += -Isounddrivers/media/video/Makefile +0
-0@@ -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/tunersdrivers/media/video/au0828/Makefile +0
-0@@ -2,8 +2,8 @@ au0828-objs := au0828-core.o au0828-i2c.o au0828-cards.o au0828-dvb.o au0828-vidobj-$(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@@ -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-coredrivers/media/video/cx18/Makefile +0
-0@@ -8,6 +8,6 @@ cx18-alsa-objs := cx18-alsa-main.o cx18-alsa-pcm.oobj-$(CONFIG_VIDEO_CX18) += cx18.o
obj-$(CONFIG_VIDEO_CX18_ALSA) += cx18-alsa.odrivers/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/tunersdrivers/media/video/cx231xx/Makefile +0
-0@@ -8,9 +8,9 @@ obj-$(CONFIG_VIDEO_CX231XX) += cx231xx.oobj-$(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-usbdrivers/media/video/cx23885/Makefile +0
-0@@ -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.odrivers/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@@ -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/videodrivers/media/video/cx88/Makefile +0
-0@@ -10,7 +10,7 @@ obj-$(CONFIG_VIDEO_CX88_BLACKBIRD) += cx88-blackbird.oobj-$(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/frontendsdrivers/media/video/em28xx/Makefile +0
-0@@ -9,8 +9,8 @@ obj-$(CONFIG_VIDEO_EM28XX) += em28xx.oobj-$(CONFIG_VIDEO_EM28XX_ALSA) += em28xx-alsa.o
obj-$(CONFIG_VIDEO_EM28XX_DVB) += em28xx-dvb.odrivers/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/frontendsdrivers/media/video/gspca/gl860/Makefile +0
-0@@ -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/gspcadrivers/media/video/gspca/m5602/Makefile +0
-0@@ -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/gspcadrivers/media/video/gspca/stv06xx/Makefile +0
-0@@ -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/gspcadrivers/media/video/hdpvr/Makefile +0
-0@@ -2,6 +2,6 @@ hdpvr-objs := hdpvr-control.o hdpvr-core.o hdpvr-video.o hdpvr-i2c.oobj-$(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@@ -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.odrivers/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/frontendsdrivers/media/video/omap3isp/Makefile +1
-3@@ -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@@ -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/frontendsdrivers/media/video/saa7134/Makefile +0
-0@@ -10,7 +10,7 @@ obj-$(CONFIG_VIDEO_SAA7134_ALSA) += saa7134-alsa.oobj-$(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/frontendsdrivers/media/video/saa7164/Makefile +0
-0@@ -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@@ -2,8 +2,8 @@ poseidon-objs := pd-video.o pd-alsa.o pd-dvb.o pd-radio.o pd-main.oobj-$(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/frontendsdrivers/media/video/usbvision/Makefile +0
-0@@ -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
Re: [PATCH 05/11] drivers/media: do not use EXTRA_CFLAGS
In reply to Arnaud LacombeHi 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 +0200kbuild: 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'.
For drivers/media/video/omap3isp/Makefile,
Signature · 3 lines
Regards, Laurent Pinchart
unsubscribe linux-media
PATCH 6/11 drivers/net/bna: do not use EXTRA_CFLAGS
In reply to Arnaud LacombeUsage 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'.
--- drivers/net/bna/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/bna/Makefile +1 -1
@@ -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
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 +0200kbuild: 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'.
- Arnaud
Quoted 18 lines
---
drivers/net/bna/Makefile | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)drivers/net/bna/Makefile +0
-0@@ -8,4 +8,4 @@ obj-$(CONFIG_BNA) += bna.obna-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
PATCH 7/11 drivers/pps: do not use EXTRA_CFLAGS
In reply to Arnaud LacombeUsage 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'.
--- drivers/pps/generators/Makefile | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/pps/generators/Makefile +1 -3
@@ -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
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 +0200kbuild: 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'.
- Arnaud
Quoted 20 lines
---
drivers/pps/generators/Makefile | 4 +---1 files changed, 1 insertions(+), 3 deletions(-)drivers/pps/generators/Makefile +0
-0@@ -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
PATCH 8/11 drivers/scsi: do not use EXTRA_CFLAGS
In reply to Arnaud LacombeUsage 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.
--- 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
@@ -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
@@ -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
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 +0200kbuild: 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.
- 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@@ -1,3 +1,3 @@ -EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb3 +ccflags-y += -Idrivers/net/cxgb3obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o
drivers/scsi/cxgbi/cxgb4i/Kbuild +1
-1@@ -1,3 +1,3 @@ -EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb4 +ccflags-y += -Idrivers/net/cxgb4obj-$(CONFIG_SCSI_CXGB4_ISCSI) += cxgb4i.o
--
1.7.6.153.g78432
PATCH 9/11 drivers/staging: do not use EXTRA_CFLAGS
In reply to Arnaud LacombeUsage 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'.
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
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 +0200kbuild: 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'.
- 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@@ -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@@ -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-usbccflags-y += -Idrivers/media/dvb/frontends
ccflags-y += -Idrivers/media/dvb/dvb-coredrivers/staging/rtl8187se/Makefile +3
-3@@ -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 = gccccflags-y := -DSW_ANTE
drivers/staging/rts_pstor/Makefile +1
-1@@ -1,4 +1,4 @@ -EXTRA_CFLAGS := -Idrivers/scsi +ccflags := -Idrivers/scsiobj-$(CONFIG_RTS_PSTOR) := rts_pstor.o
--
1.7.6.153.g78432
PATCH 10/11 scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS replacement
In reply to Arnaud LacombeUsage 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
@@ -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
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 +0200kbuild: 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.
Cc Sam Ravnborg <[email protected]>
ping ?
- Arnaud
Quoted 21 lines
---
scripts/Makefile.build | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)scripts/Makefile.build +1
-1@@ -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
Re: [PATCH 10/11] scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS replacement
In reply to Arnaud LacombeQuoted 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 +0200kbuild: 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.
Cc Sam Ravnborg <[email protected]>
Thanks, I applied this to kbuild-2.6.git#kbuild with your signoff assumed.
Michal
PATCH 11/11 script/checkpatch.pl: warn about deprecated use of EXTRA_{A,C,CPP,LD}FLAGS
In reply to Arnaud LacombeUsage 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.
--- scripts/checkpatch.pl | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
scripts/checkpatch.pl +14 -0
@@ -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
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 +0200kbuild: 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
MakefileorKbuildfiles.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@@ -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
Re: [PATCH 11/11] script/checkpatch.pl: warn about deprecated use of EXTRA_{A,C,CPP,LD}FLAGS
In reply to Arnaud LacombeQuoted 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 +0200kbuild: 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
MakefileorKbuildfiles.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