Skip to content

Commit 5789451

Browse files
mfmooneyenomsg
authored andcommitted
power_supply: Makefile cleanup
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>
1 parent 9292585 commit 5789451

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

drivers/power/Makefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
power_supply-objs := power_supply_core.o
1+
ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
22

3-
ifeq ($(CONFIG_SYSFS),y)
4-
power_supply-objs += power_supply_sysfs.o
5-
endif
6-
7-
ifeq ($(CONFIG_LEDS_TRIGGERS),y)
8-
power_supply-objs += power_supply_leds.o
9-
endif
10-
11-
ifeq ($(CONFIG_POWER_SUPPLY_DEBUG),y)
12-
EXTRA_CFLAGS += -DDEBUG
13-
endif
3+
power_supply-y := power_supply_core.o
4+
power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
5+
power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
146

157
obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
168

0 commit comments

Comments
 (0)