Skip to contentSkip to conversation

Document some checks in externalsrc that could fail the build

PATCH Applied Talel BELHAJ SALEM 2 participants 7 messages Sep 21, 2025 – Oct 6, 2025

lore
Share & tools
lore
#0 lore raw

cover Document some checks in externalsrc that could fail the build

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(+)
Signature · 1 line
2.51.0
#1 lore raw

PATCH 1/2 dev-manual/building.rst: add note about globally inheriting externalsrc class

---
 documentation/dev-manual/building.rst | 7 +++++++
 1 file changed, 7 insertions(+)
documentation/dev-manual/building.rst +7 -0
index 04c150094..8d00d908e 100644
@@ -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::
 
Signature · 1 line
2.51.0
#2 lore raw

Re: [docs] [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class

Quoted 13 lines · BELHADJ SALEM Talel via lists.yoctoproject.org
---
 documentation/dev-manual/building.rst | 7 +++++++
 1 file changed, 7 insertions(+)
documentation/dev-manual/building.rst +0 -0
index 04c150094..8d00d908e 100644
@@ -736,6 +736,13 @@ are the statements to put in your ``local.conf`` file::
    INHERIT += "externalsrc"
    EXTERNALSRC:pn-myrecipe = "path-to-your-source-tree"
 

documentation/dev-manual/building.rst are the statements to put in your ``local.conf`` file:: · line 748

Quoted 10 lines
documentation/dev-manual/building.rst +7 -0
+.. 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

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

Re: [docs] [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class

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

Quoted 47 lines · On Mon, 22 Sep 2025 at 15:18 Antonin Godard <[email protected]> wrote:

Review

Quoted 6 lines · BELHADJ SALEM Talel via lists.yoctoproject.org
---
 documentation/dev-manual/building.rst | 7 +++++++
 1 file changed, 7 insertions(+)
(quoted diff) +0 -0

b/documentation/dev-manual/building.rst

documentation/dev-manual/building.rst are the statements to put in your ``local.conf``

Quoted 4 lines

index 04c150094..8d00d908e 100644

documentation/dev-manual/building.rst +0 -0
@@ -736,6 +736,13 @@ are the statements to put in your ``local.conf``

file::

documentation/dev-manual/building.rst are the statements to put in your ``local.conf`` file::

Quoted 12 lines
documentation/dev-manual/building.rst +7 -0
    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::

Quoted 1 line

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

#4 lore raw

Re: [docs] [PATCH 1/2] dev-manual/building.rst: add note about globally inheriting externalsrc class

Quoted 2 lines · BELHADJ SALEM Talel via lists.yoctoproject.org

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

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

PATCH 2/2 dev-manual/building.rst: add note about externalsrc variables absolute paths

In reply to Talel BELHAJ SALEM
---
 documentation/dev-manual/building.rst | 5 +++++
 1 file changed, 5 insertions(+)
documentation/dev-manual/building.rst +5 -0
index 8d00d908e..de37704ad 100644
@@ -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
 ===========================
 
Signature · 1 line
2.51.0
#6 lore raw

Re: [PATCH 2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths

Quoted 1 line · Talel BELHAJ SALEM

Applied, thanks!

[2/2] dev-manual/building.rst: add note about externalsrc variables absolute paths

      commit: 33166d70b6ad093bd95ffccafc0b07820682f656

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>