summaryrefslogtreecommitdiff
path: root/zephyr/zmake
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-07-26 11:08:55 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-29 20:39:30 +0000
commitcb3adecc57273a927b4759939ce3031f6afc7f9b (patch)
tree16be2f04213073304d6bb8c4007f62d058c36f89 /zephyr/zmake
parent5645d842b2c39e863f56c5da84fa9472ac4f68c7 (diff)
downloadchrome-ec-cb3adecc57273a927b4759939ce3031f6afc7f9b.tar.gz
zephyr: Change final output binary to ec.bin
For backwards compatibility set the final output binary to ec.bin instead of zephyr.bin. Remove some references to zephr.bin. BRANCH=None BUG=b:239887568 TEST=zmake build -a ; ls build/zephyr/*/output Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I9840699505ef97e338b5552de3237f5f6741c8e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3788136 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/zmake')
-rw-r--r--zephyr/zmake/tests/test_packers.py4
-rw-r--r--zephyr/zmake/zmake/output_packers.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/zephyr/zmake/tests/test_packers.py b/zephyr/zmake/tests/test_packers.py
index a038b51abd..8f9cfc9821 100644
--- a/zephyr/zmake/tests/test_packers.py
+++ b/zephyr/zmake/tests/test_packers.py
@@ -53,7 +53,7 @@ def test_file_size_in_bounds(data):
"""Test with file size limited."""
packer = FakePacker(100)
with tempfile.TemporaryDirectory() as temp_dir_name:
- file = pathlib.Path(temp_dir_name) / "zephyr.bin"
+ file = pathlib.Path(temp_dir_name) / "ec.bin"
with open(file, "wb") as outfile:
outfile.write(data)
assert packer.check_packed_file_size(file=file, dir_map={}) == file
@@ -65,7 +65,7 @@ def test_file_size_out_of_bounds(data):
"""Test with file size limited, and file exceeds limit."""
packer = FakePacker(100)
with tempfile.TemporaryDirectory() as temp_dir_name:
- file = pathlib.Path(temp_dir_name) / "zephyr.bin"
+ file = pathlib.Path(temp_dir_name) / "ec.bin"
with open(file, "wb") as outfile:
outfile.write(data)
with pytest.raises(RuntimeError):
diff --git a/zephyr/zmake/zmake/output_packers.py b/zephyr/zmake/zmake/output_packers.py
index bc58d92ddc..7ef6d65dc5 100644
--- a/zephyr/zmake/zmake/output_packers.py
+++ b/zephyr/zmake/zmake/output_packers.py
@@ -108,7 +108,7 @@ class RawBinPacker(BasePacker):
def pack_firmware(self, work_dir, jobclient, dir_map, version_string=""):
del version_string
- yield dir_map["singleimage"] / "zephyr" / "zephyr.bin", "zephyr.bin"
+ yield dir_map["singleimage"] / "zephyr" / "zephyr.bin", "ec.bin"
class BinmanPacker(BasePacker):
@@ -199,7 +199,7 @@ class BinmanPacker(BasePacker):
if proc.wait(timeout=60):
raise OSError("Failed to run binman")
- yield work_dir / "zephyr.bin", "zephyr.bin"
+ yield work_dir / "ec.bin", "ec.bin"
yield ro_dir / "zephyr" / "zephyr.elf", "zephyr.ro.elf"
yield rw_dir / "zephyr" / "zephyr.elf", "zephyr.rw.elf"
@@ -238,10 +238,10 @@ class NpcxPacker(BinmanPacker):
dir_map,
version_string=version_string,
):
- if output_file == "zephyr.bin":
+ if output_file == "ec.bin":
yield (
self._check_packed_file_size(path, dir_map),
- "zephyr.bin",
+ "ec.bin",
)
else:
yield path, output_file