Skip to contentSkip to conversation

config.json: Switch poky-altcfg to use ipk as the package backend

PATCH In review Richard Purdie 3 participants 5 messages Mar 4, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.json: Switch poky-altcfg to use ipk as the package backend

Since we plan to have better "binary distro" testing on the autobuilder and we plan to primarily use ipk for this, having ipk based images available as part of our builds is desireable.

Since we want systemd based images with ipk, it makes sense to leave standard poky using rpm images but switch poky-altcfg to use ipk.

Whilst late in the release cycle, doing this now for scarthgap gives us a good platform to build off in the long term too.

---
 config.json | 5 +++++
 1 file changed, 5 insertions(+)
config.json +5 -0
index fd8335f..4d0f258 100644
@@ -127,6 +127,7 @@
             "BUILDINFO" : true,
             "BUILDHISTORY" : true,
             "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'",
                 "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
             ],
             "extratools" : "${EXTRATOOLS_URL}",
@@ -140,6 +141,7 @@
             "BUILDINFO" : true,
             "BUILDHISTORY" : true,
             "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'",
                 "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
             ],
             "extratools" : "${EXTRATOOLS_URL}",
@@ -198,6 +200,9 @@
         "altcfg-hw" : {
             "DISTRO" : "poky-altcfg",
             "BUILDINFO" : true,
+            "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'"
+            ],
             "step1" : {
                 "BBTARGETS" : "core-image-full-cmdline core-image-sato core-image-sato-sdk"
             }
Signature · 1 line
2.40.1
#1 lore raw
Quoted 5 lines · Richard Purdie

Since we plan to have better "binary distro" testing on the autobuilder and we plan to primarily use ipk for this, having ipk based images available
as part of our builds is desireable.

Definitely agree.

Quoted 5 lines

Since we want systemd based images with ipk, it makes sense to leave standard
poky using rpm images but switch poky-altcfg to use ipk.

Good idea!

Quoted 5 lines

Whilst late in the release cycle, doing this now for scarthgap gives us a good
platform to build off in the long term too.

Seems like a good idea to me!

Quoted 52 lines
---
 config.json | 5 +++++
 1 file changed, 5 insertions(+)
config.json +5 -0
index fd8335f..4d0f258 100644
@@ -127,6 +127,7 @@
             "BUILDINFO" : true,
             "BUILDHISTORY" : true,
             "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'",
                 "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
             ],
             "extratools" : "${EXTRATOOLS_URL}",
@@ -140,6 +141,7 @@
             "BUILDINFO" : true,
             "BUILDHISTORY" : true,
             "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'",
                 "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
             ],
             "extratools" : "${EXTRATOOLS_URL}",
@@ -198,6 +200,9 @@
         "altcfg-hw" : {
             "DISTRO" : "poky-altcfg",
             "BUILDINFO" : true,
+            "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'"
+            ],
             "step1" : {
                 "BBTARGETS" : "core-image-full-cmdline core-image-sato

core-image-sato-sdk"

             }

--
2.40.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#62665):
https://lists.yoctoproject.org/g/yocto/message/62665
Mute This Topic: https://lists.yoctoproject.org/mt/104723845/924729
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
In reply to Richard Purdie

Hi Richard

Many thanks for the patch!

Quoted 37 lines · Richard Purdie

Since we plan to have better "binary distro" testing on the autobuilder and we plan to primarily use ipk for this, having ipk based images available as part of our builds is desireable.

Since we want systemd based images with ipk, it makes sense to leave standard poky using rpm images but switch poky-altcfg to use ipk.

Whilst late in the release cycle, doing this now for scarthgap gives us a good platform to build off in the long term too.

---
  config.json | 5 +++++
  1 file changed, 5 insertions(+)
config.json +2 -0
index fd8335f..4d0f258 100644
@@ -127,6 +127,7 @@
              "BUILDINFO" : true,
              "BUILDHISTORY" : true,
              "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'",
                  "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
              ],
              "extratools" : "${EXTRATOOLS_URL}",
@@ -140,6 +141,7 @@
              "BUILDINFO" : true,
              "BUILDHISTORY" : true,
              "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'",
                  "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
              ],
              "extratools" : "${EXTRATOOLS_URL}",

config.json line 208

Quoted 9 lines
config.json +3 -0
@@ -198,6 +200,9 @@
          "altcfg-hw" : {
              "DISTRO" : "poky-altcfg",
              "BUILDINFO" : true,
+            "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'"
+            ],
              "step1" : {
                  "BBTARGETS" : "core-image-full-cmdline core-image-sato core-image-sato-sdk"
              }

Actually, to use these images for testing package upgrades through feeds, we also need enough free space in the images. Could we also add something like IMAGE_ROOTFS_EXTRA_SPACE = "262144"? Thanks again Cheers Michael. --

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

#3 lore raw
Quoted 46 lines · Michael Opdenacker

Hi Richard

Many thanks for the patch!

Quoted 41 lines · Richard Purdie

Since we plan to have better "binary distro" testing on the autobuilder and we plan to primarily use ipk for this, having ipk based images available as part of our builds is desireable.

Since we want systemd based images with ipk, it makes sense to leave standard poky using rpm images but switch poky-altcfg to use ipk.

Whilst late in the release cycle, doing this now for scarthgap gives us a good platform to build off in the long term too.

---
  config.json | 5 +++++

  1 file changed, 5 insertions(+)
config.json +0 -0
index fd8335f..4d0f258 100644
@@ -127,6 +127,7 @@
               "BUILDINFO" : true,
               "BUILDHISTORY" : true,

              "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'", "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'" ],
              "extratools" : "${EXTRATOOLS_URL}",

config.json +0 -0
@@ -140,6 +141,7 @@
               "BUILDINFO" : true,
               "BUILDHISTORY" : true,

              "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'", "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'" ],
              "extratools" : "${EXTRATOOLS_URL}",

config.json +2 -0
@@ -198,6 +200,9 @@
           "altcfg-hw" : {
               "DISTRO" : "poky-altcfg",
               "BUILDINFO" : true,
+            "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'"
Quoted 8 lines
Quoted 5 lines
config.json +1 -0
+            ],
               "step1" : {

                  "BBTARGETS" : "core-image-full-cmdline core-image-sato core-image-sato-sdk" }

Actually, to use these images for testing package upgrades through feeds, we also need enough free space in the images.
Could we also add something like IMAGE_ROOTFS_EXTRA_SPACE = "262144"?

Setting that "globally" for those templates will potentially break other images the usual way to do it would be:

IMAGE_ROOTFS_EXTRA_SPACE:append = "+ 102400"

but I still worry about side effects, e.g. for minimal or initramfs images. Which images do we plan to test? core-image-full-cmdline and what else?

We probably need a set of definitions like:

IMAGE_ROOTFS_EXTRA_SPACE:append:pn-core-image-full-cmdline = " + 262144"

but something like:

IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_FEATURES, "package-management", " + 262144", "", d)}"

might work.

Cheers,

Richard

#4 lore raw

Hi Richard,

Quoted 65 lines · Richard Purdie
Quoted 46 lines · Michael Opdenacker

Hi Richard

Many thanks for the patch!

Quoted 41 lines · Richard Purdie

Since we plan to have better "binary distro" testing on the autobuilder and we plan to primarily use ipk for this, having ipk based images available as part of our builds is desireable.

Since we want systemd based images with ipk, it makes sense to leave standard poky using rpm images but switch poky-altcfg to use ipk.

Whilst late in the release cycle, doing this now for scarthgap gives us a good platform to build off in the long term too.

---
   config.json | 5 +++++
   1 file changed, 5 insertions(+)
config.json +4 -0
index fd8335f..4d0f258 100644
@@ -127,6 +127,7 @@
               "BUILDINFO" : true,
               "BUILDHISTORY" : true,
               "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'",
                   "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
               ],
               "extratools" : "${EXTRATOOLS_URL}",
@@ -140,6 +141,7 @@
               "BUILDINFO" : true,
               "BUILDHISTORY" : true,
               "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'",
                   "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
               ],
               "extratools" : "${EXTRATOOLS_URL}",
@@ -198,6 +200,9 @@
           "altcfg-hw" : {
               "DISTRO" : "poky-altcfg",
               "BUILDINFO" : true,
+            "extravars" : [
+                "PACKAGE_CLASSES = 'package_ipk package_rpm package_deb'"
Quoted 8 lines

config.json line 208

Quoted 5 lines
config.json +1 -0
+            ],
               "step1" : {
                   "BBTARGETS" : "core-image-full-cmdline core-image-sato core-image-sato-sdk"
               }

Actually, to use these images for testing package upgrades through feeds, we also need enough free space in the images.
Could we also add something like IMAGE_ROOTFS_EXTRA_SPACE = "262144"?

Setting that "globally" for those templates will potentially break other images the usual way to do it would be:

IMAGE_ROOTFS_EXTRA_SPACE:append = "+ 102400"

but I still worry about side effects, e.g. for minimal or initramfs images. Which images do we plan to test? core-image-full-cmdline and what else?

We probably need a set of definitions like:

Quoted 7 lines

IMAGE_ROOTFS_EXTRA_SPACE:append:pn-core-image-full-cmdline = " + 262144"

but something like:

IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_FEATURES, "package-management", " + 262144", "", d)}"

might work.

Ouch, good catch.
I'd vote for the second option. When we have package management, it makes sense to keep enough space for downloading and applying updates. Cheers
Michael.

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