Browse Source

recovery: Allow detecting user/release build at compile time

Change-Id: I78dcc049971483a3e9c600df69a7df9bab410bee
Tom Marshall 3 years ago
parent
commit
458a9e46dc
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Android.mk

+ 4
- 0
Android.mk View File

@@ -154,6 +154,10 @@ else
154 154
 LOCAL_CFLAGS += -DBACKLIGHT_PATH=\"/sys/class/leds/lcd-backlight\"
155 155
 endif
156 156
 
157
+ifeq ($(TARGET_BUILD_VARIANT),user)
158
+LOCAL_CFLAGS += -DRELEASE_BUILD
159
+endif
160
+
157 161
 LOCAL_C_INCLUDES += \
158 162
     system/vold \
159 163