diff options
author | bigbiff bigbiff <bigbiff@teamw.in> | 2013-01-09 15:09:08 +0100 |
---|---|---|
committer | bigbiff bigbiff <bigbiff@teamw.in> | 2013-01-09 15:09:08 +0100 |
commit | 9c754053b07a724bdd98d039f34899d6a49115b7 (patch) | |
tree | 464885db361a12d83d60cf152142c765562bb92d /dosfstools/Android.mk | |
parent | Add Samsung TouchWiz decryption (diff) | |
download | android_bootable_recovery-9c754053b07a724bdd98d039f34899d6a49115b7.tar android_bootable_recovery-9c754053b07a724bdd98d039f34899d6a49115b7.tar.gz android_bootable_recovery-9c754053b07a724bdd98d039f34899d6a49115b7.tar.bz2 android_bootable_recovery-9c754053b07a724bdd98d039f34899d6a49115b7.tar.lz android_bootable_recovery-9c754053b07a724bdd98d039f34899d6a49115b7.tar.xz android_bootable_recovery-9c754053b07a724bdd98d039f34899d6a49115b7.tar.zst android_bootable_recovery-9c754053b07a724bdd98d039f34899d6a49115b7.zip |
Diffstat (limited to '')
-rw-r--r-- | dosfstools/Android.mk | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dosfstools/Android.mk b/dosfstools/Android.mk new file mode 100644 index 000000000..62297f333 --- /dev/null +++ b/dosfstools/Android.mk @@ -0,0 +1,59 @@ +ifneq ($(TARGET_SIMULATOR),true) +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES := src/boot.c src/check.c src/common.c \ + src/fat.c src/file.c src/io.c src/lfn.c src/dosfsck.c +LOCAL_C_INCLUDES := $(KERNEL_HEADERS) +LOCAL_SHARED_LIBRARIES := libc +LOCAL_CFLAGS += -D_USING_BIONIC_ +LOCAL_CFLAGS += -DUSE_ANDROID_RETVALS +LOCAL_MODULE = dosfsck +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES +LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin +include $(BUILD_EXECUTABLE) + +# build symlink +SYMLINKS := $(addprefix $(TARGET_OUT)/bin/,fsck_msdos) +$(SYMLINKS): DOSFSCK_BINARY := $(LOCAL_MODULE) +$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk + @echo "Symlink: $@ -> $(DOSFSCK_BINARY)" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf $(DOSFSCK_BINARY) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS) + +# We need this so that the installed files could be picked up based on the +# local module name +ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \ + $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS) + + + +include $(CLEAR_VARS) +LOCAL_SRC_FILES := src/boot.c src/check.c src/common.c src/fat.c \ + src/file.c src/io.c src/lfn.c src/dosfslabel.c +LOCAL_C_INCLUDES := $(KERNEL_HEADERS) \ + bionic/libc/kernel/common +LOCAL_SHARED_LIBRARIES := libc +LOCAL_CFLAGS += -D_USING_BIONIC_ +LOCAL_MODULE = dosfslabel +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES +LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin +include $(BUILD_EXECUTABLE) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES := src/mkdosfs.c +LOCAL_C_INCLUDES := $(KERNEL_HEADERS) +LOCAL_SHARED_LIBRARIES := libc +LOCAL_CFLAGS += -D_USING_BIONIC_ +LOCAL_MODULE = mkdosfs +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES +LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin +include $(BUILD_EXECUTABLE) + +endif |