/branches/18.06.1/include/image-commands.mk |
@@ -49,31 +49,6 @@ |
mv $@.new $@ |
endef |
|
define Build/seama |
$(STAGING_DIR_HOST)/bin/seama -i $@ \ |
-m "dev=/dev/mtdblock/$(SEAMA_MTDBLOCK)" -m "type=firmware" |
mv $@.seama $@ |
endef |
|
define Build/seama-seal |
$(STAGING_DIR_HOST)/bin/seama -i $@ -s $@.seama \ |
-m "signature=$(SEAMA_SIGNATURE)" |
mv $@.seama $@ |
endef |
|
define Build/zyxel-ras-image |
let \ |
newsize="$(subst k,* 1024,$(RAS_ROOTFS_SIZE))"; \ |
$(STAGING_DIR_HOST)/bin/mkrasimage \ |
-b $(RAS_BOARD) \ |
-v $(RAS_VERSION) \ |
-r $@ \ |
-s $$newsize \ |
-o $@.new \ |
$(if $(findstring separate-kernel,$(word 1,$(1))),-k $(IMAGE_KERNEL)) \ |
&& mv $@.new $@ |
endef |
|
define Build/netgear-chk |
$(STAGING_DIR_HOST)/bin/mkchkimg \ |
-o $@.new \ |
@@ -102,10 +77,6 @@ |
cat $@.fakesquashfs >> $@ |
endef |
|
define Build/append-string |
echo -n $(1) >> $@ |
endef |
|
# append a fake/empty uImage header, to fool bootloaders rootfs integrity check |
# for example |
define Build/append-uImage-fakehdr |
@@ -168,16 +139,6 @@ |
@mv $@.new $@ |
endef |
|
define Build/zip |
mkdir $@.tmp |
mv $@ $@.tmp/$(1) |
|
zip -j -X \ |
$(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \ |
$@ $@.tmp/$(if $(1),$(1),$@) |
rm -rf $@.tmp |
endef |
|
define Build/jffs2 |
rm -rf $(KDIR_TMP)/$(DEVICE_NAME)/jffs2 && \ |
mkdir -p $(KDIR_TMP)/$(DEVICE_NAME)/jffs2/$$(dirname $(1)) && \ |
@@ -254,11 +215,6 @@ |
mv $@.new $@ |
endef |
|
define Build/xor-image |
$(STAGING_DIR_HOST)/bin/xorimage -i $@ -o $@.xor $(1) |
mv $@.xor $@ |
endef |
|
define Build/check-size |
@[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -ge "$$(stat -c%s $@)" ] || { \ |
echo "WARNING: Image file $@ is too big" >&2; \ |
@@ -274,13 +230,6 @@ |
@mv $@.new $@ |
endef |
|
define Build/linksys-image |
$(TOPDIR)/scripts/linksys-image.sh \ |
"$(call param_get_default,type,$(1),$(DEVICE_NAME))" \ |
$@ $@.new |
mv $@.new $@ |
endef |
|
define Build/openmesh-image |
$(TOPDIR)/scripts/om-fwupgradecfg-gen.sh \ |
"$(call param_get_default,ce_type,$(1),$(DEVICE_NAME))" \ |
@@ -294,25 +243,6 @@ |
"$(call param_get_default,rootfs,$(1),$@)" "rootfs" |
endef |
|
define Build/qsdk-ipq-factory-nand |
$(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \ |
$@.its ubi $@ |
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new |
@mv $@.new $@ |
endef |
|
define Build/qsdk-ipq-factory-nor |
$(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \ |
$@.its hlos $(IMAGE_KERNEL) rootfs $(IMAGE_ROOTFS) |
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new |
@mv $@.new $@ |
endef |
|
define Build/senao-header |
$(STAGING_DIR_HOST)/bin/mksenaofw $(1) -e $@ -o $@.new |
mv $@.new $@ |
endef |
|
define Build/sysupgrade-tar |
sh $(TOPDIR)/scripts/sysupgrade-tar.sh \ |
--board $(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)) \ |
@@ -366,12 +296,6 @@ |
|
define Build/append-metadata |
$(if $(SUPPORTED_DEVICES),-echo $(call metadata_json,$(SUPPORTED_DEVICES)) | fwtool -I - $@) |
[ ! -s "$(BUILD_KEY)" -o ! -s "$(BUILD_KEY).ucert" -o ! -s "$@" ] || { \ |
cp "$(BUILD_KEY).ucert" "$@.ucert" ;\ |
usign -S -m "$@" -s "$(BUILD_KEY)" -x "$@.sig" ;\ |
ucert -A -c "$@.ucert" -x "$@.sig" ;\ |
fwtool -S "$@.ucert" "$@" ;\ |
} |
endef |
|
define Build/kernel2minor |