From 00c2198963a94ae8ea63d1c7b24837ffeb58378d Mon Sep 17 00:00:00 2001 From: Vineeth Pillai Date: Thu, 2 Jan 2020 12:34:27 -0500 Subject: 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. --- minuitwrp/Android.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk index 2ca2091e1..9f5649357 100644 --- a/minuitwrp/Android.mk +++ b/minuitwrp/Android.mk @@ -145,6 +145,24 @@ endif ifeq ($(TW_SCREEN_BLANK_ON_BOOT), true) LOCAL_CFLAGS += -DTW_SCREEN_BLANK_ON_BOOT endif +ifeq ($(TW_NO_SCREEN_BLANK), true) + LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK +endif +ifneq ($(TW_BRIGHTNESS_PATH),) + LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\" +endif +ifneq ($(TW_SECONDARY_BRIGHTNESS_PATH),) + LOCAL_CFLAGS += -DTW_SECONDARY_BRIGHTNESS_PATH=\"$(TW_SECONDARY_BRIGHTNESS_PATH)\" +endif +ifneq ($(TW_MAX_BRIGHTNESS),) + LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) +else + LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255 +endif +ifneq ($(TW_DEFAULT_BRIGHTNESS),) + LOCAL_CFLAGS += -DTW_DEFAULT_BRIGHTNESS=\"$(TW_DEFAULT_BRIGHTNESS)\" +endif + ifeq ($(TW_FBIOPAN), true) LOCAL_CFLAGS += -DTW_FBIOPAN endif -- cgit v1.2.3