mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] new make helper to decode binaries using base64
@ 2017-04-06  9:44 Uwe Kleine-König
  0 siblings, 0 replies; only message in thread
From: Uwe Kleine-König @ 2017-04-06  9:44 UTC (permalink / raw)
  To: barebox

This is helpful to provide mvebu binary.0 images with a patch. When
added directly a binary patch is needed which isn't understood by
patch(1).

As it's (at least) unclear if these images are distributable in general
I don't provide a patch making use of this, but the pattern is as
follows: Add

	$(obj)/start_netgear_rn2120.pblx.kwbimg: $(board)/netgear-rn2120/binary.0

to images/Makefile.mvebu and then put a binary.0.base64 into the board
folder.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 scripts/Makefile.lib | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index e79998c1b9ae..b084bacabe84 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -448,3 +448,9 @@ quiet_cmd_cboot_bct = BCT     $@
 
 $(obj)/%.bct: $(obj)/%.bct.cfg
 	$(call cmd,cboot_bct)
+
+quiet_cmd_b64dec = B64DEC  $@
+      cmd_b64dec = base64 -d $< > $@
+
+%: %.base64
+	$(call cmd,b64dec)
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-06  9:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-06  9:44 [PATCH] new make helper to decode binaries using base64 Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox