summaryrefslogtreecommitdiff
path: root/drivers/edp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edp/Makefile')
-rw-r--r--drivers/edp/Makefile27
1 files changed, 17 insertions, 10 deletions
diff --git a/drivers/edp/Makefile b/drivers/edp/Makefile
index a3799cb07293..c4aa90c234c1 100644
--- a/drivers/edp/Makefile
+++ b/drivers/edp/Makefile
@@ -1,12 +1,19 @@
GCOV_PROFILE := y
-obj-y += edp.o
-obj-y += edp_bestfit.o
-obj-$(CONFIG_DEBUG_FS) += edp_debug.o
-obj-y += edp_fair.o
-obj-y += edp_overage.o
-obj-y += edp_priority.o
-obj-y += edp_temporal.o
-obj-y += edp_sysfs.o
-obj-y += psy_depletion.o
-obj-y += tegra_core.o
+obj-$(CONFIG_EDP_FRAMEWORK) += edp.o
+obj-$(CONFIG_EDP_FRAMEWORK) += edp_bestfit.o
+obj-$(CONFIG_EDP_FRAMEWORK) += edp_fair.o
+obj-$(CONFIG_EDP_FRAMEWORK) += edp_overage.o
+obj-$(CONFIG_EDP_FRAMEWORK) += edp_priority.o
+obj-$(CONFIG_EDP_FRAMEWORK) += edp_temporal.o
+obj-$(CONFIG_EDP_FRAMEWORK) += edp_sysfs.o
+obj-$(CONFIG_EDP_FRAMEWORK) += psy_depletion.o
+obj-$(CONFIG_EDP_FRAMEWORK) += tegra_core.o
+obj-$(CONFIG_SYSEDP_FRAMEWORK) += sysedp.o
+obj-$(CONFIG_SYSEDP_FRAMEWORK) += sysedp_sysfs.o
+obj-$(CONFIG_SYSEDP_FRAMEWORK) += sysedp_dynamic_capping.o
+obj-$(CONFIG_SYSEDP_FRAMEWORK) += sysedp_batmon_calc.o
+ifdef CONFIG_DEBUG_FS
+obj-$(CONFIG_EDP_FRAMEWORK) += edp_debug.o
+obj-$(CONFIG_SYSEDP_FRAMEWORK) += sysedp_debug.o
+endif \ No newline at end of file