blob: 7c6676b38ba66c09a6bdeffab4eac2d2b8fe30d6 [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
Matt Mower55c75ca2014-08-31 11:30:15 -050014LOCAL_C_INCLUDES := $(commands_recovery_local_path)/libcrecovery
Dees_Troy51a0e822012-09-05 15:24:24 -040015
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)