blob: 8e1bdca7de0fb32783e1fe106959f334792b31b9 [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001ifneq ($(TARGET_SIMULATOR),true)
Dees_Troy51a0e822012-09-05 15:24:24 -04002
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08003LOCAL_PATH := $(call my-dir)
4include $(CLEAR_VARS)
5
6LOCAL_SRC_FILES := \
7 mtdutils.c \
Dees_Troy51a0e822012-09-05 15:24:24 -04008 mounts.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08009
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +010010ifeq ($(TARGET_BOARD_PLATFORM),rk30xx)
11LOCAL_SRC_FILES += rk30hack.c
12endif
13
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080014LOCAL_MODULE := libmtdutils
Dees_Troy51a0e822012-09-05 15:24:24 -040015LOCAL_STATIC_LIBRARIES := libcutils libc
16LOCAL_FORCE_STATIC_EXECUTABLE := true
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +010017
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080018include $(BUILD_STATIC_LIBRARY)
19
Dees_Troy2673cec2013-04-02 20:22:16 +000020include $(CLEAR_VARS)
21
22LOCAL_SRC_FILES := \
23 mtdutils.c \
24 mounts.c
25
26ifeq ($(TARGET_BOARD_PLATFORM),rk30xx)
27LOCAL_SRC_FILES += rk30hack.c
28endif
29
30LOCAL_MODULE := libmtdutils
31LOCAL_STATIC_LIBRARIES := libcutils libc
32
33include $(BUILD_SHARED_LIBRARY)
34
jt113419926ec2013-02-18 00:12:37 -060035ifeq ($(BOARD_USES_BML_OVER_MTD),true)
36include $(CLEAR_VARS)
37LOCAL_SRC_FILES := bml_over_mtd.c
38LOCAL_C_INCLUDES += bootable/recovery/mtdutils
39LOCAL_MODULE := libbml_over_mtd
40LOCAL_MODULE_TAGS := eng
41LOCAL_CFLAGS += -Dmain=bml_over_mtd_main
42include $(BUILD_STATIC_LIBRARY)
43
44include $(CLEAR_VARS)
45LOCAL_SRC_FILES := bml_over_mtd.c
46LOCAL_MODULE := bml_over_mtd
47LOCAL_MODULE_TAGS := eng
48LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
49LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
50LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
51LOCAL_MODULE_STEM := bml_over_mtd
52LOCAL_C_INCLUDES += bootable/recovery/mtdutils
53LOCAL_STATIC_LIBRARIES := libmtdutils libcutils libc
54LOCAL_FORCE_STATIC_EXECUTABLE := true
55include $(BUILD_EXECUTABLE)
56endif
57
Dees_Troy51a0e822012-09-05 15:24:24 -040058endif # !TARGET_SIMULATOR
59