mirror of https://github.com/hak5/openwrt-owl.git
apm821xx: image: add support for k unit suffix to boot-img
Signed-off-by: Mathias Kresin <dev@kresin.me>
parent
3e7524c184
commit
d7b6f0ea88
|
@ -184,7 +184,7 @@ define Build/boot-img
|
||||||
$(CP) $(IMAGE_KERNEL).dtb $@.bootdir/boot/$(DEVICE_DTB)
|
$(CP) $(IMAGE_KERNEL).dtb $@.bootdir/boot/$(DEVICE_DTB)
|
||||||
$(CP) $(IMAGE_KERNEL) $@.bootdir/boot/uImage
|
$(CP) $(IMAGE_KERNEL) $@.bootdir/boot/uImage
|
||||||
|
|
||||||
genext2fs --block-size $(BLOCKSIZE) --size-in-blocks $$((1024 * $(BOOT_SIZE))) --root $@.bootdir $@.boot
|
genext2fs --block-size $(BLOCKSIZE:%k=%Ki) --size-in-blocks $$((1024 * $(BOOT_SIZE))) --root $@.bootdir $@.boot
|
||||||
|
|
||||||
# convert it to revision 1 - needed for u-boot ext2load
|
# convert it to revision 1 - needed for u-boot ext2load
|
||||||
$(STAGING_DIR_HOST)/bin/tune2fs -O filetype $@.boot
|
$(STAGING_DIR_HOST)/bin/tune2fs -O filetype $@.boot
|
||||||
|
|
Loading…
Reference in New Issue