def get_bootloader_dependencies(d): - bootloader = d.getVar("SWUPDATE_BOOTLOADER", True) or "" + bootloader = d.getVar("SWUPDATE_BOOTLOADER") or "" if bootloader == "efibootguard": return "efibootguard-dev" if bootloader == "u-boot": - if d.getVar("U_BOOT_CONFIG_PACKAGE", True) == "1": - return "libubootenv u-boot-{}-config".format(d.getVar("MACHINE", TRUE)) + if d.getVar("U_BOOT_CONFIG_PACKAGE") == "1": + return "libubootenv u-boot-{}-config".format(d.getVar("MACHINE")) else: return "libubootenv" return "" @@ -48,7 +48,7 @@ dpkg_runbuild_prepend() { }
python do_check_bootloader () { - bootloader = d.getVar("SWUPDATE_BOOTLOADER", True) or "None" + bootloader = d.getVar("SWUPDATE_BOOTLOADER") or "None" if not bootloader in ["efibootguard", "u-boot"]: bb.warn("swupdate: SWUPDATE_BOOTLOADER set to incompatible value: " + bootloader) }
Thanks, applied.
Jan
-- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux