blob: 7c8592d4a330b94b143673c2d6bbc974a9d3e89a [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
Matt Mower031163b2014-11-01 15:13:03 -050026include $(CLEAR_VARS)
27LOCAL_MODULE := fsck_msdos_symlink
28LOCAL_MODULE_TAGS := optional
29LOCAL_ADDITIONAL_DEPENDENCIES := $(SYMLINKS)
30include $(BUILD_PHONY_PACKAGE)
31SYMLINKS :=
bigbiff bigbiff9c754052013-01-09 09:09:08 -050032
33include $(CLEAR_VARS)
34LOCAL_SRC_FILES := src/boot.c src/check.c src/common.c src/fat.c \
35 src/file.c src/io.c src/lfn.c src/dosfslabel.c
36LOCAL_C_INCLUDES := $(KERNEL_HEADERS) \
37 bionic/libc/kernel/common
38LOCAL_SHARED_LIBRARIES := libc
39LOCAL_CFLAGS += -D_USING_BIONIC_
40LOCAL_MODULE = dosfslabel
41LOCAL_MODULE_TAGS := optional
42LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
43LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
44include $(BUILD_EXECUTABLE)
45
46include $(CLEAR_VARS)
47LOCAL_SRC_FILES := src/mkdosfs.c
48LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
49LOCAL_SHARED_LIBRARIES := libc
50LOCAL_CFLAGS += -D_USING_BIONIC_
51LOCAL_MODULE = mkdosfs
52LOCAL_MODULE_TAGS := optional
53LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
54LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
55include $(BUILD_EXECUTABLE)
56
57endif