Skip to content

Commit

Permalink
Skip vendor grep binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Anestis Bechtsoudis <anestis@census-labs.com>
  • Loading branch information
anestisb committed Dec 28, 2018
1 parent 94bde98 commit e085541
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ declare -ra VENDOR_SKIP_FILES=(
"manifest.xml"
"bin/toybox_vendor"
"bin/toolbox"
"bin/grep"
)

# Files to skip from vendor partition when parsing factory images (for naked config only)
Expand Down
8 changes: 6 additions & 2 deletions scripts/generate-vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -487,16 +487,20 @@ gen_standalone_symlinks() {

local dst="${S_SLINKS_DST[$cnt]}"
local src="${S_SLINKS_SRC[$cnt]}"
local linknm=""

# Skip symbolic links the destination of which is under bytecode directories
if [[ "$dst" == *app/* ]]; then
continue
fi

# Skip toybox & toolbox links since already built from AOSP
linknm="$(basename "$link")"

# Skip toybox, toolbox & grep links since already built from AOSP
# - external/toybox/Android.mk#419
# - system/core/toolbox/Android.bp#79
if [[ "$(basename "$link")" == "toybox_vendor" || "$(basename "$link")" == "toolbox" ]]; then
# - system/core/toolbox/Android.bp
if [[ "$linknm" == "toybox_vendor" || "$linknm" == "toolbox" || "$linknm" == "grep" ]]; then
continue
fi

Expand Down

0 comments on commit e085541

Please sign in to comment.