Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | ifneq ($(TARGET_SIMULATOR),true) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 2 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 3 | LOCAL_PATH := $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_SRC_FILES := \ |
| 7 | mtdutils.c \ |
Michael Bestas | 5f05255 | 2015-01-02 01:45:37 +0200 | [diff] [blame] | 8 | mounts.c |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 9 | |
Humberto Borba | f58d0ec | 2014-07-05 12:15:41 -0300 | [diff] [blame] | 10 | ifneq ($(filter rk30xx rk3188,$(TARGET_BOARD_PLATFORM)),) |
Kra1o5 | 3167936 | 2014-06-20 19:06:06 +0200 | [diff] [blame] | 11 | LOCAL_SRC_FILES += rk3xhack.c |
| 12 | LOCAL_CFLAGS += -DRK3X |
Sergey 'Jin' Bostandzhyan | 80a90ed | 2013-01-04 02:29:03 +0100 | [diff] [blame] | 13 | endif |
| 14 | |
Michael Bestas | 5f05255 | 2015-01-02 01:45:37 +0200 | [diff] [blame] | 15 | ifeq ($(TARGET_MTD_BY_NAME),true) |
| 16 | LOCAL_CFLAGS += -DBYNAME |
| 17 | endif |
| 18 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 19 | LOCAL_MODULE := libmtdutils |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 20 | LOCAL_STATIC_LIBRARIES := libcutils libc |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 21 | LOCAL_CLANG := true |
Sergey 'Jin' Bostandzhyan | 80a90ed | 2013-01-04 02:29:03 +0100 | [diff] [blame] | 22 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 23 | include $(BUILD_STATIC_LIBRARY) |
| 24 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 25 | include $(CLEAR_VARS) |
| 26 | |
| 27 | LOCAL_SRC_FILES := \ |
| 28 | mtdutils.c \ |
Michael Bestas | 5f05255 | 2015-01-02 01:45:37 +0200 | [diff] [blame] | 29 | mounts.c |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 30 | |
Humberto Borba | f58d0ec | 2014-07-05 12:15:41 -0300 | [diff] [blame] | 31 | ifneq ($(filter rk30xx rk3188,$(TARGET_BOARD_PLATFORM)),) |
Kra1o5 | 3167936 | 2014-06-20 19:06:06 +0200 | [diff] [blame] | 32 | LOCAL_SRC_FILES += rk3xhack.c |
| 33 | LOCAL_CFLAGS += -DRK3X |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 34 | endif |
| 35 | |
Michael Bestas | 5f05255 | 2015-01-02 01:45:37 +0200 | [diff] [blame] | 36 | ifeq ($(TARGET_MTD_BY_NAME),true) |
| 37 | LOCAL_CFLAGS += -DBYNAME |
| 38 | endif |
| 39 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 40 | LOCAL_MODULE := libmtdutils |
Ethan Yonker | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 41 | LOCAL_SHARED_LIBRARIES := libcutils libc |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 42 | LOCAL_CLANG := true |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 43 | |
| 44 | include $(BUILD_SHARED_LIBRARY) |
| 45 | |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 46 | ifeq ($(BOARD_USES_BML_OVER_MTD),true) |
| 47 | include $(CLEAR_VARS) |
| 48 | LOCAL_SRC_FILES := bml_over_mtd.c |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 49 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 50 | LOCAL_MODULE := libbml_over_mtd |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 51 | LOCAL_MODULE_TAGS := optional |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 52 | LOCAL_CFLAGS += -Dmain=bml_over_mtd_main |
| 53 | include $(BUILD_STATIC_LIBRARY) |
| 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | LOCAL_SRC_FILES := bml_over_mtd.c |
| 57 | LOCAL_MODULE := bml_over_mtd |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 58 | LOCAL_MODULE_TAGS := optional |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 59 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 60 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 61 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 62 | LOCAL_MODULE_STEM := bml_over_mtd |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 63 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils |
Ethan Yonker | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 64 | LOCAL_SHARED_LIBRARIES := libmtdutils libcutils liblog libc |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 65 | include $(BUILD_EXECUTABLE) |
| 66 | endif |
| 67 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 68 | endif # !TARGET_SIMULATOR |
| 69 | |