summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2014-11-10 13:02:22 -0800
committerArian <arian.kulmer@web.de>2021-11-30 18:32:03 +0100
commitd10bc9bac3823879f5332d27f817b58099fcd91e (patch)
tree6801ca0ff9d84ec65634b9ab693f427ec00ddf8b
parent41b5d296bbe887277947f3910b92710c633a5f2a (diff)
Don't build lights module if vendor supplies it
Change-Id: I63589281961e1120e7536798df6d78b8a7af4304
-rw-r--r--Android.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index e6099335..0b7047a2 100644
--- a/Android.mk
+++ b/Android.mk
@@ -5,12 +5,16 @@ sdm-libs := sdm/libs
display-hals := include $(sdm-libs)/utils $(sdm-libs)/core libdebug
ifneq ($(TARGET_IS_HEADLESS), true)
- display-hals += libcopybit liblight libmemtrack hdmi_cec \
+ display-hals += libcopybit libmemtrack hdmi_cec \
$(sdm-libs)/hwc2 gpu_tonemapper libdrmutils
endif
display-hals += gralloc
+ifneq ($(TARGET_PROVIDES_LIBLIGHT),true)
+ display-hals += liblight
+endif
+
ifeq ($(call is-vendor-board-platform,QCOM),true)
include $(call all-named-subdir-makefiles,$(display-hals))
else