Skip to content

Commit

Permalink
net: can: use kbuild magic to inherit debug settings
Browse files Browse the repository at this point in the history
No need to manually copy debug settings into subdir Makefiles. kbuild
has a mechanism for inheriting, so let's use it.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Wolfram Sang authored and Marc Kleine-Budde committed Aug 17, 2014
1 parent c9d2642 commit 4ade6fe
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion drivers/net/can/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ obj-$(CONFIG_CAN_GRCAN) += grcan.o
obj-$(CONFIG_CAN_RCAR) += rcar_can.o
obj-$(CONFIG_CAN_XILINXCAN) += xilinx_can.o

ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
2 changes: 0 additions & 2 deletions drivers/net/can/c_can/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
obj-$(CONFIG_CAN_C_CAN) += c_can.o
obj-$(CONFIG_CAN_C_CAN_PLATFORM) += c_can_platform.o
obj-$(CONFIG_CAN_C_CAN_PCI) += c_can_pci.o

ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
2 changes: 0 additions & 2 deletions drivers/net/can/cc770/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
obj-$(CONFIG_CAN_CC770) += cc770.o
obj-$(CONFIG_CAN_CC770_ISA) += cc770_isa.o
obj-$(CONFIG_CAN_CC770_PLATFORM) += cc770_platform.o

ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
2 changes: 0 additions & 2 deletions drivers/net/can/mscan/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

obj-$(CONFIG_CAN_MPC5XXX) += mscan-mpc5xxx.o
mscan-mpc5xxx-objs := mscan.o mpc5xxx_can.o

ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
2 changes: 0 additions & 2 deletions drivers/net/can/sja1000/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ obj-$(CONFIG_CAN_PEAK_PCMCIA) += peak_pcmcia.o
obj-$(CONFIG_CAN_PEAK_PCI) += peak_pci.o
obj-$(CONFIG_CAN_PLX_PCI) += plx_pci.o
obj-$(CONFIG_CAN_TSCAN1) += tscan1.o

ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
2 changes: 0 additions & 2 deletions drivers/net/can/softing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
softing-y := softing_main.o softing_fw.o
obj-$(CONFIG_CAN_SOFTING) += softing.o
obj-$(CONFIG_CAN_SOFTING_CS) += softing_cs.o

ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
2 changes: 0 additions & 2 deletions drivers/net/can/spi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@


obj-$(CONFIG_CAN_MCP251X) += mcp251x.o

ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG
2 changes: 0 additions & 2 deletions drivers/net/can/usb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ obj-$(CONFIG_CAN_GS_USB) += gs_usb.o
obj-$(CONFIG_CAN_KVASER_USB) += kvaser_usb.o
obj-$(CONFIG_CAN_PEAK_USB) += peak_usb/
obj-$(CONFIG_CAN_8DEV_USB) += usb_8dev.o

ccflags-$(CONFIG_CAN_DEBUG_DEVICES) := -DDEBUG

0 comments on commit 4ade6fe

Please sign in to comment.