summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/include
diff options
context:
space:
mode:
Diffstat (limited to 'meta-rcar-gen3/include')
-rw-r--r--meta-rcar-gen3/include/checksum_control.inc25
-rw-r--r--meta-rcar-gen3/include/checksum_control_files.inc15
2 files changed, 40 insertions, 0 deletions
diff --git a/meta-rcar-gen3/include/checksum_control.inc b/meta-rcar-gen3/include/checksum_control.inc
new file mode 100644
index 0000000..e0decc7
--- /dev/null
+++ b/meta-rcar-gen3/include/checksum_control.inc
@@ -0,0 +1,25 @@
+require include/checksum_control_files.inc
+
+python do_checksum_control() {
+ to_check_dico = d.getVarFlags("CTL_CHECKSUM")
+ if to_check_dico is None:
+ return 0
+
+ src_uri = (d.getVar('SRC_URI') or "").split()
+ for s in src_uri:
+ c_source=os.path.basename(s)
+ bb.note("Check source: %s " % (c_source))
+ if c_source in to_check_dico:
+ f_data = bb.fetch2.FetchData(s, d, True)
+ f_data.setup_localpath(d)
+ if os.path.exists(f_data.localpath):
+ mdr5_sum=bb.utils.md5_file(f_data.localpath)
+ mdr5_ctl=to_check_dico[c_source]
+ if mdr5_sum != mdr5_ctl:
+ bb.fatal( "File %s hash should be %s but %s find, please update your driver files." % (c_source, mdr5_ctl, mdr5_sum))
+}
+
+do_checksum_control[doc] = "Do a checksum of the archives source files"
+do_checksum_control[vardeps] = "CTL_CHECKSUM"
+
+addtask do_checksum_control before do_unpack after do_fetch
diff --git a/meta-rcar-gen3/include/checksum_control_files.inc b/meta-rcar-gen3/include/checksum_control_files.inc
new file mode 100644
index 0000000..258df0e
--- /dev/null
+++ b/meta-rcar-gen3/include/checksum_control_files.inc
@@ -0,0 +1,15 @@
+CTL_CHECKSUM[RCG3VUDRL4101ZDO.tar.bz2] = "0e546389d77b9108a1475356fa49c5a7"
+CTL_CHECKSUM[GSX_KM_M3.tar.bz2] = "0e40eb2e123918655a0e4a42015240b9"
+CTL_CHECKSUM[GSX_KM_H3.tar.bz2] = "b70995eb15a784c7f622fe036179d0bb"
+CTL_CHECKSUM[r8a77951_linux_gsx_binaries_gles.tar.bz2] = "2fd68a3e08c6f593e6a7b85c20b063dd"
+CTL_CHECKSUM[r8a77960_linux_gsx_binaries_gles.tar.bz2] = "654b905d938ef8ae8ea257d14d578108"
+CTL_CHECKSUM[RTM0AC0000ADAACMZ1SL41C.tar.gz] = "83c22b66ecde28ab236a868af6b1a66c"
+CTL_CHECKSUM[RTM0AC0000AEAACMZ1SL41C.tar.gz] = "c1fa7b811b28546734aa4716fdec24d1"
+CTL_CHECKSUM[EVARTM0AC0000XV264D30SL41C.tar.bz2] = "7ac0ffe1deaf56e7df8db9a9cf2431ed"
+CTL_CHECKSUM[EVARTM0AC0000XVCMND30SL41C.tar.bz2] = "d29d7ec63470ab2c8441848d526b408c"
+CTL_CHECKSUM[RTM0AC0000XAAACD30SL41C.tar.gz] = "35554c434797a28a40520f8db1962e9f"
+CTL_CHECKSUM[EVARTM0AC0000XV264E30SL41C.tar.bz2] = "27c54775b3fefadb902d4474f73b8802"
+CTL_CHECKSUM[RTM0AC0000XAAACE30SL41C.tar.gz] = "e052a270ae2737b90092d0fba69cdecb"
+CTL_CHECKSUM[EVARTM0AC0000XVCMNE30SL41C.tar.bz2] = "f04c724c982b9ade3acc76a577c6a2c3"
+CTL_CHECKSUM[RTM0AC0000XACMND30SL41C.tar.gz] = "f515f19fd9d7a5f0845ebb2143d169d8"
+CTL_CHECKSUM[EVARTM0AC0000XCMCTL30SL41C.tar.bz2] = "553d57dbe2b379edf15bd15b6c5a9724"