summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKoen Kooi <koen.kooi@oss.qualcomm.com>2025-02-06 16:22:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-10 13:03:58 +0000
commitf555c53c1eb4de2bff1b409f0bdf0479c4aa2c4f (patch)
treece306eaedf206a5f58200af9b9669a8ccddb85e9 /meta
parent3582905ff99634df54acc134225124b94d0a3a09 (diff)
downloadpoky-f555c53c1eb4de2bff1b409f0bdf0479c4aa2c4f.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-recipe/uki.bbclass2
1 files changed, 0 insertions, 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() {
130 initramfs_image = "%s" % (d.getVar('INITRD_ARCHIVE')) 130 initramfs_image = "%s" % (d.getVar('INITRD_ARCHIVE'))
131 ukify_cmd += " --initrd=%s" % (os.path.join(deploy_dir_image, initramfs_image)) 131 ukify_cmd += " --initrd=%s" % (os.path.join(deploy_dir_image, initramfs_image))
132 132
133 deploy_dir_image = d.getVar('DEPLOY_DIR_IMAGE')
134
135 # kernel 133 # kernel
136 kernel_filename = d.getVar('UKI_KERNEL_FILENAME') or None 134 kernel_filename = d.getVar('UKI_KERNEL_FILENAME') or None
137 if kernel_filename: 135 if kernel_filename: