From: Pierre-Clément Tosi Date: Wed, 11 May 2022 09:36:07 +0000 (+0100) Subject: scripts: Introduce {quiet_,}cmd_bin2c X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=b6c2b25f648102019f81ba22738879889ecc02c1;p=u-boot.git scripts: Introduce {quiet_,}cmd_bin2c Add a make command to compile binary files as C data through bin2c with $(call,bin2c,) Note that this requires BUILD_BIN2C=y. Cc: Simon Glass Signed-off-by: Pierre-Clément Tosi --- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 3db2550085..c0a5bb9add 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -567,6 +567,11 @@ cmd_xzmisc = (cat $(filter-out FORCE,$^) | \ # Additional commands for U-Boot # +# bin2c +# --------------------------------------------------------------------------- +quiet_cmd_bin2c = BIN2C $@ + cmd_bin2c = $(objtree)/scripts/bin2c $2 < $< > $@ + # mkimage # --------------------------------------------------------------------------- MKIMAGEOUTPUT ?= /dev/null