mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 09:32:12 +02:00
image.bbclass: improve wording when image size exceeds the specified limit
(From OE-Core rev: faf93355614c5e5d9aec8222a7df780324868c7a) Signed-off-by: Daniel Ammann <daniel.ammann@bytesatwork.ch> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit fcaab9d686a4afe53a4693f3b30634215d682389) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9d7e7b5b57
commit
4b3d87f149
@@ -551,14 +551,14 @@ def get_rootfs_size(d):
|
||||
if rootfs_maxsize:
|
||||
rootfs_maxsize_int = int(rootfs_maxsize)
|
||||
if base_size > rootfs_maxsize_int:
|
||||
bb.fatal("The rootfs size %d(K) overrides IMAGE_ROOTFS_MAXSIZE: %d(K)" % \
|
||||
bb.fatal("The rootfs size %d(K) exceeds IMAGE_ROOTFS_MAXSIZE: %d(K)" % \
|
||||
(base_size, rootfs_maxsize_int))
|
||||
|
||||
# Check the initramfs size against INITRAMFS_MAXSIZE (if set)
|
||||
if image_fstypes == initramfs_fstypes != '' and initramfs_maxsize:
|
||||
initramfs_maxsize_int = int(initramfs_maxsize)
|
||||
if base_size > initramfs_maxsize_int:
|
||||
bb.error("The initramfs size %d(K) overrides INITRAMFS_MAXSIZE: %d(K)" % \
|
||||
bb.error("The initramfs size %d(K) exceeds INITRAMFS_MAXSIZE: %d(K)" % \
|
||||
(base_size, initramfs_maxsize_int))
|
||||
bb.error("You can set INITRAMFS_MAXSIZE a larger value. Usually, it should")
|
||||
bb.fatal("be less than 1/2 of ram size, or you may fail to boot it.\n")
|
||||
|
||||
Reference in New Issue
Block a user