Power: Porting powerhal support
Porting powerhal support to Android Q products Change-Id: If1f1f0fed9f4138c807add639690ded090d44853
This commit is contained in:
17
Android.mk
17
Android.mk
@@ -71,6 +71,12 @@ ifeq ($(call is-board-platform-in-list,qcs605), true)
|
||||
LOCAL_SRC_FILES += power-710.c
|
||||
endif
|
||||
|
||||
ifeq ($(call is-board-platform-in-list,trinket), true)
|
||||
LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2
|
||||
LOCAL_SRC_FILES := power.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c
|
||||
LOCAL_SRC_FILES += power-6125.c
|
||||
endif
|
||||
|
||||
ifeq ($(call is-board-platform-in-list,msmnile), true)
|
||||
LOCAL_SRC_FILES += power-msmnile.c
|
||||
endif
|
||||
@@ -79,11 +85,22 @@ ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
|
||||
LOCAL_CFLAGS += -DINTERACTION_BOOST
|
||||
endif
|
||||
|
||||
ifeq ($(call is-board-platform-in-list,trinket), true)
|
||||
LOCAL_MODULE := power.qcom
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
endif
|
||||
|
||||
ifeq ($(call is-board-platform-in-list,trinket), false)
|
||||
LOCAL_MODULE := android.hardware.power@1.2-service
|
||||
LOCAL_INIT_RC := android.hardware.power@1.2-service.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_EXECUTABLE)
|
||||
endif
|
||||
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user