Skip to content

Commit

Permalink
image: remove duplicate cameo-factory
Browse files Browse the repository at this point in the history
The function was accidentally added twice. Remove the duplicate.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
  • Loading branch information
micmac1 authored and chunkeey committed Dec 17, 2018
1 parent 5ae45dc commit b8271e9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/image-commands.mk
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,6 @@ define Build/cameo-factory
mv $@.new $@
endef

# blow up binary to given size and put a given string at its end:
# cameo-factory <size[k]> <string>
define Build/cameo-factory
factory_stamp=$(word 2,$(1)); \
((reduced_size=$(subst k,*1024,$(word 1,$(1)))-$${#factory_stamp})); \
( \
dd if=$@ bs=$$reduced_size conv=sync; \
echo -n $$factory_stamp; \
) > $@.new && \
mv $@.new $@
endef

define Build/eva-image
$(STAGING_DIR_HOST)/bin/lzma2eva $(KERNEL_LOADADDR) $(KERNEL_LOADADDR) $@ $@.new
mv $@.new $@
Expand Down

0 comments on commit b8271e9

Please sign in to comment.