mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-01 18:44:13 +01:00
image: adapt mikrotik yafut to allow switch to bootimage YAFFS path
Adjust the YAFFS file path written depending on the sysupgrade filename. Default to kernel (for ELF), switch to bootimage (for NPK) if image name has v7. Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
This commit is contained in:
parent
f473d15816
commit
097049552a
1 changed files with 1 additions and 1 deletions
|
|
@ -519,7 +519,7 @@ define Build/yaffs-filesystem
|
|||
filesystem_size="filesystem_blocks * 64 * 1024" \
|
||||
filesystem_size_with_reserve="(filesystem_blocks + 2) * 64 * 1024"; \
|
||||
head -c $$filesystem_size_with_reserve /dev/zero | tr "\000" "\377" > $@.img \
|
||||
&& yafut -d $@.img -w -i $@ -o kernel -C 1040 -B 64k -E -P -S $(1) \
|
||||
&& yafut -d $@.img -w -i $@ -o $(if $(findstring v7,$@),bootimage,kernel) -C 1040 -B 64k -E -P -S $(1) \
|
||||
&& truncate -s $$filesystem_size $@.img \
|
||||
&& mv $@.img $@
|
||||
endef
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue