blob: e20ce373d7e4025a2a50990652e46f4282160bc8 [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY
6
7$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \
8 $(if $($(board_define)), \
9 $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \
10 ) \
11 )
12
13LOCAL_STATIC_LIBRARIES := libcrecovery
14LOCAL_C_INCLUDES := bootable/recovery/libcrecovery
15
16LOCAL_SRC_FILES := bmlutils.c
17LOCAL_MODULE := libbmlutils
18LOCAL_MODULE_TAGS := eng
19include $(BUILD_STATIC_LIBRARY)
20
21#Added for building TWRP dynamic:
22include $(CLEAR_VARS)
23
24BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY
25
26$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \
27 $(if $($(board_define)), \
28 $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \
29 ) \
30 )
31
32LOCAL_SRC_FILES := bmlutils.c
33LOCAL_MODULE := libbmlutils
34LOCAL_MODULE_TAGS := eng
35include $(BUILD_SHARED_LIBRARY)