blob: 7216775d5d008c2bb1afa8317c20e678fbc392aa [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
Ethan Yonkerbcc502c2014-11-10 11:22:10 -06006LOCAL_STATIC_LIBRARY := libcrecovery
Dees_Troy51a0e822012-09-05 15:24:24 -04007
8$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \
9 $(if $($(board_define)), \
10 $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \
11 ) \
12 )
13
Dees_Troy51a0e822012-09-05 15:24:24 -040014LOCAL_SRC_FILES := bmlutils.c
15LOCAL_MODULE := libbmlutils
16LOCAL_MODULE_TAGS := eng
17include $(BUILD_STATIC_LIBRARY)
18
19#Added for building TWRP dynamic:
20include $(CLEAR_VARS)
21
22BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY
Ethan Yonkerbcc502c2014-11-10 11:22:10 -060023LOCAL_SHARED_LIBRARIES := libcrecovery
Dees_Troy51a0e822012-09-05 15:24:24 -040024
25$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \
26 $(if $($(board_define)), \
27 $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \
28 ) \
29 )
30
31LOCAL_SRC_FILES := bmlutils.c
32LOCAL_MODULE := libbmlutils
33LOCAL_MODULE_TAGS := eng
34include $(BUILD_SHARED_LIBRARY)