[PATCH] new make helper to decode binaries using base64
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Thu Apr 6 02:44:09 PDT 2017
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 at 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
More information about the barebox
mailing list