blob: 7e5fadc71bd42f808d6d2a5c38f944343e600156 [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
Humberto Borbaf58d0ec2014-07-05 12:15:41 -030010ifneq ($(filter rk30xx rk3188,$(TARGET_BOARD_PLATFORM)),)
Kra1o531679362014-06-20 19:06:06 +020011LOCAL_SRC_FILES += rk3xhack.c
12LOCAL_CFLAGS += -DRK3X
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +010013endif
14
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080015LOCAL_MODULE := libmtdutils
Dees_Troy51a0e822012-09-05 15:24:24 -040016LOCAL_STATIC_LIBRARIES := libcutils libc
Tao Bao80e46e02015-06-03 10:49:29 -070017LOCAL_CLANG := true
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +010018
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080019include $(BUILD_STATIC_LIBRARY)
20
Dees_Troy2673cec2013-04-02 20:22:16 +000021include $(CLEAR_VARS)
22
23LOCAL_SRC_FILES := \
24 mtdutils.c \
25 mounts.c
26
Humberto Borbaf58d0ec2014-07-05 12:15:41 -030027ifneq ($(filter rk30xx rk3188,$(TARGET_BOARD_PLATFORM)),)
Kra1o531679362014-06-20 19:06:06 +020028LOCAL_SRC_FILES += rk3xhack.c
29LOCAL_CFLAGS += -DRK3X
Dees_Troy2673cec2013-04-02 20:22:16 +000030endif
31
32LOCAL_MODULE := libmtdutils
Ethan Yonker03ea9782014-11-17 09:36:46 -060033LOCAL_SHARED_LIBRARIES := libcutils libc
Tao Bao80e46e02015-06-03 10:49:29 -070034LOCAL_CLANG := true
Dees_Troy2673cec2013-04-02 20:22:16 +000035
36include $(BUILD_SHARED_LIBRARY)
37
jt113419926ec2013-02-18 00:12:37 -060038ifeq ($(BOARD_USES_BML_OVER_MTD),true)
39include $(CLEAR_VARS)
40LOCAL_SRC_FILES := bml_over_mtd.c
Matt Mower55c75ca2014-08-31 11:30:15 -050041LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils
jt113419926ec2013-02-18 00:12:37 -060042LOCAL_MODULE := libbml_over_mtd
43LOCAL_MODULE_TAGS := eng
44LOCAL_CFLAGS += -Dmain=bml_over_mtd_main
45include $(BUILD_STATIC_LIBRARY)
46
47include $(CLEAR_VARS)
48LOCAL_SRC_FILES := bml_over_mtd.c
49LOCAL_MODULE := bml_over_mtd
50LOCAL_MODULE_TAGS := eng
51LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
52LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
53LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
54LOCAL_MODULE_STEM := bml_over_mtd
Matt Mower55c75ca2014-08-31 11:30:15 -050055LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils
Ethan Yonker03ea9782014-11-17 09:36:46 -060056LOCAL_SHARED_LIBRARIES := libmtdutils libcutils liblog libc
jt113419926ec2013-02-18 00:12:37 -060057include $(BUILD_EXECUTABLE)
58endif
59
Dees_Troy51a0e822012-09-05 15:24:24 -040060endif # !TARGET_SIMULATOR
61