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 <koen.kooi@oss.qualcomm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Koen Kooi
2025-02-06 16:22:49 +01:00
committed by Richard Purdie
parent 3582905ff9
commit f555c53c1e

View 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: