power: Allow device specific hooks for setMode, isModeSupported

* Some devices may want to implement custom hooks

Change-Id: Icb2d66471ec649a69b1e69849fd86282775052cb
This commit is contained in:
LuK1337
2020-10-01 14:13:46 +02:00
committed by Michael Bestas
parent a7fabc8b44
commit de33daea0c
2 changed files with 20 additions and 0 deletions

View File

@@ -83,6 +83,11 @@ endif
endif # End of board specific list
ifneq ($(TARGET_POWERHAL_MODE_EXT),)
LOCAL_CFLAGS += -DMODE_EXT
LOCAL_SRC_FILES += ../../../../$(TARGET_POWERHAL_MODE_EXT)
endif
ifneq ($(TARGET_POWERHAL_SET_INTERACTIVE_EXT),)
LOCAL_CFLAGS += -DSET_INTERACTIVE_EXT
LOCAL_SRC_FILES += ../../../../$(TARGET_POWERHAL_SET_INTERACTIVE_EXT)