Add USE flags to the Android.mk

To help conditionally building parts of update_engine based on
per-product settings, this patch ports the USE flags used in the gyp
to make variables in Android.mk

Change-Id: I4cf5295f812d87c251c32947f0ca6abcc7b10ad6
diff --git a/Android.mk b/Android.mk
index e99df8a..9804576 100644
--- a/Android.mk
+++ b/Android.mk
@@ -16,10 +16,15 @@
 
 LOCAL_PATH := $(my-dir)
 
+# Default values for the USE flags. Override these USE flags from your product.
+BRILLO_USE_HWID_OVERRIDE ?= 0
+BRILLO_USE_MTD ?= 0
+BRILLO_USE_POWER_MANAGEMENT ?= 0
+
 ue_common_cflags := \
-    -DUSE_HWID_OVERRIDE=0 \
-    -DUSE_MTD=0 \
-    -DUSE_POWER_MANAGEMENT=0 \
+    -DUSE_HWID_OVERRIDE=$(BRILLO_USE_HWID_OVERRIDE) \
+    -DUSE_MTD=$(BRILLO_USE_MTD) \
+    -DUSE_POWER_MANAGEMENT=$(BRILLO_USE_POWER_MANAGEMENT) \
     -D_FILE_OFFSET_BITS=64 \
     -D_POSIX_C_SOURCE=199309L \
     -Wa,--noexecstack \
diff --git a/update_engine.gyp b/update_engine.gyp
index 0749503..f00d620 100644
--- a/update_engine.gyp
+++ b/update_engine.gyp
@@ -23,6 +23,7 @@
       # Defaults if the -DUSE_* flags are not passed to gyp is 0. You can set
       # the default value for the USE flag in the ebuild.
       'USE_hwid_override%': '0',
+      'USE_mtd%': '0',
       'USE_power_management%': '0',
     },
     'cflags': [