cros_update_firmware: Append uris to srcuris if --project is set.

- The main use case is to do a fw uprev w/o having access to all
project repos. If the file is overwritten in this case, some uris
will be deleted.

- This will mean extra payloads are downloaded, but won't be
installed in the image.

- Only enable this if --project flag is set, so it likely won't
affect users that can see all projects. Add append_srcuris flag
to disable this with the --project flag if needed.

BUG=chromium:1131613
TEST=Ran with `--board=dedede`, see crrev.com/i/3286609.
TEST=Ran with `--board=dedede --project=waddledee`, see
crrev.com/i/3286694.

Change-Id: Ib65b8b579fab56136e824a926e7a4a7ef8bcf284
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2427451
Reviewed-by: YH Lin <yueherngl@chromium.org>
Commit-Queue: Andrew Lamb <andrewlamb@chromium.org>
Tested-by: Andrew Lamb <andrewlamb@chromium.org>
1 file changed