summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2014-11-10 13:02:22 -0800
committeralk3pInjection <webmaster@raspii.tech>2022-09-05 22:00:03 +0800
commit0001d58a6dd6ed0faa2c42f1841a498174f4abc8 (patch)
tree61b24aac4479984f3d7672674fe09d1403538082
parent4d66de067e63ac6cc7f3d2014185b92e36ed1ae9 (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 e8cab371..31f3c034 100644
--- a/Android.mk
+++ b/Android.mk
@@ -3,12 +3,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