Skip to content

Commit

Permalink
power_supply: Makefile cleanup
Browse files Browse the repository at this point in the history
Replace EXTRA_CFLAGS with ccflags-y; remove if-statements and replace
with lists using the kbuild idiom.

None of the dependencies are modified.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
  • Loading branch information
matt mooney authored and Anton Vorontsov committed Oct 6, 2010
1 parent 9292585 commit 5789451
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions drivers/power/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
power_supply-objs := power_supply_core.o
ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG

ifeq ($(CONFIG_SYSFS),y)
power_supply-objs += power_supply_sysfs.o
endif

ifeq ($(CONFIG_LEDS_TRIGGERS),y)
power_supply-objs += power_supply_leds.o
endif

ifeq ($(CONFIG_POWER_SUPPLY_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
power_supply-y := power_supply_core.o
power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o

obj-$(CONFIG_POWER_SUPPLY) += power_supply.o

Expand Down

0 comments on commit 5789451

Please sign in to comment.