diff options
Diffstat (limited to 'include/image-commands.mk')
-rw-r--r-- | include/image-commands.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk index 3beec80c8b..70fa0b8357 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -155,6 +155,18 @@ define Build/check-size } endef +define Build/elecom-product-header + $(eval product=$(word 1,$(1))) + $(eval fw=$(word 2,$(1))) + + ( \ + echo -n -e "ELECOM\x00\x00$(product)" | dd bs=40 count=1 conv=sync; \ + echo -n "0.00" | dd bs=16 count=1 conv=sync; \ + dd if=$(fw); \ + ) > $(fw).new + mv $(fw).new $(fw) +endef + define Build/eva-image $(STAGING_DIR_HOST)/bin/lzma2eva $(KERNEL_LOADADDR) $(KERNEL_LOADADDR) $@ $@.new mv $@.new $@ |