From 1b1068f52aecb53dc50f4028c670fb97f3f8497b Mon Sep 17 00:00:00 2001 From: Jeongik Cha Date: Tue, 13 Sep 2022 13:27:11 +0900 Subject: [PATCH] add u option(unbundled build) in build_vendor.sh if u option is set, turn on TARGET_BUILD_UNBUNDLED_IMAGE Bug: 237350883 Test: build_vendor.sh with -u Change-Id: I9a3ceb22181eb68715f8da597ca4e5e752487c1f --- multitree/build_vendor.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/multitree/build_vendor.sh b/multitree/build_vendor.sh index 36eeae5c2..d88b88dfb 100755 --- a/multitree/build_vendor.sh +++ b/multitree/build_vendor.sh @@ -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