blob: 62297f333984747336e413b2e4c6778f65ffd280 [file] [log] [blame]
bigbiff bigbiff9c754052013-01-09 09:09:08 -05001ifneq ($(TARGET_SIMULATOR),true)
2LOCAL_PATH:= $(call my-dir)
3
4include $(CLEAR_VARS)
5LOCAL_SRC_FILES := src/boot.c src/check.c src/common.c \
6 src/fat.c src/file.c src/io.c src/lfn.c src/dosfsck.c
7LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
8LOCAL_SHARED_LIBRARIES := libc
9LOCAL_CFLAGS += -D_USING_BIONIC_
10LOCAL_CFLAGS += -DUSE_ANDROID_RETVALS
11LOCAL_MODULE = dosfsck
12LOCAL_MODULE_TAGS := optional
13LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
14LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
15include $(BUILD_EXECUTABLE)
16
17# build symlink
18SYMLINKS := $(addprefix $(TARGET_OUT)/bin/,fsck_msdos)
19$(SYMLINKS): DOSFSCK_BINARY := $(LOCAL_MODULE)
20$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk
21 @echo "Symlink: $@ -> $(DOSFSCK_BINARY)"
22 @mkdir -p $(dir $@)
23 @rm -rf $@
24 $(hide) ln -sf $(DOSFSCK_BINARY) $@
25
26ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
27
28# We need this so that the installed files could be picked up based on the
29# local module name
30ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
31 $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
32
33
34
35include $(CLEAR_VARS)
36LOCAL_SRC_FILES := src/boot.c src/check.c src/common.c src/fat.c \
37 src/file.c src/io.c src/lfn.c src/dosfslabel.c
38LOCAL_C_INCLUDES := $(KERNEL_HEADERS) \
39 bionic/libc/kernel/common
40LOCAL_SHARED_LIBRARIES := libc
41LOCAL_CFLAGS += -D_USING_BIONIC_
42LOCAL_MODULE = dosfslabel
43LOCAL_MODULE_TAGS := optional
44LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
45LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
46include $(BUILD_EXECUTABLE)
47
48include $(CLEAR_VARS)
49LOCAL_SRC_FILES := src/mkdosfs.c
50LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
51LOCAL_SHARED_LIBRARIES := libc
52LOCAL_CFLAGS += -D_USING_BIONIC_
53LOCAL_MODULE = mkdosfs
54LOCAL_MODULE_TAGS := optional
55LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
56LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
57include $(BUILD_EXECUTABLE)
58
59endif