[PATCH 2/3] kbuild: Add command to generate the crc for the IMD crc tag
Sascha Hauer
s.hauer at pengutronix.de
Mon Dec 7 04:29:51 EST 2020
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
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
More information about the barebox
mailing list