diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2021-06-13 00:14:03 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-14 15:05:11 +0100 |
commit | b32f1ad8798fda46ec598d29a0ac9e2fb11d5e2a (patch) | |
tree | 67602a7e8b1762ad6c70070b57aec5e11d6b686b /documentation/test-manual | |
parent | 5933da887a6f8dd9e8cb09312528c071df04d6e5 (diff) | |
download | poky-b32f1ad8798fda46ec598d29a0ac9e2fb11d5e2a.tar.gz |
kernel.bbclass: fix do_sizecheck() comparison
The routine do_sizecheck() was historically needed by legacy
devices with limited flash memory.
The lowest extreme is probably with Zaurus collie having exactly
1024*1024 = 1048576 bytes for the kernel partition.
In the years the KERNEL_IMAGE_MAXSIZE has been converted to kilobytes
thus rounded so we have now KERNEL_IMAGE_MAXSIZE_collie = "1024".
The effect is that now the check fails because we hit curiously this
| WARNING: This kernel zImage (size=1024(K) > 1024(K)) is too big for...
even though zImage is 1047288 bytes (kernel + kexecboot-klibc-initramfs).
Fix this case using test -gt (greater) instead of -ge (greater or equal).
(From OE-Core rev: 254ca956d63b4ce6aa294213b60bb943f9f3a9e6)
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/test-manual')
0 files changed, 0 insertions, 0 deletions