Skip to contentSkip to conversation

config.json: add "package-management" to images

PATCH In review [email protected] 2 participants 5 messages Dec 22, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 config.json: add "package-management" to images

From: Michael Opdenacker <[email protected]>

For the binary distro effort, we want to implement a test that generates a feed of packages, typically from the tip of a release branch (or master), and then try to use this feed to update an image generated for the latest tag (release or milestone) on this branch.

This patch makes it possible to use the images produced for releases at https://downloads.yoctoproject.org/releases/yocto/, as they currently don't have package management enabled.

---
Note: could not test this change!

Changes in V2:
- Add context to the commit message

---
 config.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
config.json +2 -1
index d504d07..bd0135e 100644
@@ -74,7 +74,8 @@
             "BB_LOG_HOST_STAT_ON_FAILURE = '1'",
             "BB_LOG_HOST_STAT_CMDS_FAILURE = 'oe-time-dd-test.sh -l'",
             "SDK_TOOLCHAIN_LANGS += 'rust'",
-            "BB_SERVER_TIMEOUT = '60'"
+            "BB_SERVER_TIMEOUT = '60'",
+            "EXTRA_IMAGE_FEATURES += 'package-management'",
         ]
     },
     "templates" : {
Signature · 1 line
2.34.1
#1 lore raw

Thanks for explaining - I would instead make a 'poky-binary-distro' distro configuration in meta-poky, and collect all needed settings in there.

Placing this in config.json significantly changes how all of the images on autobuilder are assembled and tested, particularly there is no testing of images without package management anymore.

I would in general want to avoid adding any further 'global tweaks' that override oe-core or poky defaults.

Alex

Quoted 41 lines · On Fri, 22 Dec 2023 at 14:19, <[email protected]> wrote:

From: Michael Opdenacker <[email protected]>

For the binary distro effort, we want to implement a test that generates a feed of packages, typically from the tip of a release branch (or master), and then try to use this feed to update an image generated for the latest tag (release or milestone) on this branch.

This patch makes it possible to use the images produced for releases at https://downloads.yoctoproject.org/releases/yocto/, as they currently don't have package management enabled.

---
Note: could not test this change!

Changes in V2:
- Add context to the commit message

---
 config.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
config.json +2 -2
index d504d07..bd0135e 100644
@@ -74,7 +74,8 @@
             "BB_LOG_HOST_STAT_ON_FAILURE = '1'",
             "BB_LOG_HOST_STAT_CMDS_FAILURE = 'oe-time-dd-test.sh -l'",
             "SDK_TOOLCHAIN_LANGS += 'rust'",
-            "BB_SERVER_TIMEOUT = '60'"
+            "BB_SERVER_TIMEOUT = '60'",
+            "EXTRA_IMAGE_FEATURES += 'package-management'",
         ]
     },
     "templates" : {
--

2.34.1

#2 lore raw

Hi Alex,

Quoted 10 lines · Alexander Kanavin

Thanks for explaining - I would instead make a 'poky-binary-distro' distro configuration in meta-poky, and collect all needed settings in there.

Placing this in config.json significantly changes how all of the images on autobuilder are assembled and tested, particularly there is no testing of images without package management anymore.

I would in general want to avoid adding any further 'global tweaks' that override oe-core or poky defaults.

Thanks for your advice! Actually, I wasn't sure how to make the change.

If I understand correctly, even after I define a new 'poky-binary-distro' distro in meta-poky (if agreed), I'll still have to add a new image to config.json, but indeed not touching existing ones.

Richard, would you be open to this suggestion?
Cheers
Michael.

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

If I understand correctly, even after I define a new 'poky-binary-distro' distro in meta-poky (if agreed), I'll still have to add a new image to config.json, but indeed not touching existing ones.

You don't need new images, but you would have to define a new builder entry in config.json that would set DISTRO to poky-binary-distro, and then build exiting images, and do additional steps (e.g. publish the package feeds).

Alex

#4 lore raw

Hi Alex,

Quoted 9 lines · Alexander Kanavin
Quoted 3 lines · Michael Opdenacker

If I understand correctly, even after I define a new 'poky-binary-distro' distro in meta-poky (if agreed), I'll still have to add a new image to config.json, but indeed not touching existing ones.

You don't need new images, but you would have to define a new builder entry in config.json that would set DISTRO to poky-binary-distro, and then build exiting images, and do additional steps (e.g. publish the package feeds).

Thanks for these clarifications, that helps!
However, if the same images are built, but with different distro settings, I still need to figure out where they will be generated, unlike the images on https://downloads.yoctoproject.org/releases/yocto/.

Thanks again
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com