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
diff --git a/Android.mk b/Android.mk
index 9fe5f27..e9a196a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -144,7 +144,7 @@
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),)