Skip to contentSkip to conversation

kernel/power/: Changed Makefile to use proper ccflag flag

PATCH Applied Tracey Dent 3 participants 5 messages Nov 13, 2010 – Nov 26, 2010

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

PATCH 1/1 kernel/power/: Changed Makefile to use proper ccflag flag

Use the ccflags-$ flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).

---
 kernel/power/Makefile |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
kernel/power/Makefile +1 -4
index f9063c6..b755972 100644
@@ -1,7 +1,4 @@
-
-ifeq ($(CONFIG_PM_DEBUG),y)
-EXTRA_CFLAGS	+=	-DDEBUG
-endif
+ccflags-$(CONFIG_PM_DEBUG)	:=	-DDEBUG
 
 obj-$(CONFIG_PM)		+= main.o
 obj-$(CONFIG_PM_SLEEP)		+= console.o
Signature · 1 line
1.7.3.2.164.g6f10c
#1 lore raw
Quoted 4 lines · Tracey Dent

Use the ccflags-$ flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).

ACK.

Quoted 17 lines
---
 kernel/power/Makefile |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
kernel/power/Makefile +1 -4
index f9063c6..b755972 100644
@@ -1,7 +1,4 @@
-
-ifeq ($(CONFIG_PM_DEBUG),y)
-EXTRA_CFLAGS	+=	-DDEBUG
-endif
+ccflags-$(CONFIG_PM_DEBUG)	:=	-DDEBUG
 
 obj-$(CONFIG_PM)		+= main.o
 obj-$(CONFIG_PM_SLEEP)		+= console.o
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#2 lore raw
In reply to Tracey Dent
Quoted 4 lines · Tracey Dent

Use the ccflags-$ flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).

ACK.

Quoted 17 lines
---
 kernel/power/Makefile |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
kernel/power/Makefile +1 -4
index f9063c6..b755972 100644
@@ -1,7 +1,4 @@
-
-ifeq ($(CONFIG_PM_DEBUG),y)
-EXTRA_CFLAGS	+=	-DDEBUG
-endif
+ccflags-$(CONFIG_PM_DEBUG)	:=	-DDEBUG
 
 obj-$(CONFIG_PM)		+= main.o
 obj-$(CONFIG_PM_SLEEP)		+= console.o
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#3 lore raw
In reply to Tracey Dent
Quoted 2 lines · Tracey Dent

Use the ccflags-$ flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).

Applied to suspend-2.6/linux-next.

Thanks,
Rafael

Quoted 19 lines
---
 kernel/power/Makefile |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
kernel/power/Makefile +1 -4
index f9063c6..b755972 100644
@@ -1,7 +1,4 @@
-
-ifeq ($(CONFIG_PM_DEBUG),y)
-EXTRA_CFLAGS	+=	-DDEBUG
-endif
+ccflags-$(CONFIG_PM_DEBUG)	:=	-DDEBUG
 
 obj-$(CONFIG_PM)		+= main.o
 obj-$(CONFIG_PM_SLEEP)		+= console.o
#4 lore raw
In reply to Tracey Dent
Quoted 2 lines · Tracey Dent

Use the ccflags-$ flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).

Applied to suspend-2.6/linux-next.

Thanks,
Rafael

Quoted 19 lines
---
 kernel/power/Makefile |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
kernel/power/Makefile +1 -4
index f9063c6..b755972 100644
@@ -1,7 +1,4 @@
-
-ifeq ($(CONFIG_PM_DEBUG),y)
-EXTRA_CFLAGS	+=	-DDEBUG
-endif
+ccflags-$(CONFIG_PM_DEBUG)	:=	-DDEBUG
 
 obj-$(CONFIG_PM)		+= main.o
 obj-$(CONFIG_PM_SLEEP)		+= console.o