aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Roederer <devel-sven@geroedel.de>2021-07-21 01:30:41 +0200
committerSungbo Eo <mans0n@gorani.run>2022-02-20 15:55:36 +0900
commit65df862b50a6301964c9a2d7d8281e68e60ce16f (patch)
tree41891a4aa6e04e09b221b28273411e7cb3b0807a
parente282e50d44910956d145950e62b75d4fc9a5e20d (diff)
downloadupstream-65df862b50a6301964c9a2d7d8281e68e60ce16f.tar.gz
upstream-65df862b50a6301964c9a2d7d8281e68e60ce16f.tar.bz2
upstream-65df862b50a6301964c9a2d7d8281e68e60ce16f.zip
ramips: mt7621: print size of factory initramfs-image if it's too big
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>
-rw-r--r--target/linux/ramips/image/mt7621.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 4e3390a4ac..95fdc6095d 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -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
@@ -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