Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 6 | LOCAL_STATIC_LIBRARY := libcrecovery |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 7 | |
| 8 | $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ |
| 9 | $(if $($(board_define)), \ |
| 10 | $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ |
| 11 | ) \ |
| 12 | ) |
| 13 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 14 | LOCAL_SRC_FILES := bmlutils.c |
| 15 | LOCAL_MODULE := libbmlutils |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 16 | LOCAL_MODULE_TAGS := optional |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 17 | include $(BUILD_STATIC_LIBRARY) |
| 18 | |
| 19 | #Added for building TWRP dynamic: |
| 20 | include $(CLEAR_VARS) |
| 21 | |
| 22 | BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 23 | LOCAL_SHARED_LIBRARIES := libcrecovery |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 24 | |
| 25 | $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ |
| 26 | $(if $($(board_define)), \ |
| 27 | $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ |
| 28 | ) \ |
| 29 | ) |
| 30 | |
| 31 | LOCAL_SRC_FILES := bmlutils.c |
| 32 | LOCAL_MODULE := libbmlutils |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 33 | LOCAL_MODULE_TAGS := optional |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 34 | include $(BUILD_SHARED_LIBRARY) |