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>
# 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)
}