* [PATCH] power: makefile cleanup
@ 2010-10-06 7:46 matt mooney
2010-10-06 13:45 ` Anton Vorontsov
0 siblings, 1 reply; 2+ messages in thread
From: matt mooney @ 2010-10-06 7:46 UTC (permalink / raw)
To: Anton Vorontsov
Cc: David Woodhouse, linux-kernel, linux-kbuild, kernel-janitors
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>
---
drivers/power/Makefile | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/drivers/power/Makefile b/drivers/power/Makefile
index 10143aa..430243e 100644
--- a/drivers/power/Makefile
+++ b/drivers/power/Makefile
@@ -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
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] power: makefile cleanup
2010-10-06 7:46 [PATCH] power: makefile cleanup matt mooney
@ 2010-10-06 13:45 ` Anton Vorontsov
0 siblings, 0 replies; 2+ messages in thread
From: Anton Vorontsov @ 2010-10-06 13:45 UTC (permalink / raw)
To: matt mooney; +Cc: David Woodhouse, linux-kernel, linux-kbuild, kernel-janitors
On Wed, Oct 06, 2010 at 12:46:27AM -0700, matt mooney wrote:
> 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>
> ---
Applied, thanks!
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-06 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-06 7:46 [PATCH] power: makefile cleanup matt mooney
2010-10-06 13:45 ` Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox