* [PATCH] ref-manual: add DEBUGFS-related variables to glossary @ 2021-05-21 9:35 Robert P. J. Day 2021-05-27 10:33 ` [docs] " Quentin Schulz 0 siblings, 1 reply; 8+ messages in thread From: Robert P. J. Day @ 2021-05-21 9:35 UTC (permalink / raw) To: YP docs mailing list Add variable glossary entries for all of: * IMAGE_GEN_DEBUGFS * IMAGE_FSTYPES_DEBUGFS * IMAGE_INSTALL_DEBUGFS Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> --- diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 0b61f77cb..1ce43a954 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -3006,6 +3006,24 @@ system and gives an overview of their function and contents. or ``_prepend``. You must use the ``+=`` operator to add one or more options to the ``IMAGE_FSTYPES`` variable. + :term:`IMAGE_FSTYPES_DEBUGFS` + Similar to :term:`IMAGE_FSTYPES`, specifies the formats the + OpenEmbedded build system uses during the build when creating the + debug filesystem, as long as :term:`IMAGE_GEN_DEBUGFS` has been + set to '1'. + + The default value from ``bitbake.conf``:: + + IMAGE_FSTYPES_DEBUGFS ?= "tar.gz" + + :term:`IMAGE_GEN_DEBUGFS` + Set to '1' in order to generate a separate debug fileystem:: + + IMAGE_GEN_DEBUGFS = '1' + + If set, the debugfs will be generated with all of the filesystem + formats listed in :term:`IMAGE_FSTYPES_DEBUGFS`. + :term:`IMAGE_INSTALL` Used by recipes to specify the packages to install into an image through the :ref:`image <ref-classes-image>` class. Use the @@ -3055,6 +3073,11 @@ system and gives an overview of their function and contents. specific situation. In both these cases, the behavior is contrary to how most users expect the ``+=`` operator to work. + :term:`IMAGE_INSTALL_DEBUGFS` + Analogous to :term:`IMAGE_INSTALL`, specify a list of additional + packages to add to the debug filesystem which would not normally + be installed as complementary packages of standard ones. + :term:`IMAGE_LINGUAS` Specifies the list of locales to install into the image during the root filesystem construction process. The OpenEmbedded build system -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [docs] [PATCH] ref-manual: add DEBUGFS-related variables to glossary 2021-05-21 9:35 [PATCH] ref-manual: add DEBUGFS-related variables to glossary Robert P. J. Day @ 2021-05-27 10:33 ` Quentin Schulz 2021-05-27 15:58 ` Robert P. J. Day 2021-05-27 23:34 ` Khem Raj 0 siblings, 2 replies; 8+ messages in thread From: Quentin Schulz @ 2021-05-27 10:33 UTC (permalink / raw) To: Robert P. J. Day; +Cc: YP docs mailing list Hi Richard, On Fri, May 21, 2021 at 05:35:21AM -0400, Robert P. J. Day wrote: > > Add variable glossary entries for all of: > > * IMAGE_GEN_DEBUGFS > * IMAGE_FSTYPES_DEBUGFS > * IMAGE_INSTALL_DEBUGFS > > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> > > --- > > diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst > index 0b61f77cb..1ce43a954 100644 > --- a/documentation/ref-manual/variables.rst > +++ b/documentation/ref-manual/variables.rst > @@ -3006,6 +3006,24 @@ system and gives an overview of their function and contents. > or ``_prepend``. You must use the ``+=`` operator to add one or > more options to the ``IMAGE_FSTYPES`` variable. > > + :term:`IMAGE_FSTYPES_DEBUGFS` > + Similar to :term:`IMAGE_FSTYPES`, specifies the formats the > + OpenEmbedded build system uses during the build when creating the > + debug filesystem, as long as :term:`IMAGE_GEN_DEBUGFS` has been > + set to '1'. > + > + The default value from ``bitbake.conf``:: > + > + IMAGE_FSTYPES_DEBUGFS ?= "tar.gz" > + > + :term:`IMAGE_GEN_DEBUGFS` > + Set to '1' in order to generate a separate debug fileystem:: > + > + IMAGE_GEN_DEBUGFS = '1' > + > + If set, the debugfs will be generated with all of the filesystem Having worked with the kernel before Yocto, for me debugfs is a pseudo filesystem created and mounted by the kernel. I guess this has nothing to do with it. Could we elaborate a bit more on what this debug filesystem is and what's its use? And also put a word that this shouldn't be confused with debugfs filesystem from the kernel, c.f. https://www.kernel.org/doc/html/latest/filesystems/debugfs.html. Eager to learn what this is for :) Thanks for the patch! Cheers, Quentin ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [docs] [PATCH] ref-manual: add DEBUGFS-related variables to glossary 2021-05-27 10:33 ` [docs] " Quentin Schulz @ 2021-05-27 15:58 ` Robert P. J. Day 2021-05-27 16:09 ` Quentin Schulz 2021-05-27 23:34 ` Khem Raj 1 sibling, 1 reply; 8+ messages in thread From: Robert P. J. Day @ 2021-05-27 15:58 UTC (permalink / raw) To: Quentin Schulz; +Cc: YP docs mailing list On Thu, 27 May 2021, Quentin Schulz wrote: > Hi Richard, > > On Fri, May 21, 2021 at 05:35:21AM -0400, Robert P. J. Day wrote: > > > > Add variable glossary entries for all of: > > > > * IMAGE_GEN_DEBUGFS > > * IMAGE_FSTYPES_DEBUGFS > > * IMAGE_INSTALL_DEBUGFS > > > > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> > > > > --- > > > > diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst > > index 0b61f77cb..1ce43a954 100644 > > --- a/documentation/ref-manual/variables.rst > > +++ b/documentation/ref-manual/variables.rst > > @@ -3006,6 +3006,24 @@ system and gives an overview of their function and contents. > > or ``_prepend``. You must use the ``+=`` operator to add one or > > more options to the ``IMAGE_FSTYPES`` variable. > > > > + :term:`IMAGE_FSTYPES_DEBUGFS` > > + Similar to :term:`IMAGE_FSTYPES`, specifies the formats the > > + OpenEmbedded build system uses during the build when creating the > > + debug filesystem, as long as :term:`IMAGE_GEN_DEBUGFS` has been > > + set to '1'. > > + > > + The default value from ``bitbake.conf``:: > > + > > + IMAGE_FSTYPES_DEBUGFS ?= "tar.gz" > > + > > + :term:`IMAGE_GEN_DEBUGFS` > > + Set to '1' in order to generate a separate debug fileystem:: > > + > > + IMAGE_GEN_DEBUGFS = '1' > > + > > + If set, the debugfs will be generated with all of the filesystem > > Having worked with the kernel before Yocto, for me debugfs is a > pseudo filesystem created and mounted by the kernel. I guess this > has nothing to do with it. i went through that initial confusion once upon a time as well -- yup, totally different. it would be the stuff placed typically under various .debug directories. > Could we elaborate a bit more on what this debug filesystem is and > what's its use? And also put a word that this shouldn't be confused > with debugfs filesystem from the kernel, c.f. > https://www.kernel.org/doc/html/latest/filesystems/debugfs.html. for the sake of brevity in the glossary, it would be better to keep glossary entries short, and link to longer explanations or tutorials. i can add such a link if such a section exists. is there somewhere a decent explanation? rday ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [docs] [PATCH] ref-manual: add DEBUGFS-related variables to glossary 2021-05-27 15:58 ` Robert P. J. Day @ 2021-05-27 16:09 ` Quentin Schulz 2021-05-28 14:33 ` Michael Opdenacker 0 siblings, 1 reply; 8+ messages in thread From: Quentin Schulz @ 2021-05-27 16:09 UTC (permalink / raw) To: Robert P. J. Day; +Cc: YP docs mailing list On Thu, May 27, 2021 at 11:58:07AM -0400, Robert P. J. Day wrote: > On Thu, 27 May 2021, Quentin Schulz wrote: > > > Hi Richard, > > > > On Fri, May 21, 2021 at 05:35:21AM -0400, Robert P. J. Day wrote: > > > > > > Add variable glossary entries for all of: > > > > > > * IMAGE_GEN_DEBUGFS > > > * IMAGE_FSTYPES_DEBUGFS > > > * IMAGE_INSTALL_DEBUGFS > > > > > > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> > > > > > > --- > > > > > > diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst > > > index 0b61f77cb..1ce43a954 100644 > > > --- a/documentation/ref-manual/variables.rst > > > +++ b/documentation/ref-manual/variables.rst > > > @@ -3006,6 +3006,24 @@ system and gives an overview of their function and contents. > > > or ``_prepend``. You must use the ``+=`` operator to add one or > > > more options to the ``IMAGE_FSTYPES`` variable. > > > > > > + :term:`IMAGE_FSTYPES_DEBUGFS` > > > + Similar to :term:`IMAGE_FSTYPES`, specifies the formats the > > > + OpenEmbedded build system uses during the build when creating the > > > + debug filesystem, as long as :term:`IMAGE_GEN_DEBUGFS` has been > > > + set to '1'. > > > + > > > + The default value from ``bitbake.conf``:: > > > + > > > + IMAGE_FSTYPES_DEBUGFS ?= "tar.gz" > > > + > > > + :term:`IMAGE_GEN_DEBUGFS` > > > + Set to '1' in order to generate a separate debug fileystem:: > > > + > > > + IMAGE_GEN_DEBUGFS = '1' > > > + > > > + If set, the debugfs will be generated with all of the filesystem > > > > Having worked with the kernel before Yocto, for me debugfs is a > > pseudo filesystem created and mounted by the kernel. I guess this > > has nothing to do with it. > > i went through that initial confusion once upon a time as well -- > yup, totally different. it would be the stuff placed typically under > various .debug directories. > > > Could we elaborate a bit more on what this debug filesystem is and > > what's its use? And also put a word that this shouldn't be confused > > with debugfs filesystem from the kernel, c.f. > > https://www.kernel.org/doc/html/latest/filesystems/debugfs.html. > > for the sake of brevity in the glossary, it would be better to keep > glossary entries short, and link to longer explanations or tutorials. > i can add such a link if such a section exists. is there somewhere a > decent explanation? > Makes sense. A quick grep returned https://docs.yoctoproject.org/dev-manual/common-tasks.html#using-the-gdbserver-method point 1. Cheers, Quentin ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [docs] [PATCH] ref-manual: add DEBUGFS-related variables to glossary 2021-05-27 16:09 ` Quentin Schulz @ 2021-05-28 14:33 ` Michael Opdenacker 0 siblings, 0 replies; 8+ messages in thread From: Michael Opdenacker @ 2021-05-28 14:33 UTC (permalink / raw) To: Quentin Schulz, Robert P. J. Day; +Cc: YP docs mailing list Hi Robert, On 5/27/21 6:09 PM, Quentin Schulz wrote: > On Thu, May 27, 2021 at 11:58:07AM -0400, Robert P. J. Day wrote: >> for the sake of brevity in the glossary, it would be better to keep >> glossary entries short, and link to longer explanations or tutorials. >> i can add such a link if such a section exists. is there somewhere a >> decent explanation? >> > Makes sense. > > A quick grep returned > https://docs.yoctoproject.org/dev-manual/common-tasks.html#using-the-gdbserver-method > point 1. Thanks again for your contribution. If you update your text with this reference, as you suggested, I'll be happy to merge your patch. The controversity with the "DEBUGFS" name is another story, and definitely not your choice. Cheers, Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [docs] [PATCH] ref-manual: add DEBUGFS-related variables to glossary 2021-05-27 10:33 ` [docs] " Quentin Schulz 2021-05-27 15:58 ` Robert P. J. Day @ 2021-05-27 23:34 ` Khem Raj 2021-05-28 9:14 ` Michael Opdenacker 1 sibling, 1 reply; 8+ messages in thread From: Khem Raj @ 2021-05-27 23:34 UTC (permalink / raw) To: Quentin Schulz, Robert P. J. Day; +Cc: YP docs mailing list On 5/27/21 3:33 AM, Quentin Schulz wrote: > Hi Richard, > > On Fri, May 21, 2021 at 05:35:21AM -0400, Robert P. J. Day wrote: >> >> Add variable glossary entries for all of: >> >> * IMAGE_GEN_DEBUGFS >> * IMAGE_FSTYPES_DEBUGFS >> * IMAGE_INSTALL_DEBUGFS >> >> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> >> >> --- >> >> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst >> index 0b61f77cb..1ce43a954 100644 >> --- a/documentation/ref-manual/variables.rst >> +++ b/documentation/ref-manual/variables.rst >> @@ -3006,6 +3006,24 @@ system and gives an overview of their function and contents. >> or ``_prepend``. You must use the ``+=`` operator to add one or >> more options to the ``IMAGE_FSTYPES`` variable. >> >> + :term:`IMAGE_FSTYPES_DEBUGFS` >> + Similar to :term:`IMAGE_FSTYPES`, specifies the formats the >> + OpenEmbedded build system uses during the build when creating the >> + debug filesystem, as long as :term:`IMAGE_GEN_DEBUGFS` has been >> + set to '1'. >> + >> + The default value from ``bitbake.conf``:: >> + >> + IMAGE_FSTYPES_DEBUGFS ?= "tar.gz" >> + >> + :term:`IMAGE_GEN_DEBUGFS` >> + Set to '1' in order to generate a separate debug fileystem:: >> + >> + IMAGE_GEN_DEBUGFS = '1' >> + >> + If set, the debugfs will be generated with all of the filesystem > > Having worked with the kernel before Yocto, for me debugfs is a pseudo > filesystem created and mounted by the kernel. I guess this has nothing > to do with it. Could we elaborate a bit more on what this debug > filesystem is and what's its use? And also put a word that this > shouldn't be confused with debugfs filesystem from the kernel, c.f. > https://www.kernel.org/doc/html/latest/filesystems/debugfs.html. > > Eager to learn what this is for :) yeah its a name collision, perhaps we could have called it DBGFS or somesuch name > > Thanks for the patch! > Cheers, > Quentin > > > > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [docs] [PATCH] ref-manual: add DEBUGFS-related variables to glossary 2021-05-27 23:34 ` Khem Raj @ 2021-05-28 9:14 ` Michael Opdenacker 2021-05-28 21:25 ` Robert P. J. Day 0 siblings, 1 reply; 8+ messages in thread From: Michael Opdenacker @ 2021-05-28 9:14 UTC (permalink / raw) To: Khem Raj, Quentin Schulz, Robert P. J. Day; +Cc: YP docs mailing list Greetings, On 5/28/21 1:34 AM, Khem Raj wrote: > > > On 5/27/21 3:33 AM, Quentin Schulz wrote: >> Hi Richard, >> >> On Fri, May 21, 2021 at 05:35:21AM -0400, Robert P. J. Day wrote: >>> >>> Add variable glossary entries for all of: >>> >>> * IMAGE_GEN_DEBUGFS >>> * IMAGE_FSTYPES_DEBUGFS >>> * IMAGE_INSTALL_DEBUGFS >>> >>> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> >>> >>> --- >>> >>> diff --git a/documentation/ref-manual/variables.rst >>> b/documentation/ref-manual/variables.rst >>> index 0b61f77cb..1ce43a954 100644 >>> --- a/documentation/ref-manual/variables.rst >>> +++ b/documentation/ref-manual/variables.rst >>> @@ -3006,6 +3006,24 @@ system and gives an overview of their >>> function and contents. >>> or ``_prepend``. You must use the ``+=`` operator to >>> add one or >>> more options to the ``IMAGE_FSTYPES`` variable. >>> >>> + :term:`IMAGE_FSTYPES_DEBUGFS` >>> + Similar to :term:`IMAGE_FSTYPES`, specifies the formats the >>> + OpenEmbedded build system uses during the build when creating >>> the >>> + debug filesystem, as long as :term:`IMAGE_GEN_DEBUGFS` has been >>> + set to '1'. >>> + >>> + The default value from ``bitbake.conf``:: >>> + >>> + IMAGE_FSTYPES_DEBUGFS ?= "tar.gz" >>> + >>> + :term:`IMAGE_GEN_DEBUGFS` >>> + Set to '1' in order to generate a separate debug fileystem:: >>> + >>> + IMAGE_GEN_DEBUGFS = '1' >>> + >>> + If set, the debugfs will be generated with all of the filesystem >> >> Having worked with the kernel before Yocto, for me debugfs is a pseudo >> filesystem created and mounted by the kernel. I guess this has nothing >> to do with it. Could we elaborate a bit more on what this debug >> filesystem is and what's its use? And also put a word that this >> shouldn't be confused with debugfs filesystem from the kernel, c.f. >> https://www.kernel.org/doc/html/latest/filesystems/debugfs.html. >> >> Eager to learn what this is for :) > > yeah its a name collision, perhaps we could have called it DBGFS or > somesuch name I got *really confused too* when I checked Robert's patch for the first time. The DEBUGFS naming very strongly reminds me of the filesystem in the kernel. Yes, DBGFS would be less confusing. May I file a bug (or a patch) to address this in a future release? Actually, even the use of "FS" is confusing in this project, like when you set: 'IMAGE_FSTYPES_DEBUGFS = "tar.bz2"' I'd use "IMAGE_TYPES_" instead of "IMAGE_FSTYPES_..." because tar.bz2 is not a filesystem, but rather a type of image. Cheers, Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [docs] [PATCH] ref-manual: add DEBUGFS-related variables to glossary 2021-05-28 9:14 ` Michael Opdenacker @ 2021-05-28 21:25 ` Robert P. J. Day 0 siblings, 0 replies; 8+ messages in thread From: Robert P. J. Day @ 2021-05-28 21:25 UTC (permalink / raw) To: Michael Opdenacker; +Cc: Khem Raj, Quentin Schulz, YP docs mailing list [-- Attachment #1: Type: text/plain, Size: 3020 bytes --] On Fri, 28 May 2021, Michael Opdenacker wrote: > Greetings, > > On 5/28/21 1:34 AM, Khem Raj wrote: > > > > > > On 5/27/21 3:33 AM, Quentin Schulz wrote: > >> Hi Richard, > >> > >> On Fri, May 21, 2021 at 05:35:21AM -0400, Robert P. J. Day wrote: > >>> > >>> Add variable glossary entries for all of: > >>> > >>> * IMAGE_GEN_DEBUGFS > >>> * IMAGE_FSTYPES_DEBUGFS > >>> * IMAGE_INSTALL_DEBUGFS > >>> > >>> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> > >>> > >>> --- > >>> > >>> diff --git a/documentation/ref-manual/variables.rst > >>> b/documentation/ref-manual/variables.rst > >>> index 0b61f77cb..1ce43a954 100644 > >>> --- a/documentation/ref-manual/variables.rst > >>> +++ b/documentation/ref-manual/variables.rst > >>> @@ -3006,6 +3006,24 @@ system and gives an overview of their > >>> function and contents. > >>> or ``_prepend``. You must use the ``+=`` operator to > >>> add one or > >>> more options to the ``IMAGE_FSTYPES`` variable. > >>> > >>> + :term:`IMAGE_FSTYPES_DEBUGFS` > >>> + Similar to :term:`IMAGE_FSTYPES`, specifies the formats the > >>> + OpenEmbedded build system uses during the build when creating > >>> the > >>> + debug filesystem, as long as :term:`IMAGE_GEN_DEBUGFS` has been > >>> + set to '1'. > >>> + > >>> + The default value from ``bitbake.conf``:: > >>> + > >>> + IMAGE_FSTYPES_DEBUGFS ?= "tar.gz" > >>> + > >>> + :term:`IMAGE_GEN_DEBUGFS` > >>> + Set to '1' in order to generate a separate debug fileystem:: > >>> + > >>> + IMAGE_GEN_DEBUGFS = '1' > >>> + > >>> + If set, the debugfs will be generated with all of the filesystem > >> > >> Having worked with the kernel before Yocto, for me debugfs is a pseudo > >> filesystem created and mounted by the kernel. I guess this has nothing > >> to do with it. Could we elaborate a bit more on what this debug > >> filesystem is and what's its use? And also put a word that this > >> shouldn't be confused with debugfs filesystem from the kernel, c.f. > >> https://www.kernel.org/doc/html/latest/filesystems/debugfs.html. > >> > >> Eager to learn what this is for :) > > > > yeah its a name collision, perhaps we could have called it DBGFS or > > somesuch name > > > I got *really confused too* when I checked Robert's patch for the first > time. The DEBUGFS naming very strongly reminds me of the filesystem in > the kernel. > > Yes, DBGFS would be less confusing. May I file a bug (or a patch) to > address this in a future release? > > Actually, even the use of "FS" is confusing in this project, like when > you set: > > 'IMAGE_FSTYPES_DEBUGFS = "tar.bz2"' > > I'd use "IMAGE_TYPES_" instead of "IMAGE_FSTYPES_..." because tar.bz2 is > not a filesystem, but rather a type of image. i agree with the concept, but would it be too disruptive a rename? rday ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-05-28 21:25 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-05-21 9:35 [PATCH] ref-manual: add DEBUGFS-related variables to glossary Robert P. J. Day 2021-05-27 10:33 ` [docs] " Quentin Schulz 2021-05-27 15:58 ` Robert P. J. Day 2021-05-27 16:09 ` Quentin Schulz 2021-05-28 14:33 ` Michael Opdenacker 2021-05-27 23:34 ` Khem Raj 2021-05-28 9:14 ` Michael Opdenacker 2021-05-28 21:25 ` Robert P. J. Day
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox