Add a build target to build bssl for host.

Change-Id: I22c079a2486acc2aa68c4b99f026bbdcbea9d4ff
diff --git a/Android.mk b/Android.mk
index 66f6033..0315cfc 100644
--- a/Android.mk
+++ b/Android.mk
@@ -120,6 +120,23 @@
 include $(LOCAL_PATH)/ssl-sources.mk
 include $(BUILD_HOST_STATIC_LIBRARY)
 
+# Host static tool (for linux only).
+ifeq ($(HOST_OS), linux)
+include $(CLEAR_VARS)
+LOCAL_CFLAGS += -Wall -Werror -std=c++0x
+LOCAL_CPP_EXTENSION := cc
+LOCAL_MODULE := bssl
+LOCAL_MODULE_TAGS := optional
+LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/sources.mk
+LOCAL_CFLAGS = -Wno-unused-parameter
+LOCAL_SHARED_LIBRARIES=libcrypto-host libssl-host
+# Needed for clock_gettime.
+LOCAL_LDFLAGS := -lrt
+include $(LOCAL_PATH)/sources.mk
+LOCAL_SRC_FILES = $(tool_sources)
+include $(BUILD_HOST_EXECUTABLE)
+endif  # HOST_OS == linux
+
 # Host shared library
 include $(CLEAR_VARS)
 LOCAL_MODULE_TAGS := optional