blob: 9cbada0290eceeaac9e294604c23a1af82ecf846 [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
bigbiffd58ba182020-03-23 10:02:29 -040016LOCAL_MODULE_TAGS := optional
Dees_Troy51a0e822012-09-05 15:24:24 -040017include $(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
bigbiffd58ba182020-03-23 10:02:29 -040033LOCAL_MODULE_TAGS := optional
Dees_Troy51a0e822012-09-05 15:24:24 -040034include $(BUILD_SHARED_LIBRARY)