blob: 67cc5df9266594c9ccfadbe214a97c3214371bbf [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
Ethan Yonker2d11d492014-12-12 11:43:21 -06007#LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
bigbiff bigbiff9c754052013-01-09 09:09:08 -05008LOCAL_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
Matt Mowere9e9ccd2015-02-19 14:57:39 -060018SYMLINKS := $(addprefix $(TARGET_RECOVERY_ROOT_OUT)/sbin/,fsck_msdos)
bigbiff bigbiff9c754052013-01-09 09:09:08 -050019$(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
Ethan Yonker2d11d492014-12-12 11:43:21 -060036#LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
37LOCAL_C_INCLUDES += bionic/libc/kernel/common
bigbiff bigbiff9c754052013-01-09 09:09:08 -050038LOCAL_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
Ethan Yonker2d11d492014-12-12 11:43:21 -060048#LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
bigbiff bigbiff9c754052013-01-09 09:09:08 -050049LOCAL_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