FACTORY-980B: crosutils: 'archive_factory' to create factory bundles
To generate a bundle with mini-omaha and all utility scripts, we need a new
archive script.
This CL is merged from following list on ToT:
crosutils: 'archive_factory' to create factory bundles
Cherry-picked: http://gerrit.chromium.org/gerrit/7906
crosutils: refine make_factory_package
Cherry-picked: http://gerrit.chromium.org/gerrit/7904
crosutils: allow factory scripts to be executed in a limited bundle environment
Cherry-picked: http://gerrit.chromium.org/gerrit/7905
crosutils: Revert "crosutils: refine make_factory_package"
Cherry-picked: http://gerrit.chromium.org/gerrit/7916
crosutils: add boilerplate comments for factory scripts
Cherry-picked: http://gerrit.chromium.org/gerrit/7908
BUG=chrome-os-partner:5979
TEST=./archive_factory --factory_test factory_test \
--factory_install factory_install --script . --dev ../platform/dev/ \
--bin ../../chroot/usr/bin
# output:
[ 0/2.4G] adding: bin/cgpt (stored 0%)
[633K/2.4G] adding: dev/autoupdate.py (stored 0%)
[658K/2.4G] adding: dev/buildutil.py (stored 0%)
[660K/2.4G] adding: dev/devserver.py (stored 0%)
[671K/2.4G] adding: dev/static/ (stored 0%)
[671K/2.4G] adding: factory_test/chromiumos_factory_image.bin
[1.9G/506M] adding: factory_test/pack_partitions.sh (stored 0%)
[1.9G/506M] adding: factory_test/unpack_partitions.sh (stored 0%)
[1.9G/506M] adding: hwid/hwid_bundle_zgb_all.sh (stored 0%)
[1.9G/502M] adding: install_shim/factory_install_shim.bin
[2.4G/119K] adding: install_shim/pack_partitions.sh (stored 0%)
[2.4G/115K] adding: install_shim/unpack_partitions.sh (stored 0%)
[2.4G/112K] adding: scripts/lib/cros_image_common.sh (stored 0%)
[2.4G/102K] adding: scripts/lib/shflags/shflags (stored 0%)
[2.4G/ 71K] adding: scripts/common.sh (stored 0%)
[2.4G/ 49K] adding: scripts/chromeos-common.sh (stored 0%)
[2.4G/ 33K] adding: scripts/make_factory_package.sh (stored 0%)
[2.4G/ 11K] adding: scripts/make_universal_factory_shim.sh (stored 0%)
[2.4G/4.0K] adding: scripts/mk_memento_images.sh (stored 0%)
Change-Id: I868dc352dd84709508a55d769f51b5a2db0316d9
Reviewed-on: http://gerrit.chromium.org/gerrit/7922
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
5 files changed