diff options
Diffstat (limited to 'drivers/power/Makefile')
-rw-r--r-- | drivers/power/Makefile | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/power/Makefile b/drivers/power/Makefile index 10143aaf4ee3..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 | ||
@@ -29,6 +21,7 @@ obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o | |||
29 | obj-$(CONFIG_BATTERY_TOSA) += tosa_battery.o | 21 | obj-$(CONFIG_BATTERY_TOSA) += tosa_battery.o |
30 | obj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o | 22 | obj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o |
31 | obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o | 23 | obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o |
24 | obj-$(CONFIG_BATTERY_BQ20Z75) += bq20z75.o | ||
32 | obj-$(CONFIG_BATTERY_BQ27x00) += bq27x00_battery.o | 25 | obj-$(CONFIG_BATTERY_BQ27x00) += bq27x00_battery.o |
33 | obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o | 26 | obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o |
34 | obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o | 27 | obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o |
@@ -37,3 +30,5 @@ obj-$(CONFIG_BATTERY_S3C_ADC) += s3c_adc_battery.o | |||
37 | obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o | 30 | obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o |
38 | obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o | 31 | obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o |
39 | obj-$(CONFIG_BATTERY_INTEL_MID) += intel_mid_battery.o | 32 | obj-$(CONFIG_BATTERY_INTEL_MID) += intel_mid_battery.o |
33 | obj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o | ||
34 | obj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o | ||