diff options
5 files changed, 45 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..c4d14ff --- /dev/null +++ b/meta-rcar-gen3/include/checksum_control_files.inc @@ -0,0 +1,15 @@ +CTL_CHECKSUM[RCG3VUDRL4101ZDO.tar.bz2] = "fe9ddb1e5c17375f952fe1ac9cb1c1fe" +CTL_CHECKSUM[GSX_KM_M3.tar.bz2] = "965a1fcd792683756c086773709a6f83" +CTL_CHECKSUM[GSX_KM_H3.tar.bz2] = "cd0db67332b09c764c202c5fb4658da1" +CTL_CHECKSUM[r8a77951_linux_gsx_binaries_gles.tar.bz2] = "638e9a41174b65481286fc894e8fe49a" +CTL_CHECKSUM[r8a77960_linux_gsx_binaries_gles.tar.bz2] = "ab62ca12e3427ada98c627fd98ea8ba7" +CTL_CHECKSUM[RTM0AC0000ADAACMZ1SL41C.tar.gz] = "727533ce28af5e65fa2820c6650de028" +CTL_CHECKSUM[RTM0AC0000AEAACMZ1SL41C.tar.gz] = "ce4899758eec92cb8dfe4c6464eec1fb" +CTL_CHECKSUM[EVARTM0AC0000XV264D30SL41C.tar.bz2] = "62a93966ef1329401b777d798576b5a8" +CTL_CHECKSUM[EVARTM0AC0000XVCMND30SL41C.tar.bz2] = "9eecc5b26556cfd50e93eb922d6c78cb" +CTL_CHECKSUM[RTM0AC0000XAAACD30SL41C.tar.gz] = "be0515df70ac9b5d94a732bb67da30ab" +CTL_CHECKSUM[EVARTM0AC0000XV264E30SL41C.tar.bz2] = "7b30995b30fbf2589db80a35a8583b0b" +CTL_CHECKSUM[RTM0AC0000XAAACE30SL41C.tar.gz] = "47ba2f7a23a6a7ebcaed93f548f60c67" +CTL_CHECKSUM[EVARTM0AC0000XVCMNE30SL41C.tar.bz2] = "7ccff2c0ffd96255920a3dea84061a21" +CTL_CHECKSUM[RTM0AC0000XACMND30SL41C.tar.gz] = "2627aea64a655c10e79855381508d84c" +CTL_CHECKSUM[EVARTM0AC0000XCMCTL30SL41C.tar.bz2] = "6d766889cf4e8d559493b20d56cbb124" diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bb index 07b04ec..560487b 100644 --- a/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bb +++ b/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bb @@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = " \ file://MIT-COPYING;md5=8c2810fa6bfdc5ae5c15a0c1ade34054 \ " inherit module +require include/checksum_control.inc + PN = "kernel-module-gles" PR = "r0" diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bb index 7fbc430..0503101 100644 --- a/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bb +++ b/meta-rcar-gen3/recipes-kernel/kernel-module-uvcs/kernel-module-uvcs-drv.bb @@ -12,8 +12,10 @@ LIC_FILES_CHKSUM = " \ " require include/omx-control.inc require include/rcar-gen3-path-common.inc +require include/checksum_control.inc inherit module + PR = "r0" UVCS_SRC = "${@base_conditional('USE_VIDEO_OMX', '1', 'file://RCG3VUDRL4101ZDO.tar.bz2', '', d)}" diff --git a/meta-rcar-gen3/recipes-multimedia/omx-module/omx-user-module.bb b/meta-rcar-gen3/recipes-multimedia/omx-module/omx-user-module.bb index de0a5ac..1834086 100644 --- a/meta-rcar-gen3/recipes-multimedia/omx-module/omx-user-module.bb +++ b/meta-rcar-gen3/recipes-multimedia/omx-module/omx-user-module.bb @@ -17,6 +17,7 @@ include ${INCLUDE_FILE}-omx-user-module.inc DEPENDS += '${@base_conditional("USE_VIDEO_OMX", "1", "kernel-module-uvcs-drv", "", d )}' inherit autotools +require include/checksum_control.inc includedir = "${RENESAS_DATADIR}/include" CFLAGS += " -I${STAGING_DIR_HOST}${RENESAS_DATADIR}/include" |