On Sunday, 21 June 2026 08:59:20 CEST Mark Ter Morshuizen wrote:
> "WARNING: Image file 
> /home/mark/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_mikrotik/tmp/openwrt-ath79-mikrotik-mikrotik_routerboard-sxt-2nd-r3-squashfs-sysupgrade.bin
>  
> is too big: 6684676 > 0"
> 
> Obviously 6684676 is indeed greater than 0, but where is the 0 coming from?

Often from IMAGE_SIZE:

    $ git grep -W 'WARNING: Image file.*is too big'
    include/image-commands.mk=define Build/check-size
    include/image-commands.mk-      @imagesize="$$(stat -c%s $@)"; \
    include/image-commands.mk-      limitsize="$$(($(call exp_units,$(if 
$(1),$(1),$(IMAGE_SIZE)))))"; \
    include/image-commands.mk-      [ $$limitsize -ge $$imagesize ] || { \
    include/image-commands.mk:              $(call ERROR_MESSAGE,    WARNING: 
Image file $@ is too big: $$imagesize > $$limitsize); \
    include/image-commands.mk-              rm -f $@; \
    include/image-commands.mk-      }

Regards,
        Sven

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to