Zenfone6: Import bootctrl and gpt-utils
* From CAF LA.UM.7.1.r1-14100-sm8150.0.xml, modified to build with VNDK current
diff --git a/bootctrl/Android.mk b/bootctrl/Android.mk
new file mode 100644
index 0000000..8d0912e
--- /dev/null
+++ b/bootctrl/Android.mk
@@ -0,0 +1,11 @@
+LOCAL_PATH := $(call my-dir)
+
+# Static library for the target. Used by update_engine_sideload from recovery.
+include $(CLEAR_VARS)
+LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/gpt-utils/inc
+LOCAL_CFLAGS += -Wall -Werror
+LOCAL_SHARED_LIBRARIES += liblog libgptutils libcutils
+LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers
+LOCAL_SRC_FILES := boot_control.cpp
+LOCAL_MODULE := bootctrl.sm8150
+include $(BUILD_STATIC_LIBRARY)