From 32bfd70333b72646909ccbcf50217b5a275912da Mon Sep 17 00:00:00 2001
From: Elliott Hughes
Date: Tue, 5 Nov 2013 11:13:49 -0800
Subject: [PATCH] Remove the hacks needed to support ash and mksh concurrently.
We no longer have ash, and we'd rather not have unnecessary symbolic links
on the system.
Change-Id: Icfb1a51f1baaf1861c203f6ed93843b094deb65d
---
core/base_rules.mk | 2 +-
core/build-system.html | 6 ++----
core/config.mk | 3 ---
core/main.mk | 2 --
target/product/embedded.mk | 2 ++
5 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/core/base_rules.mk b/core/base_rules.mk
index 7927760e5..8d230fb58 100644
--- a/core/base_rules.mk
+++ b/core/base_rules.mk
@@ -75,7 +75,7 @@ endif
# Only the tags mentioned in this test are expected to be set by module
# makefiles. Anything else is either a typo or a source of unexpected
# behaviors.
-ifneq ($(filter-out debug eng tests optional samples shell_mksh,$(LOCAL_MODULE_TAGS)),)
+ifneq ($(filter-out debug eng tests optional samples,$(LOCAL_MODULE_TAGS)),)
$(warning unusual tags $(LOCAL_MODULE_TAGS) on $(LOCAL_MODULE) at $(LOCAL_PATH))
endif
diff --git a/core/build-system.html b/core/build-system.html
index 760589a0f..397eef4c0 100644
--- a/core/build-system.html
+++ b/core/build-system.html
@@ -247,7 +247,6 @@ for these).
for eng
.
LOCAL_MODULE_TAGS
Set LOCAL_MODULE_TAGS
to any number of whitespace-separated
tags. If the tag list is empty or contains droid
, the module
-will get installed as part of a make droid
. Modules with the tag
-shell_
$(TARGET_SHELL) will also be installed. Otherwise, it will
+will get installed as part of a make droid
. Otherwise, it will
only get installed by running make <your-module>
or with the make all
pseudotarget.
diff --git a/core/config.mk b/core/config.mk
index 2a84b34e0..73acac9ea 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -114,9 +114,6 @@ TARGET_ERROR_FLAGS := -Werror=return-type -Werror=non-virtual-dtor -Werror=addre
# TODO: do symbol compression
TARGET_COMPRESS_MODULE_SYMBOLS := false
-# Default shell is mksh. Other possible value is ash.
-TARGET_SHELL := mksh
-
# ###############################################################
# Include sub-configuration files
# ###############################################################
diff --git a/core/main.mk b/core/main.mk
index fec77a272..bf09423b9 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -622,12 +622,10 @@ tests_MODULES := $(sort \
# TODO: Remove the 3 places in the tree that use ALL_DEFAULT_INSTALLED_MODULES
# and get rid of it from this list.
-# TODO: The shell is chosen by magic. Do we still need this?
modules_to_install := $(sort \
$(ALL_DEFAULT_INSTALLED_MODULES) \
$(product_FILES) \
$(foreach tag,$(tags_to_install),$($(tag)_MODULES)) \
- $(call get-tagged-modules, shell_$(TARGET_SHELL)) \
$(CUSTOM_MODULES) \
)
diff --git a/target/product/embedded.mk b/target/product/embedded.mk
index 083010111..d2344b027 100644
--- a/target/product/embedded.mk
+++ b/target/product/embedded.mk
@@ -58,8 +58,10 @@ PRODUCT_PACKAGES += \
linker \
logcat \
logwrapper \
+ mkshrc \
service \
servicemanager \
+ sh \
surfaceflinger \
toolbox