Remove the unused re import and target variable from the
anonymous Python function.

No functional change intended.

Signed-off-by: Nico <[email protected]>
---
 meta/recipes-core/systemd/systemd-boot_255.21.bb | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd-boot_255.21.bb 
b/meta/recipes-core/systemd/systemd-boot_255.21.bb
index 397316fe9b..71b553eb5c 100644
--- a/meta/recipes-core/systemd/systemd-boot_255.21.bb
+++ b/meta/recipes-core/systemd/systemd-boot_255.21.bb
@@ -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)
 }
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#238876): 
https://lists.openembedded.org/g/openembedded-core/message/238876
Mute This Topic: https://lists.openembedded.org/mt/119829979/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to