blob: 117de78dca7f9ccb238791869a707ec7d2d0ffa6 [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
J. Carlos Romero85ceaf12014-04-15 13:15:10 +020012LOCAL_CFLAGS += -DRK3066
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
27ifeq ($(TARGET_BOARD_PLATFORM),rk30xx)
28LOCAL_SRC_FILES += rk30hack.c
J. Carlos Romero85ceaf12014-04-15 13:15:10 +020029LOCAL_CFLAGS += -DRK3066
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