[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACqU3MX1L6POxKbvgTBV+ffyyJVP80aM5YC__kUsCdBmHXNGrA@mail.gmail.com>
Date: Mon, 15 Aug 2011 01:15:00 -0400
From: Arnaud Lacombe <lacombar@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Arnaud Lacombe <lacombar@...il.com>,
Sam Ravnborg <sam@...nborg.org>,
Greg Kroah-Hartman <gregkh@...e.de>, devel@...verdev.osuosl.org
Subject: Re: [PATCH 09/11] drivers/staging: do not use EXTRA_CFLAGS
Hi,
On Mon, Aug 15, 2011 at 1:07 AM, Arnaud Lacombe <lacombar@...il.com> wrote:
> Usage of these flags has been deprecated for nearly 4 years by:
>
> commit f77bf01425b11947eeb3b5b54685212c302741b8
> Author: Sam Ravnborg <sam@...tun.(none)>
> Date: Mon Oct 15 22:25:06 2007 +0200
>
> kbuild: introduce ccflags-y, asflags-y and ldflags-y
>
> Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command
> line use. By default, gmake(1) do not override command line setting, so this is
> likely to result in build failure or unexpected behavior.
>
> Replace their usage by Kbuild's `{as,cc,ld}flags-y'.
>
> Cc: Sam Ravnborg <sam@...nborg.org>
> Cc: Greg Kroah-Hartman <gregkh@...e.de>
> Cc: devel@...verdev.osuosl.org
Signed-off-by: Arnaud Lacombe <lacombar@...il.com>
- Arnaud
> ---
> 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(-)
>
> diff --git a/drivers/staging/cxd2099/Makefile b/drivers/staging/cxd2099/Makefile
> index 72b1455..64cfc77 100644
> --- a/drivers/staging/cxd2099/Makefile
> +++ b/drivers/staging/cxd2099/Makefile
> @@ -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/
> diff --git a/drivers/staging/go7007/Makefile b/drivers/staging/go7007/Makefile
> index 60a9185..6ee837c 100644
> --- a/drivers/staging/go7007/Makefile
> +++ b/drivers/staging/go7007/Makefile
> @@ -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
> diff --git a/drivers/staging/rtl8187se/Makefile b/drivers/staging/rtl8187se/Makefile
> index 11a9226..72db504 100644
> --- a/drivers/staging/rtl8187se/Makefile
> +++ b/drivers/staging/rtl8187se/Makefile
> @@ -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
> diff --git a/drivers/staging/rts_pstor/Makefile b/drivers/staging/rts_pstor/Makefile
> index 61609ae..42533d3 100644
> --- a/drivers/staging/rts_pstor/Makefile
> +++ b/drivers/staging/rts_pstor/Makefile
> @@ -1,4 +1,4 @@
> -EXTRA_CFLAGS := -Idrivers/scsi
> +ccflags := -Idrivers/scsi
>
> obj-$(CONFIG_RTS_PSTOR) := rts_pstor.o
>
> --
> 1.7.6.153.g78432
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists