diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2021-06-13 00:14:03 +0200 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-06-22 11:19:38 +0800 |
commit | 61feebd88960eb4e074a80a0e45b36a7a1db869c (patch) | |
tree | 5041542338be13530a0c58b4c2e305a46bafc1f1 /meta/recipes-kernel/linux/linux-yocto_5.10.bb | |
parent | e18f7db2c7159da2d82dc6557edead8bb40ac09f (diff) | |
download | openembedded-core-contrib-61feebd88960eb4e074a80a0e45b36a7a1db869c.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).
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 254ca956d63b4ce6aa294213b60bb943f9f3a9e6)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-yocto_5.10.bb')
0 files changed, 0 insertions, 0 deletions