Skip to content

Commit

Permalink
ramips: mt7621: print size of factory initramfs-image if it's too big
Browse files Browse the repository at this point in the history
It's helpful to know the current and maximal size of the imagefiles if the
creation fails.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
  • Loading branch information
SvenRoederer authored and mans0n committed Feb 20, 2022
1 parent e282e50 commit 65df862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/linux/ramips/image/mt7621.mk
Expand Up @@ -26,7 +26,7 @@ define Build/iodata-factory
mv $(factory_bin).new $(factory_bin); \
$(CP) $(factory_bin) $(BIN_DIR)/; \
else \
echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
echo "WARNING: initramfs kernel image too big, cannot generate factory image (actual $$(stat -c%s $@); max $(fw_size))" >&2; \
fi
endef

Expand Down Expand Up @@ -66,7 +66,7 @@ define Build/ubnt-erx-factory-image
\
$(CP) $(1) $(BIN_DIR)/; \
else \
echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
echo "WARNING: initramfs kernel image too big, cannot generate factory image (actual $$(stat -c%s $@); max $(KERNEL_SIZE))" >&2; \
fi
endef

Expand Down

0 comments on commit 65df862

Please sign in to comment.