Skip to content
Browse files

dosfstools: create symlink from dosfsck to fsck_mdsos

  • Loading branch information...
1 parent 89babce commit 486b724a3e4210c21a29fe4b5b719ddca5d34e7f @jcsullins jcsullins committed with dalingrin Jan 15, 2012
Showing with 18 additions and 0 deletions.
  1. +18 −0 dosfstools/Android.mk
View
18 dosfstools/Android.mk
@@ -12,6 +12,24 @@ LOCAL_MODULE = dosfsck
LOCAL_MODULE_TAGS := optional
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

0 comments on commit 486b724

Please sign in to comment.
Something went wrong with that request. Please try again.