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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user