diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2018-07-02 23:04:03 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2019-03-18 17:39:38 +0100 |
commit | d32b7ebf20217f5053aaf0597cc1a7dcf86fc2a5 (patch) | |
tree | b61769e4756a3500a7ccc1fe9399b7de0af4d47c /minuitwrp/Android.mk | |
parent | AB/Non AB Devices: updates for moving cache (diff) | |
download | android_bootable_recovery-d32b7ebf20217f5053aaf0597cc1a7dcf86fc2a5.tar android_bootable_recovery-d32b7ebf20217f5053aaf0597cc1a7dcf86fc2a5.tar.gz android_bootable_recovery-d32b7ebf20217f5053aaf0597cc1a7dcf86fc2a5.tar.bz2 android_bootable_recovery-d32b7ebf20217f5053aaf0597cc1a7dcf86fc2a5.tar.lz android_bootable_recovery-d32b7ebf20217f5053aaf0597cc1a7dcf86fc2a5.tar.xz android_bootable_recovery-d32b7ebf20217f5053aaf0597cc1a7dcf86fc2a5.tar.zst android_bootable_recovery-d32b7ebf20217f5053aaf0597cc1a7dcf86fc2a5.zip |
Diffstat (limited to 'minuitwrp/Android.mk')
-rw-r--r-- | minuitwrp/Android.mk | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk index 0f8aae6d3..58634e34e 100644 --- a/minuitwrp/Android.mk +++ b/minuitwrp/Android.mk @@ -145,8 +145,18 @@ ifeq ($(TW_FBIOPAN), true) LOCAL_CFLAGS += -DTW_FBIOPAN endif -ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true) -LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN +ifneq ($(TW_ROTATION),) + ifeq (,$(filter 0 90 180 270, $(TW_ROTATION))) + $(error TW_ROTATION must be set to 0, 90, 180 or 270. Currently set to $(TW_ROTATION)) + endif + LOCAL_CFLAGS += -DTW_ROTATION=$(TW_ROTATION) +else + # Support for old flag + ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true) + LOCAL_CFLAGS += -DTW_ROTATION=180 + else + LOCAL_CFLAGS += -DTW_ROTATION=0 + endif endif ifeq ($(TW_IGNORE_MAJOR_AXIS_0), true) |