Message ID | 20250328205213.93625-1-gavrosc@yahoo.com |
---|---|
State | New |
Headers | show |
Series | ref-manual/variables.rst: document the INITRAMFS_MAXSIZE variable | expand |
Hi Christos, Thanks for the patch! On 3/28/25 9:52 PM, Christos Gavros via lists.yoctoproject.org wrote: > This variable specifies the maximum allowed size > of the initramfs image in bytes. > Fixes [YOCTO #15797] > > CC: Yoann Congal <yoann.congal@smile.fr> > CC: Randy MacLeod <randy.macleod@windriver.com> > CC: Antonin Godard <antonin.godard@bootlin.com> > Signed-off-by: Christos Gavros <gavrosc@yahoo.com> > --- > documentation/ref-manual/variables.rst | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst > index 62e339ed8..c9c042096 100644 > --- a/documentation/ref-manual/variables.rst > +++ b/documentation/ref-manual/variables.rst > @@ -4474,6 +4474,13 @@ system and gives an overview of their function and contents. > See the :term:`MACHINE` variable for additional > information. > > + :term:`INITRAMFS_MAXSIZE` > + Specifies the maximum allowed size of the initramfs image in bytes. Is it really in bytes? The error message specifies "(K)" which I assume means those are Kilobytes? > + The build will fail in case the initramfs image size is bigger than > + the value of this variable. > + There is a week default value assignment (INITRAMFS_MAXSIZE ??= "131072" ) s/week/weak/ > + in bitbake.conf. > + I would suggest to reword like this: """ The default value is set as follows in the BitBake configuration file:: INITRAMFS_MAXSIZE ??= "131072" """ to follow the same convention we used for other variables' default value. It's not entirely clear on what this limit applies when compression is enabled, on the uncompressed content or compressed? This needs to be made explicit. Cheers, Quentin
hi Quentin, thank you for your comments. i will prepare a v2. I dont have the answer about the 'compression' question you set. i would have to look at that. Br Christos
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 62e339ed8..c9c042096 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -4474,6 +4474,13 @@ system and gives an overview of their function and contents. See the :term:`MACHINE` variable for additional information. + :term:`INITRAMFS_MAXSIZE` + Specifies the maximum allowed size of the initramfs image in bytes. + The build will fail in case the initramfs image size is bigger than + the value of this variable. + There is a week default value assignment (INITRAMFS_MAXSIZE ??= "131072" ) + in bitbake.conf. + :term:`INITRAMFS_MULTICONFIG` Defines the multiconfig to create a multiconfig dependency to be used by the :ref:`ref-classes-kernel` class.
This variable specifies the maximum allowed size of the initramfs image in bytes. Fixes [YOCTO #15797] CC: Yoann Congal <yoann.congal@smile.fr> CC: Randy MacLeod <randy.macleod@windriver.com> CC: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Christos Gavros <gavrosc@yahoo.com> --- documentation/ref-manual/variables.rst | 7 +++++++ 1 file changed, 7 insertions(+)