All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel.bbclass do_sizecheck behaviour changes
@ 2017-12-07 16:15 Mike Crowe
  2017-12-07 19:20 ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Crowe @ 2017-12-07 16:15 UTC (permalink / raw)
  To: openembedded-core

I discovered today that our kernel size check has been ineffective since we
took 7384d2831c713ac5999aca83c312154dc15cec56 from 2014 which changed the
units for KERNEL_IMAGE_MAXSIZE from bytes to kilobytes.

However whilst fixing that, I also noticed that
849b67b2e4820564b5e5c9bd4bb293c44351c5f3 in 2016 changed the consequences
of exceeding the size from being fatal to merely a warning.

This second change in behaviour wasn't described in the commit message, so
I'm not sure whether it was intentional. I can believe that when generating
multiple kernel image types it may not be essential that they all fit, but
I don't really know what the use case for the feature is.

I could fix this by adding to kernel.bbclass something like:

 KERNEL_IMAGE_MAXSIZE_CONSEQUENCE ?= "warn"

and then using it when delivering the bad news so that recipes can override
it if they wish.

Alternatively, I could treat the error as being fatal if none of the kernel
images fit within the required size. This would degenerate to the old
behaviour automatically if KERNEL_IMAGETYPES contains only one entry.

Does one of these solutions appeal, or is there another even better
solution?

Thanks.

Mike.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-12-11 10:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07 16:15 kernel.bbclass do_sizecheck behaviour changes Mike Crowe
2017-12-07 19:20 ` Khem Raj
2017-12-07 19:44   ` Andre McCurdy
2017-12-08 12:21     ` Mike Crowe
2017-12-08 21:34     ` Khem Raj
2017-12-08 22:24       ` Andre McCurdy
2017-12-11  9:49         ` Andrea Adami
2017-12-11 10:00         ` Mike Crowe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.