]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
uki.bbclass: remove duplicate d.getVar('DEPLOY_DIR_IMAGE')
authorKoen Kooi <koen.kooi@oss.qualcomm.com>
Thu, 6 Feb 2025 15:22:49 +0000 (16:22 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Feb 2025 13:02:38 +0000 (13:02 +0000)
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 <koen.kooi@oss.qualcomm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/uki.bbclass

index ccda042ab4fd980618d5175cbb8996cb89c2937e..d9a7fb0e6fe0b1ff3be267ff06ac6b7994c97884 100644 (file)
@@ -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: