Introduce conditional for building

Only build this project when FP2_USE_APPOPS_SU is set to true when
building as userdebug. This mechanism allows for replacing of the
standard su binary with the one in this project, to allow for superuser
access by applications.

Issue: FP2P-458
Change-Id: Ia06dde5ceba1ca0afb651a60828e34714e0a1d5b
diff --git a/Android.mk b/Android.mk
index 86b5f70..88b3145 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,11 +1,13 @@
 # Root AOSP source makefile
 # su is built here, and 
+ifeq ($(FP2_USE_APPOPS_SU), true)
+
 LOCAL_PATH := $(call my-dir)
 
 include $(CLEAR_VARS)
 
 LOCAL_MODULE := su
-LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_TAGS := debug
 LOCAL_SHARED_LIBRARIES := \
     libbinder \
     libcutils \
@@ -33,3 +35,4 @@
 ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
     $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
 
+endif