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 |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 17 | LOCAL_CLANG := 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 |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 34 | LOCAL_CLANG := true |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 35 | |
| 36 | include $(BUILD_SHARED_LIBRARY) |
| 37 | |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 38 | ifeq ($(BOARD_USES_BML_OVER_MTD),true) |
| 39 | include $(CLEAR_VARS) |
| 40 | LOCAL_SRC_FILES := bml_over_mtd.c |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 41 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 42 | LOCAL_MODULE := libbml_over_mtd |
| 43 | LOCAL_MODULE_TAGS := eng |
| 44 | LOCAL_CFLAGS += -Dmain=bml_over_mtd_main |
| 45 | include $(BUILD_STATIC_LIBRARY) |
| 46 | |
| 47 | include $(CLEAR_VARS) |
| 48 | LOCAL_SRC_FILES := bml_over_mtd.c |
| 49 | LOCAL_MODULE := bml_over_mtd |
| 50 | LOCAL_MODULE_TAGS := eng |
| 51 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 52 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 53 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 54 | LOCAL_MODULE_STEM := bml_over_mtd |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 55 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils |
Ethan Yonker | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 56 | LOCAL_SHARED_LIBRARIES := libmtdutils libcutils liblog libc |
jt1134 | 19926ec | 2013-02-18 00:12:37 -0600 | [diff] [blame] | 57 | include $(BUILD_EXECUTABLE) |
| 58 | endif |
| 59 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 60 | endif # !TARGET_SIMULATOR |
| 61 | |