All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts: Introduce {quiet_,}cmd_bin2c
@ 2022-05-11  9:36 Pierre-Clément Tosi
  2022-06-07 16:46 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre-Clément Tosi @ 2022-05-11  9:36 UTC (permalink / raw)
  To: u-boot; +Cc: Pierre-Clément Tosi, Simon Glass

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>
---
 scripts/Makefile.lib | 5 +++++
 1 file changed, 5 insertions(+)

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
-- 
2.36.0.512.ge40c2bad7a-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scripts: Introduce {quiet_,}cmd_bin2c
  2022-05-11  9:36 [PATCH] scripts: Introduce {quiet_,}cmd_bin2c Pierre-Clément Tosi
@ 2022-06-07 16:46 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2022-06-07 16:46 UTC (permalink / raw)
  To: Pierre-Clément Tosi; +Cc: u-boot, Simon Glass

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

On Wed, May 11, 2022 at 10:36:07AM +0100,  Pierre-Clément Tosi  wrote:

> 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>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-07 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11  9:36 [PATCH] scripts: Introduce {quiet_,}cmd_bin2c Pierre-Clément Tosi
2022-06-07 16:46 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.