Skip to contentSkip to conversation

dev-manual: clarify use of "PACKAGE_ARCH" in a packagegroup

PATCH In review Robert P. J. Day 2 participants 3 messages Jun 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev-manual: clarify use of "PACKAGE_ARCH" in a packagegroup

Warn the developer that if they need to set "PACKAGE_ARCH" in a custom packagegroup file, that setting must precede the "inherit packagegroup" line in the packagegroup recipe file.

---

documentation/dev-manual/customizing-images.rst +12 -0
index 6eed9ef56..606252fe1 100644
@@ -183,6 +183,18 @@ build an image using these package group packages, you need to add
 :term:`IMAGE_INSTALL`. For other forms of image dependencies see the other
 areas of this section.
 
+.. note::
+
+   If you're defining a packagegroup and need to set::
+
+      PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+   for the packagegroup, you need to do that *before* the
+   ``inherit packagegroup`` line in the recipe file.
+   Setting it afterward can break BitBake parsing, result in
+   an "allarch" architecture mismatch error, or allow
+   architecture-independent defaults to override your intent.
+
 Customizing an Image Hostname
 =============================
 
#1 lore raw

Hi,

Quoted 21 lines · Robert P. J. Day

Warn the developer that if they need to set "PACKAGE_ARCH" in a custom packagegroup file, that setting must precede the "inherit packagegroup" line in the packagegroup recipe file.

---

documentation/dev-manual/customizing-images.rst +4 -0
index 6eed9ef56..606252fe1 100644
@@ -183,6 +183,18 @@ build an image using these package group packages, you need to add
 :term:`IMAGE_INSTALL`. For other forms of image dependencies see the other
 areas of this section.
 
+.. note::
+
+   If you're defining a packagegroup and need to set::
+

documentation/dev-manual/customizing-images.rst build an image using these package group packages, you need to add · line 199

Quoted 10 lines
documentation/dev-manual/customizing-images.rst +8 -0
+      PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+   for the packagegroup, you need to do that *before* the
+   ``inherit packagegroup`` line in the recipe file.
+   Setting it afterward can break BitBake parsing, result in
+   an "allarch" architecture mismatch error, or allow
+   architecture-independent defaults to override your intent.
+
 Customizing an Image Hostname
 =============================

Again, I think this belongs to the packagegroup class documentation.

Antonin

#2 lore raw
Quoted 20 lines · Antonin Godard

Hi,

Quoted 17 lines · Robert P. J. Day

Warn the developer that if they need to set "PACKAGE_ARCH" in a custom packagegroup file, that setting must precede the "inherit packagegroup" line in the packagegroup recipe file.

---

documentation/dev-manual/customizing-images.rst +0 -0
index 6eed9ef56..606252fe1 100644
@@ -183,6 +183,18 @@ build an image using these package group packages, you need to add
 :term:`IMAGE_INSTALL`. For other forms of image dependencies see the other
 areas of this section.
 
Quoted 16 lines
Quoted 4 lines
documentation/dev-manual/customizing-images.rst +4 -0
+.. note::
+
+   If you're defining a packagegroup and need to set::
+

documentation/dev-manual/customizing-images.rst build an image using these package group packages, you need to add · line 199

Quoted 10 lines
documentation/dev-manual/customizing-images.rst +8 -0
+      PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+   for the packagegroup, you need to do that *before* the
+   ``inherit packagegroup`` line in the recipe file.
+   Setting it afterward can break BitBake parsing, result in
+   an "allarch" architecture mismatch error, or allow
+   architecture-independent defaults to override your intent.
+
 Customizing an Image Hostname
 =============================

Again, I think this belongs to the packagegroup class documentation.

ah, the "class" documentation. got it.

rday