Hi All,
not sure if I should put this here.
If I define KERNEL_IMAGE_MAXSIZE below my actual kernel size I get this ugly error:

ERROR: linux-at91-4.9.28-r0.4 do_sizecheck: Function failed: do_sizecheck (log file is located at xxx/linux-at91/4.9.28-r0.4/temp/log.do_sizecheck.1370) ERROR: Logfile of failure stored in: xxx/linux-at91/4.9.28-r0.4/temp/log.do_sizecheck.1370
Log data follows:
| DEBUG: Executing shell function do_sizecheck
| xxx/linux-at91/4.9.28-r0.4/temp/run.do_sizecheck.1370: line 117: warn: command not found | WARNING: xxx/linux-at91/4.9.28-r0.4/temp/run.do_sizecheck.1370:1 exit 127 from 'warn "This kernel $type (size=$size(K) > 2100(K)) is too big for your device. Please reduce the size of the kernel by making more of it modular."' | ERROR: Function failed: do_sizecheck (log file is located at xxx/linux-at91/4.9.28-r0.4/temp/log.do_sizecheck.1370) ERROR: Task (xxx/meta-atmel/recipes-kernel/linux/linux-at91_4.9.bb:do_sizecheck) failed with exit code '1' NOTE: Tasks Summary: Attempted 1646 tasks of which 1638 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  xxx/meta-atmel/recipes-kernel/linux/linux-at91_4.9.bb:do_sizecheck
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Either poky/meta/classes/kernel.bbclass should be changed to run 'die' instead of 'warn' or in poky/meta/classes/base.bbclass a function 'warn' should be added. Not sure which. I tend to the first option: if the kernel image is too large then this is an error.

Regards,
Jaap
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to