File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ FIRMWARE_NOBOOT_SIZE = $(shell echo $$(($(FLASH_SIZE) - $(U_BOOT_PARTITION_SIZE)
114114# dynamic partitions
115115OVERLAY_SIZE = $(shell echo $$(($(FLASH_SIZE ) - $(OVERLAY_OFFSET ) ) ) )
116116OVERLAY_SIZE_NOBOOT = $(shell echo $$(($(FIRMWARE_NOBOOT_SIZE ) - $(OVERLAY_OFFSET_NOBOOT ) ) ) )
117+ OVERLAY_MINUMUM_SIZE := 131072
117118
118119# partition offsets
119120U_BOOT_OFFSET = 0
@@ -214,7 +215,7 @@ delete_bin_update:
214215 if [ -f $( FIRMWARE_BIN_NOBOOT) ]; then rm $( FIRMWARE_BIN_NOBOOT) ; fi
215216
216217create_overlay : $(U_BOOT_BIN )
217- if [ $( OVERLAY_SIZE) -lt 0 ]; then $( FIGLET) " OVERSIZE" ; fi
218+ if [ $( OVERLAY_SIZE) -lt $( OVERLAY_MINUMUM_SIZE ) ]; then $( FIGLET) " OVERSIZE" ; fi
218219 if [ -f $( OVERLAY_BIN) ]; then rm $( OVERLAY_BIN) ; fi
219220 $(OUTPUT_DIR ) /host/sbin/mkfs.jffs2 --little-endian --pad=$(OVERLAY_SIZE ) \
220221 --root=$(BR2_EXTERNAL ) /overlay/upper/ --eraseblock=$(ALIGN_BLOCK ) \
You can’t perform that action at this time.
0 commit comments