
Dear Heiko,
In message 20211104185231.2927-1-heiko.thiery@gmail.com you wrote:
While converting to binman for an imx8mq board, it has been found that building in the u-boot CI fails. This is because an imx8mq requires an external binary (signed_hdmi_imx8m.bin). If this file cannot be found mkimage fails. To work around the problem the exception is caught, an error message is printed and binman continues.
But how can you continue, when mkimage fails and cannot generate the needed image?
In your patch 2/2 we have this:
+ tools.Run('mkimage', '-d', input_fname, *self._args, output_fname) + except Exception as e: + tout.Error("mkimage failed: %s" % e) + self.SetContents(tools.ReadFile(output_fname))
mkimage is supposed to create an output file which name is in output_fname; if mkimage fails and you continue, the next step is tools.ReadFile(output_fname) trying to read that file. How is this possible?
Best regards,
Wolfgang Denk