diff options
author | Thorsten Glaser <tg@mirbsd.org> | 2010-06-07 10:26:37 +0200 |
---|---|---|
committer | Thorsten Glaser <tg@mirbsd.org> | 2010-08-24 18:23:40 +0200 |
commit | bdc36d641c2d557cc20b8cf044048f0a8c72e774 (patch) | |
tree | 76c841132821cb40edea3a72880d31c362244cf3 /sh/Android.mk | |
parent | 69507eb065d676d6303f964215237e395cc087d3 (diff) | |
download | system_core-bdc36d641c2d557cc20b8cf044048f0a8c72e774.zip system_core-bdc36d641c2d557cc20b8cf044048f0a8c72e774.tar.gz system_core-bdc36d641c2d557cc20b8cf044048f0a8c72e774.tar.bz2 |
Build ash as ash with shell_ash tag; install sh symlink
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'sh/Android.mk')
-rw-r--r-- | sh/Android.mk | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sh/Android.mk b/sh/Android.mk index b5e5c38..dcd13d8 100644 --- a/sh/Android.mk +++ b/sh/Android.mk @@ -29,7 +29,8 @@ LOCAL_SRC_FILES:= \ bltin/echo.c \ init.c -LOCAL_MODULE:= sh +LOCAL_MODULE:= ash +LOCAL_MODULE_TAGS:= shell_ash LOCAL_CFLAGS += -DSHELL -DWITH_LINENOISE @@ -51,3 +52,19 @@ make_ash_files: sh ./mkinit.sh $(PRIVATE_SRC_FILES) include $(BUILD_EXECUTABLE) + + +# create /system/bin/sh symlink to $(TARGET_SHELL) +# not the optimal place for this, but a fitting one + +OUTSYSTEMBINSH := $(TARGET_OUT)/bin/sh +LOCAL_MODULE := systembinsh +$(OUTSYSTEMBINSH): | $(TARGET_SHELL) +$(OUTSYSTEMBINSH): LOCAL_MODULE := $(LOCAL_MODULE) +$(OUTSYSTEMBINSH): + @echo "Symlink: $@ -> $(TARGET_SHELL)" + @rm -rf $@ + $(hide) ln -sf $(TARGET_SHELL) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(OUTSYSTEMBINSH) +ALL_MODULES.$(LOCAL_MODULE).INSTALLED += $(OUTSYSTEMBINSH) |