diff options
author | matt mooney <mfm@muteddisk.com> | 2010-10-06 03:46:27 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-10-06 09:38:42 -0400 |
commit | 57894517139b283a3cf27e36b29b4b4d7c45b303 (patch) | |
tree | e37822fb8ccbd65c6c42dc46ec08d61fcc5849ca /drivers/power/Makefile | |
parent | 9292585c67ddd76285f2610c0cbf6b61fe27f5db (diff) |
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>
Diffstat (limited to 'drivers/power/Makefile')
-rw-r--r-- | drivers/power/Makefile | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/power/Makefile b/drivers/power/Makefile index 695e54fdbcdb..c75772eb157c 100644 --- a/drivers/power/Makefile +++ b/drivers/power/Makefile | |||
@@ -1,16 +1,8 @@ | |||
1 | power_supply-objs := power_supply_core.o | 1 | ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG |
2 | 2 | ||
3 | ifeq ($(CONFIG_SYSFS),y) | 3 | power_supply-y := power_supply_core.o |
4 | power_supply-objs += power_supply_sysfs.o | 4 | power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o |
5 | endif | 5 | power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o |
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 | ||
14 | 6 | ||
15 | obj-$(CONFIG_POWER_SUPPLY) += power_supply.o | 7 | obj-$(CONFIG_POWER_SUPPLY) += power_supply.o |
16 | 8 | ||