summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-02-17 17:43:51 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-18 17:24:19 +0000
commit9241332ed25273ac3dd4c8b83516522f46b52bb1 (patch)
treeff017eccb5d803f01fbc14266aa31c15d171d1a5
parentccd2d5ac1047614ce47e393333fbbf79282d8c86 (diff)
downloadchrome-ec-9241332ed25273ac3dd4c8b83516522f46b52bb1.tar.gz
zephyr: zmake: restore the original raw packer
Re-create the original "raw" format packer that showed up in the very first version of Zmake, which does absolutely no ro/rw packing, and just forwards zephyr.bin directly to the output directory. BUG=b:180545676 BRANCH=none TEST=build for chameleon with "output-type: raw" Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I3280297c18485a987528aeb533ea57be3909982c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2702504 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--zephyr/zmake/zmake/output_packers.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/zmake/zmake/output_packers.py b/zephyr/zmake/zmake/output_packers.py
index ba7cdd9ec2..558f08f7ef 100644
--- a/zephyr/zmake/zmake/output_packers.py
+++ b/zephyr/zmake/zmake/output_packers.py
@@ -96,6 +96,12 @@ class ElfPacker(BasePacker):
yield singleimage / 'zephyr' / 'zephyr.elf', 'zephyr.elf'
+class RawBinPacker(BasePacker):
+ """Raw proxy for zephyr.bin output of a single build."""
+ def pack_firmware(self, work_dir, jobclient, singleimage):
+ yield singleimage / 'zephyr' / 'zephyr.bin', 'zephyr.bin'
+
+
class NpcxPacker(BasePacker):
"""Packer for RO/RW image to generate a .bin build using FMAP.
@@ -167,4 +173,5 @@ class NpcxPacker(BasePacker):
packer_registry = {
'elf': ElfPacker,
'npcx': NpcxPacker,
+ 'raw': RawBinPacker,
}