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 \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [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 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 15 | LOCAL_MODULE := libmtdutils |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 16 | LOCAL_STATIC_LIBRARIES := libcutils libc |
| 17 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Sergey 'Jin' Bostandzhyan | 80a90ed | 2013-01-04 02:29:03 +0100 | [diff] [blame] | 18 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 19 | include $(BUILD_STATIC_LIBRARY) |
| 20 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | LOCAL_SRC_FILES := \ |
| 24 | mtdutils.c \ |
| 25 | mounts.c |
| 26 | |
Humberto Borba | f58d0ec | 2014-07-05 12:15:41 -0300 | [diff] [blame] | 27 | ifneq ($(filter rk30xx rk3188,$(TARGET_BOARD_PLATFORM)),) |
Kra1o5 | 3167936 | 2014-06-20 19:06:06 +0200 | [diff] [blame] | 28 | LOCAL_SRC_FILES += rk3xhack.c |
| 29 | LOCAL_CFLAGS += -DRK3X |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 30 | endif |
| 31 | |
| 32 | LOCAL_MODULE := libmtdutils |
Ethan Yonker | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 33 | LOCAL_SHARED_LIBRARIES := libcutils libc |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 34 | |
| 35 | include $(BUILD_SHARED_LIBRARY) |
| 36 | |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 37 | ifeq ($(BOARD_USES_BML_OVER_MTD),true) |
| 38 | include $(CLEAR_VARS) |
| 39 | LOCAL_SRC_FILES := bml_over_mtd.c |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 40 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 41 | LOCAL_MODULE := libbml_over_mtd |
| 42 | LOCAL_MODULE_TAGS := eng |
| 43 | LOCAL_CFLAGS += -Dmain=bml_over_mtd_main |
| 44 | include $(BUILD_STATIC_LIBRARY) |
| 45 | |
| 46 | include $(CLEAR_VARS) |
| 47 | LOCAL_SRC_FILES := bml_over_mtd.c |
| 48 | LOCAL_MODULE := bml_over_mtd |
| 49 | LOCAL_MODULE_TAGS := eng |
| 50 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 51 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 52 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 53 | LOCAL_MODULE_STEM := bml_over_mtd |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 54 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils |
Ethan Yonker | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 55 | LOCAL_SHARED_LIBRARIES := libmtdutils libcutils liblog libc |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 56 | include $(BUILD_EXECUTABLE) |
| 57 | endif |
| 58 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 59 | endif # !TARGET_SIMULATOR |
| 60 | |