summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2016-12-09 03:21:17 +0100
committerEthan Yonker <dees_troy@teamw.in>2017-01-18 16:44:17 +0100
commit584b977489aa559736963c4ca772c258fd323d8e (patch)
treeb5a3209693144f5e9c3c448e2bb90d2fdedd14cf /Android.mk
parentbuild: AOSP/CM14 fixes (API 24/25, mainly BusyBox-less environment) (diff)
downloadandroid_bootable_recovery-584b977489aa559736963c4ca772c258fd323d8e.tar
android_bootable_recovery-584b977489aa559736963c4ca772c258fd323d8e.tar.gz
android_bootable_recovery-584b977489aa559736963c4ca772c258fd323d8e.tar.bz2
android_bootable_recovery-584b977489aa559736963c4ca772c258fd323d8e.tar.lz
android_bootable_recovery-584b977489aa559736963c4ca772c258fd323d8e.tar.xz
android_bootable_recovery-584b977489aa559736963c4ca772c258fd323d8e.tar.zst
android_bootable_recovery-584b977489aa559736963c4ca772c258fd323d8e.zip
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index d456bfc46..80d708141 100644
--- a/Android.mk
+++ b/Android.mk
@@ -40,6 +40,12 @@ TWHTCD_PATH := $(TWRES_PATH)htcd/
TARGET_RECOVERY_GUI := true
+ifneq ($(TW_DEVICE_VERSION),)
+ LOCAL_CFLAGS += -DTW_DEVICE_VERSION='"-$(TW_DEVICE_VERSION)"'
+else
+ LOCAL_CFLAGS += -DTW_DEVICE_VERSION='"-0"'
+endif
+
LOCAL_SRC_FILES := \
twrp.cpp \
fixContexts.cpp \
@@ -164,7 +170,7 @@ endif # HAVE_SELINUX
ifeq ($(TWHAVE_SELINUX), true)
LOCAL_C_INCLUDES += external/libselinux/include
LOCAL_SHARED_LIBRARIES += libselinux
- LOCAL_CFLAGS += -DHAVE_SELINUX -g
+ LOCAL_CFLAGS += -DHAVE_SELINUX
ifneq ($(TARGET_USERIMAGES_USE_EXT4), true)
LOCAL_CFLAGS += -DUSE_EXT4
LOCAL_C_INCLUDES += system/extras/ext4_utils