Merge "add u option(unbundled build) in build_vendor.sh"

This commit is contained in:
Treehugger Robot
2022-09-13 06:18:53 +00:00
committed by Gerrit Code Review

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