Skip to contentSkip to conversation

Update comments on FIT image generation

PATCH New Francesco Valla 1 participant 3 messages Sep 1

lore
Share & tools
lore
#0 lore raw

cover Update comments on FIT image generation

Hello,

these patches only update comments that became outdated with the recent changes in FIT image generation. No functional changes are introduced.

Regards,
Francesco

---
Francesco Valla (2):
classes-recipe: uboot: update comments on kernel-fitimage
oe-selftest: fitimage: update comments

 meta/classes-recipe/uboot-config.bbclass |  2 +-
 meta/classes-recipe/uboot-sign.bbclass   |  3 +--
 meta/lib/oeqa/selftest/cases/fitimage.py | 12 +++++-------
 3 files changed, 7 insertions(+), 10 deletions(-)

---
base-commit: db81c1a42a0f552d9a8ec124f004ae2063d58c33
change-id: 20260901-kernel-fitimage-cleanup-da470ce57da6

Best regards,

Signature · 1 line
Francesco Valla <[email protected]>
#1 lore raw

PATCH 1/2 classes-recipe: uboot: update comments on kernel-fitimage

The FIT image geneation method has been reworked and is now based on the kernel-fit-extra-artifacts.bbclass, with the fitImage image type not being suppoorted anymore. Moreover, the kernel-fitimage.bbclass has been renamed to kernel-fit-image.bbclass.

Update the comments in uboot classes to reflect these changes.

No functional changes.

---
 meta/classes-recipe/uboot-config.bbclass | 2 +-
 meta/classes-recipe/uboot-sign.bbclass   | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
meta/classes-recipe/uboot-config.bbclass +1 -1
index 412b2c7c57e7..5459430dee57 100644
@@ -247,7 +247,7 @@ python () {
             bb.debug(1, "Appending '%s' to UBOOT_CONFIG_FRAGMENTS." % fragments)
             d.appendVar('UBOOT_CONFIG_FRAGMENTS', fragments + " ? ")
 
-        # This recipe might be inherited e.g. by the kernel recipe via kernel-fitimage.bbclass
+        # This recipe might be inherited e.g. by the kernel recipe via kernel-fit-image.bbclass
         # Ensure the uboot specific menuconfig settings do not leak into other recipes
         if 'u-boot' in recipename:
             if len(ubootconfig) == 1:
meta/classes-recipe/uboot-sign.bbclass +1 -2
index 4da5d4c9f188..236d19925ef1 100644
@@ -17,8 +17,7 @@
 #
 # As verified boot depends on fitImage generation, following is also required:
 #
-#   KERNEL_CLASSES ?= " kernel-fitimage "
-#   KERNEL_IMAGETYPE ?= "fitImage"
+#   KERNEL_CLASSES += "kernel-fit-extra-artifacts"
 #
 # The signature support is limited to the use of CONFIG_OF_SEPARATE in U-Boot.
 #
Signature · 1 line
2.55.0
#2 lore raw

PATCH 2/2 oe-selftest: fitimage: update comments

In reply to Francesco Valla

The kenel-fitimage.bbclass has been renamed to kernel-fit-image.bbclass with the recent changes on FIT image generation. Update the comments accordingly.

No functional changes.

---
 meta/lib/oeqa/selftest/cases/fitimage.py | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
meta/lib/oeqa/selftest/cases/fitimage.py +5 -7
index ea5f1576d947..840ae0589c9e 100644
@@ -36,7 +36,7 @@ class BbVarsMockGenKeys:
         return self.bb_vars[var]
 
 class FitImageTestCase(OESelftestTestCase):
-    """Test functions usable for testing kernel-fitimage.bbclass and uboot-sign.bbclass
+    """Test functions usable for testing kernel-fit-image.bbclass and uboot-sign.bbclass
 
     A brief summary showing the structure of a test case:
 
@@ -260,9 +260,7 @@ class FitImageTestCase(OESelftestTestCase):
         function generates only the keys which are really needed, not just two.
         """
 
-        # Define some variables which are usually defined by the kernel-fitimage.bbclass.
-        # But for testing purpose check if the uboot-sign.bbclass is independent from
-        # the kernel-fitimage.bbclass
+        # Define some variables which are usually defined by image-fitimage.conf
         fit_sign_numbits = bb_vars.get('FIT_SIGN_NUMBITS', "2048")
         fit_key_genrsa_args = bb_vars.get('FIT_KEY_GENRSA_ARGS', "-F4")
         fit_key_req_args =  bb_vars.get('FIT_KEY_REQ_ARGS', "-batch -new")
@@ -521,7 +519,7 @@ class FitImageTestCase(OESelftestTestCase):
                 elif line.endswith('{'):
                     its_path.append(line[:-1].strip())
                     its_paths.append(its_path[:])
-                # kernel-fitimage uses signature-1, uboot-sign uses signature
+                # kernel-fit-image uses signature-1, uboot-sign uses signature
                 elif its_path and (its_path[-1] == 'signature-1' or its_path[-1] == 'signature'):
                     itsdotpath = '.'.join(its_path)
                     if not itsdotpath in sigs:
@@ -1160,7 +1158,7 @@ class KernelFitImageBase(FitImageTestCase):
                              (num_signatures, a_comment))
 
 class KernelFitImageRecipeTests(KernelFitImageBase):
-    """Test cases for the kernel-fitimage bbclass"""
+    """Test cases for the kernel-fit-image bbclass"""
 
     def test_fit_image(self):
         """
@@ -2181,7 +2179,7 @@ UBOOT_FIT_HASH_ALG = "sha256"
         """
         Summary:     Check if the device-tree from U-Boot has two public keys
                      for verifying the kernel FIT image created by the
-                     kernel-fitimage.bbclass included.
+                     kernel-fit-image.bbclass included.
                      This test sets: FIT_SIGN_INDIVIDUAL = "1"
         Expected:    There must be two signature nodes. One is required for
                      the individual image nodes, the other is required for the
Signature · 1 line
2.55.0