Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- scripts/Makefile.lib | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 2844d29be6..060dad5087 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -448,6 +448,17 @@ cmd_lz4 = (cat $(filter-out FORCE,$^) | \ %.lz4: % $(call if_changed,lz4) +ifdef CONFIG_IMD +quiet_cmd_gen_imd_crc = GENCRC $@ +cmd_gen_imd_crc = scripts/bareboximd -c $@ $< +else +quiet_cmd_gen_imd_crc = +cmd_gen_imd_crc = true +endif + +%.imdcrc: % + $(call if_changed,gen_imd_crc) + # comp_copy # --------------------------------------------------------------------------- # Wrapper which only copies a file, but compatible to the compression -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox