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 |
| 7 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
| 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 | |
| 26 | ALL_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 |
| 30 | ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \ |
| 31 | $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS) |
| 32 | |
| 33 | |
| 34 | |
| 35 | include $(CLEAR_VARS) |
| 36 | LOCAL_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 |
| 38 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) \ |
| 39 | bionic/libc/kernel/common |
| 40 | LOCAL_SHARED_LIBRARIES := libc |
| 41 | LOCAL_CFLAGS += -D_USING_BIONIC_ |
| 42 | LOCAL_MODULE = dosfslabel |
| 43 | LOCAL_MODULE_TAGS := optional |
| 44 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 45 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 46 | include $(BUILD_EXECUTABLE) |
| 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | LOCAL_SRC_FILES := src/mkdosfs.c |
| 50 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
| 51 | LOCAL_SHARED_LIBRARIES := libc |
| 52 | LOCAL_CFLAGS += -D_USING_BIONIC_ |
| 53 | LOCAL_MODULE = mkdosfs |
| 54 | LOCAL_MODULE_TAGS := optional |
| 55 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 56 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 57 | include $(BUILD_EXECUTABLE) |
| 58 | |
| 59 | endif |