From: matt mooney Date: Wed, 6 Oct 2010 07:46:27 +0000 (-0700) Subject: power_supply: Makefile cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=57894517139b283a3cf27e36b29b4b4d7c45b303;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Anton Vorontsov --- 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 @@ -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