From f555c53c1eb4de2bff1b409f0bdf0479c4aa2c4f Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 6 Feb 2025 16:22:49 +0100 Subject: [PATCH] uki.bbclass: remove duplicate d.getVar('DEPLOY_DIR_IMAGE') This class calls d.getVar('DEPLOY_DIR_IMAGE') twice within the same method, but DEPLOY_DIR_IMAGE variable won't change during the run of this class, so only retrieve it once. (From OE-Core rev: 6866da9f3a273ed7217e9edfca299fc2e68b2f75) Signed-off-by: Koen Kooi Signed-off-by: Richard Purdie --- meta/classes-recipe/uki.bbclass | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/classes-recipe/uki.bbclass b/meta/classes-recipe/uki.bbclass index ccda042ab4..d9a7fb0e6f 100644 --- a/meta/classes-recipe/uki.bbclass +++ b/meta/classes-recipe/uki.bbclass @@ -130,8 +130,6 @@ python do_uki() { initramfs_image = "%s" % (d.getVar('INITRD_ARCHIVE')) ukify_cmd += " --initrd=%s" % (os.path.join(deploy_dir_image, initramfs_image)) - deploy_dir_image = d.getVar('DEPLOY_DIR_IMAGE') - # kernel kernel_filename = d.getVar('UKI_KERNEL_FILENAME') or None if kernel_filename: