On Fri, May 03, 2024 at 12:32:29PM +0200, Ahmad Fatoum wrote: > Firmware compiled into barebox PBL is rarely optional, so even if > CONFIG_MISSING_FIRMWARE_ERROR is disabled, barebox will not generate > images with missing PBL firmware. > > We can relax this for firmware compiled into barebox proper though: If > the user disables CONFIG_MISSING_FIRMWARE_ERROR, just have the driver > fail at runtime as not to break other boards in the same build that > don't require the firmware. > > Missing barebox proper firmware will be detectable as a 0-byte firmware > blob in the follow-up commit, so prepare for that by printing an > informative error message. I changed the order of the first two patches to what this sentence suggests. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |