cros_bundle_firmware: Use filename translation for bl2 name
The exynos bl2 filename may also be chroot-relative, so use
tools.Filename() to access it.
BUG=chromium-os:19724
TEST=emerge-daisy chromeos-bootimage; See that it finds the bl2 now
Change-Id: I91b8b2b9016565c5cc292d31a6b74af0c510a365
Reviewed-on: https://gerrit.chromium.org/gerrit/18763
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Commit-Ready: 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 a658beb..6ce0242 100644
--- a/host/lib/bundle_firmware.py
+++ b/host/lib/bundle_firmware.py
@@ -535,7 +535,7 @@
orig_bl2: Filename of original BL2 file to modify.
"""
bl2 = os.path.join(self._tools.outdir, 'updated-spl.bin')
- shutil.copyfile(orig_bl2, bl2)
+ shutil.copyfile(self._tools.Filename(orig_bl2), bl2)
# Locate the parameter block
data = self._tools.ReadFile(bl2)