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 |
| 6 | |
| 7 | $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ |
| 8 | $(if $($(board_define)), \ |
| 9 | $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ |
| 10 | ) \ |
| 11 | ) |
| 12 | |
| 13 | LOCAL_STATIC_LIBRARIES := libcrecovery |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 14 | LOCAL_C_INCLUDES := $(commands_recovery_local_path)/libcrecovery |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 15 | |
| 16 | LOCAL_SRC_FILES := bmlutils.c |
| 17 | LOCAL_MODULE := libbmlutils |
| 18 | LOCAL_MODULE_TAGS := eng |
| 19 | include $(BUILD_STATIC_LIBRARY) |
| 20 | |
| 21 | #Added for building TWRP dynamic: |
| 22 | include $(CLEAR_VARS) |
| 23 | |
| 24 | BOARD_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 | |
| 32 | LOCAL_SRC_FILES := bmlutils.c |
| 33 | LOCAL_MODULE := libbmlutils |
| 34 | LOCAL_MODULE_TAGS := eng |
| 35 | include $(BUILD_SHARED_LIBRARY) |