* [PATCH 0/2] Document some checks in externalsrc that could fail the build
@ 2025-09-21 13:20 Talel BELHAJ SALEM
2025-09-21 13:20 ` [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class Talel BELHAJ SALEM
2025-09-21 13:20 ` [PATCH 2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths Talel BELHAJ SALEM
0 siblings, 2 replies; 7+ messages in thread
From: Talel BELHAJ SALEM @ 2025-09-21 13:20 UTC (permalink / raw)
To: docs; +Cc: Talel BELHAJ SALEM
Talel BELHAJ SALEM (2):
dev-manual/building.rst: add note about globally inheriting
externalsrc class
dev-manual/building.rst: add note about externalsrc variables absolute
paths
documentation/dev-manual/building.rst | 12 ++++++++++++
1 file changed, 12 insertions(+)
--
2.51.0
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class 2025-09-21 13:20 [PATCH 0/2] Document some checks in externalsrc that could fail the build Talel BELHAJ SALEM @ 2025-09-21 13:20 ` Talel BELHAJ SALEM 2025-09-22 14:18 ` [docs] " Antonin Godard 2025-09-21 13:20 ` [PATCH 2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths Talel BELHAJ SALEM 1 sibling, 1 reply; 7+ messages in thread From: Talel BELHAJ SALEM @ 2025-09-21 13:20 UTC (permalink / raw) To: docs; +Cc: Talel BELHAJ SALEM Signed-off-by: Talel BELHAJ SALEM <bhstalel@gmail.com> --- documentation/dev-manual/building.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/documentation/dev-manual/building.rst b/documentation/dev-manual/building.rst index 04c150094..8d00d908e 100644 --- a/documentation/dev-manual/building.rst +++ b/documentation/dev-manual/building.rst @@ -736,6 +736,13 @@ are the statements to put in your ``local.conf`` file:: INHERIT += "externalsrc" EXTERNALSRC:pn-myrecipe = "path-to-your-source-tree" +.. note:: + + When you inherit :ref:`ref-classes-externalsrc` class globally make + sure to set the :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD` + variables to specific recipes, not doing that will redirect + all recipes to one external source directory. + This next example shows how to accomplish the same thing by setting :term:`EXTERNALSRC` in the recipe itself or in the recipe's append file:: -- 2.51.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [docs] [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class 2025-09-21 13:20 ` [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class Talel BELHAJ SALEM @ 2025-09-22 14:18 ` Antonin Godard 2025-09-22 18:08 ` Talel BELHADJ SALEM 0 siblings, 1 reply; 7+ messages in thread From: Antonin Godard @ 2025-09-22 14:18 UTC (permalink / raw) To: bhstalel, docs On Sun Sep 21, 2025 at 3:20 PM CEST, BELHADJ SALEM Talel via lists.yoctoproject.org wrote: > Signed-off-by: Talel BELHAJ SALEM <bhstalel@gmail.com> > --- > documentation/dev-manual/building.rst | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/documentation/dev-manual/building.rst b/documentation/dev-manual/building.rst > index 04c150094..8d00d908e 100644 > --- a/documentation/dev-manual/building.rst > +++ b/documentation/dev-manual/building.rst > @@ -736,6 +736,13 @@ are the statements to put in your ``local.conf`` file:: > INHERIT += "externalsrc" > EXTERNALSRC:pn-myrecipe = "path-to-your-source-tree" > > +.. note:: > + > + When you inherit :ref:`ref-classes-externalsrc` class globally make > + sure to set the :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD` > + variables to specific recipes, not doing that will redirect > + all recipes to one external source directory. > + > This next example shows how to accomplish the same thing by setting > :term:`EXTERNALSRC` in the recipe itself or in the recipe's append file:: > Hi, When reading this, I had the feeling that the previous paragraph shows how to set EXTERNALSRC for a specific recipe, and the next paragraph shows how to set both EXTERNALSRC and EXTERNALSRC_BUILD from a recipe - which is exactly what you say in your note. So, why a note to repeat this? What was the intent? Antonin -- Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [docs] [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class 2025-09-22 14:18 ` [docs] " Antonin Godard @ 2025-09-22 18:08 ` Talel BELHADJ SALEM 2025-09-23 16:08 ` Antonin Godard 0 siblings, 1 reply; 7+ messages in thread From: Talel BELHADJ SALEM @ 2025-09-22 18:08 UTC (permalink / raw) To: Antonin Godard; +Cc: docs [-- Attachment #1: Type: text/plain, Size: 1813 bytes --] I think that beginners may not catch the idea from the example, and they, accidentally, inherit globally without setting them to specific recipes. Kind regards On Mon, 22 Sep 2025 at 15:18 Antonin Godard <antonin.godard@bootlin.com> wrote: > On Sun Sep 21, 2025 at 3:20 PM CEST, BELHADJ SALEM Talel via > lists.yoctoproject.org wrote: > > Signed-off-by: Talel BELHAJ SALEM <bhstalel@gmail.com> > > --- > > documentation/dev-manual/building.rst | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/documentation/dev-manual/building.rst > b/documentation/dev-manual/building.rst > > index 04c150094..8d00d908e 100644 > > --- a/documentation/dev-manual/building.rst > > +++ b/documentation/dev-manual/building.rst > > @@ -736,6 +736,13 @@ are the statements to put in your ``local.conf`` > file:: > > INHERIT += "externalsrc" > > EXTERNALSRC:pn-myrecipe = "path-to-your-source-tree" > > > > +.. note:: > > + > > + When you inherit :ref:`ref-classes-externalsrc` class globally make > > + sure to set the :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD` > > + variables to specific recipes, not doing that will redirect > > + all recipes to one external source directory. > > + > > This next example shows how to accomplish the same thing by setting > > :term:`EXTERNALSRC` in the recipe itself or in the recipe's append > file:: > > > > Hi, > > When reading this, I had the feeling that the previous paragraph shows how > to > set EXTERNALSRC for a specific recipe, and the next paragraph shows how to > set > both EXTERNALSRC and EXTERNALSRC_BUILD from a recipe - which is exactly > what you > say in your note. So, why a note to repeat this? What was the intent? > > Antonin > > -- > Antonin Godard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com > > [-- Attachment #2: Type: text/html, Size: 2673 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [docs] [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class 2025-09-22 18:08 ` Talel BELHADJ SALEM @ 2025-09-23 16:08 ` Antonin Godard 0 siblings, 0 replies; 7+ messages in thread From: Antonin Godard @ 2025-09-23 16:08 UTC (permalink / raw) To: bhstalel; +Cc: docs On Mon Sep 22, 2025 at 8:08 PM CEST, BELHADJ SALEM Talel via lists.yoctoproject.org wrote: > I think that beginners may not catch the idea from the example, and they, > accidentally, inherit globally without setting them to specific recipes. Understood. Then I would rephrase the sentence in the next paragraph after your note, instead of adding the note. Thanks, Antonin -- Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths 2025-09-21 13:20 [PATCH 0/2] Document some checks in externalsrc that could fail the build Talel BELHAJ SALEM 2025-09-21 13:20 ` [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class Talel BELHAJ SALEM @ 2025-09-21 13:20 ` Talel BELHAJ SALEM 2025-10-06 8:07 ` Antonin Godard 1 sibling, 1 reply; 7+ messages in thread From: Talel BELHAJ SALEM @ 2025-09-21 13:20 UTC (permalink / raw) To: docs; +Cc: Talel BELHAJ SALEM Signed-off-by: Talel BELHAJ SALEM <bhstalel@gmail.com> --- documentation/dev-manual/building.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/documentation/dev-manual/building.rst b/documentation/dev-manual/building.rst index 8d00d908e..de37704ad 100644 --- a/documentation/dev-manual/building.rst +++ b/documentation/dev-manual/building.rst @@ -764,6 +764,11 @@ to point to that directory:: EXTERNALSRC_BUILD:pn-myrecipe = "path-to-your-source-tree" +.. note:: + + The values of :term:`EXTERNALSRC` and :term:`EXTERNALSRC_BUILD` + must be absolute paths. + Replicating a Build Offline =========================== -- 2.51.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths 2025-09-21 13:20 ` [PATCH 2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths Talel BELHAJ SALEM @ 2025-10-06 8:07 ` Antonin Godard 0 siblings, 0 replies; 7+ messages in thread From: Antonin Godard @ 2025-10-06 8:07 UTC (permalink / raw) To: docs, Talel BELHAJ SALEM; +Cc: Thomas Petazzoni, Antonin Godard On Sun, 21 Sep 2025 14:20:33 +0100, Talel BELHAJ SALEM wrote: > Applied, thanks! [2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths commit: 33166d70b6ad093bd95ffccafc0b07820682f656 Best regards, -- Antonin Godard <antonin.godard@bootlin.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-10-06 8:08 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-09-21 13:20 [PATCH 0/2] Document some checks in externalsrc that could fail the build Talel BELHAJ SALEM 2025-09-21 13:20 ` [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class Talel BELHAJ SALEM 2025-09-22 14:18 ` [docs] " Antonin Godard 2025-09-22 18:08 ` Talel BELHADJ SALEM 2025-09-23 16:08 ` Antonin Godard 2025-09-21 13:20 ` [PATCH 2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths Talel BELHAJ SALEM 2025-10-06 8:07 ` Antonin Godard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox