Merge "add u option(unbundled build) in build_vendor.sh" am: 43ee75e845

Original change: https://android-review.googlesource.com/c/platform/development/+/2216242

Change-Id: Ia39807c63b5a78300e7ac3db021481ad2fb2c17b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-09-13 06:45:54 +00:00
committed by Automerger Merge Worker

View File

@@ -24,19 +24,21 @@ Builds a vendor image for given product and analyze ninja inputs.
-p product name to build (e.g. cf_x86_64_phone)
-r directory for dist (e.g. out/dist)
-i build ID
-u whether it is an unbundled build
-h display this help and exit
EOF
exit 1
}
while getopts d:p:r:i:h flag
while getopts d:p:r:i:uh flag
do
case "${flag}" in
d) device=${OPTARG};;
p) product=${OPTARG};;
r) dist_dir=${OPTARG};;
i) build_id=${OPTARG};;
u) unbundled_build=true;;
h) usage;;
*) usage;;
esac
@@ -47,6 +49,10 @@ if [[ -z "$device" || -z "$product" || -z "$dist_dir" || -z "$build_id" ]]; then
usage
fi
if [[ "$unbundled_build" = true ]]; then
export TARGET_BUILD_UNBUNDLED_IMAGE=true
fi
export ALLOW_MISSING_DEPENDENCIES=true
export SKIP_VNDK_VARIANTS_CHECK=true
export DIST_DIR=$dist_dir