Просмотр исходного кода

image: remove duplicate cameo-factory

The function was accidentally added twice. Remove the duplicate.

Signed-off-by: Sebastian Kemper <[email protected]>
Sebastian Kemper 6 лет назад
Родитель
Сommit
b8271e9da0
1 измененных файлов с 0 добавлено и 12 удалено
  1. 0 12
      include/image-commands.mk

+ 0 - 12
include/image-commands.mk

@@ -56,18 +56,6 @@ define Build/cameo-factory
 	mv [email protected] $@
 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; \
-	) > [email protected] && \
-	mv [email protected] $@
-endef
-
 define Build/eva-image
 	$(STAGING_DIR_HOST)/bin/lzma2eva $(KERNEL_LOADADDR) $(KERNEL_LOADADDR) $@ [email protected]
 	mv [email protected] $@