Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Unified Diff: build_image

Issue 5689004: Moving generating au-generator.zip file to build_image. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « archive_build.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_image
diff --git a/build_image b/build_image
index bd49af5054b2e468f99711d3bceb26d170ed4404..722d704f96f5ad70ccc30b8af16b78afa1dad360 100755
--- a/build_image
+++ b/build_image
@@ -702,6 +702,14 @@ create_base_image() {
trap - EXIT
}
+generate_au_zip () {
+ local lgenerateauzip="${SCRIPTS_DIR}/generate_au_zip.py"
+ local largs="-o ${OUTPUT_DIR}"
+ ! -d "${OUTPUT_DIR}" && mkdir -p "${OUTPUT_DIR}"
+ info "Running ${lgenerateauzip} ${largs} for generating AU updater zip file"
+ $lgenerateauzip $largs
+}
+
# Create the output directory.
mkdir -p "${OUTPUT_DIR}"
mkdir -p "${ROOT_FS_DIR}"
@@ -782,6 +790,8 @@ rm -f "${ROOT_FS_IMG}" "${STATEFUL_FS_IMG}" "${OUTPUT_DIR}/vmlinuz.image" \
"${ESP_FS_IMG}" "${OEM_FS_IMG}" "${OUTPUT_DIR}/vmlinuz_hd.vblock"
rmdir "${ROOT_FS_DIR}" "${STATEFUL_FS_DIR}" "${OEM_FS_DIR}" "${ESP_FS_DIR}"
+# Generating AU generator zip file to run outside chroot
+generate_au_zip || echo "Failed generating AU zip file - ignoring Error..."
# Create a 'latest' link
rm -f ${FLAGS_output_root}/${FLAGS_board}/latest
ln -s $(basename ${OUTPUT_DIR}) ${FLAGS_output_root}/${FLAGS_board}/latest
« no previous file with comments | « archive_build.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698