diff options
author | Pierre-Clément Tosi <ptosi@google.com> | 2022-05-11 10:36:07 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-06 17:47:17 -0400 |
commit | b6c2b25f648102019f81ba22738879889ecc02c1 (patch) | |
tree | 3f637b6857781679c40fee6f49fa4584abf66fa1 | |
parent | 84378d5c86d1b8e7afd2132e2c8d79d8e7e1f7d9 (diff) |
scripts: Introduce {quiet_,}cmd_bin2c
Add a make command to compile binary files as C data through bin2c with
$(call,bin2c,<data_name_prefix>)
Note that this requires BUILD_BIN2C=y.
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
-rw-r--r-- | scripts/Makefile.lib | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 3db2550085a..c0a5bb9addc 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 |