bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 1 | ifneq ($(TARGET_SIMULATOR),true) |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | |
| 4 | include $(CLEAR_VARS) |
| 5 | LOCAL_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 Yonker | 2d11d49 | 2014-12-12 11:43:21 -0600 | [diff] [blame] | 7 | #LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 8 | LOCAL_SHARED_LIBRARIES := libc |
| 9 | LOCAL_CFLAGS += -D_USING_BIONIC_ |
| 10 | LOCAL_CFLAGS += -DUSE_ANDROID_RETVALS |
| 11 | LOCAL_MODULE = dosfsck |
| 12 | LOCAL_MODULE_TAGS := optional |
| 13 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 14 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 15 | include $(BUILD_EXECUTABLE) |
| 16 | |
| 17 | # build symlink |
| 18 | SYMLINKS := $(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 Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 26 | include $(CLEAR_VARS) |
| 27 | LOCAL_MODULE := fsck_msdos_symlink |
| 28 | LOCAL_MODULE_TAGS := optional |
| 29 | LOCAL_ADDITIONAL_DEPENDENCIES := $(SYMLINKS) |
| 30 | include $(BUILD_PHONY_PACKAGE) |
| 31 | SYMLINKS := |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 32 | |
| 33 | include $(CLEAR_VARS) |
| 34 | LOCAL_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 Yonker | 2d11d49 | 2014-12-12 11:43:21 -0600 | [diff] [blame] | 36 | #LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
| 37 | LOCAL_C_INCLUDES += bionic/libc/kernel/common |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 38 | LOCAL_SHARED_LIBRARIES := libc |
| 39 | LOCAL_CFLAGS += -D_USING_BIONIC_ |
| 40 | LOCAL_MODULE = dosfslabel |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 43 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 44 | include $(BUILD_EXECUTABLE) |
| 45 | |
| 46 | include $(CLEAR_VARS) |
| 47 | LOCAL_SRC_FILES := src/mkdosfs.c |
Ethan Yonker | 2d11d49 | 2014-12-12 11:43:21 -0600 | [diff] [blame] | 48 | #LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 49 | LOCAL_SHARED_LIBRARIES := libc |
| 50 | LOCAL_CFLAGS += -D_USING_BIONIC_ |
| 51 | LOCAL_MODULE = mkdosfs |
| 52 | LOCAL_MODULE_TAGS := optional |
| 53 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 54 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 55 | include $(BUILD_EXECUTABLE) |
| 56 | |
| 57 | endif |