[PATCH 2/3] kbuild: Add command to generate the crc for the IMD crc tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux