Skip to content

Commit 00c2198

Browse files
committed
minuitwrp: Include some missing variables related to screen blanking
We need these variables to enable blanking on devices which do not support ioctl. The code depends on these variables, but we are not exporting it.
1 parent 72d75b0 commit 00c2198

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

minuitwrp/Android.mk

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,24 @@ endif
145145
ifeq ($(TW_SCREEN_BLANK_ON_BOOT), true)
146146
LOCAL_CFLAGS += -DTW_SCREEN_BLANK_ON_BOOT
147147
endif
148+
ifeq ($(TW_NO_SCREEN_BLANK), true)
149+
LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK
150+
endif
151+
ifneq ($(TW_BRIGHTNESS_PATH),)
152+
LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\"
153+
endif
154+
ifneq ($(TW_SECONDARY_BRIGHTNESS_PATH),)
155+
LOCAL_CFLAGS += -DTW_SECONDARY_BRIGHTNESS_PATH=\"$(TW_SECONDARY_BRIGHTNESS_PATH)\"
156+
endif
157+
ifneq ($(TW_MAX_BRIGHTNESS),)
158+
LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS)
159+
else
160+
LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255
161+
endif
162+
ifneq ($(TW_DEFAULT_BRIGHTNESS),)
163+
LOCAL_CFLAGS += -DTW_DEFAULT_BRIGHTNESS=\"$(TW_DEFAULT_BRIGHTNESS)\"
164+
endif
165+
148166
ifeq ($(TW_FBIOPAN), true)
149167
LOCAL_CFLAGS += -DTW_FBIOPAN
150168
endif

0 commit comments

Comments
 (0)