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