From f42873edf04e4b4d32802b42c08d8bc866932c96 Mon Sep 17 00:00:00 2001 From: Arian Date: Fri, 10 Apr 2020 00:24:29 +0200 Subject: power: Add the custom set_feature lib as whole static library * When using LOCAL_STATIC_LIBRARIES linker removes functions that it considers as unused, which may result in removing the set_device_specific_feature void from the set_feature lib. * Work this around by adding the whole static library and by that skipping the removement of maybe unused functions. Change-Id: I9be9323b19c16e92f66ef5802e443a9484146ee9 --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index 9fe5f27..e9a196a 100644 --- a/Android.mk +++ b/Android.mk @@ -144,7 +144,7 @@ endif endif # End of board specific list ifneq ($(TARGET_POWER_SET_FEATURE_LIB),) - LOCAL_STATIC_LIBRARIES += $(TARGET_POWER_SET_FEATURE_LIB) + LOCAL_WHOLE_STATIC_LIBRARIES += $(TARGET_POWER_SET_FEATURE_LIB) endif ifneq ($(TARGET_POWERHAL_SET_INTERACTIVE_EXT),) -- cgit v1.2.3