summaryrefslogtreecommitdiffstats
path: root/meta-agl-test/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend
blob: 6008d75eefc371636013310819a4c810d6f5bd42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# fix bug for ptest with usrmerge.
# Delete it after yocto version up.
do_compile_ptest:append() {
    sed -i 's,/usr/usr,/usr,g' \
        ${B}/tests/test_one \
        ${B}/tests/test_script

}

# fix bug for ptest with second running.
# Delete it after yocto version up.
do_install_ptest:append() {
    install -d ${D}${PTEST_PATH}/data
    install -m 0644 ${B}/tests/test_data.tmp ${D}${PTEST_PATH}/data/
    echo 'cp ../data/test_data.tmp ./' >> ${D}${PTEST_PATH}/run-ptest
}
"n">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