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

Unified Diff: src/scripts/build_image.sh

Issue 549107: Add --with_dev_pkgs option to build_image.sh to pull in developer debug packages. (Closed)
Patch Set: Created 10 years, 11 months 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 | « src/package_repo/package-list-prod.txt ('k') | src/scripts/install_packages.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/build_image.sh
diff --git a/src/scripts/build_image.sh b/src/scripts/build_image.sh
index 34567223aa9924f65066f0ef3aeae15d9c7cab55..5762ce35fc3dbbeb8c2fbcfaf056da9c6f2cb0f9 100755
--- a/src/scripts/build_image.sh
+++ b/src/scripts/build_image.sh
@@ -37,6 +37,8 @@ DEFINE_string mirror "$DEFAULT_EXT_MIRROR" "Repository mirror to use."
DEFINE_string suite "$DEFAULT_IMG_SUITE" "Repository suite to base image on."
DEFINE_string pkglist "$DEFAULT_PKGLIST" \
"Name of file listing packages to install from repository."
+DEFINE_boolean with_dev_pkgs $FLAGS_TRUE \
+ "Include additional developer-friendly packages in the image."
# Parse command line
FLAGS "$@" || exit 1
@@ -117,12 +119,15 @@ sudo tune2fs -L "$DISK_LABEL" -U "$UUID" -c 0 -i 0 "$LOOP_DEV"
sudo mount "$LOOP_DEV" "$ROOT_FS_DIR"
# -- Install packages and customize root file system. --
-
+PKGLIST="$FLAGS_pkglist"
+if [ $FLAGS_with_dev_pkglist -eq $FLAGS_TRUE ]; then
+ PKGLIST="$PKGLIST,${SRC_ROOT}/package_repo/package-list-debug.txt"
+fi
"${SCRIPTS_DIR}/install_packages.sh" \
--build_root="${FLAGS_build_root}" \
--root="$ROOT_FS_DIR" \
--output_dir="${OUTPUT_DIR}" \
- --package_list="$FLAGS_pkglist" \
+ --package_list="$PKGLIST" \
--server="$FLAGS_mirror" \
--suite="$FLAGS_suite"
« no previous file with comments | « src/package_repo/package-list-prod.txt ('k') | src/scripts/install_packages.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698