Skip to contentSkip to conversation

base: change to new flag variable

PATCH Applied matt mooney 13 participants 46 messages Sep 24, 2010 – Oct 15, 2010

Subsystems (35)
Networking Network drivers SCSI USB +31 more subsystems
lore
Share & tools
lore
#0 lore raw

PATCH 1/24 base: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/base/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/base/Makefile +1 -3
index c12c7f2..5f51c3b 100644
@@ -19,7 +19,5 @@ obj-$(CONFIG_MODULES)	+= module.o
 endif
 obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o
 
-ifeq ($(CONFIG_DEBUG_DRIVER),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG
 
Signature · 1 line
1.7.2.1
#1 lore raw

PATCH 2/24 char: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/char/mwave/Makefile |    4 ++--
 drivers/char/mwave/README   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/char/mwave/Makefile +2 -2
index 754c9e2..c0cf57e 100644
@@ -9,7 +9,7 @@ obj-$(CONFIG_MWAVE) += mwave.o
 mwave-objs := mwavedd.o smapi.o tp3780i.o 3780i.o
 
 # To have the mwave driver disable other uarts if necessary
-# EXTRA_CFLAGS += -DMWAVE_FUTZ_WITH_OTHER_DEVICES
+# ccflags-y := -DMWAVE_FUTZ_WITH_OTHER_DEVICES
 
 # To compile in lots (~20 KiB) of run-time enablable printk()s for debugging:
-EXTRA_CFLAGS += -DMW_TRACE
+ccflags-y += -DMW_TRACE
drivers/char/mwave/README +1 -1
index 480251f..c2a58f4 100644
@@ -11,7 +11,7 @@ are not saved by the BIOS and so do not persist after unload and reload.
 	0x0008 tp3780i tracing
 
         Tracing only occurs if the driver has been compiled with the
-        MW_TRACE macro #defined  (i.e. let EXTRA_CFLAGS += -DMW_TRACE
+        MW_TRACE macro #defined  (i.e. let ccflags-y := -DMW_TRACE
         in the Makefile).
 
   mwave_3780i_irq=5/7/10/11/15
Signature · 1 line
1.7.2.1
#2 lore raw

PATCH 3/24 dma: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/dma/Makefile |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
drivers/dma/Makefile +2 -6
index 72bd703..69c5b1e 100644
@@ -1,9 +1,5 @@
-ifeq ($(CONFIG_DMADEVICES_DEBUG),y)
-	EXTRA_CFLAGS	+= -DDEBUG
-endif
-ifeq ($(CONFIG_DMADEVICES_VDEBUG),y)
-	EXTRA_CFLAGS	+= -DVERBOSE_DEBUG
-endif
+ccflags-$(CONFIG_DMADEVICES_DEBUG)  := -DDEBUG
+ccflags-$(CONFIG_DMADEVICES_VDEBUG) += -DVERBOSE_DEBUG
 
 obj-$(CONFIG_DMA_ENGINE) += dmaengine.o
 obj-$(CONFIG_NET_DMA) += iovlock.o
Signature · 1 line
1.7.2.1
#3 lore raw

PATCH 4/24 hwmon: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/hwmon/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/hwmon/Makefile +1 -3
index e3c2484..764b4db 100644
@@ -109,7 +109,5 @@ obj-$(CONFIG_SENSORS_W83L786NG)	+= w83l786ng.o
 obj-$(CONFIG_SENSORS_WM831X)	+= wm831x-hwmon.o
 obj-$(CONFIG_SENSORS_WM8350)	+= wm8350-hwmon.o
 
-ifeq ($(CONFIG_HWMON_DEBUG_CHIP),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_HWMON_DEBUG_CHIP) := -DDEBUG
 
Signature · 1 line
1.7.2.1
#4 lore raw

PATCH 5/24 i2c: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/i2c/Makefile        |    4 +---
 drivers/i2c/algos/Makefile  |    4 +---
 drivers/i2c/busses/Makefile |    4 +---
 drivers/i2c/muxes/Makefile  |    4 +---
 4 files changed, 4 insertions(+), 12 deletions(-)
drivers/i2c/Makefile +1 -3
index c00fd66..23ac61e 100644
@@ -9,6 +9,4 @@ obj-$(CONFIG_I2C_CHARDEV)	+= i2c-dev.o
 obj-$(CONFIG_I2C_MUX)		+= i2c-mux.o
 obj-y				+= algos/ busses/ muxes/
 
-ifeq ($(CONFIG_I2C_DEBUG_CORE),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
drivers/i2c/algos/Makefile +1 -3
index 18b3e96..215303f 100644
@@ -6,6 +6,4 @@ obj-$(CONFIG_I2C_ALGOBIT)	+= i2c-algo-bit.o
 obj-$(CONFIG_I2C_ALGOPCF)	+= i2c-algo-pcf.o
 obj-$(CONFIG_I2C_ALGOPCA)	+= i2c-algo-pca.o
 
-ifeq ($(CONFIG_I2C_DEBUG_ALGO),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_ALGO) := -DDEBUG
drivers/i2c/busses/Makefile +1 -3
index c3ef492..033ad41 100644
@@ -76,6 +76,4 @@ obj-$(CONFIG_I2C_STUB)		+= i2c-stub.o
 obj-$(CONFIG_SCx200_ACB)	+= scx200_acb.o
 obj-$(CONFIG_SCx200_I2C)	+= scx200_i2c.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG
drivers/i2c/muxes/Makefile +1 -3
index bd83b52..6f49786 100644
@@ -3,6 +3,4 @@
 
 obj-$(CONFIG_I2C_MUX_PCA954x)	+= pca954x.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG
Signature · 1 line
1.7.2.1
#5 lore raw

PATCH 6/24 ide: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/ide/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ide/Makefile +1 -1
index 81df925..7f879b2 100644
@@ -2,7 +2,7 @@
 # link order is important here
 #
 
-EXTRA_CFLAGS				+= -Idrivers/ide
+ccflags-y				:= -Idrivers/ide
 
 ide-core-y += ide.o ide-ioctls.o ide-io.o ide-iops.o ide-lib.o ide-probe.o \
 	      ide-taskfile.o ide-pm.o ide-park.o ide-sysfs.o ide-devsets.o \
Signature · 1 line
1.7.2.1
#6 lore raw

PATCH 7/24 ieee802154: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/ieee802154/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ieee802154/Makefile +1 -1
index e0e8e1a..6899913 100644
@@ -1,3 +1,3 @@
 obj-$(CONFIG_IEEE802154_FAKEHARD) += fakehard.o
 
-EXTRA_CFLAGS += -DDEBUG -DCONFIG_FFD
+ccflags-y := -DDEBUG -DCONFIG_FFD
Signature · 1 line
1.7.2.1
#7 lore raw

PATCH 8/24 infiniband: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/infiniband/hw/amso1100/Kbuild |    4 +---
 drivers/infiniband/hw/cxgb3/Makefile  |    6 ++----
 drivers/infiniband/hw/cxgb4/Makefile  |    2 +-
 drivers/infiniband/hw/ipath/Makefile  |    2 +-
 4 files changed, 5 insertions(+), 9 deletions(-)
drivers/infiniband/hw/amso1100/Kbuild +1 -3
index 06964c4..950dfab 100644
@@ -1,6 +1,4 @@
-ifdef CONFIG_INFINIBAND_AMSO1100_DEBUG
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_INFINIBAND_AMSO1100_DEBUG) := -DDEBUG
 
 obj-$(CONFIG_INFINIBAND_AMSO1100) += iw_c2.o
 
drivers/infiniband/hw/cxgb3/Makefile +2 -4
index 7e7b5a6..621619c 100644
@@ -1,10 +1,8 @@
-EXTRA_CFLAGS += -Idrivers/net/cxgb3
+ccflags-y := -Idrivers/net/cxgb3
 
 obj-$(CONFIG_INFINIBAND_CXGB3) += iw_cxgb3.o
 
 iw_cxgb3-y :=  iwch_cm.o iwch_ev.o iwch_cq.o iwch_qp.o iwch_mem.o \
 	       iwch_provider.o iwch.o cxio_hal.o cxio_resource.o
 
-ifdef CONFIG_INFINIBAND_CXGB3_DEBUG
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_INFINIBAND_CXGB3_DEBUG) += -DDEBUG
drivers/infiniband/hw/cxgb4/Makefile +1 -1
index e31a499..cd20b13 100644
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS += -Idrivers/net/cxgb4
+ccflags-y := -Idrivers/net/cxgb4
 
 obj-$(CONFIG_INFINIBAND_CXGB4) += iw_cxgb4.o
 
drivers/infiniband/hw/ipath/Makefile +1 -1
index fa3df82..4496f28 100644
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS += -DIPATH_IDSTR='"QLogic kernel.org driver"' \
+ccflags-y := -DIPATH_IDSTR='"QLogic kernel.org driver"' \
 	-DIPATH_KERN_TYPE=0
 
 obj-$(CONFIG_INFINIBAND_IPATH) += ib_ipath.o
Signature · 1 line
1.7.2.1
#8 lore raw

PATCH 9/24 input: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/input/joystick/iforce/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/joystick/iforce/Makefile +1 -1
index 74daff4..2648189 100644
@@ -17,4 +17,4 @@ ifeq ($(CONFIG_JOYSTICK_IFORCE_USB),y)
 	iforce-objs += iforce-usb.o
 endif
 
-EXTRA_CFLAGS = -Werror-implicit-function-declaration
+ccflags-y := -Werror-implicit-function-declaration
Signature · 1 line
1.7.2.1
#9 lore raw

PATCH 10/24 isdn: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/isdn/hisax/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/isdn/hisax/Makefile +1 -1
index ab638b08..646368f 100644
@@ -4,7 +4,7 @@
 
 # Define maximum number of cards
 
-EXTRA_CFLAGS      += -DHISAX_MAX_CARDS=$(CONFIG_HISAX_MAX_CARDS)
+ccflags-y      := -DHISAX_MAX_CARDS=$(CONFIG_HISAX_MAX_CARDS)
 
 obj-$(CONFIG_ISDN_DRV_HISAX)		+= hisax.o
 obj-$(CONFIG_HISAX_SEDLBAUER_CS)	+= sedlbauer_cs.o
Signature · 1 line
1.7.2.1
#10 lore raw

PATCH 11/24 memstick: change to new flag variable

The EXTRA_CFLAGS assignment in memstick/Makefile was not accomplishing anything because this flag only has effect on sources at the same level as the makefile (i.e., per directory). Since both core/ and host/ rely on MEMSTICK_DEBUG, the subdir-ccflags-y variant seems to be the appropriate choice.

---
 drivers/memstick/Makefile      |    4 +---
 drivers/memstick/core/Makefile |    4 ----
 drivers/memstick/host/Makefile |    4 ----
 3 files changed, 1 insertions(+), 11 deletions(-)
drivers/memstick/Makefile +1 -3
index dc160fb..9862359 100644
@@ -2,9 +2,7 @@
 # Makefile for the kernel MemoryStick device drivers.
 #
 
-ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
+subdir-ccflags-$(CONFIG_MEMSTICK_DEBUG) := -DDEBUG
 
 obj-$(CONFIG_MEMSTICK)		+= core/
 obj-$(CONFIG_MEMSTICK)		+= host/
drivers/memstick/core/Makefile +0 -4
index 8b2b529..ecd0299 100644
@@ -2,10 +2,6 @@
 # Makefile for the kernel MemoryStick core.
 #
 
-ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
-
 obj-$(CONFIG_MEMSTICK)		+= memstick.o
 
 obj-$(CONFIG_MSPRO_BLOCK)	+= mspro_block.o
drivers/memstick/host/Makefile +0 -4
index 12530e4..a1815e9 100644
@@ -2,9 +2,5 @@
 # Makefile for MemoryStick host controller drivers
 #
 
-ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
-	EXTRA_CFLAGS			+= -DDEBUG
-endif
-
 obj-$(CONFIG_MEMSTICK_TIFM_MS)		+= tifm_ms.o
 obj-$(CONFIG_MEMSTICK_JMICRON_38X)	+= jmb38x_ms.o
Signature · 1 line
1.7.2.1
#11 lore raw

PATCH 12/24 message: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/message/fusion/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/message/fusion/Makefile +1 -1
index 95c9532..d182a24 100644
@@ -2,7 +2,7 @@
 
 # enable verbose logging
 # CONFIG_FUSION_LOGGING needs to be enabled in Kconfig
-#EXTRA_CFLAGS += -DMPT_DEBUG_VERBOSE
+#ccflags-y := -DMPT_DEBUG_VERBOSE
 
 
 #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC
Signature · 1 line
1.7.2.1
#12 lore raw

PATCH 13/24 misc: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/misc/cb710/Makefile   |    4 +---
 drivers/misc/sgi-gru/Makefile |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
drivers/misc/cb710/Makefile +1 -3
index 7b80cbf..467c8e9 100644
@@ -1,6 +1,4 @@
-ifeq ($(CONFIG_CB710_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
+ccflags-$(CONFIG_CB710_DEBUG)	:= -DDEBUG
 
 obj-$(CONFIG_CB710_CORE)	+= cb710.o
 
drivers/misc/sgi-gru/Makefile +1 -3
index 7c4c306..0003a1d 100644
@@ -1,6 +1,4 @@
-ifdef CONFIG_SGI_GRU_DEBUG
-  EXTRA_CFLAGS	+= -DDEBUG
-endif
+ccflags-$(CONFIG_SGI_GRU_DEBUG)	:= -DDEBUG
 
 obj-$(CONFIG_SGI_GRU) := gru.o
 gru-y := grufile.o grumain.o grufault.o grutlbpurge.o gruprocfs.o grukservices.o gruhandles.o grukdump.o
Signature · 1 line
1.7.2.1
#13 lore raw

PATCH 14/24 mmc: change to new flag variable

The EXTRA_CFLAGS assignment in mmc/Makefile was not accomplishing anything because this flag only has effect on sources at the same level as the makefile (i.e., per directory). Since card/, core/, and host/ rely on MMC_DEBUG, the subdir-ccflags-y variant seems to be the appropriate choice.

---
 drivers/mmc/Makefile      |    4 +---
 drivers/mmc/card/Makefile |    4 ----
 drivers/mmc/core/Makefile |    4 ----
 drivers/mmc/host/Makefile |    4 ----
 4 files changed, 1 insertions(+), 15 deletions(-)
drivers/mmc/Makefile +1 -3
index 9979f5e..12eef39 100644
@@ -2,9 +2,7 @@
 # Makefile for the kernel mmc device drivers.
 #
 
-ifeq ($(CONFIG_MMC_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
+subdir-ccflags-$(CONFIG_MMC_DEBUG) := -DDEBUG
 
 obj-$(CONFIG_MMC)		+= core/
 obj-$(CONFIG_MMC)		+= card/
drivers/mmc/card/Makefile +0 -4
index 0d40751..c73b406 100644
@@ -2,10 +2,6 @@
 # Makefile for MMC/SD card drivers
 #
 
-ifeq ($(CONFIG_MMC_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
-
 obj-$(CONFIG_MMC_BLOCK)		+= mmc_block.o
 mmc_block-objs			:= block.o queue.o
 obj-$(CONFIG_MMC_TEST)		+= mmc_test.o
drivers/mmc/core/Makefile +0 -4
index 889e5f8..86b4791 100644
@@ -2,10 +2,6 @@
 # Makefile for the kernel mmc core.
 #
 
-ifeq ($(CONFIG_MMC_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
-
 obj-$(CONFIG_MMC)		+= mmc_core.o
 mmc_core-y			:= core.o bus.o host.o \
 				   mmc.o mmc_ops.o sd.o sd_ops.o \
drivers/mmc/host/Makefile +0 -4
index 840bcb5..e35e778 100644
@@ -2,10 +2,6 @@
 # Makefile for MMC/SD host controller drivers
 #
 
-ifeq ($(CONFIG_MMC_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
-
 obj-$(CONFIG_MMC_ARMMMCI)	+= mmci.o
 obj-$(CONFIG_MMC_PXA)		+= pxamci.o
 obj-$(CONFIG_MMC_IMX)		+= imxmmc.o
Signature · 1 line
1.7.2.1
#14 lore raw

PATCH 15/24 net: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/net/caif/Makefile                   |    4 +---
 drivers/net/skfp/Makefile                   |    2 +-
 drivers/net/wan/lmc/Makefile                |    2 +-
 drivers/net/wireless/hostap/hostap_config.h |    4 ++--
 drivers/net/wireless/zd1211rw/Makefile      |    4 +---
 5 files changed, 6 insertions(+), 10 deletions(-)
drivers/net/caif/Makefile +1 -3
index 3a11d61..b5dc44c 100644
@@ -1,6 +1,4 @@
-ifeq ($(CONFIG_CAIF_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_CAIF_DEBUG) := -DDEBUG
 
 # Serial interface
 obj-$(CONFIG_CAIF_TTY) += caif_serial.o
drivers/net/skfp/Makefile +1 -1
index cb23580..045d815 100644
@@ -17,4 +17,4 @@ skfp-objs :=  skfddi.o    hwmtm.o    fplustm.o  smt.o      cfm.o     \
 #   projects. To keep the source common for all those drivers (and
 #   thus simplify fixes to it), please do not clean it up!
 
-EXTRA_CFLAGS += -Idrivers/net/skfp -DPCI -DMEM_MAPPED_IO -Wno-strict-prototypes 
+ccflags-y := -Idrivers/net/skfp -DPCI -DMEM_MAPPED_IO -Wno-strict-prototypes 
drivers/net/wan/lmc/Makefile +1 -1
index dabdcfe..609710d 100644
@@ -14,4 +14,4 @@ lmc-objs := lmc_debug.o lmc_media.o lmc_main.o lmc_proto.o
 # -DDEBUG \
 # -DLMC_PACKET_LOG
 
-EXTRA_CFLAGS += -I. $(DBGDEF)
+ccflags-y := -I. $(DBGDEF)
drivers/net/wireless/hostap/hostap_config.h +2 -2
index 30acd39..2c8f71f 100644
@@ -30,9 +30,9 @@
 
 /* Following defines can be used to remove unneeded parts of the driver, e.g.,
  * to limit the size of the kernel module. Definitions can be added here in
- * hostap_config.h or they can be added to make command with EXTRA_CFLAGS,
+ * hostap_config.h or they can be added to make command with ccflags-y,
  * e.g.,
- * 'make pccard EXTRA_CFLAGS="-DPRISM2_NO_DEBUG -DPRISM2_NO_PROCFS_DEBUG"'
+ * 'make pccard ccflags-y="-DPRISM2_NO_DEBUG -DPRISM2_NO_PROCFS_DEBUG"'
  */
 
 /* Do not include debug messages into the driver */
drivers/net/wireless/zd1211rw/Makefile +1 -3
index 1907eaf..5728a91 100644
@@ -5,7 +5,5 @@ zd1211rw-objs := zd_chip.o zd_mac.o \
 		zd_rf_al7230b.o zd_rf_uw2453.o \
 		zd_rf.o zd_usb.o
 
-ifeq ($(CONFIG_ZD1211RW_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_ZD1211RW_DEBUG) := -DDEBUG
 
Signature · 1 line
1.7.2.1
#15 lore raw

PATCH 16/24 pci: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/pci/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/pci/Makefile +1 -3
index dc1aa09..dcd7ace 100644
@@ -65,6 +65,4 @@ obj-$(CONFIG_PCI_SYSCALL) += syscall.o
 
 obj-$(CONFIG_PCI_STUB) += pci-stub.o
 
-ifeq ($(CONFIG_PCI_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
Signature · 1 line
1.7.2.1
#16 lore raw

PATCH 17/24 power: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/power/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/power/Makefile +1 -3
index 10143aa..a0cffe0 100644
@@ -8,9 +8,7 @@ ifeq ($(CONFIG_LEDS_TRIGGERS),y)
 power_supply-objs += power_supply_leds.o
 endif
 
-ifeq ($(CONFIG_POWER_SUPPLY_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
 
 obj-$(CONFIG_POWER_SUPPLY)	+= power_supply.o
 
Signature · 1 line
1.7.2.1
#17 lore raw

PATCH 18/24 pps: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/pps/clients/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/pps/clients/Makefile +1 -3
index 812c9b1..b52dbb8 100644
@@ -5,6 +5,4 @@
 obj-$(CONFIG_PPS_CLIENT_KTIMER)	+= pps-ktimer.o
 obj-$(CONFIG_PPS_CLIENT_LDISC)	+= pps-ldisc.o
 
-ifeq ($(CONFIG_PPS_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_PPS_DEBUG) := -DDEBUG
Signature · 1 line
1.7.2.1
#18 lore raw

PATCH 19/24 rapidio: change to new flag variable

switches/ depends on RAPIDIO_DEBUG so the subdir-ccflags-y variant seems to be appropriate here.

---
 drivers/rapidio/Makefile          |    4 +---
 drivers/rapidio/switches/Makefile |    4 ----
 2 files changed, 1 insertions(+), 7 deletions(-)
drivers/rapidio/Makefile +1 -3
index b6139fe..89b8eca 100644
@@ -5,6 +5,4 @@ obj-y += rio.o rio-access.o rio-driver.o rio-scan.o rio-sysfs.o
 
 obj-$(CONFIG_RAPIDIO)		+= switches/
 
-ifeq ($(CONFIG_RAPIDIO_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+subdir-ccflags-$(CONFIG_RAPIDIO_DEBUG) := -DDEBUG
drivers/rapidio/switches/Makefile +0 -4
index fe4adc3..0fece0e 100644
@@ -6,7 +6,3 @@ obj-$(CONFIG_RAPIDIO_TSI57X)	+= tsi57x.o
 obj-$(CONFIG_RAPIDIO_CPS_XX)	+= idtcps.o
 obj-$(CONFIG_RAPIDIO_TSI568)	+= tsi568.o
 obj-$(CONFIG_RAPIDIO_TSI500)	+= tsi500.o
-
-ifeq ($(CONFIG_RAPIDIO_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
Signature · 1 line
1.7.2.1
#19 lore raw

PATCH 20/24 rtc: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/rtc/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/rtc/Makefile +1 -3
index 0f207b3..f2d69d5 100644
@@ -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
Signature · 1 line
1.7.2.1
#20 lore raw

PATCH 21/24 scsi: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/scsi/aacraid/Makefile |    2 +-
 drivers/scsi/aic94xx/Makefile |    4 +---
 drivers/scsi/cxgb3i/Kbuild    |    2 +-
 drivers/scsi/libsas/Makefile  |    6 ++----
 drivers/scsi/lpfc/Makefile    |    6 ++----
 drivers/scsi/mvsas/Makefile   |    4 +---
 drivers/scsi/pcmcia/Makefile  |    2 +-
 7 files changed, 9 insertions(+), 17 deletions(-)
drivers/scsi/aacraid/Makefile +1 -1
index f1cca4e..92df4d6 100644
@@ -5,4 +5,4 @@ obj-$(CONFIG_SCSI_AACRAID) := aacraid.o
 aacraid-objs	:= linit.o aachba.o commctrl.o comminit.o commsup.o \
 		   dpcsup.o rx.o sa.o rkt.o nark.o
 
-EXTRA_CFLAGS	:= -Idrivers/scsi
+ccflags-y	:= -Idrivers/scsi
drivers/scsi/aic94xx/Makefile +1 -3
index e78ce0f..c0a15c7 100644
@@ -22,9 +22,7 @@
 # along with the aic94xx driver; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-ifeq ($(CONFIG_AIC94XX_DEBUG),y)
-	EXTRA_CFLAGS += -DASD_DEBUG -DASD_ENTER_EXIT
-endif
+ccflags-$(CONFIG_AIC94XX_DEBUG) := -DASD_DEBUG -DASD_ENTER_EXIT
 
 obj-$(CONFIG_SCSI_AIC94XX) += aic94xx.o
 aic94xx-y += aic94xx_init.o \
drivers/scsi/cxgb3i/Kbuild +1 -1
index 70d060b..914ce3a 100644
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb3
+ccflags-y := -I$(srctree)/drivers/net/cxgb3
 
 cxgb3i-y := cxgb3i_init.o cxgb3i_iscsi.o cxgb3i_pdu.o cxgb3i_offload.o cxgb3i_ddp.o
 obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o
drivers/scsi/libsas/Makefile +2 -4
index 1ad1323..c62aa7b 100644
@@ -21,9 +21,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 # USA
 
-ifeq ($(CONFIG_SCSI_SAS_LIBSAS_DEBUG),y)
-	EXTRA_CFLAGS += -DSAS_DEBUG
-endif
+ccflags-$(CONFIG_SCSI_SAS_LIBSAS_DEBUG) := -DSAS_DEBUG
 
 obj-$(CONFIG_SCSI_SAS_LIBSAS) += libsas.o
 libsas-y +=  sas_init.o     \
@@ -36,4 +34,4 @@ libsas-y +=  sas_init.o     \
 		sas_scsi_host.o \
 		sas_task.o
 libsas-$(CONFIG_SCSI_SAS_ATA) +=	sas_ata.o
-libsas-$(CONFIG_SCSI_SAS_HOST_SMP) +=	sas_host_smp.o
\ No newline at end of file
+libsas-$(CONFIG_SCSI_SAS_HOST_SMP) +=	sas_host_smp.o
drivers/scsi/lpfc/Makefile +2 -4
index ad05d6e..14de249 100644
@@ -19,10 +19,8 @@
 # *******************************************************************/
 ######################################################################
 
-ifneq ($(GCOV),)
-  EXTRA_CFLAGS += -fprofile-arcs -ftest-coverage
-  EXTRA_CFLAGS += -O0
-endif
+ccflags-$(GCOV) := -fprofile-arcs -ftest-coverage
+ccflags-$(GCOV) += -O0
 
 obj-$(CONFIG_SCSI_LPFC) := lpfc.o
 
drivers/scsi/mvsas/Makefile +1 -3
index 52ac426..ffbf759 100644
@@ -21,9 +21,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 # USA
 
-ifeq ($(CONFIG_SCSI_MVSAS_DEBUG),y)
-	EXTRA_CFLAGS += -DMV_DEBUG
-endif
+ccflags-$(CONFIG_SCSI_MVSAS_DEBUG) := -DMV_DEBUG
 
 obj-$(CONFIG_SCSI_MVSAS) += mvsas.o
 mvsas-y +=  mv_init.o  \
drivers/scsi/pcmcia/Makefile +1 -1
index eca3790..683bf14 100644
@@ -1,5 +1,5 @@
 
-EXTRA_CFLAGS		+= -Idrivers/scsi
+ccflags-y		:= -Idrivers/scsi
 
 # 16-bit client drivers
 obj-$(CONFIG_PCMCIA_QLOGIC)	+= qlogic_cs.o
Signature · 1 line
1.7.2.1
#21 lore raw

PATCH 22/24 spi: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/spi/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/spi/Makefile +1 -3
index e9cbd18..66c0c47 100644
@@ -2,9 +2,7 @@
 # Makefile for kernel SPI drivers.
 #
 
-ifeq ($(CONFIG_SPI_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_SPI_DEBUG) := -DDEBUG
 
 # small core, mostly translating board-specific
 # config declarations into driver model code
Signature · 1 line
1.7.2.1
#22 lore raw

PATCH 23/24 usb: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/usb/atm/Makefile      |    4 +---
 drivers/usb/core/Makefile     |    4 +---
 drivers/usb/gadget/Makefile   |    4 +---
 drivers/usb/host/Makefile     |    4 +---
 drivers/usb/misc/Makefile     |    4 +---
 drivers/usb/musb/Makefile     |    4 +---
 drivers/usb/storage/Makefile  |    2 +-
 drivers/usb/wusbcore/Makefile |    4 +---
 8 files changed, 8 insertions(+), 22 deletions(-)
drivers/usb/atm/Makefile +1 -3
index 4c4a776..d40a126 100644
@@ -8,6 +8,4 @@ obj-$(CONFIG_USB_UEAGLEATM)	+= ueagle-atm.o
 obj-$(CONFIG_USB_ATM)		+= usbatm.o
 obj-$(CONFIG_USB_XUSBATM)	+= xusbatm.o
 
-ifeq ($(CONFIG_USB_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG)	:= -DDEBUG
drivers/usb/core/Makefile +1 -3
index ec16e60..17c8e2d 100644
@@ -16,6 +16,4 @@ endif
 
 obj-$(CONFIG_USB)	+= usbcore.o
 
-ifeq ($(CONFIG_USB_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
drivers/usb/gadget/Makefile +1 -3
index 27283df..c682005 100644
@@ -1,9 +1,7 @@
 #
 # USB peripheral controller drivers
 #
-ifeq ($(CONFIG_USB_GADGET_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
+ccflags-$(CONFIG_USB_GADGET_DEBUG)	:= -DDEBUG
 
 obj-$(CONFIG_USB_DUMMY_HCD)	+= dummy_hcd.o
 obj-$(CONFIG_USB_NET2280)	+= net2280.o
drivers/usb/host/Makefile +1 -3
index b6315aa..f041442 100644
@@ -2,9 +2,7 @@
 # Makefile for USB Host Controller Drivers
 #
 
-ifeq ($(CONFIG_USB_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG)	:= -DDEBUG
 
 isp1760-objs := isp1760-hcd.o isp1760-if.o
 fhci-objs := fhci-hcd.o fhci-hub.o fhci-q.o fhci-mem.o \
drivers/usb/misc/Makefile +1 -3
index 717703e..92d1ce0 100644
@@ -25,6 +25,4 @@ obj-$(CONFIG_USB_SEVSEG)	+= usbsevseg.o
 
 obj-$(CONFIG_USB_SISUSBVGA)	+= sisusbvga/
 
-ifeq ($(CONFIG_USB_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_DEBUG)	:= -DDEBUG
drivers/usb/musb/Makefile +1 -3
index 9705f71..4fd29f8 100644
@@ -74,6 +74,4 @@ endif
 
 # Debugging
 
-ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
-	EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG
drivers/usb/storage/Makefile +1 -1
index ef7e5a8..786f086 100644
@@ -5,7 +5,7 @@
 # Rewritten to use lists instead of if-statements.
 #
 
-EXTRA_CFLAGS	:= -Idrivers/scsi
+ccflags-y	:= -Idrivers/scsi
 
 obj-$(CONFIG_USB_STORAGE)	+= usb-storage.o
 
drivers/usb/wusbcore/Makefile +1 -3
index 75f1ade..f0d8045 100644
@@ -21,6 +21,4 @@ wusb-wa-objs :=	wa-hc.o		\
 		wa-rpipe.o	\
 		wa-xfer.o
 
-ifeq ($(CONFIG_USB_WUSB_CBAF_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_USB_WUSB_CBAF_DEBUG) := -DDEBUG
Signature · 1 line
1.7.2.1
#23 lore raw

PATCH 24/24 video: change to new flag variable

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/video/intelfb/Makefile |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/video/intelfb/Makefile +1 -4
index 6c782d3..f7d631e 100644
@@ -4,7 +4,4 @@ intelfb-y := intelfbdrv.o intelfbhw.o
 intelfb-$(CONFIG_FB_INTEL_I2C) += intelfb_i2c.o
 intelfb-objs := $(intelfb-y)
 
-ifdef CONFIG_FB_INTEL_DEBUG
-#EXTRA_CFLAGS += -DDEBUG -DVERBOSE -DREGDUMP
-EXTRA_CFLAGS += -DDEBUG -DREGDUMP
-endif
+ccflags-$(CONFIG_FB_INTEL_DEBUG) := -DDEBUG -DREGDUMP
Signature · 1 line
1.7.2.1
#24 lore raw

Re: [usb-storage] [PATCH 23/24] usb: change to new flag variable

In reply to matt mooney
Quoted 7 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

drivers/usb/storage/Makefile +0 -0
index ef7e5a8..786f086 100644

drivers/usb/storage/Makefile line 10

Quoted 7 lines
drivers/usb/storage/Makefile +1 -1
@@ -5,7 +5,7 @@
 # Rewritten to use lists instead of if-statements.
 #
 
-EXTRA_CFLAGS	:= -Idrivers/scsi
+ccflags-y	:= -Idrivers/scsi
 
 obj-$(CONFIG_USB_STORAGE)	+= usb-storage.o

I don't really know anything about the new 'ccflags' stuff.. but my instincts tell me that perhaps that should be 'ccflags-$(CONFIG_USB_STORAGE)' rather than 'ccflags-y'?

Does it make a difference that usb-storage can be built-in or a loadable module?

Matt

Signature · 6 lines
Matthew Dharm                              Home: [email protected] 
Maintainer, Linux USB Mass Storage Driver

I could always suspend a few hundred accounts and watch what happens.
					-- Tanya
User Friendly, 7/31/1998
#25 lore raw

Re: [usb-storage] [PATCH 23/24] usb: change to new flag variable

Quoted 7 lines · Matthew Dharm

drivers/usb/storage/Makefile

Quoted 6 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

drivers/usb/storage/Makefile +0 -1
index ef7e5a8..786f086 100644
--- a/drivers/usb/storage/Makefile

+++ b/drivers/usb/storage/Makefile

Quoted 4 lines
Quoted 4 lines
drivers/usb/storage/Makefile +0 -0
@@ -5,7 +5,7 @@
 # Rewritten to use lists instead of if-statements.
 #
 
Quoted 8 lines

drivers/usb/storage/Makefile line 10

Quoted 4 lines
drivers/usb/storage/Makefile +1 -1
-EXTRA_CFLAGS	:= -Idrivers/scsi
+ccflags-y	:= -Idrivers/scsi
 
 obj-$(CONFIG_USB_STORAGE)	+= usb-storage.o

I don't really know anything about the new 'ccflags' stuff.. but my instincts tell me that perhaps that should be 'ccflags-$(CONFIG_USB_STORAGE)' rather than 'ccflags-y'?

The flag has the same effect as EXTRA_CFLAGS in that it will be used to build all sources at the same hierarchical level (i.e., per directory not including subdirectories). I didn't want to change the semantics of the way the variable was being used, but after looking at the Kconfig it seems that would be a reasonable change. If only usb-storage needs the flag then it makes sense, though it seems that everything else in the directory relies on usb-storage anyway, but it gives it greater meaning knowing that only usb-storage relies on the flag, IMHO.

Quoted 3 lines

Does it make a difference that usb-storage can be built-in or a loadable module?

That would make a difference because ccflags-m is not used, so the change is not possible.

-mfm

#26 lore raw

Re: [usb-storage] [PATCH 23/24] usb: change to new flag variable

Quoted 32 lines · matt mooney
Quoted 7 lines · Matthew Dharm

drivers/usb/storage/Makefile

Quoted 6 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

drivers/usb/storage/Makefile +0 -1
index ef7e5a8..786f086 100644
--- a/drivers/usb/storage/Makefile

+++ b/drivers/usb/storage/Makefile

Quoted 4 lines
Quoted 4 lines
drivers/usb/storage/Makefile +0 -0
@@ -5,7 +5,7 @@
 # Rewritten to use lists instead of if-statements.
 #
 
Quoted 8 lines

drivers/usb/storage/Makefile line 10

Quoted 4 lines
drivers/usb/storage/Makefile +1 -1
-EXTRA_CFLAGS	:= -Idrivers/scsi
+ccflags-y	:= -Idrivers/scsi
 
 obj-$(CONFIG_USB_STORAGE)	+= usb-storage.o

I don't really know anything about the new 'ccflags' stuff.. but my instincts tell me that perhaps that should be 'ccflags-$(CONFIG_USB_STORAGE)' rather than 'ccflags-y'?

The flag has the same effect as EXTRA_CFLAGS in that it will be used to build all sources at the same hierarchical level (i.e., per directory not including subdirectories). I didn't want to change the semantics of the way the variable was being used, but after looking at the Kconfig it seems that would be a reasonable change. If only usb-storage needs the flag then it makes sense, though it seems that everything else in the directory relies on usb-storage anyway, but it gives it greater meaning knowing that only usb-storage relies on the flag, IMHO.

Quoted 1 line
Quoted 5 lines
Quoted 2 lines

Does it make a difference that usb-storage can be built-in or a loadable module?

That would make a difference because ccflags-m is not used, so the change is not possible.

I failed to mention earlier that there is a per file flag. If you really only want usb-storage.o built with the flag, you can do:

CFLAGS_usb-storage.o := -Idrivers/scsi

-mfm

Applied
#27 lore raw

Re: [PATCH 22/24] spi: change to new flag variable

In reply to matt mooney
Quoted 3 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

Applied, thanks.

g.

Quoted 22 lines
---
 drivers/spi/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/spi/Makefile +1 -3
index e9cbd18..66c0c47 100644
@@ -2,9 +2,7 @@
 # Makefile for kernel SPI drivers.
 #
 
-ifeq ($(CONFIG_SPI_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_SPI_DEBUG) := -DDEBUG
 
 # small core, mostly translating board-specific
 # config declarations into driver model code
Signature · 1 line
1.7.2.1
Acked-by on v1 20/24
#28 lore raw

Re: [rtc-linux] [PATCH 20/24] rtc: change to new flag variable

In reply to matt mooney

2010/9/25 matt mooney <[email protected]>:

Quoted 1 line

Replace EXTRA_CFLAGS with ccflags-y.

Good idea.

Quoted 29 lines

---
 drivers/rtc/Makefile |    4 +---

 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/rtc/Makefile +1 -3
index 0f207b3..f2d69d5 100644
@@ -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.

Signature · 10 lines
*linux-arm-kernel mailing list
mail addr:[email protected]
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:[email protected]
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
[email protected]
Applied
#29 lore raw

Re: [PATCH 16/24] pci: change to new flag variable

In reply to matt mooney
Quoted 12 lines · On Fri, 24 Sep 2010 12:17:26 -0700 matt mooney <[email protected]> wrote:

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/pci/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/pci/Makefile +0 -0
index dc1aa09..dcd7ace 100644

drivers/pci/Makefile obj-$(CONFIG_PCI_SYSCALL) += syscall.o · line 68

Quoted 7 lines
drivers/pci/Makefile +1 -3
@@ -65,6 +65,4 @@ obj-$(CONFIG_PCI_SYSCALL) += syscall.o
 
 obj-$(CONFIG_PCI_STUB) += pci-stub.o
 
-ifeq ($(CONFIG_PCI_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG

Applied, thanks.

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
#30 lore raw

Re: [PATCH 15/24] net: change to new flag variable

In reply to matt mooney
Quoted 6 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/net/wireless/hostap/hostap_config.h |    4 ++--
 drivers/net/wireless/zd1211rw/Makefile      |    4 +---

ACK for these bits...

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
maintainer Acked-by on v1 13/24
#32 lore raw

Re: [PATCH 13/24] misc: change to new flag variable

In reply to matt mooney
Quoted 13 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/misc/cb710/Makefile   |    4 +---
 drivers/misc/sgi-gru/Makefile |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
drivers/misc/cb710/Makefile +0 -0
index 7b80cbf..467c8e9 100644

drivers/misc/cb710/Makefile line 4

Quoted 7 lines
drivers/misc/cb710/Makefile +1 -3
@@ -1,6 +1,4 @@
-ifeq ($(CONFIG_CB710_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
+ccflags-$(CONFIG_CB710_DEBUG)	:= -DDEBUG
 
 obj-$(CONFIG_CB710_CORE)	+= cb710.o
 

In case you need it:

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#33 lore raw

Re: [PATCH 13/24] misc: change to new flag variable

Quoted 19 lines · Michał Mirosław
Quoted 18 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/misc/cb710/Makefile   |    4 +---
 drivers/misc/sgi-gru/Makefile |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
drivers/misc/cb710/Makefile +1 -3
index 7b80cbf..467c8e9 100644
@@ -1,6 +1,4 @@
-ifeq ($(CONFIG_CB710_DEBUG),y)
-	EXTRA_CFLAGS		+= -DDEBUG
-endif
+ccflags-$(CONFIG_CB710_DEBUG)	:= -DDEBUG
 
Quoted 6 lines

drivers/misc/cb710/Makefile line 4

Quoted 2 lines
drivers/misc/cb710/Makefile +0 -0
 obj-$(CONFIG_CB710_CORE)	+= cb710.o
 

In case you need it:

Always helps!

Thanks,
mfm

#37 lore raw

Re: [PATCH 05/24] i2c: change to new flag variable

In reply to matt mooney
Quoted 51 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/i2c/Makefile        |    4 +---
 drivers/i2c/algos/Makefile  |    4 +---
 drivers/i2c/busses/Makefile |    4 +---
 drivers/i2c/muxes/Makefile  |    4 +---
 4 files changed, 4 insertions(+), 12 deletions(-)
drivers/i2c/Makefile +1 -3
index c00fd66..23ac61e 100644
@@ -9,6 +9,4 @@ obj-$(CONFIG_I2C_CHARDEV)	+= i2c-dev.o
 obj-$(CONFIG_I2C_MUX)		+= i2c-mux.o
 obj-y				+= algos/ busses/ muxes/
 
-ifeq ($(CONFIG_I2C_DEBUG_CORE),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
drivers/i2c/algos/Makefile +1 -3
index 18b3e96..215303f 100644
@@ -6,6 +6,4 @@ obj-$(CONFIG_I2C_ALGOBIT)	+= i2c-algo-bit.o
 obj-$(CONFIG_I2C_ALGOPCF)	+= i2c-algo-pcf.o
 obj-$(CONFIG_I2C_ALGOPCA)	+= i2c-algo-pca.o
 
-ifeq ($(CONFIG_I2C_DEBUG_ALGO),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_ALGO) := -DDEBUG
drivers/i2c/busses/Makefile +1 -3
index c3ef492..033ad41 100644
@@ -76,6 +76,4 @@ obj-$(CONFIG_I2C_STUB)		+= i2c-stub.o
 obj-$(CONFIG_SCx200_ACB)	+= scx200_acb.o
 obj-$(CONFIG_SCx200_I2C)	+= scx200_i2c.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG
drivers/i2c/muxes/Makefile +0 -0
index bd83b52..6f49786 100644

drivers/i2c/muxes/Makefile line 6

Quoted 7 lines
drivers/i2c/muxes/Makefile +1 -3
@@ -3,6 +3,4 @@
 
 obj-$(CONFIG_I2C_MUX_PCA954x)	+= pca954x.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG

If this is the way the whole kernel is going, I have no objection.

Signature · 1 line
Jean Delvare
#38 lore raw

Re: [PATCH 05/24] i2c: change to new flag variable

Quoted 53 lines · Jean Delvare
Quoted 52 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/i2c/Makefile        |    4 +---
 drivers/i2c/algos/Makefile  |    4 +---
 drivers/i2c/busses/Makefile |    4 +---
 drivers/i2c/muxes/Makefile  |    4 +---
 4 files changed, 4 insertions(+), 12 deletions(-)
drivers/i2c/Makefile +1 -3
index c00fd66..23ac61e 100644
@@ -9,6 +9,4 @@ obj-$(CONFIG_I2C_CHARDEV)	+= i2c-dev.o
 obj-$(CONFIG_I2C_MUX)		+= i2c-mux.o
 obj-y				+= algos/ busses/ muxes/
 
-ifeq ($(CONFIG_I2C_DEBUG_CORE),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
drivers/i2c/algos/Makefile +1 -3
index 18b3e96..215303f 100644
@@ -6,6 +6,4 @@ obj-$(CONFIG_I2C_ALGOBIT)	+= i2c-algo-bit.o
 obj-$(CONFIG_I2C_ALGOPCF)	+= i2c-algo-pcf.o
 obj-$(CONFIG_I2C_ALGOPCA)	+= i2c-algo-pca.o
 
-ifeq ($(CONFIG_I2C_DEBUG_ALGO),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_ALGO) := -DDEBUG
drivers/i2c/busses/Makefile +1 -3
index c3ef492..033ad41 100644
@@ -76,6 +76,4 @@ obj-$(CONFIG_I2C_STUB)		+= i2c-stub.o
 obj-$(CONFIG_SCx200_ACB)	+= scx200_acb.o
 obj-$(CONFIG_SCx200_I2C)	+= scx200_i2c.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG
drivers/i2c/muxes/Makefile +0 -0
index bd83b52..6f49786 100644
@@ -3,6 +3,4 @@
 
Quoted 8 lines

drivers/i2c/muxes/Makefile line 6

Quoted 6 lines
drivers/i2c/muxes/Makefile +1 -3
 obj-$(CONFIG_I2C_MUX_PCA954x)	+= pca954x.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG

If this is the way the whole kernel is going, I have no objection.

Sam had implemented these newer style flag variables a while back as an eloquent way of handling conditional flags. A lot of newer (and some older) modules and subsystems were using them already, so to provide uniformity and for an eventual removal of the deprecated flags, I converted all remaining instances to the newer style. (IMHO, I think it flows better with the way the rest of the build system works.)

-mfm

#39 lore raw

Re: [PATCH 05/24] i2c: change to new flag variable

Quoted 63 lines · matt mooney
Quoted 53 lines · Jean Delvare
Quoted 52 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/i2c/Makefile        |    4 +---
 drivers/i2c/algos/Makefile  |    4 +---
 drivers/i2c/busses/Makefile |    4 +---
 drivers/i2c/muxes/Makefile  |    4 +---
 4 files changed, 4 insertions(+), 12 deletions(-)
drivers/i2c/Makefile +1 -3
index c00fd66..23ac61e 100644
@@ -9,6 +9,4 @@ obj-$(CONFIG_I2C_CHARDEV)	+= i2c-dev.o
 obj-$(CONFIG_I2C_MUX)		+= i2c-mux.o
 obj-y				+= algos/ busses/ muxes/
 
-ifeq ($(CONFIG_I2C_DEBUG_CORE),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
drivers/i2c/algos/Makefile +1 -3
index 18b3e96..215303f 100644
@@ -6,6 +6,4 @@ obj-$(CONFIG_I2C_ALGOBIT)	+= i2c-algo-bit.o
 obj-$(CONFIG_I2C_ALGOPCF)	+= i2c-algo-pcf.o
 obj-$(CONFIG_I2C_ALGOPCA)	+= i2c-algo-pca.o
 
-ifeq ($(CONFIG_I2C_DEBUG_ALGO),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_ALGO) := -DDEBUG
drivers/i2c/busses/Makefile +1 -3
index c3ef492..033ad41 100644
@@ -76,6 +76,4 @@ obj-$(CONFIG_I2C_STUB)		+= i2c-stub.o
 obj-$(CONFIG_SCx200_ACB)	+= scx200_acb.o
 obj-$(CONFIG_SCx200_I2C)	+= scx200_i2c.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG
drivers/i2c/muxes/Makefile +0 -0
index bd83b52..6f49786 100644
@@ -3,6 +3,4 @@
 
Quoted 8 lines

drivers/i2c/muxes/Makefile line 6

Quoted 6 lines
drivers/i2c/muxes/Makefile +1 -3
 obj-$(CONFIG_I2C_MUX_PCA954x)	+= pca954x.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG

If this is the way the whole kernel is going, I have no objection.

Quoted 6 lines

Sam had implemented these newer style flag variables a while back as an eloquent way of handling conditional flags. A lot of newer (and some older) modules and subsystems were using them already, so to provide uniformity and for an eventual removal of the deprecated flags, I converted all remaining instances to the newer style. (IMHO, I think it flows better with the way the rest of the build system works.)

Fine with me. What's the planned merge path for this patch? Will you push all the patches upstream yourself, or do you expect me to pick this one?

Signature · 1 line
Jean Delvare
#40 lore raw

Re: [PATCH 05/24] i2c: change to new flag variable

Quoted 71 lines · Jean Delvare
Quoted 63 lines · matt mooney
Quoted 53 lines · Jean Delvare
Quoted 52 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/i2c/Makefile        |    4 +---
 drivers/i2c/algos/Makefile  |    4 +---
 drivers/i2c/busses/Makefile |    4 +---
 drivers/i2c/muxes/Makefile  |    4 +---
 4 files changed, 4 insertions(+), 12 deletions(-)
drivers/i2c/Makefile +1 -3
index c00fd66..23ac61e 100644
@@ -9,6 +9,4 @@ obj-$(CONFIG_I2C_CHARDEV)	+= i2c-dev.o
 obj-$(CONFIG_I2C_MUX)		+= i2c-mux.o
 obj-y				+= algos/ busses/ muxes/
 
-ifeq ($(CONFIG_I2C_DEBUG_CORE),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
drivers/i2c/algos/Makefile +1 -3
index 18b3e96..215303f 100644
@@ -6,6 +6,4 @@ obj-$(CONFIG_I2C_ALGOBIT)	+= i2c-algo-bit.o
 obj-$(CONFIG_I2C_ALGOPCF)	+= i2c-algo-pcf.o
 obj-$(CONFIG_I2C_ALGOPCA)	+= i2c-algo-pca.o
 
-ifeq ($(CONFIG_I2C_DEBUG_ALGO),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_ALGO) := -DDEBUG
drivers/i2c/busses/Makefile +1 -3
index c3ef492..033ad41 100644
@@ -76,6 +76,4 @@ obj-$(CONFIG_I2C_STUB)		+= i2c-stub.o
 obj-$(CONFIG_SCx200_ACB)	+= scx200_acb.o
 obj-$(CONFIG_SCx200_I2C)	+= scx200_i2c.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG
drivers/i2c/muxes/Makefile +0 -0
index bd83b52..6f49786 100644
@@ -3,6 +3,4 @@
 
Quoted 8 lines

drivers/i2c/muxes/Makefile line 6

Quoted 6 lines
drivers/i2c/muxes/Makefile +1 -3
 obj-$(CONFIG_I2C_MUX_PCA954x)	+= pca954x.o
 
-ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG

If this is the way the whole kernel is going, I have no objection.

Quoted 6 lines

Sam had implemented these newer style flag variables a while back as an eloquent way of handling conditional flags. A lot of newer (and some older) modules and subsystems were using them already, so to provide uniformity and for an eventual removal of the deprecated flags, I converted all remaining instances to the newer style. (IMHO, I think it flows better with the way the rest of the build system works.)

Quoted 3 lines

Fine with me. What's the planned merge path for this patch? Will you push all the patches upstream yourself, or do you expect me to pick this one?

I was hoping subsystem maintainers would pick them up, but a lot of the patches have been acked without being applied. My new plan is to have the unapplied ones go through the kbuild tree. So you can either pick it up or just ack it.

Thanks,
mfm

#41 lore raw

Re: [PATCH 05/24] i2c: change to new flag variable

Quoted 9 lines · matt mooney
Quoted 8 lines · Jean Delvare
Quoted 6 lines · matt mooney

Sam had implemented these newer style flag variables a while back as an eloquent way of handling conditional flags. A lot of newer (and some older) modules and subsystems were using them already, so to provide uniformity and for an eventual removal of the deprecated flags, I converted all remaining instances to the newer style. (IMHO, I think it flows better with the way the rest of the build system works.)

Quoted 7 lines
Quoted 3 lines

Fine with me. What's the planned merge path for this patch? Will you push all the patches upstream yourself, or do you expect me to pick this one?

I was hoping subsystem maintainers would pick them up, but a lot of the patches have been acked without being applied. My new plan is to have the unapplied ones go through the kbuild tree. So you can either pick it up or just ack it.

I've picked the patch, it's now in my i2c tree, scheduled for merge in 2.6.37.

Signature · 1 line
Jean Delvare
#43 lore raw

Re: [PATCH 04/24] hwmon: change to new flag variable

In reply to matt mooney
Quoted 12 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/hwmon/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/hwmon/Makefile +0 -0
index e3c2484..764b4db 100644

drivers/hwmon/Makefile obj-$(CONFIG_SENSORS_W83L786NG) += w83l786ng.o · line 112

Quoted 7 lines
drivers/hwmon/Makefile +1 -3
@@ -109,7 +109,5 @@ obj-$(CONFIG_SENSORS_W83L786NG)	+= w83l786ng.o
 obj-$(CONFIG_SENSORS_WM831X)	+= wm831x-hwmon.o
 obj-$(CONFIG_SENSORS_WM8350)	+= wm8350-hwmon.o
 
-ifeq ($(CONFIG_HWMON_DEBUG_CHIP),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_HWMON_DEBUG_CHIP) := -DDEBUG

Was this series intended as := rather than += as it seems that overriding the entirely of a passed-in ccflags-y may not be what we wanted to do.

#44 lore raw

Re: [PATCH 04/24] hwmon: change to new flag variable

Quoted 16 lines · On 11:04 Mon 27 Sep , [email protected] wrote:
Quoted 15 lines · matt mooney

Replace EXTRA_CFLAGS with ccflags-y.

---
 drivers/hwmon/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/hwmon/Makefile +0 -0
index e3c2484..764b4db 100644
@@ -109,7 +109,5 @@ obj-$(CONFIG_SENSORS_W83L786NG)	+= w83l786ng.o
 obj-$(CONFIG_SENSORS_WM831X)	+= wm831x-hwmon.o
 obj-$(CONFIG_SENSORS_WM8350)	+= wm8350-hwmon.o
 
Quoted 8 lines

drivers/hwmon/Makefile obj-$(CONFIG_SENSORS_W83L786NG) += w83l786ng.o · line 112

Quoted 4 lines
drivers/hwmon/Makefile +1 -3
-ifeq ($(CONFIG_HWMON_DEBUG_CHIP),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_HWMON_DEBUG_CHIP) := -DDEBUG

Was this series intended as := rather than += as it seems that overriding the entirely of a passed-in ccflags-y may not be what we wanted to do.

That is exactly why I changed += to :=. ccflags-y (and the older EXTRA_CFLAGS) is a per directory variable that only has effect on the current directory, so there is no passing in of ccflags-y.

-mfm