blob: 438b3935a5a5e478ea9cc1b5951295768aff7e7f [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
jt113419926ec2013-02-18 00:12:37 -060020ifeq ($(BOARD_USES_BML_OVER_MTD),true)
21include $(CLEAR_VARS)
22LOCAL_SRC_FILES := bml_over_mtd.c
23LOCAL_C_INCLUDES += bootable/recovery/mtdutils
24LOCAL_MODULE := libbml_over_mtd
25LOCAL_MODULE_TAGS := eng
26LOCAL_CFLAGS += -Dmain=bml_over_mtd_main
27include $(BUILD_STATIC_LIBRARY)
28
29include $(CLEAR_VARS)
30LOCAL_SRC_FILES := bml_over_mtd.c
31LOCAL_MODULE := bml_over_mtd
32LOCAL_MODULE_TAGS := eng
33LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
34LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
35LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
36LOCAL_MODULE_STEM := bml_over_mtd
37LOCAL_C_INCLUDES += bootable/recovery/mtdutils
38LOCAL_STATIC_LIBRARIES := libmtdutils libcutils libc
39LOCAL_FORCE_STATIC_EXECUTABLE := true
40include $(BUILD_EXECUTABLE)
41endif
42
Dees_Troy51a0e822012-09-05 15:24:24 -040043endif # !TARGET_SIMULATOR
44