cros_bundle_firmware: Add support for multiple file requirements
Currently we support only a BCT file being passed in to the tools. This
is Tegra-specific.
Change the bct parameter into a dictionary, to allow us to pass multiple
files in as required. This is more extensible.
BUG=chromium-os:19724
TEST=manual: run cros_bundle_firmware -m
Change-Id: I7784bcc7ab735699b1d09e58488f5003894748a6
Reviewed-on: https://gerrit.chromium.org/gerrit/18320
Commit-Ready: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
diff --git a/host/lib/bundle_firmware.py b/host/lib/bundle_firmware.py
index 5136443..7fbd0bf 100644
--- a/host/lib/bundle_firmware.py
+++ b/host/lib/bundle_firmware.py
@@ -154,6 +154,23 @@
if not self.bmpblk_fname:
self.bmpblk_fname = os.path.join(build_root, 'default.bmpblk')
+ def GetFiles(self):
+ """Get a list of files that we know about.
+
+ This is the opposite of SetFiles except that we may have put in some
+ default names. It returns a dictionary containing the filename for
+ each of a number of pre-defined files.
+
+ Returns:
+ Dictionary, with one entry for each file.
+ """
+ file_list = {
+ 'bct' : self.bct_fname,
+ 'exynos-bl1' : self.exynos_bl1,
+ 'exynos-bl2' : self.exynos_bl2,
+ }
+ return file_list
+
def _CreateGoogleBinaryBlock(self, hardware_id):
"""Create a GBB for the image.