blob: 2a380ae3da4fa468e67ca439d194c897f178b2d8 [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
17LOCAL_FORCE_STATIC_EXECUTABLE := 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
Dees_Troy2673cec2013-04-02 20:22:16 +000034
35include $(BUILD_SHARED_LIBRARY)
36
jt113419926ec2013-02-18 00:12:37 -060037ifeq ($(BOARD_USES_BML_OVER_MTD),true)
38include $(CLEAR_VARS)
39LOCAL_SRC_FILES := bml_over_mtd.c
Matt Mower55c75ca2014-08-31 11:30:15 -050040LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils
jt113419926ec2013-02-18 00:12:37 -060041LOCAL_MODULE := libbml_over_mtd
42LOCAL_MODULE_TAGS := eng
43LOCAL_CFLAGS += -Dmain=bml_over_mtd_main
44include $(BUILD_STATIC_LIBRARY)
45
46include $(CLEAR_VARS)
47LOCAL_SRC_FILES := bml_over_mtd.c
48LOCAL_MODULE := bml_over_mtd
49LOCAL_MODULE_TAGS := eng
50LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
51LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
52LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
53LOCAL_MODULE_STEM := bml_over_mtd
Matt Mower55c75ca2014-08-31 11:30:15 -050054LOCAL_C_INCLUDES += $(commands_recovery_local_path)/mtdutils
Ethan Yonker03ea9782014-11-17 09:36:46 -060055LOCAL_SHARED_LIBRARIES := libmtdutils libcutils liblog libc
jt113419926ec2013-02-18 00:12:37 -060056include $(BUILD_EXECUTABLE)
57endif
58
Dees_Troy51a0e822012-09-05 15:24:24 -040059endif # !TARGET_SIMULATOR
60