From: Koen Kooi Date: Thu, 6 Feb 2025 15:22:49 +0000 (+0100) Subject: uki.bbclass: remove duplicate d.getVar('DEPLOY_DIR_IMAGE') X-Git-Tag: yocto-5.2~542 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6866da9f3a273ed7217e9edfca299fc2e68b2f75;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Koen Kooi Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/uki.bbclass b/meta/classes-recipe/uki.bbclass index ccda042ab4f..d9a7fb0e6fe 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: