diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2017-04-06 11:44:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-06-01 10:27:25 +0200 |
commit | 53f063f88db5ea9c60201953ed51807d2ff5903d (patch) | |
tree | 3139f093fa000f287b913fe18251e488a39abaaf | |
parent | a2e02ac80845e7c54092e1cc0198c934838c77f4 (diff) | |
download | barebox-53f063f88db5ea9c60201953ed51807d2ff5903d.tar.gz barebox-53f063f88db5ea9c60201953ed51807d2ff5903d.tar.xz |
new make helper to decode binaries using base64
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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | scripts/Makefile.lib | 6 |
1 files changed, 6 insertions, 0 deletions
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) |