power: makefile cleanup
Subsystems (2)
PATCH 1/1 power: 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 <[email protected]>
--- drivers/power/Makefile | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-)
drivers/power/Makefile +4 -12
@@ -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
Signature · 1 line
1.7.2.3
Anton Vorontsov
AppliedQuoted 7 lines · matt mooney
Replace
EXTRA_CFLAGSwith ccflags-y; remove if-statements and replace with lists using the kbuild idiom.None of the dependencies are modified.
Signed-off-by matt mooney <[email protected]>---
Applied, thanks!
Signature · 3 lines
Anton Vorontsov email: [email protected] irc://irc.freenode.net/bd2