All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [docs] [PATCH v2] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
       [not found] ` <09f9337d978b9d0727de2a937eb417e8185ca0b3.camel@linuxfoundation.org>
@ 2021-11-15 13:15   ` Simon Eugster
       [not found]   ` <16B7BA9296511776.16692@lists.yoctoproject.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Simon Eugster @ 2021-11-15 13:15 UTC (permalink / raw)
  To: Richard Purdie; +Cc: docs


[-- Attachment #1.1: Type: text/plain, Size: 5921 bytes --]

Hi Richard,

I found it confusing to have arm mentioned but not present in the example,
and wondered if machine would first be resolved to arm and then used as
override. But I also liked the good practice hint.

Will remove the DEPENDS:append and add a space, you are right. I did not
test it and only believed what I understood from a youtube video :)

Simon

Am Mo., 15. Nov. 2021 um 13:51 Uhr schrieb Richard Purdie <
richard.purdie@linuxfoundation.org>:

> On Mon, 2021-11-15 at 13:45 +0100, Simon A. Eugster wrote:
> > Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
> > ---
> >  bitbake/doc/README                            |  3 +-
> >  .../bitbake-user-manual-metadata.rst          | 35 +++++++++++++------
> >  2 files changed, 25 insertions(+), 13 deletions(-)
> >
> > diff --git a/bitbake/doc/README b/bitbake/doc/README
> > index 16e6cdf990..84e7cb702d 100644
> > --- a/bitbake/doc/README
> > +++ b/bitbake/doc/README
> > @@ -47,8 +47,7 @@ To install all required packages run:
> >
> >  To build the documentation locally, run:
> >
> > - $ cd documentation
> > - $ make -f Makefile.sphinx html
> > + $ make html
> >
> >  The resulting HTML index page will be _build/html/index.html, and you
> >  can browse your own copy of the locally generated documentation with
> > diff --git
> a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > index 119720d527..3449bc1f68 100644
> > --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > @@ -268,7 +268,7 @@ examples::
> >     C = "cval"
> >     C =. "test"
> >
> > -The variable :term:`B` contains "bvaladditionaldata" and ``C`` contains
> > +The variable ``B`` contains "bvaladditionaldata" and ``C`` contains
> >  "testcval".
> >
> >  Appending and Prepending (Override Style Syntax)
> > @@ -300,6 +300,12 @@ It is also possible to append and prepend to shell
> functions and
> >  BitBake-style Python functions. See the
> ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:shell functions`"
> and ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:bitbake-style
> python functions`"
> >  sections for examples.
> >
> > +.. note::
> > +
> > +   Before Honister (3.4), override style used ``_`` instead of ``:``,
> so you will
> > +   still find a lot of documentation using “_append”, “_prepend”, and
> > +   “_remove”.
> > +
> >  .. _removing-override-style-syntax:
> >
> >  Removal (Override Style Syntax)
> > @@ -517,20 +523,21 @@ variable.
> >  -  *Selecting a Variable:* The :term:`OVERRIDES` variable is a
> >     colon-character-separated list that contains items for which you want
> >     to satisfy conditions. Thus, if you have a variable that is
> > -   conditional on "arm", and "arm" is in :term:`OVERRIDES`, then the
> > +   conditional on "arm", and "arm" is listed in :term:`OVERRIDES`, then
> the
> >     "arm"-specific version of the variable is used rather than the
> >     non-conditional version. Here is an example::
> >
> > -      OVERRIDES = "architecture:os:machine"
> > +      OVERRIDES = "foo:linux:arm"
> >        TEST = "default"
> > -      TEST_os = "osspecific"
> > -      TEST_nooverride = "othercondvalue"
> > +      TEST:arm = "armspecific"
> > +      TEST:nooverride = "othercondvalue"
> >
> > -   In this example, the :term:`OVERRIDES`
> > -   variable lists three overrides: "architecture", "os", and "machine".
> > -   The variable ``TEST`` by itself has a default value of "default". You
> > -   select the os-specific version of the ``TEST`` variable by appending
> > -   the "os" override to the variable (i.e. ``TEST_os``).
> > +   In this example, the :term:`OVERRIDES` variable lists three
> > +   overrides: "foo", "linux", and "arm". The variable ``TEST`` by itself
> > +   has a default value of "default", and the value of the “arm” specific
> > +   version “armspecific” is used because :term:`OVERRIDES` contains
> > +   “arm”. The “nooverride” specific version is not used because
> > +   :term:`OVERRIDES` does not contain “nooverride”.
>
> Why are you removing the mentions of architecture and machine here? It is
> in
> some ways a hint as to how the overrides are used in OE and elsewhere so
> I'm not
> sure that is a good thing to make it generic...
>
> >
> >     To better understand this, consider a practical example that assumes
> >     an OpenEmbedded metadata-based Linux kernel recipe file. The
> > @@ -546,15 +553,21 @@ variable.
> >        KBRANCH:qemux86-64 = "standard/common-pc-64/base"
> >        KBRANCH:qemumips64 = "standard/mti-malta64"
> >
> > +   This works because in poky the :term:`OVERRIDES` variable by default
> > +   includes the ``MACHINE`` variable, which is set to e.g. “qemux86”.
> > +
> >  -  *Appending and Prepending:* BitBake also supports append and prepend
> >     operations to variable values based on whether a specific item is
> >     listed in :term:`OVERRIDES`. Here is an example::
> >
> >        DEPENDS = "glibc ncurses"
> >        OVERRIDES = "machine:local"
> > +      DEPENDS:append = "defaultappend"
> >        DEPENDS:append:machine = "libmad"
> >
> > -   In this example, :term:`DEPENDS` becomes "glibc ncurses libmad".
> > +   In this example, :term:`DEPENDS` becomes "glibc ncurses libmad". The
> > +   default append is ``DEPENDS:append`` is not used because the override
> > +   mechanism choses the specific ``:append``.
>
> This example looks incorrect to me, I think it would become:
>
> "glibc ncursesdefaultappendlibmad"
>
> although the example should say DEPENDS:append:machine = " libmad" as
> there is a
> missing space there too.
>
> Cheers,
>
> Richard
>
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 7452 bytes --]

[-- Attachment #2: 0001-bitbake-doc-bitbake-user-manual-Add-more-explanation.patch --]
[-- Type: text/x-patch, Size: 4548 bytes --]

From 432a7e4a5bbf2c16a2f2182e1dc77f2e5f16ebb5 Mon Sep 17 00:00:00 2001
From: "Simon A. Eugster" <simon.eu@gmail.com>
Date: Mon, 15 Nov 2021 13:30:10 +0100
Subject: [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to
 OVERRIDES

Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
---
 bitbake/doc/README                            |  3 +-
 .../bitbake-user-manual-metadata.rst          | 33 ++++++++++++-------
 2 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/bitbake/doc/README b/bitbake/doc/README
index 16e6cdf990..84e7cb702d 100644
--- a/bitbake/doc/README
+++ b/bitbake/doc/README
@@ -47,8 +47,7 @@ To install all required packages run:
 
 To build the documentation locally, run:
 
- $ cd documentation
- $ make -f Makefile.sphinx html
+ $ make html
 
 The resulting HTML index page will be _build/html/index.html, and you
 can browse your own copy of the locally generated documentation with
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
index 119720d527..cea0ce6da8 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
@@ -268,7 +268,7 @@ examples::
    C = "cval"
    C =. "test"
 
-The variable :term:`B` contains "bvaladditionaldata" and ``C`` contains
+The variable ``B`` contains "bvaladditionaldata" and ``C`` contains
 "testcval".
 
 Appending and Prepending (Override Style Syntax)
@@ -300,6 +300,12 @@ It is also possible to append and prepend to shell functions and
 BitBake-style Python functions. See the ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:shell functions`" and ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:bitbake-style python functions`"
 sections for examples.
 
+.. note::
+
+   Before Honister (3.4), override style used ``_`` instead of ``:``, so you will
+   still find a lot of documentation using “_append”, “_prepend”, and
+   “_remove”.
+
 .. _removing-override-style-syntax:
 
 Removal (Override Style Syntax)
@@ -517,20 +523,22 @@ variable.
 -  *Selecting a Variable:* The :term:`OVERRIDES` variable is a
    colon-character-separated list that contains items for which you want
    to satisfy conditions. Thus, if you have a variable that is
-   conditional on "arm", and "arm" is in :term:`OVERRIDES`, then the
+   conditional on "arm", and "arm" is listed in :term:`OVERRIDES`, then the
    "arm"-specific version of the variable is used rather than the
    non-conditional version. Here is an example::
 
-      OVERRIDES = "architecture:os:machine"
+      # Typically, OVERRIDES contains something like architecture:os:machine
+      OVERRIDES = "linux:arm"
       TEST = "default"
-      TEST_os = "osspecific"
-      TEST_nooverride = "othercondvalue"
+      TEST:arm = "armspecific"
+      TEST:nooverride = "othercondvalue"
 
-   In this example, the :term:`OVERRIDES`
-   variable lists three overrides: "architecture", "os", and "machine".
-   The variable ``TEST`` by itself has a default value of "default". You
-   select the os-specific version of the ``TEST`` variable by appending
-   the "os" override to the variable (i.e. ``TEST_os``).
+   In this example, the :term:`OVERRIDES` variable lists three
+   overrides: "foo", "linux", and "arm". The variable ``TEST`` by itself
+   has a default value of "default", and the value of the “arm” specific
+   version “armspecific” is used because :term:`OVERRIDES` contains
+   “arm”. The “nooverride” specific version is not used because
+   :term:`OVERRIDES` does not contain “nooverride”.
 
    To better understand this, consider a practical example that assumes
    an OpenEmbedded metadata-based Linux kernel recipe file. The
@@ -546,13 +554,16 @@ variable.
       KBRANCH:qemux86-64 = "standard/common-pc-64/base"
       KBRANCH:qemumips64 = "standard/mti-malta64"
 
+   This works because in poky the :term:`OVERRIDES` variable by default
+   includes the ``MACHINE`` variable, which is set to e.g. “qemux86”.
+
 -  *Appending and Prepending:* BitBake also supports append and prepend
    operations to variable values based on whether a specific item is
    listed in :term:`OVERRIDES`. Here is an example::
 
       DEPENDS = "glibc ncurses"
       OVERRIDES = "machine:local"
-      DEPENDS:append:machine = "libmad"
+      DEPENDS:append:machine = " libmad"
 
    In this example, :term:`DEPENDS` becomes "glibc ncurses libmad".
 
-- 
2.30.2


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

* Re: [docs] [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
       [not found] <20211115124546.97456-1-simon.eu@gmail.com>
       [not found] ` <09f9337d978b9d0727de2a937eb417e8185ca0b3.camel@linuxfoundation.org>
@ 2021-11-17 10:05 ` Michael Opdenacker
  2021-11-17 10:12   ` Nicolas Dechesne
  1 sibling, 1 reply; 10+ messages in thread
From: Michael Opdenacker @ 2021-11-17 10:05 UTC (permalink / raw)
  To: Simon A. Eugster, docs

Hi Simon,

Thank you for proposing documentation improvements!

On 11/15/21 1:45 PM, Simon A. Eugster wrote:
> Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
> ---
>  bitbake/doc/README                            |  3 +-
>  .../bitbake-user-manual-metadata.rst          | 35 +++++++++++++------
>  2 files changed, 25 insertions(+), 13 deletions(-)
>
> diff --git a/bitbake/doc/README b/bitbake/doc/README
> index 16e6cdf990..84e7cb702d 100644
> --- a/bitbake/doc/README
> +++ b/bitbake/doc/README
> @@ -47,8 +47,7 @@ To install all required packages run:
>  
>  To build the documentation locally, run:
>  
> - $ cd documentation
> - $ make -f Makefile.sphinx html
> + $ make html


What version of the Bitbake manual did you create your patch from? The
above changes have already been made last year...
Thanks again
Cheers
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [docs] [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
  2021-11-17 10:05 ` [docs] [PATCH] " Michael Opdenacker
@ 2021-11-17 10:12   ` Nicolas Dechesne
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolas Dechesne @ 2021-11-17 10:12 UTC (permalink / raw)
  To: Michael Opdenacker; +Cc: Simon A. Eugster, docs

[-- Attachment #1: Type: text/plain, Size: 1901 bytes --]

On Wed, Nov 17, 2021 at 11:05 AM Michael Opdenacker <
michael.opdenacker@bootlin.com> wrote:

> Hi Simon,
>
> Thank you for proposing documentation improvements!
>
> On 11/15/21 1:45 PM, Simon A. Eugster wrote:
> > Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
> > ---
> >  bitbake/doc/README                            |  3 +-
> >  .../bitbake-user-manual-metadata.rst          | 35 +++++++++++++------
> >  2 files changed, 25 insertions(+), 13 deletions(-)
> >
> > diff --git a/bitbake/doc/README b/bitbake/doc/README
> > index 16e6cdf990..84e7cb702d 100644
> > --- a/bitbake/doc/README
> > +++ b/bitbake/doc/README
> > @@ -47,8 +47,7 @@ To install all required packages run:
> >
> >  To build the documentation locally, run:
> >
> > - $ cd documentation
> > - $ make -f Makefile.sphinx html
> > + $ make html
>
>
> What version of the Bitbake manual did you create your patch from? The
> above changes have already been made last year...
> Thanks again
>

More generally, patches should be split in individual/independent changes,
and this change would not belong to this patch regardless. Like this
snippet which was in the original patch sent:

@@ -268,7 +268,7 @@ examples::
    C = "cval"
    C =. "test"

-The variable :term:`B` contains "bvaladditionaldata" and ``C`` contains
+The variable ``B`` contains "bvaladditionaldata" and ``C`` contains
 "testcval".

Cheers
> Michael.
>
> --
> Michael Opdenacker, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2158):
> https://lists.yoctoproject.org/g/docs/message/2158
> Mute This Topic: https://lists.yoctoproject.org/mt/87068011/1279857
> Group Owner: docs+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [
> nicolas.dechesne@linaro.org]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 3260 bytes --]

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

* Re: [docs] [PATCH v3] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
       [not found]   ` <16B7BA9296511776.16692@lists.yoctoproject.org>
@ 2021-11-29  7:50     ` Simon Eugster
  2021-12-08 11:44       ` Simon Eugster
  2021-12-08 13:53       ` Michael Opdenacker
  0 siblings, 2 replies; 10+ messages in thread
From: Simon Eugster @ 2021-11-29  7:50 UTC (permalink / raw)
  To: docs


[-- Attachment #1.1: Type: text/plain, Size: 62 bytes --]

Now based on the bitbake repository and not on the poky repo!

[-- Attachment #1.2: Type: text/html, Size: 87 bytes --]

[-- Attachment #2: 0001-bitbake-doc-bitbake-user-manual-Add-more-explanation.patch --]
[-- Type: text/x-patch, Size: 3274 bytes --]

From e6f9edba285cd89d4fcc9cf55c1f0813d1609ab1 Mon Sep 17 00:00:00 2001
From: "Simon A. Eugster" <simon.eu@gmail.com>
Date: Mon, 29 Nov 2021 08:46:33 +0100
Subject: [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to
 OVERRIDES

Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
---
 .../bitbake-user-manual-metadata.rst          | 28 ++++++++++++-------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
index d802a8d3..fc4f5d13 100644
--- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
+++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
@@ -300,6 +300,12 @@ It is also possible to append and prepend to shell functions and
 BitBake-style Python functions. See the ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:shell functions`" and ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:bitbake-style python functions`"
 sections for examples.
 
+.. note::
+
+   Before Honister (3.4), override style used ``_`` instead of ``:``, so you will
+   still find a lot of documentation using “_append”, “_prepend”, and
+   “_remove”.
+
 .. _removing-override-style-syntax:
 
 Removal (Override Style Syntax)
@@ -517,20 +523,22 @@ variable.
 -  *Selecting a Variable:* The :term:`OVERRIDES` variable is a
    colon-character-separated list that contains items for which you want
    to satisfy conditions. Thus, if you have a variable that is
-   conditional on "arm", and "arm" is in :term:`OVERRIDES`, then the
+   conditional on "arm", and "arm" is listed in :term:`OVERRIDES`, then the
    "arm"-specific version of the variable is used rather than the
    non-conditional version. Here is an example::
 
-      OVERRIDES = "architecture:os:machine"
+      # Typically, OVERRIDES contains something like architecture:os:machine
+      OVERRIDES = "linux:arm"
       TEST = "default"
-      TEST_os = "osspecific"
-      TEST_nooverride = "othercondvalue"
+      TEST:arm = "armspecific"
+      TEST:nooverride = "othercondvalue"
 
-   In this example, the :term:`OVERRIDES`
-   variable lists three overrides: "architecture", "os", and "machine".
-   The variable ``TEST`` by itself has a default value of "default". You
-   select the os-specific version of the ``TEST`` variable by appending
-   the "os" override to the variable (i.e. ``TEST_os``).
+   In this example, the :term:`OVERRIDES` variable lists three
+   overrides: "foo", "linux", and "arm". The variable ``TEST`` by itself
+   has a default value of "default", and the value of the “arm” specific
+   version “armspecific” is used because :term:`OVERRIDES` contains
+   “arm”. The “nooverride” specific version is not used because
+   :term:`OVERRIDES` does not contain “nooverride”.
 
    To better understand this, consider a practical example that assumes
    an OpenEmbedded metadata-based Linux kernel recipe file. The
@@ -552,7 +560,7 @@ variable.
 
       DEPENDS = "glibc ncurses"
       OVERRIDES = "machine:local"
-      DEPENDS:append:machine = "libmad"
+      DEPENDS:append:machine = " libmad"
 
    In this example, :term:`DEPENDS` becomes "glibc ncurses libmad".
 
-- 
2.30.2


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

* Re: [docs] [PATCH v3] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
  2021-11-29  7:50     ` [docs] [PATCH v3] " Simon Eugster
@ 2021-12-08 11:44       ` Simon Eugster
  2021-12-08 13:53       ` Michael Opdenacker
  1 sibling, 0 replies; 10+ messages in thread
From: Simon Eugster @ 2021-12-08 11:44 UTC (permalink / raw)
  To: docs

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

PS: Any feedback on this one? :)

Thanks!
Simon

Am Mo., 29. Nov. 2021 um 08:50 Uhr schrieb Simon Eugster <simon.eu@gmail.com
>:

> Now based on the bitbake repository and not on the poky repo!
>

[-- Attachment #2: Type: text/html, Size: 549 bytes --]

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

* Re: [docs] [PATCH v3] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
  2021-11-29  7:50     ` [docs] [PATCH v3] " Simon Eugster
  2021-12-08 11:44       ` Simon Eugster
@ 2021-12-08 13:53       ` Michael Opdenacker
  1 sibling, 0 replies; 10+ messages in thread
From: Michael Opdenacker @ 2021-12-08 13:53 UTC (permalink / raw)
  To: Simon A. Eugster, docs

Hi Simon,

Thanks for the update! Apologies for the slow reply.

On 11/29/21 8:50 AM, Simon A. Eugster wrote:
> Now based on the bitbake repository and not on the poky repo!


Could you send the patch again through "git send-email", please? This
way, people can review your patch and make comments or ask questions by
replying to specific changes.

Another thing: since this is Bitbake documentation, you should send it
to both bitbake-devel@lists.openembedded.org and
docs@lists.yoctoproject.org, as described in the toplevel README file.

Thanks again. You're very close.

Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [docs] [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
       [not found]   ` <bb5d84ce-8424-3d40-2ace-5a68bbe260b6@bootlin.com>
@ 2022-03-31 14:08     ` Simon Eugster
  0 siblings, 0 replies; 10+ messages in thread
From: Simon Eugster @ 2022-03-31 14:08 UTC (permalink / raw)
  To: Michael Opdenacker; +Cc: bitbake-devel, docs

[-- Attachment #1: Type: text/plain, Size: 1869 bytes --]

Hi Michael,

On Tue, Mar 29, 2022 at 7:11 PM Michael Opdenacker <
michael.opdenacker@bootlin.com> wrote:

> Hi Simon,
>
> Thanks for the patch update. See my comments below.
>
> On 3/29/22 16:37, Simon A. Eugster wrote:
> > Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
> > ---
> >  .../bitbake-user-manual-metadata.rst          | 26 ++++++++++++-------
> >  1 file changed, 17 insertions(+), 9 deletions(-)
> >
> > diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > index ea42d77c..7d7d99c2 100644
> > --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > @@ -300,6 +300,12 @@ It is also possible to append and prepend to shell
> functions and
> >  BitBake-style Python functions. See the
> ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:shell functions`"
> and ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:bitbake-style
> python functions`"
> >  sections for examples.
> >
> > +.. note::
> > +
> > +   Before Honister (3.4), override style used ``_`` instead of ``:``,
> so you will
> > +   still find a lot of documentation using “_append”, “_prepend”, and
> > +   “_remove”.
> > +
> >  .. _removing-override-style-syntax:
> >
> >  Removal (Override Style Syntax)
>
>
> As discussed previously, we already have such as statement elsewhere in
> the same file (currently:
>
> https://git.openembedded.org/bitbake/tree/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst#n590
> ).
>

Sorry, not sure how that slipped into the patch again, I had previously
removed it. Should be fixed now! :)

(Would be a bit easier with MRs on something like GitLab O:-))

Thanks and sorry for the countless retries,
Simon

[-- Attachment #2: Type: text/html, Size: 2607 bytes --]

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

* Re: [docs] [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
       [not found]     ` <9e458156-8a40-ce06-986a-8ce39b546712@bootlin.com>
@ 2022-02-28  9:31       ` Simon Eugster
  0 siblings, 0 replies; 10+ messages in thread
From: Simon Eugster @ 2022-02-28  9:31 UTC (permalink / raw)
  To: Michael Opdenacker; +Cc: bitbake-devel, docs

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

On Wed, Jan 5, 2022 at 5:02 PM Michael Opdenacker <
michael.opdenacker@bootlin.com> wrote:

> Hi Simon,
>
> Thanks for your answers...
>
> On 1/5/22 11:11 AM, Simon Eugster wrote:
> > Hi Michael,
> >
> >     >
> >     > +.. note::
> >     > +
> >     > +   Before Honister (3.4), override style used ``_`` instead of
> >     ``:``, so you will
> >     > +   still find a lot of documentation using “_append”,
> >     “_prepend”, and
> >     > +   “_remove”.
> >     > +
> >
> >
> >     I don't have anything about this text, but I wonder whether we should
> >     mention the old syntax in the current docs.
> >     Thoughts anyone?
> >
> >
> > I added this because I (as a new user) found it very confusing to find
> > all the _ style syntax in guides online and no mention of it in the
> > docs. I would have expected such a note.
>
>
> This makes sense, but so far we just mentioned the old syntax in the
> migration guides. That's why I was asking for other opinions...
>

Looks like there are no other opinions on that topic.
In that case, do you want me to continue with the MR and apply your
suggestions, or discard the MR?

Simon

[-- Attachment #2: Type: text/html, Size: 1733 bytes --]

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

* Re: [docs] [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
       [not found] ` <42d3ff93-33a1-e751-b0ff-974c8ecb4858@bootlin.com>
@ 2022-01-05 10:11   ` Simon Eugster
       [not found]     ` <9e458156-8a40-ce06-986a-8ce39b546712@bootlin.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Simon Eugster @ 2022-01-05 10:11 UTC (permalink / raw)
  To: Michael Opdenacker; +Cc: bitbake-devel, docs

[-- Attachment #1: Type: text/plain, Size: 4442 bytes --]

Hi Michael,

Am Mi., 15. Dez. 2021 um 11:46 Uhr schrieb Michael Opdenacker <
michael.opdenacker@bootlin.com>:

> Hi Simon,
>
> Many thanks for the new version of your patch!
> See my questions below...
>
> On 12/15/21 10:25 AM, Simon A. Eugster wrote:
> > Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
> > ---
> >  .../bitbake-user-manual-metadata.rst          | 28 ++++++++++++-------
> >  1 file changed, 18 insertions(+), 10 deletions(-)
> >
> > diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > index d802a8d3..fc4f5d13 100644
> > --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> > @@ -300,6 +300,12 @@ It is also possible to append and prepend to shell
> functions and
> >  BitBake-style Python functions. See the
> ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:shell functions`"
> and ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:bitbake-style
> python functions`"
> >  sections for examples.
> >
> > +.. note::
> > +
> > +   Before Honister (3.4), override style used ``_`` instead of ``:``,
> so you will
> > +   still find a lot of documentation using “_append”, “_prepend”, and
> > +   “_remove”.
> > +
>
>
> I don't have anything about this text, but I wonder whether we should
> mention the old syntax in the current docs.
> Thoughts anyone?
>

I added this because I (as a new user) found it very confusing to find all
the _ style syntax in guides online and no mention of it in the docs. I
would have expected such a note.


> >  .. _removing-override-style-syntax:
> >
> >  Removal (Override Style Syntax)
> > @@ -517,20 +523,22 @@ variable.
> >  -  *Selecting a Variable:* The :term:`OVERRIDES` variable is a
> >     colon-character-separated list that contains items for which you want
> >     to satisfy conditions. Thus, if you have a variable that is
> > -   conditional on "arm", and "arm" is in :term:`OVERRIDES`, then the
> > +   conditional on "arm", and "arm" is listed in :term:`OVERRIDES`, then
> the
> >     "arm"-specific version of the variable is used rather than the
> >     non-conditional version. Here is an example::
> >
> > -      OVERRIDES = "architecture:os:machine"
> > +      # Typically, OVERRIDES contains something like
> architecture:os:machine
> > +      OVERRIDES = "linux:arm"
>
>
> Here you quote an example with two items, but this doesn't align with
> the typical contents with three items you mention in the comment that
> you added.
> By the way, according to the below text, didn't you mean?
>
> OVERRIDES = "foo:linux:arm"
>
> It looks like a good idea to have this comment; this way you can give a
> concrete example. In my opinion, "foo" is vague, what about instead?
>
> OVERRIDES = "arm:linux:beaglebone"
>

Yes, will change that!


> >        TEST = "default"
> > -      TEST_os = "osspecific"
> > -      TEST_nooverride = "othercondvalue"
> > +      TEST:arm = "armspecific"
> > +      TEST:nooverride = "othercondvalue"
> >
> > -   In this example, the :term:`OVERRIDES`
> > -   variable lists three overrides: "architecture", "os", and "machine".
> > -   The variable ``TEST`` by itself has a default value of "default". You
> > -   select the os-specific version of the ``TEST`` variable by appending
> > -   the "os" override to the variable (i.e. ``TEST_os``).
> > +   In this example, the :term:`OVERRIDES` variable lists three
> > +   overrides: "foo", "linux", and "arm". The variable ``TEST`` by itself
> > +   has a default value of "default", and the value of the “arm” specific
> > +   version “armspecific” is used because :term:`OVERRIDES` contains
> > +   “arm”. The “nooverride” specific version is not used because
> > +   :term:`OVERRIDES` does not contain “nooverride”.
> >
> >     To better understand this, consider a practical example that assumes
> >     an OpenEmbedded metadata-based Linux kernel recipe file. The
> > @@ -552,7 +560,7 @@ variable.
> >
> >        DEPENDS = "glibc ncurses"
> >        OVERRIDES = "machine:local"
> > -      DEPENDS:append:machine = "libmad"
> > +      DEPENDS:append:machine = " libmad"
> >
> >     In this example, :term:`DEPENDS` becomes "glibc ncurses libmad".
>

Thanks,
Simon

[-- Attachment #2: Type: text/html, Size: 5959 bytes --]

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

* Re: [docs] [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES
       [not found] <16B7B8F5A0D625BE.25640@lists.yoctoproject.org>
@ 2021-11-15 12:50 ` Simon Eugster
  0 siblings, 0 replies; 10+ messages in thread
From: Simon Eugster @ 2021-11-15 12:50 UTC (permalink / raw)
  To: docs

[-- Attachment #1: Type: text/plain, Size: 5598 bytes --]

I wrote this patch as a follow-up to our discussion on IRC last week. Not
sure regarding the MACHINE variable I mentioned – should/can I link to the
poky docs directly there?

Simon

Am Mo., 15. Nov. 2021 um 13:45 Uhr schrieb Simon A. Eugster via
lists.yoctoproject.org <simon.eu=gmail.com@lists.yoctoproject.org>:

> Signed-off-by: Simon A. Eugster <simon.eu@gmail.com>
> ---
>  bitbake/doc/README                            |  3 +-
>  .../bitbake-user-manual-metadata.rst          | 35 +++++++++++++------
>  2 files changed, 25 insertions(+), 13 deletions(-)
>
> diff --git a/bitbake/doc/README b/bitbake/doc/README
> index 16e6cdf990..84e7cb702d 100644
> --- a/bitbake/doc/README
> +++ b/bitbake/doc/README
> @@ -47,8 +47,7 @@ To install all required packages run:
>
>  To build the documentation locally, run:
>
> - $ cd documentation
> - $ make -f Makefile.sphinx html
> + $ make html
>
>  The resulting HTML index page will be _build/html/index.html, and you
>  can browse your own copy of the locally generated documentation with
> diff --git
> a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> index 119720d527..3449bc1f68 100644
> --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
> @@ -268,7 +268,7 @@ examples::
>     C = "cval"
>     C =. "test"
>
> -The variable :term:`B` contains "bvaladditionaldata" and ``C`` contains
> +The variable ``B`` contains "bvaladditionaldata" and ``C`` contains
>  "testcval".
>
>  Appending and Prepending (Override Style Syntax)
> @@ -300,6 +300,12 @@ It is also possible to append and prepend to shell
> functions and
>  BitBake-style Python functions. See the
> ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:shell functions`"
> and ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:bitbake-style
> python functions`"
>  sections for examples.
>
> +.. note::
> +
> +   Before Honister (3.4), override style used ``_`` instead of ``:``, so
> you will
> +   still find a lot of documentation using “_append”, “_prepend”, and
> +   “_remove”.
> +
>  .. _removing-override-style-syntax:
>
>  Removal (Override Style Syntax)
> @@ -517,20 +523,21 @@ variable.
>  -  *Selecting a Variable:* The :term:`OVERRIDES` variable is a
>     colon-character-separated list that contains items for which you want
>     to satisfy conditions. Thus, if you have a variable that is
> -   conditional on "arm", and "arm" is in :term:`OVERRIDES`, then the
> +   conditional on "arm", and "arm" is listed in :term:`OVERRIDES`, then
> the
>     "arm"-specific version of the variable is used rather than the
>     non-conditional version. Here is an example::
>
> -      OVERRIDES = "architecture:os:machine"
> +      OVERRIDES = "foo:linux:arm"
>        TEST = "default"
> -      TEST_os = "osspecific"
> -      TEST_nooverride = "othercondvalue"
> +      TEST:arm = "armspecific"
> +      TEST:nooverride = "othercondvalue"
>
> -   In this example, the :term:`OVERRIDES`
> -   variable lists three overrides: "architecture", "os", and "machine".
> -   The variable ``TEST`` by itself has a default value of "default". You
> -   select the os-specific version of the ``TEST`` variable by appending
> -   the "os" override to the variable (i.e. ``TEST_os``).
> +   In this example, the :term:`OVERRIDES` variable lists three
> +   overrides: "foo", "linux", and "arm". The variable ``TEST`` by itself
> +   has a default value of "default", and the value of the “arm” specific
> +   version “armspecific” is used because :term:`OVERRIDES` contains
> +   “arm”. The “nooverride” specific version is not used because
> +   :term:`OVERRIDES` does not contain “nooverride”.
>
>     To better understand this, consider a practical example that assumes
>     an OpenEmbedded metadata-based Linux kernel recipe file. The
> @@ -546,15 +553,21 @@ variable.
>        KBRANCH:qemux86-64 = "standard/common-pc-64/base"
>        KBRANCH:qemumips64 = "standard/mti-malta64"
>
> +   This works because in poky the :term:`OVERRIDES` variable by default
> +   includes the ``MACHINE`` variable, which is set to e.g. “qemux86”.
> +
>  -  *Appending and Prepending:* BitBake also supports append and prepend
>     operations to variable values based on whether a specific item is
>     listed in :term:`OVERRIDES`. Here is an example::
>
>        DEPENDS = "glibc ncurses"
>        OVERRIDES = "machine:local"
> +      DEPENDS:append = "defaultappend"
>        DEPENDS:append:machine = "libmad"
>
> -   In this example, :term:`DEPENDS` becomes "glibc ncurses libmad".
> +   In this example, :term:`DEPENDS` becomes "glibc ncurses libmad". The
> +   default append is ``DEPENDS:append`` is not used because the override
> +   mechanism choses the specific ``:append``.
>
>     Again, using an OpenEmbedded metadata-based kernel recipe file as an
>     example, the following lines will conditionally append to the
> --
> 2.30.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2153):
> https://lists.yoctoproject.org/g/docs/message/2153
> Mute This Topic: https://lists.yoctoproject.org/mt/87068011/6562396
> Group Owner: docs+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [
> simon.eu@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 7191 bytes --]

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

end of thread, other threads:[~2022-03-31 14:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20211115124546.97456-1-simon.eu@gmail.com>
     [not found] ` <09f9337d978b9d0727de2a937eb417e8185ca0b3.camel@linuxfoundation.org>
2021-11-15 13:15   ` [docs] [PATCH v2] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES Simon Eugster
     [not found]   ` <16B7BA9296511776.16692@lists.yoctoproject.org>
2021-11-29  7:50     ` [docs] [PATCH v3] " Simon Eugster
2021-12-08 11:44       ` Simon Eugster
2021-12-08 13:53       ` Michael Opdenacker
2021-11-17 10:05 ` [docs] [PATCH] " Michael Opdenacker
2021-11-17 10:12   ` Nicolas Dechesne
2022-03-25 14:57 [docs] [PATCH] bitbake: doc: bitbake-user-manual: Improve OVERRIDES docs Michael Opdenacker
     [not found] ` <20220329143748.297881-1-simon.eu@gmail.com>
     [not found]   ` <bb5d84ce-8424-3d40-2ace-5a68bbe260b6@bootlin.com>
2022-03-31 14:08     ` [docs] [PATCH] bitbake: doc: bitbake-user-manual: Add more explanations to OVERRIDES Simon Eugster
     [not found] <20211215092509.60979-1-simon.eu@gmail.com>
     [not found] ` <42d3ff93-33a1-e751-b0ff-974c8ecb4858@bootlin.com>
2022-01-05 10:11   ` Simon Eugster
     [not found]     ` <9e458156-8a40-ce06-986a-8ce39b546712@bootlin.com>
2022-02-28  9:31       ` Simon Eugster
     [not found] <16B7B8F5A0D625BE.25640@lists.yoctoproject.org>
2021-11-15 12:50 ` Simon Eugster

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.