Skip to content

Commit

Permalink
Merge "Use BSD grep for builds with toybox" into android-9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbiff authored and Gerrit Code Review committed May 2, 2019
2 parents 695baa6 + 3c565b5 commit 84d2300
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions prebuilt/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ else
RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sh
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 23; echo $$?),0)
RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/grep
LOCAL_POST_INSTALL_CMD += $(hide) if [ -e "$(TARGET_RECOVERY_ROOT_OUT)/sbin/egrep" ]; then \
rm $(TARGET_RECOVERY_ROOT_OUT)/sbin/egrep; fi; ln -sr $(TARGET_RECOVERY_ROOT_OUT)/sbin/grep $(TARGET_RECOVERY_ROOT_OUT)/sbin/egrep; \
if [ -e "$(TARGET_RECOVERY_ROOT_OUT)/sbin/fgrep" ]; then \
rm $(TARGET_RECOVERY_ROOT_OUT)/sbin/fgrep; fi; ln -sr $(TARGET_RECOVERY_ROOT_OUT)/sbin/grep $(TARGET_RECOVERY_ROOT_OUT)/sbin/fgrep;
RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/toybox
ifneq ($(wildcard external/zip/Android.mk),)
RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/zip
Expand Down
3 changes: 0 additions & 3 deletions toybox/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -488,15 +488,12 @@ ALL_TOOLS += \
dd \
df \
diff \
egrep \
fgrep \
flock \
freeramdisk \
fsfreeze \
fstype \
ftpget \
ftpput \
grep \
help \
install \
ionice \
Expand Down

0 comments on commit 84d2300

Please sign in to comment.