LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
+# Host static library
+include $(CLEAR_VARS)
LOCAL_SRC_FILES := dtbimg.c
LOCAL_STATIC_LIBRARIES := libfdt
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/libdtbimg
-
LOCAL_MODULE := libdtbimg
-
include $(BUILD_HOST_STATIC_LIBRARY)
include $(CLEAR_VARS)
include $(BUILD_HOST_EXECUTABLE)
+# Target static library
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := dtbimg.c
+LOCAL_STATIC_LIBRARIES := libfdt
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/libdtbimg
+LOCAL_MODULE := libdtbimg
+include $(BUILD_STATIC_LIBRARY)
+
include $(CLEAR_VARS)
LOCAL_SRC_FILES := mkbootimg.c
LOCAL_STATIC_LIBRARIES := libdtbimg libfdt libcrypto_static libcutils libc