summaryrefslogtreecommitdiffstats
path: root/orscmd/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 /orscmd/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 '')
-rw-r--r--orscmd/Android.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/orscmd/Android.mk b/orscmd/Android.mk
index 9f18c16a7..b132d7360 100644
--- a/orscmd/Android.mk
+++ b/orscmd/Android.mk
@@ -1,10 +1,16 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
+ifneq ($(TW_DEVICE_VERSION),)
+ LOCAL_CFLAGS += -DTW_DEVICE_VERSION='"-$(TW_DEVICE_VERSION)"'
+else
+ LOCAL_CFLAGS += -DTW_DEVICE_VERSION='"-0"'
+endif
+
LOCAL_SRC_FILES:= \
orscmd.cpp
-LOCAL_CFLAGS:= -c -W
-LOCAL_MODULE:=orscmd
+LOCAL_CFLAGS += -c -W
+LOCAL_MODULE := orscmd
LOCAL_MODULE_STEM := twrp
LOCAL_MODULE_TAGS:= eng
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES