From 53f063f88db5ea9c60201953ed51807d2ff5903d Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Thu, 6 Apr 2017 11:44:09 +0200 Subject: new make helper to decode binaries using base64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Sascha Hauer --- scripts/Makefile.lib | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index e79998c1b9..b084bacabe 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) -- cgit v1.2.3