blob: 6843fa94ef24d1a7b16cf567b0b096b4f614e737 [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
33LOCAL_STATIC_LIBRARIES := libcutils libc
34
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
40LOCAL_C_INCLUDES += bootable/recovery/mtdutils
41LOCAL_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
54LOCAL_C_INCLUDES += bootable/recovery/mtdutils
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080055LOCAL_STATIC_LIBRARIES := libmtdutils
Ying Wang4e214822013-04-09 21:41:29 -070056LOCAL_SHARED_LIBRARIES := 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