[PATCH master] kbuild: delete images with missing firmware instead of truncating

Sascha Hauer sha at pengutronix.de
Mon Jul 3 05:48:28 PDT 2023


On Mon, Jul 03, 2023 at 11:56:08AM +0200, Ahmad Fatoum wrote:
> It may be confusing to users to be left with a 0-byte image, so let's
> delete it instead. This means that every build with missing firmware will
> attempt the final make targets, only to delete them at the end.
> 
> At the flip-side, there is no risk of broken images to be used later on.
> 
> Suggested-by: Rouven Czerwinski <r.czerwinski at pengutronix.de>
> Suggested-by: Michael Olbrich <mol at pengutronix.de>
> Suggested-by: Enrico Jörns <e.joerns at pengutronix.de>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  images/Makefile      | 4 ++--
>  scripts/Makefile.lib | 3 +++
>  2 files changed, 5 insertions(+), 2 deletions(-)

Applied, thanks

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 |



More information about the barebox mailing list