]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
systemd-boot: remove unused variables
authorNico <nicolaie.busuioc@gmail.com>
Tue, 16 Jun 2026 07:37:40 +0000 (09:37 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Jun 2026 09:02:08 +0000 (10:02 +0100)
Remove the unused re import and target variable from the
anonymous Python function.

No functional change intended.

Signed-off-by: Nico <nicolaie.busuioc@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-boot_259.5.bb

index c6c443f929ffb54efd15eaa97ebb3aec977b7c3b..aa5e57d3dd51c2fd08cc3b9ace3333fdecaa85c8 100644 (file)
@@ -34,11 +34,8 @@ EXTRA_OEMESON += "-Defi=true \
 # otherwise install as the full name.
 # This allows multiple bootloaders to coexist in a single image.
 python __anonymous () {
-    import re
-    target = d.getVar('TARGET_ARCH')
     prefix = "" if d.getVar('EFI_PROVIDER') == "systemd-boot" else "systemd-"
-    systemdimage = prefix + d.getVar("EFI_BOOT_IMAGE")
-    d.setVar("SYSTEMD_BOOT_IMAGE", systemdimage)
+    d.setVar("SYSTEMD_BOOT_IMAGE", prefix + d.getVar("EFI_BOOT_IMAGE"))
     prefix = "systemd-" if prefix == "" else ""
     d.setVar("SYSTEMD_BOOT_IMAGE_PREFIX", prefix)
 }