build: build target-files-package instead of dist

* let's save everyone a few cpu cycles and disk writes

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I6abd3794f1007d52acc401e3babc9de067a15c18
This commit is contained in:
Omkar Chandorkar 2022-02-01 17:58:07 +05:30 committed by Vishal Cj
parent 446d48a8ff
commit b720880035
1 changed files with 3 additions and 3 deletions

View File

@ -197,14 +197,14 @@ elif [ "${KEY_MAPPINGS}" ]; then
export ANDROID_PW_FILE=$PWFILE
fi
# Make package for distribution
m dist "$CMD"
# Make target-files-package
m otatools target-files-package "$CMD"
checkExit
echo -e "${CLR_BLD_BLU}Signing target files apks${CLR_RST}"
sign_target_files_apks -o -d $KEY_MAPPINGS \
out/dist/aospa_$DEVICE-target_files-$FILE_NAME_TAG.zip \
"$OUT"/obj/PACKAGING/target_files_intermediates/aospa_$DEVICE-target_files-$FILE_NAME_TAG.zip \
aospa-$AOSPA_VERSION-signed-target_files-$FILE_NAME_TAG.zip
checkExit