Commit Graph

5 Commits

Author SHA1 Message Date
Ali Zhang
e059107b73 pw_software_update: Add root metadata to a bundle
Adds support for including a root metadata when creating a bundle.

No-Docs-Update-Reason: module in early development.

Change-Id: Ibdced04fd355e8f520d0d3ba6e5cf25276929d72
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/63640
Commit-Queue: Ali Zhang <alizhang@google.com>
Reviewed-by: Joe Ethier <jethier@google.com>
2021-10-19 07:13:43 +00:00
Ali Zhang
8990f7fad0 pw_software_update: Specify targets metadata version
Specifies the targets metadata version when creating an update bundle.

No-Docs-Update-Reason: module in early development

Change-Id: If070da38f7a48b94c282d360ba4af3d8c905f99b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/63166
Reviewed-by: Joe Ethier <jethier@google.com>
Commit-Queue: Ali Zhang <alizhang@google.com>
2021-10-19 06:10:02 +00:00
Joe Ethier
0111407b7c pw_software_update: pw_update_bundle GN template
This change adds a new GN template called pw_update_bundle that can be
used to easily serialize update bundles as part of a GN build.

In addition, the API for bundle generation is adjusted so that normal
usage is to explicitly state a full mapping of target names to paths
containing payloads rather than giving a directory and masking out
excludes. The directory-ingesting tooling is left in place as a utility
function that can be used to feed into the new API if desired.

Testing: Includes baseline unit test coverage
Requires: pigweed-internal:16380
Change-Id: Ib8f873c436e00acbab5c84c12eaec56ca33ffdce
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/64201
Reviewed-by: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Joe Ethier <jethier@google.com>
2021-10-12 19:59:33 +00:00
Ali Zhang
eaf1e547f5 pw_software_update: Fix bugs in update_bundle.py
No-Docs-Update-Reason: bug fix

Change-Id: I97370b61d49bc51eba6c8e4dcb1430ff4440cad1
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/61300
Reviewed-by: Joe Ethier <jethier@google.com>
Commit-Queue: Ali Zhang <alizhang@google.com>
2021-09-17 18:21:59 +00:00
Joe Ethier
f345faa706 pw_software_update: Create unsigned update bundles
Testing: Includes baseline unit test coverage
Change-Id: Idb0dfed54cb52e600a5d1acb0002bf051225a84d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/60043
Commit-Queue: Joe Ethier <jethier@google.com>
Reviewed-by: Ali Zhang <alizhang@google.com>
2021-09-14 00:14:25 +00:00