build: image: return sizes if check-size fails
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 29 Jul 2020 19:00:12 +0000 (21:00 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 3 Aug 2020 08:40:32 +0000 (10:40 +0200)
commit1d9542c50e2c263256446170ffbd29d0e15bb96d
tree5d3470fadb432f0aa5aafeed926c5b2c8a5635b2
parentc90db26e051e4f0e7cd32333b3bd8c94a13d599a
build: image: return sizes if check-size fails

Instead of just printing a warning that an image is too big, also
print both actual size and limit in the string:

WARNING: Image file somename.bin is too big: 2096101 > 1048576

Since the kernel size is checked via the same function (if
KERNEL_SIZE is specified), this will also apply to the kernel
image size check.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
include/image-commands.mk