def complete(t_self, resources, elf, binf): from tools.targets.PSOC6 import complete as psoc6_complete if hasattr(t_self.target, "sub_target"): # Completing main image involves merging M0 image. from tools.targets.PSOC6 import find_cm0_image m0hexf = find_cm0_image(t_self, resources, elf, binf) psoc6_complete(t_self, elf, binf, m0hexf) else: psoc6_complete(t_self, elf, binf)
def sign_image(t_self, resources, elf, binf): """ Calls sign_image function to add signature to Secure Boot binary file. This function is used with Cypress kits, that support cysecuretools signing. """ from tools.targets.PSOC6 import sign_image as psoc6_sign_image if hasattr(t_self.target, "hex_filename"): hex_filename = t_self.target.hex_filename # Completing main image involves merging M0 image. from tools.targets.PSOC6 import find_cm0_image m0hexf = find_cm0_image(t_self, resources, elf, binf, hex_filename) psoc6_sign_image(t_self, resources, elf, binf, m0hexf)