Patchwork [20/24] rtc: change to new flag variable

login
register
mail settings
Submitter matt mooney
Date Sept. 24, 2010, 7:17 p.m.
Message ID <06e70fe4f8a51f65f3582c353329939a8548d897.1285355033.git.mfm@muteddisk.com>
Download mbox | patch
Permalink /patch/65679/
State New
Headers show

Comments

matt mooney - Sept. 24, 2010, 7:17 p.m.
Replace EXTRA_CFLAGS with ccflags-y.

Signed-off-by: matt mooney <mfm@muteddisk.com>
---
 drivers/rtc/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
Wan ZongShun - Sept. 25, 2010, 1:37 a.m.
2010/9/25 matt mooney <mfm@muteddisk.com>:
> Replace EXTRA_CFLAGS with ccflags-y.

Good idea.

Acked-by: Wan ZongShun <mcuos.com@gmail.com>

>
> Signed-off-by: matt mooney <mfm@muteddisk.com>
> ---
>  drivers/rtc/Makefile |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
> index 0f207b3..f2d69d5 100644
> --- a/drivers/rtc/Makefile
> +++ b/drivers/rtc/Makefile
> @@ -2,9 +2,7 @@
>  # Makefile for RTC class/drivers.
>  #
>
> -ifeq ($(CONFIG_RTC_DEBUG),y)
> -       EXTRA_CFLAGS            += -DDEBUG
> -endif
> +ccflags-$(CONFIG_RTC_DEBUG)    := -DDEBUG
>
>  obj-$(CONFIG_RTC_LIB)          += rtc-lib.o
>  obj-$(CONFIG_RTC_HCTOSYS)      += hctosys.o
> --
> 1.7.2.1
>
> --
> You received this message because you are subscribed to "rtc-linux".
> Membership options at http://groups.google.com/group/rtc-linux .
> Please read http://groups.google.com/group/rtc-linux/web/checklist
> before submitting a driver.

Patch

diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index 0f207b3..f2d69d5 100644
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -2,9 +2,7 @@ 
 # Makefile for RTC class/drivers.
 #
 
-ifeq ($(CONFIG_RTC_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
+ccflags-$(CONFIG_RTC_DEBUG)	:= -DDEBUG
 
 obj-$(CONFIG_RTC_LIB)		+= rtc-lib.o
 obj-$(CONFIG_RTC_HCTOSYS)	+= hctosys.o