Skip to contentSkip to conversation

kernel: change to new flag variable

PATCH Applied matt mooney 2 participants 3 messages Sep 23, 2010 – Sep 25, 2010

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

PATCH 1/20 kernel: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 kernel/gcov/Makefile  |    2 +-
 kernel/power/Makefile |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
kernel/gcov/Makefile +1 -1
index 3f76100..e97ca59 100644
@@ -1,3 +1,3 @@
-EXTRA_CFLAGS := -DSRCTREE='"$(srctree)"' -DOBJTREE='"$(objtree)"'
+ccflags-y := -DSRCTREE='"$(srctree)"' -DOBJTREE='"$(objtree)"'
 
 obj-$(CONFIG_GCOV_KERNEL) := base.o fs.o gcc_3_4.o
kernel/power/Makefile +1 -3
index f9063c6..0f98685 100644
@@ -1,7 +1,5 @@
 
-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.2.1